help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Reparsing local variables without reopening file?


From: Kevin Rodgers
Subject: Re: Reparsing local variables without reopening file?
Date: Tue, 24 Sep 2002 14:22:05 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Thomas F. Burdick wrote:

Come to think of it, that would be a nice thing to have as a command,
wouldn't it?  But hack-local-variables is the function that gets
called when you find-file a file, so you can just put this in your
.emacs:

  (defun my-reparse-local-variables ()
     (interactive)
     (hack-local-variables))

  (global-set-key ... #'my-reparse-local-varaibles)

Or you can advise the original definition and bind a key to that (or
call it via M-x), instead of creating a new function:

(defadvice hack-local-variables (before interactive activate)
 "Provide an `interactive' specification."
 (interactive))


--
<a href="mailto:&lt;kevinr&#64;ihs.com&gt;";>Kevin Rodgers</a>



reply via email to

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