From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Calling function as if it had a C-u prefix Date: Fri, 27 Feb 2015 23:09:55 +0100 Message-ID: <87r3tbgg5o.fsf@web.de> References: <87wq33rqsm.fsf@gmail.com> <871tlbhvwh.fsf@web.de> <87pp8vrpfh.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1425075025 8796 80.91.229.3 (27 Feb 2015 22:10:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Feb 2015 22:10:25 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: torys.anderson@gmail.com (Tory S. Anderson) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 27 23:10:17 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YRT6u-00050r-Cf for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Feb 2015 23:10:16 +0100 Original-Received: from localhost ([::1]:39184 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRT6t-0004tQ-8E for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Feb 2015 17:10:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53726) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRT6i-0004ny-52 for help-gnu-emacs@gnu.org; Fri, 27 Feb 2015 17:10:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRT6d-000145-5h for help-gnu-emacs@gnu.org; Fri, 27 Feb 2015 17:10:04 -0500 Original-Received: from mout.web.de ([212.227.15.14]:65340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRT6c-00013t-T9 for help-gnu-emacs@gnu.org; Fri, 27 Feb 2015 17:09:59 -0500 Original-Received: from drachen.dragon ([188.99.170.10]) by smtp.web.de (mrweb002) with ESMTPSA (Nemesis) id 0MINI7-1YVaNH1ktD-004C2N; Fri, 27 Feb 2015 23:09:56 +0100 In-Reply-To: <87pp8vrpfh.fsf@gmail.com> (Tory S. Anderson's message of "Fri, 27 Feb 2015 16:54:10 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:LeujvmGRSsR3vFBROQ6RdXv/leDgFYMNsCM4jXQ/9zkU0pJ8GMC dgaOq4jDnOv1a1rCC5SDyIP8vFlbjfkcaCDhujYQXl+vXl4H/bsF6xQeE8WJD2PF9973hOM zIFSGzJjeMApQiqgAETxT1LqEr8tR0vedw05UF8VS34fcl4lF0D+ZbJyCCck1MNNqzTQmvX D53MSz1MEM/ZNl5P6l/vQ== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.15.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102932 Archived-At: torys.anderson@gmail.com (Tory S. Anderson) writes: > For whatever reason, the quote and the > parentheses did the trick. Thanks! See (info "(elisp) Prefix Command Arguments"). One has to look at the interactive spec of the defun in the source to see whether a numeric or raw prefix arg is used and expected in the body. When `org-clock-in' had used (interactive "p") instead, your version (org-clock-in 4) would have worked. But the function wants to treat a C-u prefix specially, so it uses "P".