all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Reading from minibuffer with default value when return pressed
@ 2007-04-22 18:01 Nordlöw
  2007-04-22 18:07 ` Nordlöw
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Nordlöw @ 2007-04-22 18:01 UTC (permalink / raw)
  To: help-gnu-emacs

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-04-25  5:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-22 18:01 Reading from minibuffer with default value when return pressed Nordlöw
2007-04-22 18:07 ` 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

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.