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

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

Re: `save-excursion' defeated by `set-buffer'


From: Juanma Barranquero
Subject: Re: `save-excursion' defeated by `set-buffer'
Date: Mon, 14 Mar 2011 19:59:36 +0100

On Sat, Mar 12, 2011 at 20:56, Drew Adams <drew.adams@oracle.com> wrote:

> IMO, this warning has produced _far_ more confusion than it has eliminated.

That's bad, because it would be better if the warning eliminated
confusion too; but it is secondary, because its true purpose is to
eliminate subtle bugs, which Stefan already explained like twenty
times (soon he will be able to write a book à la Italo Calvino with
all this). So even if some not-really-understanding elisp programmer
just reacts to the warning and changes his code, he wil already reach
some benefit.

>From my point of view, your arguments support fixing the wording, not
removing the warning.

> FWIW, I also agree with Andreas that a "warning" is for something serious.  A
> warning is not the same thing as in informative message.  A warning _warns_ 
> you
> about potential danger/damage.

Curious. In computing terminology, I'd say an *error* is for something
serious. A warning informs you about a potential problem, and often
one that you're likely to miss by yourself. Just like this one.

IMHO, 0.02€, etc. etc.

    Juanma



reply via email to

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