emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

switch-to-buffer in hack-local-variables and hack-one-local-variable


From: martin rudalics
Subject: switch-to-buffer in hack-local-variables and hack-one-local-variable
Date: Fri, 06 May 2005 11:41:18 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

Both `hack-local-variables' and `hack-one-local-variable' may call
`switch-to-buffer' when parsing local variables.  As a consequence, a
"save-window-excursion: Cannot switch buffers in a dedicated window"
error is generated when calling `find-file-noselect' while the
selected window is dedicated.  Replacing `switch-to-buffer' with
`pop-to-buffer' resolves the problem for me.  Alternatively, the
approach from `hack-local-variables-prop-line' might be used.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]