From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: torys.anderson@gmail.com (Tory S. Anderson) Newsgroups: gmane.emacs.help Subject: Calling function as if it had a C-u prefix Date: Fri, 27 Feb 2015 16:24:41 -0500 Message-ID: <87wq33rqsm.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1425072310 24212 80.91.229.3 (27 Feb 2015 21:25:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Feb 2015 21:25:10 +0000 (UTC) To: Emacs Help List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 27 22:25:04 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 1YRSP9-0003JZ-MQ for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Feb 2015 22:25:03 +0100 Original-Received: from localhost ([::1]:39068 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRSP8-0000nv-UE for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Feb 2015 16:25:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRSOw-0000kA-SB for help-gnu-emacs@gnu.org; Fri, 27 Feb 2015 16:24:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRSOt-0001De-MS for help-gnu-emacs@gnu.org; Fri, 27 Feb 2015 16:24:50 -0500 Original-Received: from mail-qa0-x22e.google.com ([2607:f8b0:400d:c00::22e]:55466) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRSOt-0001DW-Im for help-gnu-emacs@gnu.org; Fri, 27 Feb 2015 16:24:47 -0500 Original-Received: by mail-qa0-f46.google.com with SMTP id n4so14787558qaq.5 for ; Fri, 27 Feb 2015 13:24:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; bh=VN1YFyu1FJUWEgujfq+hc7WQIHC4CUv8VZ/dLjkW290=; b=QMurkYxEhlYVD9b01ycGSRS6T9h0EuCZarZRku/RKsjFMWOHsUV6dsEx86phx/8bcP vYH8XIjwo6/FGBn/Adkf1otTa+cROc84p54VO4SJytidCTko8+qY7QHgBNvT5t/m5MPU gFAD9kcJrjubgV4Iz65VrOZmoLt1Ey+hPEeoP+NSMy3eLAyTShTQC1GusPb25KjUs4Kn eT1s90XnwYsAFBSIX5lqp1bsqCJD489Iusg34/+IcKLxHIk7naOnnp0PHWnFAVsXX1DJ l1FGMG0I1H7bIx2P55xcONFzNEg0kPi0ZfCt8+COXbz+Sh9mhmGzjVX+krMyh0TxGLe1 R7CA== X-Received: by 10.55.25.224 with SMTP id 93mr1177735qkz.52.1425072286567; Fri, 27 Feb 2015 13:24:46 -0800 (PST) Original-Received: from localhost.localdomain (lawn-143-215-60-226.lawn.gatech.edu. [143.215.60.226]) by mx.google.com with ESMTPSA id b52sm3385165qgb.16.2015.02.27.13.24.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Feb 2015 13:24:45 -0800 (PST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c00::22e 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:102927 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? --8<---------------cut here---------------start------------->8--- (global-set-key (kbd "C-c o") (defhydra hydra-org-time-management (:color blue) "Org" ("w" (let ((current-prefix-arg 4)) (org-clock-in)) "clock-in"))) --8<---------------cut here---------------end--------------->8--- Footnotes: [1] http://stackoverflow.com/questions/12827887/emacs-universal-argument-c-u-in-a-function