Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been using mac os x for several years, and I realize that I've now gotten used to all applications transparently "following" files as I rename or move them (either via mv on the console or within the Finder's GUI), and emacs is pretty much the only program that does not.

This is a shame though, because most of my time in front a screen is actually spent in front of emacs :-)

Would anyone have any ideas or pointers about what measures I could take to get that behaviour in emacs ?

(yes I know this is "impossible" to acheive in general, but when I just rename a simple file, or move it to a directory nearby, it's a shame I have to close/reopen it for emacs to notice. oh and no, I'm not going to use 'dired' as a file manager :-)

share|improve this question
TextMate fails as well, surprisingly. – Daniel Beck Jan 8 '11 at 15:08
that's a real shame, as I suspect the file-following magic of mac os x is probably "only" implemented as some cocoa notification callback: "native" applications should all implement it, especially those who pretend to be programmer-oriented ! – Gyom Jan 8 '11 at 15:17
also, I realized that this question could also belong on but I'm not quite sure about what is the right way to cross-post a question. – Gyom Jan 8 '11 at 16:11
Apple.SE is still in beta, and this site is just fine for your question -- we have several people haunting the osx tag. Maybe give it a few days, then you could try posting there. – Daniel Beck Jan 8 '11 at 17:49
asking the same question on IRC channel #emacs yielded thoughts about Cocoa implementing file access in a quite high-level manner (and in particular offering this file-following feature for free). I've never written any objective-C, nor do I know whether Textmate is implemented in o-C, but I now suppose that there is no hope to do any file-following on mac os x outside of Cocoa. Too bad for emacs ! – Gyom Jan 12 '11 at 20:20

You must log in to answer this question.

Browse other questions tagged .