all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Selecting default prompt text
@ 2009-02-11 23:29 Richard Riley
  2009-02-12  2:53 ` Kevin Rodgers
       [not found] ` <mailman.497.1234407233.31690.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Richard Riley @ 2009-02-11 23:29 UTC (permalink / raw)
  To: help-gnu-emacs


I like my interactive functions to generally use the word or region at
point as a default. Is there a way to make the read-string mini buffer
input to pre-select the default value?

e.g

consider

(setq url (read-string (format "Url (%s) :" url) url nil url))

Here I would like to see at the input prompt

Url (xyz): xyz

with the default value of "xyz" already selected. In other words
the same behaviour as when you tab into a populated  entry field in most
of applications.


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

end of thread, other threads:[~2009-02-12 19:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-11 23:29 Selecting default prompt text Richard Riley
2009-02-12  2:53 ` Kevin Rodgers
     [not found] ` <mailman.497.1234407233.31690.help-gnu-emacs@gnu.org>
2009-02-12  9:54   ` Richard Riley
2009-02-12 12:27     ` Andreas Politz
2009-02-12 13:35       ` Richard Riley
2009-02-12 17:34         ` Drew Adams
2009-02-12 17:48           ` Richard Riley
     [not found]           ` <mailman.573.1234460908.31690.help-gnu-emacs@gnu.org>
2009-02-12 19:02             ` Richard Riley

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.