Eric S Fraga <ucec...@ucl.ac.uk> writes: Hi Eric,
> (defadvice ecb-method-clicked (after esf/org-show-context) > "Make sure hierarchy is visible when jumping into location from ECB tree > buffer" > (if (string= major-mode "org-mode") Here, you want (eq major-mode 'org-mode). Your version also works, but only because string= converts symbols to their string name, and the value of `major-mode' is a symbol. The `eq' version is more efficient, but mostly it's for style reasons. > Again, apologies for my minimal (yet increasing) elisp knowledge! Hey, it works! What do you want more? ;-) Bye, Tassilo _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode