unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: Juanma Barranquero <lekktu@gmail.com>, 14926@debbugs.gnu.org
Subject: bug#14926: 24.3.50; Warning "`make-variable-buffer-local' should be called at toplevel"
Date: Fri, 16 Aug 2013 15:14:19 -0700 (PDT)	[thread overview]
Message-ID: <4591ba43-8d9b-4f92-b4ca-8b110d64cf5b@default> (raw)
In-Reply-To: <87vc35fhz6.fsf@web.de>

> > Is this short enough and clear enough?
> >
> >  "Consider using `make-local-variable' instead"
> >
> > The context (line #) should make it clear what the "instead" refers to.
> 
> That's still confusing.  Why should I consider that?

The message just suggests that you might want to use `m-l-v' instead.

Follow the link to the doc, or use `C-h f make-local-variable' and
`C-h f make-variable-buffer-local' to find out why.  Yes, that's why
it helps to add a manual reference to the msg.

You should not expect a warning message to give you a tutorial.  But
sometimes it can point you to further info that will enlighten you.

> A user already knowing the difference

will either:

a) realize whether or not she made a mistake, by taking 2 sec to
   "consider" which is appropriate here

or:

b) ignore the message, being sure of what s?he is doing.

In both cases the message will have served its purpose (the only
reasonable purpose a message here can have).

> may think "why is there such a (new!) warning?

Now that's a different topic.  ;-)

Emacs is adding warnings all the time.  A user may wonder, indeed.
But that is not particular to this or any that new message.

There is no getting around that, in this case anyway, because there is
nothing new here, besides the fact of Emacs Dev wanting to draw attention
to this possible confusion (which is good to do, especially in the doc).

> Did they change the implementation?  Is there something important I have
> forgotten, or something new I don't know about?

Yes, one wonders.

> I would prefer a sentence like
> 
> "Did you mean `make-local-variable'?"
> 
> which is short and just says: I, Emacs, think you confused those two,
> but it's ok if you know what you're doing.

I disagree that that is as clear, but it's OK by me.  Certainly a lot
better than pointing the user to top-level vs not top-level, which is
a red herring.






  reply	other threads:[~2013-08-16 22:14 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-21 21:11 bug#14926: 24.3.50; Warning "`make-variable-buffer-local' should be called at toplevel" Drew Adams
2013-07-22  2:59 ` Stefan Monnier
2013-07-22  4:31   ` Drew Adams
2013-08-15 14:43   ` Michael Heerdegen
2013-08-15 16:33     ` Stefan Monnier
2013-08-15 18:19       ` Michael Heerdegen
2013-08-16  6:54       ` Glenn Morris
2013-08-16  7:34         ` Drew Adams
2013-08-16  7:45         ` Juanma Barranquero
2013-08-16 11:09           ` Michael Heerdegen
2013-08-16 14:07             ` Drew Adams
2013-08-16 21:23               ` Michael Heerdegen
2013-08-16 22:14                 ` Drew Adams [this message]
2013-08-16 16:25           ` Stefan Monnier
2013-08-16 16:31             ` Juanma Barranquero
2013-08-16 17:58             ` Drew Adams
2013-08-16 18:01             ` Glenn Morris
2013-08-16 21:26               ` Michael Heerdegen
2013-08-16 21:40                 ` Glenn Morris
2013-08-16 23:02                   ` Michael Heerdegen
2014-02-08  5:28           ` 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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=4591ba43-8d9b-4f92-b4ca-8b110d64cf5b@default \
    --to=drew.adams@oracle.com \
    --cc=14926@debbugs.gnu.org \
    --cc=lekktu@gmail.com \
    --cc=michael_heerdegen@web.de \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).