all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Barry Margolin <barmar@alum.mit.edu>, help-gnu-emacs@gnu.org
Subject: RE: `looking-back' strange warning
Date: Thu, 1 Oct 2015 16:42:10 -0700 (PDT)	[thread overview]
Message-ID: <ada9fc36-1bca-47a0-88e2-b75e96d72d1f@default> (raw)
In-Reply-To: <<barmar-D40496.14502501102015@88-209-239-213.giganet.hu>>

> > > It's a feature: calling `looking-back' without LIMIT is slow, don't do
> > > that. The compiler is telling you that.
> >
> > No, it is "warning" you that there are 2-3 "required" arguments, which
> > is patently false.  This is a product bug, IMO.  Wrong message.
> >
> > Letting you know how to improve performance or avoid slow performance is
> > helpful information, but it is not a "warning" - there is no danger
> > here.  And there is only one required argument.
> 
> The message specifically said "Warning:". How can you say it's not a
> warning?

1. I said that it warns you.  In its form it is clearly a warning.

2. IMHO, this kind of information should not be presented as a warning.
   There is no specific danger involved, such as possible loss of data
   or material.

> You're right that the wording could be improved, maybe it should say
> that this calling sequence is deprecated.

Precisely.  It can even say that use of the optional argument(s) is
recommended.  It can even say that this can improve performance.
It can add any information it likes, including how it affects
performance or what alternatives are available.

But IMHO the message should not take the form of a warning.
Or else it should actually warn of something.  Currently it does not.

At least as important is that it should not tell users that there
are 2-3 required arguments.  There is only 1 required argument.

(It doesn't even make sense to talk about 2-3 required arguments.
Required arguments are required.  There is no choice of 2 or 3.)

It's a poor message that apparently represents excessive zeal
on the part of someone who discovered an anti-use case and
wanted to give users some guidance about avoiding it.  That
would be fine (great!), but this is not the way to do that (IMHO).



  parent reply	other threads:[~2015-10-01 23:42 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-30  8:25 `looking-back' strange warning Andreas Röhler
2015-10-01  6:20 ` Michael Heerdegen
2015-10-01  6:25 ` Tassilo Horn
2015-10-01  6:50 ` Dmitry Gutov
2015-10-01  7:49   ` Andreas Röhler
2015-10-01  8:20     ` Tassilo Horn
2015-10-01  8:46       ` Andreas Röhler
2015-10-01  9:29         ` Tassilo Horn
2015-10-02  0:10       ` Stefan Monnier
2015-10-02 15:21         ` Tassilo Horn
2015-10-01 16:00   ` Drew Adams
2015-10-01 17:56     ` Dmitry Gutov
2015-10-01 18:24       ` Andreas Röhler
2015-10-01 18:59         ` Dmitry Gutov
2015-10-01 19:55           ` Andreas Röhler
2015-10-01 20:26             ` Dmitry Gutov
2015-10-02  0:15             ` Stefan Monnier
2015-10-02  1:18               ` Michael Heerdegen
2015-10-02  5:13                 ` Drew Adams
2015-10-02 20:28                   ` Drew Adams
2015-10-02 20:59                     ` Tassilo Horn
2015-10-02 21:35                       ` Drew Adams
2015-10-03  6:26                         ` Tassilo Horn
2015-10-03  6:45                           ` Andreas Röhler
2015-10-03 15:20                             ` Drew Adams
2015-10-03 15:17                           ` Drew Adams
2015-10-02  1:19               ` Michael Heerdegen
2015-10-02  5:12               ` Drew Adams
2015-10-02  6:16                 ` Andreas Röhler
2015-10-02  6:36                   ` Michael Heerdegen
2015-10-02 12:46                 ` Stefan Monnier
2015-10-02 15:02                   ` Drew Adams
2015-10-02 19:08               ` Tom Tromey
2015-10-02 19:33                 ` Stefan Monnier
2015-10-03 18:11                   ` Stefan Monnier
     [not found]   ` <mailman.176.1443721449.16064.help-gnu-emacs@gnu.org>
2015-10-01 18:50     ` Barry Margolin
     [not found]     ` <<barmar-D40496.14502501102015@88-209-239-213.giganet.hu>
2015-10-01 23:42       ` Drew Adams [this message]
2015-10-02  0:12         ` Stefan Monnier
2015-10-02  5:10           ` Drew Adams
2015-10-02 12:48             ` Stefan Monnier
2015-10-02 15:03               ` Drew Adams
2015-10-02 15:21                 ` Stefan Monnier
2015-10-02 15:24                   ` Drew Adams
2015-10-02 19:28                     ` Stefan Monnier
2015-10-01 12:35 ` Artur Malabarba
     [not found] <<560B9C7F.2060301@easy-emacs.de>

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=ada9fc36-1bca-47a0-88e2-b75e96d72d1f@default \
    --to=drew.adams@oracle.com \
    --cc=barmar@alum.mit.edu \
    --cc=help-gnu-emacs@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.