From: "Drew Adams" <drew.adams@oracle.com>
To: <herring@lanl.gov>
Cc: emacs-devel@gnu.org
Subject: RE: question about "Making change-major-mode-hook buffer-local whilelocally let-bound!"
Date: Sun, 20 Jun 2010 14:24:26 -0700 [thread overview]
Message-ID: <D863EF6110024632AC53B267CC7A5B0F@us.oracle.com> (raw)
In-Reply-To: <49606.130.55.132.68.1277067361.squirrel@webmail.lanl.gov>
> > Also, should this message really be displayed at runtime? It seems
> > like the kind of commentary-on-source-code that would be more
> > appropriate for the byte-compiler. Why subject runtime users to
> > such commentary? In the code in question, this message is shown
> > each time a pp command is used.
>
> The byte-compiler doesn't know that a variable is let-bound
> at the time that you are making it buffer-local.
I was not suggesting that the byte-compiler should try to do this either. ;-)
My point was that this is a commentary on code, not help for the user. It is
the _kind_ of thing (comment on code) that the byte-compiler does. It is not
the kind of thing that we normally put in runtime messages to the user.
My question was why we would even think about subjecting Emacs _users_ to such a
code-commenting message.
> That said, we could arrange for the message to be shown only once per
> variable per session. It wouldn't be perfect, since more than one
> piece of code might do this for the same variable, but hopefully
> there are so few instances of this that there would be no collisions.
Why bother? What is gained by having such a runtime message?
This kind of suggestion/hint belongs in the docs perhaps, but why also interrupt
users with it? I have a hard time believing we would do this by design (not to
mention using `!' in such a message).
Messages to the user should generally reflect things the _user_ has done or is
able to do. Telling a user that some executing code is "making
change-major-mode-hook buffer-local while [it is] locally let-bound [by some
other code]" is ridiculous, er, misguided, IMHO.
Anyway, this was only a side question. Assuming this _will_ be imposed on us
(on n'arrete pas le progres), what is the answer to my original query? What is
a good way to inhibit `change-major-mode-hook' temporarily? And what is a good
way to suppress this message (preferably only this message)?
next prev parent reply other threads:[~2010-06-20 21:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-20 16:51 question about "Making change-major-mode-hook buffer-local while locally let-bound!" Drew Adams
2010-06-20 18:31 ` question about "Making change-major-mode-hook buffer-local whilelocally let-bound!" Drew Adams
2010-06-20 20:56 ` Davis Herring
2010-06-20 21:24 ` Drew Adams [this message]
2010-06-20 23:15 ` question about "Making change-major-mode-hook buffer-local while locally let-bound!" Johan Bockgård
2010-06-20 23:29 ` question about "Making change-major-mode-hook buffer-localwhile " Drew Adams
2010-06-22 0:28 ` question about "Making change-major-mode-hook buffer-local while " Stefan Monnier
2010-06-22 4:10 ` Drew Adams
2010-06-22 5:01 ` Davis Herring
2010-06-22 5:44 ` Drew Adams
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=D863EF6110024632AC53B267CC7A5B0F@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
--cc=herring@lanl.gov \
/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.