From: "Drew Adams" <drew.adams@oracle.com>
To: "'Tyler Smith'" <tyler.smith@eku.edu>, <help-gnu-emacs@gnu.org>
Subject: RE: read-from-minibuffer with default value string
Date: Mon, 6 Dec 2010 07:49:49 -0800 [thread overview]
Message-ID: <EB5DE7D8E2D54FCF88B544B43EEEA321@us.oracle.com> (raw)
In-Reply-To: <87vd370zav.fsf@guruji.demimonde>
> Yes, I had been trying to puzzle over that page. You quote
> the passages that suggest INITIAL-CONTENTS is still ok, but
> it also includes the line:
>
> Use of a cons cell as the value for INITIAL arguments is deprecated
> in user code.
>
> I'm not sure if this might be a documentation bug, but it sure left me
> with mixed messages.
No, it's not a typo. That's something else again. It pertains to this earlier
paragraph:
INITIAL can also be a cons cell of the form `(STRING . POSITION)'.
This means to insert STRING in the minibuffer but put point at POSITION
within the string's text.
(So both HIST and INITIAL can be cons cells.) Admittedly the statement you
quote can be confusing, especially because:
1. It is separated by a large paragraph from the statement that INITIAL can be a
cons.
2. It speaks about "user code". That's easy to miss - and easy to wonder about.
What it is presumably saying is that Emacs Dev does not consider this deprecated
for its own (Emacs-developer) use in (officially distributed) Emacs code, but it
considers it deprecated for coding by users. Silly?
You might want to file a doc bug to try to get this part clarified: `M-x
report-emacs-bug'.
> Sure, my only concerns in sorting this out are 1) to learn to use
> correct, idiomatic elisp and 2) to avoid constructs that are likely to
> change/disappear in future emacs versions. I think your
> suggestions will allow me to avoid the issue entirely, which is good.
Yes, that's the right approach, IMO. I do the same thing, for the same reason,
in spite of my view that this should _not_ be considered deprecated/obsolete.
prev parent reply other threads:[~2010-12-06 15:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-05 20:33 read-from-minibuffer with default value string Tyler Smith
2010-12-06 3:39 ` Drew Adams
2010-12-06 14:08 ` Tyler Smith
2010-12-06 15:49 ` Drew Adams [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=EB5DE7D8E2D54FCF88B544B43EEEA321@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=tyler.smith@eku.edu \
/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.