emacs-devel
[Top][All Lists]
Advanced

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

Re: master 760910f: Add a new buffer-local variable `minor-modes'


From: Lars Ingebrigtsen
Subject: Re: master 760910f: Add a new buffer-local variable `minor-modes'
Date: Sun, 14 Feb 2021 14:47:15 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

"Basil L. Contovounesios" <contovob@tcd.ie> writes:

>>     Add a new buffer-local variable `minor-modes'

I was surprised to find that buffer-local variables take precedence over
let-bound variables in some instances?  If doing

(let ((minor-modes 1))
  (with-current-buffer "some-other-buffer"
    minor-modes))

will return the buffer-local variable in that other buffer, and not the
let-bound one?

Then perhaps that variable should be renamed to something longer and
convoluted...  even if it seemed like a perfect pairing with
`major-mode'/`minor-modes'.

Opinions?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

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