From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Andreas_R=c3=b6hler?= Newsgroups: gmane.emacs.help Subject: Re: Rationale behind conversion of a nil prefix arg to numeric 1 Date: Mon, 5 Sep 2016 20:41:22 +0200 Message-ID: <83ed1411-dbc1-2fe1-5fe9-4fdc7a4d1b21@online.de> 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1473108664 30826 195.159.176.226 (5 Sep 2016 20:51:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 5 Sep 2016 20:51:04 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Icedove/45.2.0 To: Kaushal Modi , Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 05 22:51:00 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 1bh0qx-0006kC-S1 for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Sep 2016 22:50:51 +0200 Original-Received: from localhost ([::1]:57018 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bh0qv-0005Yj-Kr for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Sep 2016 16:50:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgyjR-0003J1-Fr for help-gnu-emacs@gnu.org; Mon, 05 Sep 2016 14:34:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bgyjQ-0004cz-Il for help-gnu-emacs@gnu.org; Mon, 05 Sep 2016 14:34:57 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.187]:49804) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgyjM-0004cI-Jf; Mon, 05 Sep 2016 14:34:52 -0400 Original-Received: from [192.168.178.35] ([77.12.2.64]) by mrelayeu.kundenserver.de (mreue003) with ESMTPSA (Nemesis) id 0Me7bO-1bR4g01Tzi-00Pu9T; Mon, 05 Sep 2016 20:34:50 +0200 In-Reply-To: X-Provags-ID: V03:K0:6v/cyytw980Cf7VFUCHSWDjPyYAYPt77KkdqiWrV7mToV9PCEiN 7TnONHvERtNWspW34phjtTqzEulAz2gLKaOB7kR/At24FoOq9INnIxT+2FAn3D0hH4/szcG AAwOpCoWvnN0heggfgyBTISIItPgiSXw1xjDfDDKReTiuyVBINz/WaAVKsBdehoxXLjgrhF vAlNWy6uCIZB0PPyrLbtQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:9Mt2PrbtExc=:XOQ6nNDm71gp8mA74k6Y5N PC9olFG0/hrYBA+2FS003lBrILBSFAGsl+8WmVqFQuVN8w7kxhNv1qs7yqvM9XbwPPgikVqpP X8sH4xQuMCPpCqAaVAfejfy++cHF4efETWjogfeGPFXCaUzFIgvisusGXr1RPlHybZykn3XQS K2zZw0eilZvU0KSR1va3eVtiDpxjq3qIut5il88GBdn90UK6abYhKb9SRjmmVzwrPDkp2lnyE chpLIPrIHE6gqc0x/vz+VNE8KJDyg07gtAyGiZqtunNs44YPntoI/C4h5Wk3lwe1kUus0X/P4 CsUpoYIPsja1gPmBjws+lmT5biqyWaEtbnDAPELPsUNZZsIzQWaTDeiUbmoiqDiUTJE5IFq72 15nK1LDb1xdULMc9tmVH7HYTSYbhHpkDiiXpfvj7ZB9XxGBNTpdIZ7Av2+04uukYwy1WXYs9W J+wkWs6SaTeocsjPkYqXh//l19NtolGn/jkknz0+KVZdu/C8S9rQSQUsYtHNh23mOAaRnJ3Pd ODXwi930hDYdPUBHoXBVKB+Mpv1biLtMgls6kHEy3b6S7YG5Se2a7p4BFuivpqowf2RzJPjyb sKdfYoQBjtxJjqumwuVor1LXrz8w58wzPrfoPiJiVVE5WOuWPyhwpF3ulpGx30IE/IKURJ80t RAtuGZ6z49z4YkW7HDv8vZDUwquciLz5y4ncjScEY0GiWO6Fbi6c+LqmarDWCzPlVadjykQt3 pMSJ63/X+Olx2F/V X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.126.187 X-Mailman-Approved-At: Mon, 05 Sep 2016 16:50:03 -0400 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:111273 Archived-At: On 05.09.2016 17:22, Kaushal Modi wrote: > Exactly. > > Just treat the "p" (lowercase p) interactive form as the special case > where you only need to deal with numeric arguments and the default > numeric argument is 1. > > If you need to deal with numeric, nil and other non-numeric arguments > like (4), (16), etc, use the "P" (uppercase p) interactive form. The > "P" interactive form passes the args to the function in their raw, > untouched form. Leaving out the argument with uppercased P, it sends nil --correct-- whose numeric value is considered 1 again. Understand it might be considered a feature, but think the caused inconsistency weights in more.