From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Start value in minibuffer Date: Sun, 13 Nov 2005 18:22:50 -0500 Message-ID: <87u0egm8xv.fsf-monnier+emacs@gnu.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1131924238 22678 80.91.229.2 (13 Nov 2005 23:23:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 13 Nov 2005 23:23:58 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 14 00:23:56 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EbRBw-0007NE-IX for ged-emacs-devel@m.gmane.org; Mon, 14 Nov 2005 00:23:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EbRBv-0005Y3-US for ged-emacs-devel@m.gmane.org; Sun, 13 Nov 2005 18:23:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EbRBV-0005Qa-5b for emacs-devel@gnu.org; Sun, 13 Nov 2005 18:22:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EbRBT-0005Pe-Ek for emacs-devel@gnu.org; Sun, 13 Nov 2005 18:22:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EbRBT-0005Pa-A8 for emacs-devel@gnu.org; Sun, 13 Nov 2005 18:22:51 -0500 Original-Received: from [209.226.175.25] (helo=tomts5-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EbRBT-0006B8-5q for emacs-devel@gnu.org; Sun, 13 Nov 2005 18:22:51 -0500 Original-Received: from alfajor ([65.92.243.185]) by tomts5-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20051113232250.IMKR26967.tomts5-srv.bellnexxia.net@alfajor>; Sun, 13 Nov 2005 18:22:50 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id 2C7542FD7E; Sun, 13 Nov 2005 18:22:50 -0500 (EST) Original-To: "Drew Adams" In-Reply-To: (Drew Adams's message of "Sun, 13 Nov 2005 14:36:03 -0800") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:45915 Archived-At: > For those of you that use pc-selection-mode, I believe there is a > natural way to fulfill these requirements. Just try this: > (add-hook 'minibuffer-setup-hook 'select-minibuffer-contents) > (defun select-minibuffer-contents () > "Select minibuffer contents." > (set-mark (point-max)) > (goto-char (minibuffer-prompt-end))) > (defadvice next-history-element (after select-minibuffer-contents activate) > "Select minibuffer contents." > (set-mark (point-max)) > (goto-char (minibuffer-prompt-end)) > (setq deactivate-mark nil)) BTW, shouldn't pc-selection-mode do that? > It has been decided that the INITIAL-VALUE parameter to minibuffer-input > functions is more or less deprecated, in favor of the DEF (default-value) > parameter alone. Not for file names, which is why /tmp//foo is interpreted as /foo. Stefan