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

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

Re: Bookmarks in EWW


From: Michael Heerdegen
Subject: Re: Bookmarks in EWW
Date: Thu, 30 Apr 2020 00:53:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> > +(byte-defop-compiler-1 make-local-variable
> > +                       byte-compile-make-local-variable)
> > +(defun byte-compile-make-local-variable (form)
> > +  (let ((var-exp (car-safe (cdr-safe form))))
> > +    (when (eq 'quote (car-safe var-exp))
> > +      (byte-compile--declare-var (car (cdr var-exp)))))
> > +  (byte-compile-normal-call form))
>
> LGTM,

In this example:

#+begin_src emacs-lisp
(defun test ()
  (make-local-variable 'my-test-var)
  (with-current-buffer (get-buffer-create "Testbuffer")
    (setq my-test-var 27)))
#+end_src

the patch suppresses the warning.  But M-: (test) leads to `my-test-var'
being bound to 27 buffer-locally in "Testbuffer" although we never made
the variable local there...is this cosher?

Michael.



reply via email to

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