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: Mon, 05 Sep 2016 15:22:04 +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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1473088994 5754 195.159.176.226 (5 Sep 2016 15:23:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 5 Sep 2016 15:23:14 +0000 (UTC) To: Help Gnu Emacs mailing list , =?UTF-8?Q?Andreas_R=C3=B6hler?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 05 17:23:11 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 1bgvjm-0000hC-Rk for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Sep 2016 17:23:06 +0200 Original-Received: from localhost ([::1]:55327 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgvjk-0007TT-Im for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Sep 2016 11:23:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgvj1-0007Qc-0J for help-gnu-emacs@gnu.org; Mon, 05 Sep 2016 11:22:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bgviz-0005DP-0u for help-gnu-emacs@gnu.org; Mon, 05 Sep 2016 11:22:17 -0400 Original-Received: from mail-vk0-x232.google.com ([2607:f8b0:400c:c05::232]:35335) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgviy-0005D8-SE; Mon, 05 Sep 2016 11:22:16 -0400 Original-Received: by mail-vk0-x232.google.com with SMTP id j189so69597036vkc.2; Mon, 05 Sep 2016 08:22:16 -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 :cc; bh=kTFOe/861E4qCHSYH06yIjq1Aeno+EP8RqafNckijxk=; b=UanLRhc/5DUrHYj/RyWTPO5rtbaFTJBMpBEjzVNYM4qc3FEeWd+lcDnWgOCgxfq8pZ Cex7GpJDDFHEb5Uj31peDTu0pv0isS+XRw1354nSI1FEtqZsee4Qg0Vi7kjZ/qNOmnsM kNt4eUbkHW4/bg5UkaNDxc7YWm3+WwOw6e37hvQmkVo7WqM9DF/qZRDTBMtx82426/Ox //8dOzOr8xHVusSfVTX6lJBxrwxXRmvXBOB6niGHG3DDLqhvSzasmzKb4zfqo5pWVmWw sLaE0KbGWQGE19s4JINMWLUb1KjM25VaI1EPZgqF6nFeDYNHBXhOqrO984/kwpaL1s1F eOKw== 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:cc; bh=kTFOe/861E4qCHSYH06yIjq1Aeno+EP8RqafNckijxk=; b=TpwmCeHIqVN48VGAf/rxTY3nvPJPX1k+11Q/GCnZcroNd4iAOJGJHIEXBnuhhD3VRU u+qetTDMNrjjTTxgzvFdHQxQLIkgP7/LV55jfp7UZlGOZUIL70B1X7ij9PWbg+UuLk0y 4Rv1w61g5qkZCK4SUD17vNR50pKKHwPvpiD4VMXDDxS5+F4qkN6EyZEnnnKPmXjtmOXJ d91yyFX1ovo+khM45pwVrIn7qp71/1F0YVbzsadBBPmV8GqNORtn4J0yRVOEleDv46gH 5zShQWYekbtxg3OuZnB1d/9bj5jJB/jM4gx/a3km2j2MeJEVyprH2GbcZ06bvFiqNzQs uixg== X-Gm-Message-State: AE9vXwOlMXv9XProtMP/d8/ZKYhczktSwcCC2JpEWCeWe4KRNT6aOIgOavxAypVGC9k03BR1d51klQ9Y3kcnYw== X-Received: by 10.31.14.133 with SMTP id 127mr16848492vko.50.1473088936204; Mon, 05 Sep 2016 08:22:16 -0700 (PDT) In-Reply-To: <83bn02cs54.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c05::232 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:111268 Archived-At: 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. On Mon, Sep 5, 2016, 8:57 AM Eli Zaretskii wrote: > > Commands that need to distinguish between those should not use "p". > -- Kaushal Modi