[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: save-excursion defeated by set-buffer
From: |
Thierry Volpiatto |
Subject: |
Re: save-excursion defeated by set-buffer |
Date: |
Sun, 29 Nov 2009 19:24:23 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) |
Thierry Volpiatto <address@hidden> writes:
> Stefan Monnier <address@hidden> writes:
>
>>> But why the compile buffer show up on start of emacs instead of only
>>> showing the warning when compiling?
>>
>> I do not know. Try to
>>
>> (require 'bytecomp)
>> (debug-on-entry 'byte-compile-form)
>>
>> early in your .emacs and hope that it catches the cuprit?
> Thanks Stefan.
>
> After loading .emacs step by step, i found the problem:
> It comes from bbdb.
More exactly from files bbdb-gui.el, bbdb-com.el.
After replacing all occurence of "(save-excursion (set-buffer foo) ...)"
by "(with-current-buffer foo", all work fine again.
An exception that is a little different: (in bbdb-finger)
,----[ Replace ]
| (save-excursion
| (with-output-to-temp-buffer bbdb-finger-buffer-name
| (set-buffer bbdb-finger-buffer-name)
`----
,----[ By ]
| (with-current-buffer (get-buffer-create bbdb-finger-buffer-name)
| (with-output-to-temp-buffer bbdb-finger-buffer-name
`----
> I have a compile log buffer with:
>
> Warning: `save-excursion' defeated by `set-buffer'.
>
> On startup.
--
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France