all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: emacs-devel@gnu.org
Subject: read-from-minibuffer INITIAL-CONTENTS/DEFAULT-VALUE
Date: Sat, 13 Jul 2019 02:05:00 +0200	[thread overview]
Message-ID: <m38st2sssz.fsf@gnus.org> (raw)

Historically, Emacs has used to put text in INITIAL-CONTENTS for a bunch
of commands, but has, over the years, moved to putting the defaults in
DEFAULT-VALUE so that the user has to type `M-n' to get at them.

Overall, I think this is a good change...  but for a bunch of commands,
I really would like to have what's in DEFAULT-VALUE to be in
INITIAL-CONTENTS instead.  It's a lot more ergonomic (for me) for a
number of commands, and reading a bunch of bug reports over the years,
apparently for a number of users as well.

So it would be nice if there was a way to tweak this.

An obvious way would be to offer an option that would just put
DEFAULT-VALUE in INITIAL-CONTENTS always.  It'd be trivial to implement,
and I'm sure somebody would want this for all commands.

An if somebody wants this action for some commands only, they could add
:around advice to the commands in question.

Or we could allow tweaking this in the symbol plists.

Any opinions?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




             reply	other threads:[~2019-07-13  0:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-13  0:05 Lars Ingebrigtsen [this message]
2019-07-13  6:40 ` read-from-minibuffer INITIAL-CONTENTS/DEFAULT-VALUE 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=m38st2sssz.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=emacs-devel@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.