From unknown Sat Aug 09 15:16:33 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#14206 <14206@debbugs.gnu.org> To: bug#14206 <14206@debbugs.gnu.org> Subject: Status: 24.3.50; doc string of `execute-kbd-macro' Reply-To: bug#14206 <14206@debbugs.gnu.org> Date: Sat, 09 Aug 2025 22:16:33 +0000 retitle 14206 24.3.50; doc string of `execute-kbd-macro' reassign 14206 emacs submitter 14206 "Drew Adams" severity 14206 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 14 20:38:20 2013 Received: (at submit) by debbugs.gnu.org; 15 Apr 2013 00:38:20 +0000 Received: from localhost ([127.0.0.1]:50887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1URXR4-0001jg-Nr for submit@debbugs.gnu.org; Sun, 14 Apr 2013 20:38:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39802) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1URXR2-0001jT-L4 for submit@debbugs.gnu.org; Sun, 14 Apr 2013 20:38:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URXN0-0002wj-Hv for submit@debbugs.gnu.org; Sun, 14 Apr 2013 20:34:07 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-104.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY, USER_IN_WHITELIST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:54663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URXN0-0002wb-Eu for submit@debbugs.gnu.org; Sun, 14 Apr 2013 20:34:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URXMz-0003rS-Db for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2013 20:34:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URXMx-0002wC-KH for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2013 20:34:05 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:40661) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URXMx-0002vw-Dp for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2013 20:34:03 -0400 Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r3F0Y1QZ031051 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 15 Apr 2013 00:34:01 GMT Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r3F0Y0N9006594 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Mon, 15 Apr 2013 00:34:01 GMT Received: from abhmt119.oracle.com (abhmt119.oracle.com [141.146.116.71]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r3F0Y03e018220 for ; Mon, 15 Apr 2013 00:34:00 GMT Received: from dradamslap1 (/71.202.147.44) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 14 Apr 2013 17:33:59 -0700 From: "Drew Adams" To: Subject: 24.3.50; doc string of `execute-kbd-macro' Date: Sun, 14 Apr 2013 17:33:45 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: Ac45cOOlwxHDL1ZbS7qSIry0bisfgA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) The doc string is misleading, especially this part: "as string of editor command characters". Presumably what is meant is as a sequence of command chars (better - a sequence of events). Compare the Elisp manual description, which explicitly mentions that MACRO can be a string or a vector (or a symbol with a function value). In GNU Emacs 24.3.50.1 (i386-mingw-nt5.1.2600) of 2013-04-09 on ODIEONE Bzr revision: 112253 rgm@gnu.org-20130409101736-f1vzgrwt88suqqis Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (4.7) --no-opt --enable-checking --cflags -IC:/Devel/emacs/build/include --ldflags -LC:/Devel/emacs/build/lib' From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 08 07:00:57 2014 Received: (at 14206) by debbugs.gnu.org; 8 Feb 2014 12:00:57 +0000 Received: from localhost ([127.0.0.1]:56569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WC6ae-0005Yd-KK for submit@debbugs.gnu.org; Sat, 08 Feb 2014 07:00:56 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:48669) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WC6ac-0005YV-JS for 14206@debbugs.gnu.org; Sat, 08 Feb 2014 07:00:55 -0500 Received: from [204.14.154.233] (helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WC6aO-00023Z-AI; Sat, 08 Feb 2014 13:00:40 +0100 From: Lars Ingebrigtsen To: "Drew Adams" Subject: Re: bug#14206: 24.3.50; doc string of `execute-kbd-macro' References: Date: Sat, 08 Feb 2014 03:59:31 -0800 In-Reply-To: (Drew Adams's message of "Sun, 14 Apr 2013 17:33:45 -0700") Message-ID: <87vbwpstlo.fsf@building.gnus.org> User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1WC6aO-00023Z-AI X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1392465640.92716@P15oh8aOE+YFHkdAnxFk+g X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 14206 Cc: 14206@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) "Drew Adams" writes: > The doc string is misleading, especially this part: "as string of editor > command characters". Presumably what is meant is as a sequence of > command chars (better - a sequence of events). Compare the Elisp manual > description, which explicitly mentions that MACRO can be a string or a > vector (or a symbol with a function value). Uhm... (defun foo () "foo") (execute-kbd-macro 'foo) -> Debugger entered--Lisp error: (error "Keyboard macros must be strings or vectors") execute-kbd-macro(foo) eval((execute-kbd-macro (quote foo)) nil) (execute-kbd-macro "foo") -> foo (execute-kbd-macro ["f"]) -> After 0 kbd macro iterations: undefined: Keyboard macro terminated by a command ringing the bell What kind of vector is this talking about? It's kinda confusing all over. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 08 07:11:38 2014 Received: (at 14206) by debbugs.gnu.org; 8 Feb 2014 12:11:38 +0000 Received: from localhost ([127.0.0.1]:56575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WC6kw-0005pe-Ri for submit@debbugs.gnu.org; Sat, 08 Feb 2014 07:11:38 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:54761) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WC6kq-0005pS-Qe for 14206@debbugs.gnu.org; Sat, 08 Feb 2014 07:11:33 -0500 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3fLsg35JS9z4KK2R; Sat, 8 Feb 2014 13:11:27 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3fLsg34mgvzbbhS; Sat, 8 Feb 2014 13:11:27 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id vfgobNsqlpsX; Sat, 8 Feb 2014 13:11:23 +0100 (CET) X-Auth-Info: ORqZGCCdeEev2GjqWWZY9IN0BLVRHFSrFdgrEnVWMxA= Received: from igel.home (ppp-88-217-61-181.dynamic.mnet-online.de [88.217.61.181]) by mail.mnet-online.de (Postfix) with ESMTPA; Sat, 8 Feb 2014 13:11:23 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 403DE2C241A; Sat, 8 Feb 2014 13:11:23 +0100 (CET) From: Andreas Schwab To: Lars Ingebrigtsen Subject: Re: bug#14206: 24.3.50; doc string of `execute-kbd-macro' References: <87vbwpstlo.fsf@building.gnus.org> X-Yow: Laundry is the fifth dimension!! ...um...um... th' washing machine is a black hole and the pink socks are bus drivers who just fell in!! Date: Sat, 08 Feb 2014 13:11:23 +0100 In-Reply-To: <87vbwpstlo.fsf@building.gnus.org> (Lars Ingebrigtsen's message of "Sat, 08 Feb 2014 03:59:31 -0800") Message-ID: <871tzdst1w.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 14206 Cc: 14206@debbugs.gnu.org, Drew Adams X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Lars Ingebrigtsen writes: > What kind of vector is this talking about? The same thing you use for a key in a key binding. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 08 10:45:13 2014 Received: (at submit) by debbugs.gnu.org; 8 Feb 2014 15:45:13 +0000 Received: from localhost ([127.0.0.1]:58046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCA5h-0000m0-0N for submit@debbugs.gnu.org; Sat, 08 Feb 2014 10:45:13 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43515) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCA5f-0000ls-01 for submit@debbugs.gnu.org; Sat, 08 Feb 2014 10:45:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCA5Y-0007ZA-Lv for submit@debbugs.gnu.org; Sat, 08 Feb 2014 10:45:10 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43579) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCA5Y-0007Ym-JP for submit@debbugs.gnu.org; Sat, 08 Feb 2014 10:45:04 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCA5T-0005aE-8I for bug-gnu-emacs@gnu.org; Sat, 08 Feb 2014 10:45:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCA5N-00079b-S3 for bug-gnu-emacs@gnu.org; Sat, 08 Feb 2014 10:44:59 -0500 Received: from plane.gmane.org ([80.91.229.3]:38891) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCA5N-00079J-LS for bug-gnu-emacs@gnu.org; Sat, 08 Feb 2014 10:44:53 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WCA5L-0003Dl-La for bug-gnu-emacs@gnu.org; Sat, 08 Feb 2014 16:44:51 +0100 Received: from 70-59-41-30.hlrn.qwest.net ([70.59.41.30]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Feb 2014 16:44:51 +0100 Received: from kevin.d.rodgers by 70-59-41-30.hlrn.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Feb 2014 16:44:51 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Kevin Rodgers Subject: Re: bug#14206: 24.3.50; doc string of `execute-kbd-macro' Date: Sat, 08 Feb 2014 08:45:44 -0700 Lines: 37 Message-ID: References: <87vbwpstlo.fsf@building.gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 70-59-41-30.hlrn.qwest.net User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 In-Reply-To: <87vbwpstlo.fsf@building.gnus.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) On 2/8/14 4:59 AM, Lars Ingebrigtsen wrote: > "Drew Adams" writes: > >> The doc string is misleading, especially this part: "as string of editor >> command characters". Presumably what is meant is as a sequence of >> command chars (better - a sequence of events). Compare the Elisp manual >> description, which explicitly mentions that MACRO can be a string or a >> vector (or a symbol with a function value). > > Uhm... > > (defun foo () "foo") > > (execute-kbd-macro 'foo) > > -> > > Debugger entered--Lisp error: (error "Keyboard macros must be strings or vectors") > execute-kbd-macro(foo) > eval((execute-kbd-macro (quote foo)) nil) > > (execute-kbd-macro "foo") > -> foo > > (execute-kbd-macro ["f"]) > -> > After 0 kbd macro iterations: undefined: Keyboard macro terminated by a command ringing the bell > > What kind of vector is this talking about? A vector of keyboard events: (execute-kbd-macro [?f ?o ?o]) > It's kinda confusing all over. -- Kevin Rodgers Denver, Colorado, USA From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 08 20:51:30 2014 Received: (at 14206) by debbugs.gnu.org; 9 Feb 2014 01:51:30 +0000 Received: from localhost ([127.0.0.1]:58462 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCJYP-0004X0-HS for submit@debbugs.gnu.org; Sat, 08 Feb 2014 20:51:29 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:46033) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCJYM-0004Wl-TE for 14206@debbugs.gnu.org; Sat, 08 Feb 2014 20:51:27 -0500 Received: from [204.14.154.233] (helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WCJY8-0003Rv-4A; Sun, 09 Feb 2014 02:51:12 +0100 From: Lars Ingebrigtsen To: Kevin Rodgers Subject: Re: bug#14206: 24.3.50; doc string of `execute-kbd-macro' References: <87vbwpstlo.fsf@building.gnus.org> Date: Sat, 08 Feb 2014 17:50:01 -0800 In-Reply-To: (Kevin Rodgers's message of "Sat, 08 Feb 2014 08:45:44 -0700") Message-ID: <87vbwpkqba.fsf@building.gnus.org> User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1WCJY8-0003Rv-4A X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1392515472.64932@l4OX0bY1Ka65bYtVVE+MBA X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 14206 Cc: 14206@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Kevin Rodgers writes: >> (defun foo () "foo") >> >> (execute-kbd-macro 'foo) >> >> -> >> >> Debugger entered--Lisp error: (error "Keyboard macros must be >> strings or vectors") >> execute-kbd-macro(foo) >> eval((execute-kbd-macro (quote foo)) nil) So is the "If MACRO is a symbol, its function definition is used." thing wrong? >> (execute-kbd-macro ["f"]) >> -> >> After 0 kbd macro iterations: undefined: Keyboard macro terminated >> by a command ringing the bell >> >> What kind of vector is this talking about? > > A vector of keyboard events: (execute-kbd-macro [?f ?o ?o]) Right. I've now added this to the doc string. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 28 19:29:29 2016 Received: (at 14206) by debbugs.gnu.org; 28 Apr 2016 23:29:29 +0000 Received: from localhost ([127.0.0.1]:53726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avvNA-0001Wx-4W for submit@debbugs.gnu.org; Thu, 28 Apr 2016 19:29:29 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:39134) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avvN5-0001Wn-J3 for 14206@debbugs.gnu.org; Thu, 28 Apr 2016 19:29:27 -0400 Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1avvN0-0001iY-Q8; Fri, 29 Apr 2016 01:29:22 +0200 From: Lars Ingebrigtsen To: Kevin Rodgers Subject: Re: bug#14206: 24.3.50; doc string of `execute-kbd-macro' References: <87vbwpstlo.fsf@building.gnus.org> <87vbwpkqba.fsf@building.gnus.org> Date: Fri, 29 Apr 2016 01:29:17 +0200 In-Reply-To: <87vbwpkqba.fsf@building.gnus.org> (Lars Ingebrigtsen's message of "Sat, 08 Feb 2014 17:50:01 -0800") Message-ID: <87k2jh1fea.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 14206 Cc: 14206@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Lars Ingebrigtsen writes: > Kevin Rodgers writes: > >>> (defun foo () "foo") >>> >>> (execute-kbd-macro 'foo) >>> >>> -> >>> >>> Debugger entered--Lisp error: (error "Keyboard macros must be >>> strings or vectors") >>> execute-kbd-macro(foo) >>> eval((execute-kbd-macro (quote foo)) nil) > > So is the "If MACRO is a symbol, its function definition is used." thing > wrong? This is what Fexecute_kbd_macro does: final = indirect_function (macro); if (!STRINGP (final) && !VECTORP (final)) error ("Keyboard macros must be strings or vectors"); In what contexts can a function end up being a string? Uhm... If somebody has said (fset 'foo "bar") ? Is this a useful thing? Should it be documented? I can't see any callers in the Emacs code base calling `execute-kbd-macro' with a symbol after grepping a bit... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 29 02:56:42 2016 Received: (at 14206) by debbugs.gnu.org; 29 Apr 2016 06:56:42 +0000 Received: from localhost ([127.0.0.1]:53909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aw2Lu-0005AT-6J for submit@debbugs.gnu.org; Fri, 29 Apr 2016 02:56:42 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aw2Lo-0005AC-I3 for 14206@debbugs.gnu.org; Fri, 29 Apr 2016 02:56:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aw2Le-0007SP-IN for 14206@debbugs.gnu.org; Fri, 29 Apr 2016 02:56:27 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37723) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aw2Le-0007SK-F6; Fri, 29 Apr 2016 02:56:22 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4188 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aw2Ld-0002p6-J4; Fri, 29 Apr 2016 02:56:22 -0400 Date: Fri, 29 Apr 2016 09:56:11 +0300 Message-Id: <83shy4x5ro.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-reply-to: <87k2jh1fea.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 29 Apr 2016 01:29:17 +0200) Subject: Re: bug#14206: 24.3.50; doc string of `execute-kbd-macro' References: <87vbwpstlo.fsf@building.gnus.org> <87vbwpkqba.fsf@building.gnus.org> <87k2jh1fea.fsf@gnus.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.0 (------) X-Debbugs-Envelope-To: 14206 Cc: kevin.d.rodgers@gmail.com, 14206@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Lars Ingebrigtsen > Date: Fri, 29 Apr 2016 01:29:17 +0200 > Cc: 14206@debbugs.gnu.org > > Lars Ingebrigtsen writes: > > > Kevin Rodgers writes: > > > >>> (defun foo () "foo") > >>> > >>> (execute-kbd-macro 'foo) > >>> > >>> -> > >>> > >>> Debugger entered--Lisp error: (error "Keyboard macros must be > >>> strings or vectors") > >>> execute-kbd-macro(foo) > >>> eval((execute-kbd-macro (quote foo)) nil) > > > > So is the "If MACRO is a symbol, its function definition is used." thing > > wrong? > > This is what Fexecute_kbd_macro does: > > final = indirect_function (macro); > if (!STRINGP (final) && !VECTORP (final)) > error ("Keyboard macros must be strings or vectors"); > > In what contexts can a function end up being a string? Uhm... If > somebody has said > > (fset 'foo "bar") > > ? No, I think (fset 'foo "\M-:"). IOW, an indirect function could produce a macro, right? In general, keyboard macros produce strings like that, which I'm sure you know, so I'm not sure if I understand your question. From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 29 06:18:15 2016 Received: (at 14206) by debbugs.gnu.org; 29 Apr 2016 10:18:15 +0000 Received: from localhost ([127.0.0.1]:53968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aw5Ux-00018v-JC for submit@debbugs.gnu.org; Fri, 29 Apr 2016 06:18:15 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:47073) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aw5Ur-00018j-KC for 14206@debbugs.gnu.org; Fri, 29 Apr 2016 06:18:09 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3qx7Z825LWz3hjjh; Fri, 29 Apr 2016 11:24:31 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3qx7Z70S2gzvkYQ; Fri, 29 Apr 2016 11:24:31 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id K2bdFY6Hb-qS; Fri, 29 Apr 2016 11:24:26 +0200 (CEST) X-Auth-Info: lmGsMzZuYG+Mkh8CAOnggHdGroiDMi9ygDAgag2tBcXCq18vau3HNg1K/lT1GD97 Received: from igel.home (ppp-88-217-14-55.dynamic.mnet-online.de [88.217.14.55]) by mail.mnet-online.de (Postfix) with ESMTPA; Fri, 29 Apr 2016 11:24:26 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 624A02C374A; Fri, 29 Apr 2016 11:24:26 +0200 (CEST) From: Andreas Schwab To: Lars Ingebrigtsen Subject: Re: bug#14206: 24.3.50; doc string of `execute-kbd-macro' References: <87vbwpstlo.fsf@building.gnus.org> <87vbwpkqba.fsf@building.gnus.org> <87k2jh1fea.fsf@gnus.org> X-Yow: NEWARK has been REZONED!! DES MOINES has been REZONED!! Date: Fri, 29 Apr 2016 11:24:26 +0200 In-Reply-To: <87k2jh1fea.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 29 Apr 2016 01:29:17 +0200") Message-ID: <87lh3w7ool.fsf@linux-m68k.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 14206 Cc: Kevin Rodgers , 14206@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Lars Ingebrigtsen writes: > Is this a useful thing? It's a keyboard macro. > Should it be documented? See (emacs) Save Keyboard Macro, (elisp) Keyboard Macros. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 29 09:00:21 2016 Received: (at 14206) by debbugs.gnu.org; 29 Apr 2016 13:00:21 +0000 Received: from localhost ([127.0.0.1]:54076 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aw81t-0008C1-CV for submit@debbugs.gnu.org; Fri, 29 Apr 2016 09:00:21 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:54286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aw81r-0008Bt-2s for 14206@debbugs.gnu.org; Fri, 29 Apr 2016 09:00:19 -0400 Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1aw81g-0007eL-6r; Fri, 29 Apr 2016 15:00:18 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#14206: 24.3.50; doc string of `execute-kbd-macro' References: <87vbwpstlo.fsf@building.gnus.org> <87vbwpkqba.fsf@building.gnus.org> <87k2jh1fea.fsf@gnus.org> <83shy4x5ro.fsf@gnu.org> Date: Fri, 29 Apr 2016 15:00:07 +0200 In-Reply-To: <83shy4x5ro.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 29 Apr 2016 09:56:11 +0300") Message-ID: <87mvoca7u0.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 14206 Cc: kevin.d.rodgers@gmail.com, 14206@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Eli Zaretskii writes: > No, I think (fset 'foo "\M-:"). > > IOW, an indirect function could produce a macro, right? > > In general, keyboard macros produce strings like that, which I'm sure > you know, so I'm not sure if I understand your question. I did not know that putting non-function stuff into the function slot of a symbol was a thing that we do. Actually, I don't think it is. :-) So I agree that this documentation is still kinda incomprehensible, even though what it says is literally true: MACRO can also be a vector of keyboard events. If MACRO is a symbol, its function definition is used. Perhaps something like If MACRO is a symbol, and its function definition is a string or a vector of keyboard events, its function definition is used. ? Or put it at the end, saying that it's deprecated... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 29 09:03:07 2016 Received: (at 14206) by debbugs.gnu.org; 29 Apr 2016 13:03:08 +0000 Received: from localhost ([127.0.0.1]:54080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aw84Z-0008G2-Q7 for submit@debbugs.gnu.org; Fri, 29 Apr 2016 09:03:07 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:54354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aw84X-0008Fu-Qz for 14206@debbugs.gnu.org; Fri, 29 Apr 2016 09:03:06 -0400 Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1aw84Q-0007ic-PV; Fri, 29 Apr 2016 15:03:05 +0200 From: Lars Ingebrigtsen To: Andreas Schwab Subject: Re: bug#14206: 24.3.50; doc string of `execute-kbd-macro' References: <87vbwpstlo.fsf@building.gnus.org> <87vbwpkqba.fsf@building.gnus.org> <87k2jh1fea.fsf@gnus.org> <87lh3w7ool.fsf@linux-m68k.org> Date: Fri, 29 Apr 2016 15:02:58 +0200 In-Reply-To: <87lh3w7ool.fsf@linux-m68k.org> (Andreas Schwab's message of "Fri, 29 Apr 2016 11:24:26 +0200") Message-ID: <87inz0a7p9.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 14206 Cc: Kevin Rodgers , 14206@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Andreas Schwab writes: > See (emacs) Save Keyboard Macro, (elisp) Keyboard Macros. Aha! (defun kmacro-name-last-macro (symbol) "Assign a name to the last keyboard macro defined. Argument SYMBOL is the name to define. The symbol's function definition becomes the keyboard macro string. Such a \"function\" cannot be called from Lisp, but it is a valid editor command." I see... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 29 11:55:23 2016 Received: (at 14206) by debbugs.gnu.org; 29 Apr 2016 15:55:23 +0000 Received: from localhost ([127.0.0.1]:55545 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awAlE-0000dr-0O for submit@debbugs.gnu.org; Fri, 29 Apr 2016 11:55:23 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:47013) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awAl8-0000de-NP for 14206@debbugs.gnu.org; Fri, 29 Apr 2016 11:55:18 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3qxJDx3FhYz3hjYj; Fri, 29 Apr 2016 17:55:13 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3qxJDx1qL0zvh25; Fri, 29 Apr 2016 17:55:13 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id D0TxAxLOhTND; Fri, 29 Apr 2016 17:55:08 +0200 (CEST) X-Auth-Info: 7XZ7+JZz29SPQAkxrAadCd/drjQd+yxi9rEp5WYdczuLCf/uQrvd8qeNf8BujnYT Received: from igel.home (ppp-88-217-14-55.dynamic.mnet-online.de [88.217.14.55]) by mail.mnet-online.de (Postfix) with ESMTPA; Fri, 29 Apr 2016 17:55:08 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 92F002C0BBB; Fri, 29 Apr 2016 17:55:08 +0200 (CEST) From: Andreas Schwab To: Lars Ingebrigtsen Subject: Re: bug#14206: 24.3.50; doc string of `execute-kbd-macro' References: <87vbwpstlo.fsf@building.gnus.org> <87vbwpkqba.fsf@building.gnus.org> <87k2jh1fea.fsf@gnus.org> <83shy4x5ro.fsf@gnu.org> <87mvoca7u0.fsf@gnus.org> X-Yow: I HAVE a towel. Date: Fri, 29 Apr 2016 17:55:08 +0200 In-Reply-To: <87mvoca7u0.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 29 Apr 2016 15:00:07 +0200") Message-ID: <874mak76lf.fsf@linux-m68k.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 14206 Cc: Eli Zaretskii , kevin.d.rodgers@gmail.com, 14206@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Lars Ingebrigtsen writes: > Perhaps something like > > If MACRO is a symbol, and its function definition is a string or a > vector of keyboard events, its function definition is used. But the function definition is used unconditionally. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 29 12:10:59 2016 Received: (at 14206) by debbugs.gnu.org; 29 Apr 2016 16:10:59 +0000 Received: from localhost ([127.0.0.1]:55559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awB0K-0002er-8N for submit@debbugs.gnu.org; Fri, 29 Apr 2016 12:10:59 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:46372) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awB0F-0002eg-7O for 14206@debbugs.gnu.org; Fri, 29 Apr 2016 12:10:54 -0400 Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1awB08-0007jd-E6; Fri, 29 Apr 2016 18:10:48 +0200 From: Lars Ingebrigtsen To: Andreas Schwab Subject: Re: bug#14206: 24.3.50; doc string of `execute-kbd-macro' References: <87vbwpstlo.fsf@building.gnus.org> <87vbwpkqba.fsf@building.gnus.org> <87k2jh1fea.fsf@gnus.org> <83shy4x5ro.fsf@gnu.org> <87mvoca7u0.fsf@gnus.org> <874mak76lf.fsf@linux-m68k.org> Date: Fri, 29 Apr 2016 18:10:44 +0200 In-Reply-To: <874mak76lf.fsf@linux-m68k.org> (Andreas Schwab's message of "Fri, 29 Apr 2016 17:55:08 +0200") Message-ID: <87bn4s1jln.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 14206 Cc: Eli Zaretskii , kevin.d.rodgers@gmail.com, 14206@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Andreas Schwab writes: > Lars Ingebrigtsen writes: > >> Perhaps something like >> >> If MACRO is a symbol, and its function definition is a string or a >> vector of keyboard events, its function definition is used. > > But the function definition is used unconditionally. True. So perhaps just a usage note? "This is useful for keyboard macros stored as function definitions" or something? Because as it is now, the natural interpretation is that it's generally useful for functions. And it isn't. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 29 15:23:32 2016 Received: (at 14206) by debbugs.gnu.org; 29 Apr 2016 19:23:32 +0000 Received: from localhost ([127.0.0.1]:55800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awE0e-00076I-C2 for submit@debbugs.gnu.org; Fri, 29 Apr 2016 15:23:31 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:52711) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awE0Y-000765-RU for 14206@debbugs.gnu.org; Fri, 29 Apr 2016 15:23:26 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3qxNs55l6Bz3hjMt; Fri, 29 Apr 2016 21:23:21 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3qxNs54WnhzvjDx; Fri, 29 Apr 2016 21:23:21 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id 1Q3gDb0XsCw5; Fri, 29 Apr 2016 21:23:17 +0200 (CEST) X-Auth-Info: Y2k+mwxM4xddS+S3WqyjnVquCYs3kYNRJd7E0Mw/zOl+10/vfEtGKhz2H5j46YG2 Received: from igel.home (ppp-88-217-14-55.dynamic.mnet-online.de [88.217.14.55]) by mail.mnet-online.de (Postfix) with ESMTPA; Fri, 29 Apr 2016 21:23:17 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 09ACD2C36E1; Fri, 29 Apr 2016 21:23:17 +0200 (CEST) From: Andreas Schwab To: Lars Ingebrigtsen Subject: Re: bug#14206: 24.3.50; doc string of `execute-kbd-macro' References: <87vbwpstlo.fsf@building.gnus.org> <87vbwpkqba.fsf@building.gnus.org> <87k2jh1fea.fsf@gnus.org> <83shy4x5ro.fsf@gnu.org> <87mvoca7u0.fsf@gnus.org> <874mak76lf.fsf@linux-m68k.org> <87bn4s1jln.fsf@gnus.org> X-Yow: WHOA!! Ken and Barbie are having TOO MUCH FUN!! It must be the NEGATIVE IONS!! Date: Fri, 29 Apr 2016 21:23:17 +0200 In-Reply-To: <87bn4s1jln.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 29 Apr 2016 18:10:44 +0200") Message-ID: <87inz05ie2.fsf@linux-m68k.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 14206 Cc: kevin.d.rodgers@gmail.com, 14206@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Lars Ingebrigtsen writes: > True. So perhaps just a usage note? "This is useful for keyboard > macros stored as function definitions" or something? Because as it is > now, the natural interpretation is that it's generally useful for > functions. And it isn't. The whole point of the function is to execute a kbd macro, which can also be stored in the function slot of a symbol. That's all what the doc string says. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 30 11:57:20 2016 Received: (at 14206) by debbugs.gnu.org; 30 Apr 2016 15:57:20 +0000 Received: from localhost ([127.0.0.1]:58024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awXGe-0007ne-Ux for submit@debbugs.gnu.org; Sat, 30 Apr 2016 11:57:20 -0400 Received: from smtprelay-h21.telenor.se ([195.54.99.196]:38283) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awXGa-0007nN-8f for 14206@debbugs.gnu.org; Sat, 30 Apr 2016 11:57:15 -0400 Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id E7644C553 for <14206@debbugs.gnu.org>; Sat, 30 Apr 2016 17:56:45 +0200 (CEST) X-SMTPAUTH-B2: [bocjoh] X-SENDER-IP: [85.229.2.170] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2C7AwBg1SRXPKoC5VVeHAGDG4FQgnODebMEAQ2BdoYQAoEgORQBAQEBAQEBBgEBAQFCQIRCAQEDAVYjBQsLISUPAQQYAQwKGhOIIgwBw10BAQEBAQUBAQEBHIptihMFjVeKPY9pjUCPMR4BAYQvOjCHfQEBAQ X-IPAS-Result: A2C7AwBg1SRXPKoC5VVeHAGDG4FQgnODebMEAQ2BdoYQAoEgORQBAQEBAQEBBgEBAQFCQIRCAQEDAVYjBQsLISUPAQQYAQwKGhOIIgwBw10BAQEBAQUBAQEBHIptihMFjVeKPY9pjUCPMR4BAYQvOjCHfQEBAQ X-IronPort-AV: E=Sophos;i="5.24,556,1454972400"; d="scan'208";a="737632231" Received: from c-aa02e555.04-211-6c6b701.cust.bredbandsbolaget.se (HELO muon.localdomain) ([85.229.2.170]) by ipb1.telenor.se with ESMTP; 30 Apr 2016 17:56:45 +0200 Received: by muon.localdomain (Postfix, from userid 1000) id 87C3C484191; Sat, 30 Apr 2016 17:56:44 +0200 (CEST) From: =?utf-8?Q?Johan_Bockg=C3=A5rd?= To: Lars Ingebrigtsen Subject: Re: bug#14206: 24.3.50; doc string of `execute-kbd-macro' References: <87vbwpstlo.fsf@building.gnus.org> <87vbwpkqba.fsf@building.gnus.org> <87k2jh1fea.fsf@gnus.org> <87lh3w7ool.fsf@linux-m68k.org> <87inz0a7p9.fsf@gnus.org> Date: Sat, 30 Apr 2016 17:56:42 +0200 In-Reply-To: <87inz0a7p9.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 29 Apr 2016 15:02:58 +0200") Message-ID: <87vb2z6qf9.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 14206 Cc: Kevin Rodgers , Andreas Schwab , 14206@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) Lars Ingebrigtsen writes: > Andreas Schwab writes: > >> See (emacs) Save Keyboard Macro, (elisp) Keyboard Macros. > > Aha! > > (defun kmacro-name-last-macro (symbol) > "Assign a name to the last keyboard macro defined. > Argument SYMBOL is the name to define. > The symbol's function definition becomes the keyboard macro string. > Such a \"function\" cannot be called from Lisp, but it is a valid editor command." > > I see... And `name-last-kbd-macro' (which should probably be an obsolete alias for kmacro-name-last-macro). From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 14 07:17:17 2022 Received: (at 14206) by debbugs.gnu.org; 14 Mar 2022 11:17:17 +0000 Received: from localhost ([127.0.0.1]:44234 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTihR-0003a2-Ef for submit@debbugs.gnu.org; Mon, 14 Mar 2022 07:17:17 -0400 Received: from quimby.gnus.org ([95.216.78.240]:41780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTihP-0003Zj-E5 for 14206@debbugs.gnu.org; Mon, 14 Mar 2022 07:17:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=+w0iIiDeOEha6W315vt7eWbFfBhaZ7VFwHXcOBUzOnw=; b=qYt1sFz4WR+itCQsKV6fkApuVp HTfgvMMqwNGKB+7QGE2QCLTaHHXygwNMW8ihlAyHtWEBSGx/xAVf+y26QxzxXlkN6GmEHBwm26J8T INIVAZ0bmZbS8/jSgzmj55f1pyEUq28341lTl5Z+dDwdGICTRtg3M4QgAXIVswoDcyTk=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nTihF-0005qa-CB; Mon, 14 Mar 2022 12:17:07 +0100 From: Lars Ingebrigtsen To: "Drew Adams" Subject: Re: bug#14206: 24.3.50; doc string of `execute-kbd-macro' References: X-Now-Playing: 23 Skidoo's _The Culling Is Coming_: "Stifling" Date: Mon, 14 Mar 2022 12:17:02 +0100 In-Reply-To: (Drew Adams's message of "Sun, 14 Apr 2013 17:33:45 -0700") Message-ID: <878rtcyea9.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: "Drew Adams" writes: > The doc string is misleading, especially this part: "as string of editor > command characters". Presumably what is meant is as a sequence of > command chars (better - a sequence of events). Compare [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 14206 Cc: 14206@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) "Drew Adams" writes: > The doc string is misleading, especially this part: "as string of editor > command characters". Presumably what is meant is as a sequence of > command chars (better - a sequence of events). Compare the Elisp manual > description, which explicitly mentions that MACRO can be a string or a > vector (or a symbol with a function value). I've now updated the doc string (mainly by copying text from the manual, which explained things a whole lot better) in Emacs 29. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 14 07:17:22 2022 Received: (at control) by debbugs.gnu.org; 14 Mar 2022 11:17:22 +0000 Received: from localhost ([127.0.0.1]:44237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTihV-0003aL-Mc for submit@debbugs.gnu.org; Mon, 14 Mar 2022 07:17:21 -0400 Received: from quimby.gnus.org ([95.216.78.240]:41794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTihU-0003Zs-E4 for control@debbugs.gnu.org; Mon, 14 Mar 2022 07:17:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=C3hcDHr0u+Jz7P1+ILme59BC4ddukqpjgNaGDMK6s1M=; b=ORz0Po5JfQgMh2/2ceNmMnDWHO BHQGiWnMIxHjLd/9aP6lIohj00WtisbtpQVuuI247pgk26Se9PdXrcgVWUFIEqKWpr07ovoVdHxru NLpMCFFb9EVovvcTkrJaOVPye6NBp/4b6079iga2/bzyGRN/ase0F2Qha2+Tc+A8NXO0=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nTihM-0005qh-NV for control@debbugs.gnu.org; Mon, 14 Mar 2022 12:17:14 +0100 Date: Mon, 14 Mar 2022 12:17:11 +0100 Message-Id: <877d8wyea0.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #14206 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 14206 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 14206 29.1 quit From unknown Sat Aug 09 15:16:33 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 11 Apr 2022 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator