Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 apple.stackexchange.com 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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.