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: Calling function as if it had a C-u prefix Date: Fri, 27 Feb 2015 13:34:31 -0800 (PST) Message-ID: References: <87wq33rqsm.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1425072955 3276 80.91.229.3 (27 Feb 2015 21:35:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Feb 2015 21:35:55 +0000 (UTC) To: torys.anderson@gmail.com, Emacs Help List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 27 22:35:42 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 1YRSYf-0000S3-7t for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Feb 2015 22:34:53 +0100 Original-Received: from localhost ([::1]:39085 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRSYe-0002iT-DO for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Feb 2015 16:34:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRSYT-0002gy-00 for help-gnu-emacs@gnu.org; Fri, 27 Feb 2015 16:34:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRSYP-0004pO-Pj for help-gnu-emacs@gnu.org; Fri, 27 Feb 2015 16:34:40 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:16814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRSYP-0004pC-Jt for help-gnu-emacs@gnu.org; Fri, 27 Feb 2015 16:34:37 -0500 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t1RLYawx002681 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 27 Feb 2015 21:34:36 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t1RLYaJR023839 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 27 Feb 2015 21:34:36 GMT Original-Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t1RLYZ1Y002929; Fri, 27 Feb 2015 21:34:36 GMT In-Reply-To: <87wq33rqsm.fsf@gmail.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 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:102928 Archived-At: > I'm playing around with hydra and am trying to bind a key to do the > equivalent of `C-u org-clock-in`. I've tried following a related question= on > SO[1] but it doesn't seem to be working. Can anyone tell me where I'm off= ? Call `org-clock-in' passing it an explicit argument that corresponds to the prefix arg value. (I don't have the function info, but if you do `C-h f' you should see what the signature is.) Sometimes a function does not pass the prefix arg as a parameter, but typically functions do, and the advice above should be sufficient.