From: Nordlöw <per.nordlow@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Reading from minibuffer with default value when return pressed
Date: 22 Apr 2007 11:01:34 -0700 [thread overview]
Message-ID: <1177264894.293580.213410@b75g2000hsg.googlegroups.com> (raw)
Hey there, Emacs-Hackers!
I am trying enhance my grep wrapper with the common logic that propose
a default argument like, preferrably using
(thing-at-point 'symbol)
Grep for string (some-default-string):
and that uses this some-default-string I have only press return.
I thought the following should work but it doesn't
(read-from-minibuffer "Grep for string: " nil nil nil nil "default"
nil)
Do I need an alternative to read-from-minibuffer() or have I missed
something=
Many thanks in advance,
Per Nordlöw
next reply other threads:[~2007-04-22 18:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-22 18:01 Nordlöw [this message]
2007-04-22 18:07 ` Reading from minibuffer with default value when return pressed Nordlöw
2007-04-22 18:46 ` Drew Adams
2007-04-23 14:13 ` Johan Bockgård
2007-04-23 17:05 ` Chris McMahan
2007-04-25 5:13 ` Stefan Monnier
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1177264894.293580.213410@b75g2000hsg.googlegroups.com \
--to=per.nordlow@gmail.com \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).