[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: ECB and org-mode
From: |
Tassilo Horn |
Subject: |
[Orgmode] Re: ECB and org-mode |
Date: |
Wed, 14 Oct 2009 19:57:42 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
Eric S Fraga <address@hidden> 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
- [Orgmode] ECB and org-mode, Eric S Fraga, 2009/10/12
- Re: [Orgmode] ECB and org-mode, Carsten Dominik, 2009/10/12
- Re: [Orgmode] ECB and org-mode, Eric S Fraga, 2009/10/12
- Re: [Orgmode] ECB and org-mode, Carsten Dominik, 2009/10/20
- Re: [Orgmode] ECB and org-mode, Eric S Fraga, 2009/10/20
- Re: [Orgmode] ECB and org-mode, Carsten Dominik, 2009/10/20
- Re: [Orgmode] ECB and org-mode, Eric S Fraga, 2009/10/20
- Re: [Orgmode] ECB and org-mode, Carsten Dominik, 2009/10/20
- Re: [Orgmode] ECB and org-mode, Eric S Fraga, 2009/10/20
- Re: [Orgmode] ECB and org-mode, Carsten Dominik, 2009/10/20