all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: "Basil L. Contovounesios" <contovob@tcd.ie>
Cc: emacs-devel@gnu.org
Subject: Re: master 760910f: Add a new buffer-local variable `minor-modes'
Date: Sun, 14 Feb 2021 14:47:15 +0100	[thread overview]
Message-ID: <87lfbqep7g.fsf@gnus.org> (raw)
In-Reply-To: <871rdiygvt.fsf@tcd.ie> (Basil L. Contovounesios's message of "Sun, 14 Feb 2021 12:26:46 +0000")

"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



  parent reply	other threads:[~2021-02-14 13:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210214113754.21891.10736@vcs0.savannah.gnu.org>
     [not found] ` <20210214113756.93760209D4@vcs0.savannah.gnu.org>
2021-02-14 12:26   ` master 760910f: Add a new buffer-local variable `minor-modes' Basil L. Contovounesios
2021-02-14 12:49     ` Lars Ingebrigtsen
2021-02-14 13:01       ` Lars Ingebrigtsen
2021-02-14 13:47     ` Lars Ingebrigtsen [this message]
2021-02-14 15:34   ` Stefan Monnier
2021-02-14 15:41     ` Lars Ingebrigtsen
2021-02-14 15:45       ` Lars Ingebrigtsen
2021-02-14 18:17       ` Stefan Monnier
2021-02-14 18:40         ` Lars Ingebrigtsen
2021-02-14 23:19           ` Stefan Monnier
2021-02-14 23:22             ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lfbqep7g.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=contovob@tcd.ie \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.