From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.help Subject: Re: Selecting default prompt text Date: Thu, 12 Feb 2009 20:02:37 +0100 Organization: A noiseless patient Spider Message-ID: References: <1234441717.125678@arno.fh-trier.de> <00fb01c98d38$1f604e60$c2b22382@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1234467653 3771 80.91.229.12 (12 Feb 2009 19:40:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Feb 2009 19:40:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 12 20:42:09 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LXhRn-0001Yk-B1 for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Feb 2009 20:42:07 +0100 Original-Received: from localhost ([127.0.0.1]:37635 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LXhQT-0004z1-11 for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Feb 2009 14:40:45 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed0.kamp.net!newsfeed.kamp.net!news.motzarella.org!motzarella.org!rileyrgdev.motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 43 Original-X-Trace: news.eternal-september.org U2FsdGVkX19UlkSVNbBrwGHHPqecYJkKoMAsYSlOoQH2v5vCM4HWRZTPlaV8ZWrjatK2AEGdQHy2p1W7tMf9aTL7CvpptW0ea9Moug8lW3iXq2CPK2PaWsyBhUsExSTRJbxVRSvKuszEbfJzMmer8Q== Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Thu, 12 Feb 2009 19:02:38 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1+LvTIK+qG+J/+TUZTvZuy7OcjhovkUJXvI4fg5J3iwrw== Cancel-Lock: sha1:Gk9PeLZsKGjH0PRH+q8P2hD0c+s= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:166782 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:62090 Archived-At: Richard Riley writes: > "Drew Adams" writes: > >>> > Something like this ? >>> > >>> > (defun minibuffer-select-inital-input () >>> > (let ((start (next-single-char-property-change 1 'read-only))) >>> > (when (< start (point-max)) >>> > (set-mark start) (setq mark-active t)))) >>> > >>> > (add-hook 'minibuffer-setup-hook 'minibuffer-select-inital-input) >>> > (read-string "> " "Hallo") >>> > >>> > -ap >>> >>> Yes, thanks. But I released I was hoping for too much here since >>> region/mark etc works so many different ways depending on settings. As >>> "dim" in the #emacs said, probably best to rely on C-a C-k. >>> e.g With my setting hitting right arrow there results in >>> "end of buffer" error. >> >> 1. I was going to suggest something like what ap said. >> >> That seems to respond to your request, so I'm not sure what you meant above - in >> particular about using the right arrow. If point is at the end of the input (end >> of buffer), then why would you hit the right arrow? What would you like the >> right arrow to do in that context? > > The way I use the kbd, right arrow to remove select and edit existing > text with cursor at end or any other (non directional) key to clear the > field. Try Google example : enter text, tab to button, shit tab back, Hmm. I must be more careful when typing "shift" .... Sorry. > press right arrow. But I see this is probably not a good idea to > enforce in emacs. > > > -- important and urgent problems of the technology of today are no longer the satisfactions of the primary needs or of archetypal wishes, but the reparation of the evils and damages by the technology of yesterday. ~Dennis Gabor, Innovations: Scientific, Technological and Social, 1970