From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?B?Tm9yZGz2dw==?= Newsgroups: gmane.emacs.help Subject: Re: Reading from minibuffer with default value when return pressed Date: 22 Apr 2007 11:07:26 -0700 Organization: http://groups.google.com Message-ID: <1177265246.332766.133340@d57g2000hsg.googlegroups.com> References: <1177264894.293580.213410@b75g2000hsg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1177266993 24479 80.91.229.12 (22 Apr 2007 18:36:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 22 Apr 2007 18:36:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 22 20:36:32 2007 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 1HfgvC-0007el-TT for geh-help-gnu-emacs@m.gmane.org; Sun, 22 Apr 2007 20:36:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hfh0V-0006zd-VF for geh-help-gnu-emacs@m.gmane.org; Sun, 22 Apr 2007 14:41:56 -0400 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!d57g2000hsg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: 150.227.15.253 Original-X-Trace: posting.google.com 1177265246 8020 127.0.0.1 (22 Apr 2007 18:07:26 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 22 Apr 2007 18:07:26 +0000 (UTC) In-Reply-To: <1177264894.293580.213410@b75g2000hsg.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; sv-SE; rv:1.8.1.3) Gecko/20060601 Firefox/2.0.0.3 (Ubuntu-edgy),gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 netcache (NetCache NetApp/6.1.1RC1) Complaints-To: groups-abuse@google.com Injection-Info: d57g2000hsg.googlegroups.com; posting-host=150.227.15.253; posting-account=T25tbw0AAADoaalO12jRFAyM2dkqq2mX Original-Xref: shelby.stanford.edu gnu.emacs.help:147385 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:42990 Archived-At: Hey there, Emacs-Hackers! Sorry, I accidentally sent this post before it was finished... Here is the correct version: I am trying enhance my grep wrapper with the common logic that propose a default argument like Grep for string (some-default-string): preferrably using (thing-at-point 'symbol) and that it defaults to this "some-default-string" when I press return only. I thought the following code should work but it doesn't (read-from-minibuffer "Grep for string: " nil nil nil nil "default" nil) Do I need to use an alternative to read-from-minibuffer() or have I missed something? Many thanks in advance, Per Nordl=F6w