[slime-devel] Folding mode support

Dear slimers, I like to use folding-mode to structure my lisp files. However it drives me insane that this breaks slime's SLIME-EDIT-DEFINITION functionality if the buffer is already loaded and folded somehow. This little piece of advice fixes this. I think it may more properly belong in folding-mode than in slime, but in the short term, slimer's are the ones who will most benefit, so I thought I'd share it with you guys. (defadvice slime-goto-location-position (around slime-folding-goto-line first activate) "Jump to a slime position in a buffer in folding-mode." (if folding-mode (let ((line nil)) (folding-open-buffer) ad-do-it (setq line (line-number-at-pos)) (folding-goto-line line)) ad-do-it)) Cheers, --ap -- Please read about why Top Posting is evil at: http://en.wikipedia.org/wiki/Top-posting and http://www.dickalba.demon.co.uk/usenet/guide/faq_topp.html Please read about why HTML in email is evil at: http://www.birdhouse.org/etc/evilmail.html
participants (1)
-
Alain Picard