[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Add M-x occur to the menu-bar
From: |
Kim F. Storm |
Subject: |
Re: Add M-x occur to the menu-bar |
Date: |
10 Feb 2004 15:50:06 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
Richard Stallman <address@hidden> writes:
> + (if (buffer-local-value
> + 'compilation-next-error-function
> + compilation-last-buffer)
> + ;; do the right thing for modes that bind
> compilation-next-error-function
>
> It is cleaner to check for a non-nil value than to
> check for a local binding.
I don't follow...
We need to check if the buffer-local value of the variable
compilation-next-error-function is non-nil in the
compilation-last-buffer buffer.
Is this what you suggest to use instead?
(if (with-current-buffer compilation-last-buffer
compilation-next-error-function)
...
If so, what's the difference?
--
Kim F. Storm <address@hidden> http://www.cua.dk
- Re: Add M-x occur to the menu-bar, Ted Zlatanov, 2004/02/04
- Re: Add M-x occur to the menu-bar, Kim F. Storm, 2004/02/04
- Re: Add M-x occur to the menu-bar, Ted Zlatanov, 2004/02/09
- Re: Add M-x occur to the menu-bar, Richard Stallman, 2004/02/10
- Re: Add M-x occur to the menu-bar,
Kim F. Storm <=
- Re: Add M-x occur to the menu-bar, Ted Zlatanov, 2004/02/10
- Re: Add M-x occur to the menu-bar, Richard Stallman, 2004/02/12
- Re: Add M-x occur to the menu-bar, Ted Zlatanov, 2004/02/12
- Re: Add M-x occur to the menu-bar, Stefan Monnier, 2004/02/13
- Re: Add M-x occur to the menu-bar, Ted Zlatanov, 2004/02/12
- Re: Add M-x occur to the menu-bar, Kim F. Storm, 2004/02/12
- Re: Add M-x occur to the menu-bar, Ted Zlatanov, 2004/02/13
- Re: Add M-x occur to the menu-bar, Kim F. Storm, 2004/02/13
- Re: Add M-x occur to the menu-bar, Richard Stallman, 2004/02/14
- Re: Add M-x occur to the menu-bar, Ted Zlatanov, 2004/02/23