all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: 'MON KEY' <monkey@sandpframing.com>, emacs-devel@gnu.org
Subject: Re: functions which read by prompting should not add additional chars to prompt string
Date: Sun, 23 Jan 2011 21:57:42 -0500	[thread overview]
Message-ID: <jwv62tfrox9.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <04AC080BE7B240DC88EB86EF60623900@us.oracle.com> (Drew Adams's message of "Sat, 22 Jan 2011 19:06:03 -0800")

> IMO there is no need to add the default value, whatever it might be,
> to the prompt string.  As always, it is available via `M-n'.

That's the whole point of this calling convention for read-regexp: the
choice of whether to place the default in the prompt is centralized in
read-regexp, so it can easily be changed, instead of being duplicated in
each and every call to read-regexp (as is currently the case for pretty
much all other read-<foo> functions) which hard-codes the behavior and
renders it impossible to let users choose another behavior.

I.e. read-regexp's behavior is the right one, the other functions would
need to be adjusted to follow the same principle (tho doing it in
backward-compatible way is difficult).


        Stefan



      reply	other threads:[~2011-01-24  2:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-22 20:38 functions which read by prompting should not add additional chars to prompt string MON KEY
2011-01-23  3:06 ` Drew Adams
2011-01-24  2:57   ` Stefan Monnier [this message]

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=jwv62tfrox9.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=monkey@sandpframing.com \
    /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.