From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: Re: need obsolete arg in (read-from-minibuffer ...) Date: Fri, 18 Mar 2011 18:12:09 -0400 Message-ID: <4D83D8B9.7070608@mousecar.com> References: <4D83BF4A.1030707@mousecar.com> <57C62106C2FC4A8DABE33A73A9A35201@us.oracle.com> Reply-To: gebser@mousecar.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1300486367 3425 80.91.229.12 (18 Mar 2011 22:12:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 18 Mar 2011 22:12:47 +0000 (UTC) Cc: 'GNU Emacs List' To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 18 23:12:43 2011 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.69) (envelope-from ) id 1Q0huV-0000zR-FB for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Mar 2011 23:12:43 +0100 Original-Received: from localhost ([127.0.0.1]:55525 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0huU-0004JF-EK for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Mar 2011 18:12:42 -0400 Original-Received: from [140.186.70.92] (port=55253 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0huA-0004J9-2v for help-gnu-emacs@gnu.org; Fri, 18 Mar 2011 18:12:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q0hu9-0008OM-6r for help-gnu-emacs@gnu.org; Fri, 18 Mar 2011 18:12:21 -0400 Original-Received: from mout.perfora.net ([74.208.4.195]:62242) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q0hu9-0008OG-1E for help-gnu-emacs@gnu.org; Fri, 18 Mar 2011 18:12:21 -0400 Original-Received: from dellap.mousecar.net (dsl093-011-016.cle1.dsl.speakeasy.net [66.93.11.16]) by mrelay.perfora.net (node=mrus4) with ESMTP (Nemesis) id 0MUYvr-1QQFWj2uN1-00RRzK; Fri, 18 Mar 2011 18:12:13 -0400 User-Agent: Thunderbird 2.0.0.24 (X11/20101213) In-Reply-To: <57C62106C2FC4A8DABE33A73A9A35201@us.oracle.com> X-Enigmail-Version: 0.96.0 OpenPGP: id=5AD091E7 X-Provags-ID: V02:K0:m+zPXWtvGK1kU7gCh5FL4Cj2NjO3qgBE2wTXns8rwno ALDjODl7rvmx3EK0VkkhXB5EE/0yvhCEGQoBbouqx+O2l3HrQ0 NwMIANlbK+P48z3MlJlbTB4yMlS1tAq8PRE+9v8k1EQ5Ceg9iY /SDb9ctcVTEw/95YgqiA6iLX8+474egkp3bPnn2BXFBmbapx5R ORg90EJjXX9AKuL513zkNQ9Yqgb+koIhOs51YryIVI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.208.4.195 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:80257 Archived-At: On 03/18/2011 04:37 PM Drew Adams wrote: >> the docs say that 2nd arg is obsolete. However, >> I've tried a lot of permutations of the args listed and I >> can't get this function to work without using that obsolete 2nd arg. >> (defun mygetstr (def-val) >> (read-from-minibuffer "Enter/Edit string: " >> def-val nil nil nil def-val t)) > > What do you mean by "work"? And what do you mean "without" the obsolete arg? Sorry, I should have been clearer. If I change the 2nd arg from "def-val" to "nil", then def-val isn't displayed in the minibuffer for editing by the user. However, the docs say that this arg is obsolete. I take this to mean that it should be left as "nil". > That argument must be present if you include any arguments to the right of it. That's correct. > > What is considered (by some) to be "obsolete" is to use a non-nil value for the > argument. That's all. You cannot simply remove the arg if you include args > such as the DEFAULT-VALUE and INHERIT-INPUT-METHOD. A nil argument can be > omitted if there are no non-nil args coming after it (i.e., to the right). I agree.