[Top][All Lists]

[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: 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

  (defun my-reparse-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."

<a href="mailto:&lt;kevinr&#64;;";>Kevin Rodgers</a>

reply via email to

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