From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: need obsolete arg in (read-from-minibuffer ...) Date: Fri, 18 Mar 2011 13:37:52 -0700 Message-ID: <57C62106C2FC4A8DABE33A73A9A35201@us.oracle.com> References: <4D83BF4A.1030707@mousecar.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1300480718 4733 80.91.229.12 (18 Mar 2011 20:38:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 18 Mar 2011 20:38:38 +0000 (UTC) To: , "'GNU Emacs List'" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 18 21:38:33 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 1Q0gRG-0006lB-JJ for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Mar 2011 21:38:26 +0100 Original-Received: from localhost ([127.0.0.1]:54000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0gRF-0004ee-8x for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Mar 2011 16:38:25 -0400 Original-Received: from [140.186.70.92] (port=57166 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0gQm-0004eT-D3 for help-gnu-emacs@gnu.org; Fri, 18 Mar 2011 16:37:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q0gQl-000829-Fk for help-gnu-emacs@gnu.org; Fri, 18 Mar 2011 16:37:56 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:22135) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q0gQl-000824-Aj for help-gnu-emacs@gnu.org; Fri, 18 Mar 2011 16:37:55 -0400 Original-Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p2IKbqr5004726 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 18 Mar 2011 20:37:54 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p2IKbpKT012858 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 18 Mar 2011 20:37:51 GMT Original-Received: from abhmt012.oracle.com (abhmt012.oracle.com [141.146.116.21]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p2IKboAL031172; Fri, 18 Mar 2011 15:37:50 -0500 Original-Received: from dradamslap1 (/10.159.39.7) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 18 Mar 2011 13:37:50 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <4D83BF4A.1030707@mousecar.com> Thread-Index: AcvlqmRKCBu9gpYiSq+DiVRi60pk7QAAPl1w X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-Source-IP: acsmt356.oracle.com [141.146.40.156] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090205.4D83C2A0.00A6,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 148.87.113.121 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:80243 Archived-At: > 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? That argument must be present if you include any arguments to the right of it. 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).