From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.help Subject: Re: Rationale behind conversion of a nil prefix arg to numeric 1 Date: Tue, 06 Sep 2016 16:41:55 +0000 Message-ID: References: <87y437c0qg.fsf@bertrandrussell.Speedport_W_723V_1_40_000> <83oa43d9r8.fsf@gnu.org> <06d4a7f1-f116-fb5c-9bd2-c4d1f98934c9@easy-emacs.de> <83k2ercy5u.fsf@gnu.org> <83bn02cs54.fsf@gnu.org> <83ed1411-dbc1-2fe1-5fe9-4fdc7a4d1b21@online.de> <83shteb26t.fsf@gnu.org> <20160906071015.GB15537@tuxteam.de> <87inu98ipz.fsf@bertrandrussell.Speedport_W_723V_1_40_000> <9b1324d4-ec20-5924-907e-601af94622fc@easy-emacs.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1473180184 801 195.159.176.226 (6 Sep 2016 16:43:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 6 Sep 2016 16:43:04 +0000 (UTC) To: =?UTF-8?Q?Andreas_R=C3=B6hler?= , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 06 18:42:59 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhJSS-00073V-Nv for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Sep 2016 18:42:48 +0200 Original-Received: from localhost ([::1]:35011 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhJSQ-0004Ek-OH for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Sep 2016 12:42:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhJRo-0004DG-Iz for help-gnu-emacs@gnu.org; Tue, 06 Sep 2016 12:42:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhJRn-0005hn-Gl for help-gnu-emacs@gnu.org; Tue, 06 Sep 2016 12:42:08 -0400 Original-Received: from mail-vk0-x236.google.com ([2607:f8b0:400c:c05::236]:36575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhJRn-0005hg-Bh for help-gnu-emacs@gnu.org; Tue, 06 Sep 2016 12:42:07 -0400 Original-Received: by mail-vk0-x236.google.com with SMTP id w64so16466644vkh.3 for ; Tue, 06 Sep 2016 09:42:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=W8DzrCizmgkhRpPltA4ROLphj77DtCbdQA3MLbPIt+Q=; b=BDsko/b/9A31B5dE18t7jiUDYw4Ql8DdqMq8u5oUTb67HCwXcU4es4zQOst+FtxmhU 3fFRNRD5ZHVZsOGIF5B+rflT0Bx5/XychVFlU8EcxvqmG1/Oqxq7cN4Y4aiDURVJQkGS ZpaFMRTc/lMirP1P5fNjrGxe8eh6DIhG/819CMy8ZHfsVsV8fZp6X8nanLpvQsiVH6n/ TNMbQyfwF53pI/VbC+AR6CRWYShu1Kk8LAZwMKQhjgItffiUs1zv2mPIcPts9tg9PfEe l5kJHC82KNxeOfaEGS5G7f+TyJEWwskqfJpy50E4wNB3n7vg47Ueu7l5rgKrdrVcE1yx QU+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=W8DzrCizmgkhRpPltA4ROLphj77DtCbdQA3MLbPIt+Q=; b=al5q0wl3b40P+BfKB4wMnlZQ3iIXqW2XvO3OGFQwCdGbuUpnFktLOiMTkHBqfAA/E8 dfdeMgcmWd6AQfHVjzZrgxcWAn+WgVnVfHIHuRvJZve9Pv/cpSU0+acSOVj+pGPaBLrd s+yK5f2OzP9z+Tbe4K04zWnlAKesVClGsN/iJTbubTy3bF6vfuDMciSpxRs4YaSK2y9k J5jjtyYjVbEQJPJogDzvfAo9o6vEf6ykvl9Ys+dSY8sLNSvgr/tksw15iiB4PC9yGbS3 fyvkqhvnGPapuPBykamzcL0fzoS3wZhfC6aGgbwF+UTF/iC9PZN+2gopArGtwk16fXja 2taQ== X-Gm-Message-State: AE9vXwMPwo95O8AdyaOIQNVgMaLqjAzmOJm7zZS2FSDNwKbj2h4BkCDG7MVxxkyZn/YYsA1r9WDsoX4S1a+ldw== X-Received: by 10.31.102.135 with SMTP id a129mr22985220vkc.112.1473180126420; Tue, 06 Sep 2016 09:42:06 -0700 (PDT) In-Reply-To: <9b1324d4-ec20-5924-907e-601af94622fc@easy-emacs.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c05::236 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111294 Archived-At: Ah! So you are suggesting to use the lowercase (interactive "p") AND (setq counter (or arg 1)) ! I thought you were providing an alternative to not having to use the lowercase p interactive form. On Tue, Sep 6, 2016 at 12:37 PM Andreas R=C3=B6hler < andreas.roehler@easy-emacs.de> wrote: > Not sure IIUC > > (defun whatarg-p (arg) > (interactive "p") > (message "%s" arg)) > > Called with simply C-u without numeric argument gives me "4" > > (4) would be the result with uppercase P > --=20 Kaushal Modi