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

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

Re: RE: Removing line and column number settings from some buffers


From: daniela-spit
Subject: Re: RE: Removing line and column number settings from some buffers
Date: Sun, 6 Dec 2020 00:05:24 +0100


> Sent: Saturday, December 05, 2020 at 11:57 PM
> From: "Drew Adams" <drew.adams@oracle.com>
> To: daniela-spit@gmx.it, "Michael Heerdegen" <michael_heerdegen@web.de>
> Cc: help-gnu-emacs@gnu.org
> Subject: RE: Removing line and column number settings from some buffers
>
> > Look at this code.  Correct, you don't need a variable for storing,
> > but what is happening with n in the following code.
> >
> > The byte compiler complains about the variable n
> >
> > (defun auto-fill-cycle ()
> >    (interactive)
> >    (setq-local n (get 'auto-fill-cycle 'state))...)
>
> `n' is a free variable.  Add a `defvar' for it, if you
> don't want Emacs to tell you about that.

Would that be a valid approach or is it just to stop emacs complaining?

Was considering to use

(let (n)
...



reply via email to

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