From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 28 10:19:59 2019 Received: (at submit) by debbugs.gnu.org; 28 Dec 2019 15:19:59 +0000 Received: from localhost ([127.0.0.1]:58784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilDsl-0002nG-C5 for submit@debbugs.gnu.org; Sat, 28 Dec 2019 10:19:59 -0500 Received: from lists.gnu.org ([209.51.188.17]:35238) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilDlo-0002cM-KT for submit@debbugs.gnu.org; Sat, 28 Dec 2019 10:12:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47964) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilDln-0000cC-3u for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2019 10:12:48 -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.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ilDll-0004Wa-JB for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2019 10:12:46 -0500 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]:41682) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ilDll-0004Mj-7i for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2019 10:12:45 -0500 Received: by mail-lf1-x12c.google.com with SMTP id m30so22588256lfp.8 for ; Sat, 28 Dec 2019 07:12:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=36bKTax6eCGFw+xBsn1N1wR7Bd2DYX3pG00NfBUUVQo=; b=ITrtOV5vug2XbtTfsXvtRxhdjh0lvnR1tVjX8lnxWv5ZyIMy5PezQKB+5KUThuhk41 Xsb1uXvJqnv2LluubLQqAmQza8kxN74lINlCc0a4/YhHiw1Tkh/ZY2f98II+Am+Usoqv dLMxCaRyxYV1obfC8I3VpnjhU1XnDwFNp7xWZlx+ePQDENtcvqlXwwH+hT3/2IOHeEUA y49Lq8j7z4VlfCoJ05+SEm8yyEdAYGO+po+VaJ+5NyHkFLMFB9Qt1BO2pTSs0chNJxNZ x07huAL4Ewz9C8q9rCeAWKC6gNhQuGY76t+0pequ4e5Wa1kBc29z6wt98q12bwGjp9rn hPPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=36bKTax6eCGFw+xBsn1N1wR7Bd2DYX3pG00NfBUUVQo=; b=YVo5Ld4I+AGAgu5zGYIKocDXWatDN+5/VSgUanfkrfvFHiB8cYPrZnfNdrSURVeQiu V37eSAbKytEXLM53ld0dW45Qh/rD58vjtXD/8DLVi9CooXQZCZS9AOvn3x1qjmGaP40D 703l5ZAJr62XFboCCoDKWj6Rw4wyIIL3oF9nXq6xbZMYchz9+kl3qMt9WCoyj/4MhtWo qOa5dtZS+ayc5wX1j3n0BU+LMPkZH1GJvmK6USwSGeUpMYHmeTw+B9TAtGoosmFXNg7s BXpVXhEkjGbmtqXKjkoe+OHofUs3SrFAhdCCmCNUG5UycCTLzIHgfB1i1fLYd+P7fxm2 Q/5Q== X-Gm-Message-State: APjAAAU9V3mUjrf8sig0MvHCFC8sset76MxuXbADnhwN8/noKm4IGwlz UTPHuRpOVEFxJyOxNDQTtOhO47Q9 X-Google-Smtp-Source: APXvYqxUX5CwgUXuNRdR9/9ob9ALxZ+IAYFwQ/BQHDpgvJxlWr9Q2oJCGN6+OZOWmQEs/YqnZJtl9Q== X-Received: by 2002:ac2:44d9:: with SMTP id d25mr33730039lfm.15.1577545962521; Sat, 28 Dec 2019 07:12:42 -0800 (PST) Received: from kritixi.lan (dsl-tkubng21-58c015-236.dhcp.inet.fi. [88.192.21.236]) by smtp.gmail.com with ESMTPSA id b22sm4812717lji.99.2019.12.28.07.12.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 Dec 2019 07:12:42 -0800 (PST) From: Kritixi Lithos Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: (kbd "C-x ( ... C-x )") gulps "C-x (" and "C-x )" Message-Id: <783E4006-081B-404D-A606-30862A0BA1CF@gmail.com> Date: Sat, 28 Dec 2019 17:12:40 +0200 To: bug-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.3608.40.2.2.4) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::12c X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 28 Dec 2019 10:19:58 -0500 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: -2.3 (--) =46rom `emacs -Q`, I write `(kbd "C-x ( C-d C-x )")` in the buffer, then evaluate it using `C-M-x`, which gives "^D" instead of the expected "^X(^D^X)". This can be seen more clearly by calling `key-description` with the result from `kbd`, resulting in "C-d" instead of the expected original string "C-x ( C-d C-x )". (Thanks to thblt from #emacs for this minimal example). The original problem was found when trying to call emacs keystrokes on an input file (with the goal of achieving something like vim with the `-c` flag) like so, `emacs -Q --insert input.txt --eval '(command-execute(kbd"C-x ( C-d M-0 C-x )"))'` Running this removes only 1 character from the input file instead of every character being deleted as expected. Another instance of this bug is https://emacs.stackexchange.com/q/33395 (thanks again to thblt for finding this). These results were as tested on GNU Emacs 26.3. In GNU Emacs 26.3 (build 1, x86_64-apple-darwin19.0.0) of 2019-10-01 built on Catalina.local Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... [2 times] Configured using: 'configure --disable-dependency-tracking --disable-silent-rules --enable-locallisppath=3D/usr/local/share/emacs/site-lisp --infodir=3D/usr/local/Cellar/emacs/26.3/share/info/emacs --prefix=3D/usr/local/Cellar/emacs/26.3 --with-gnutls --without-x --with-xml2 --without-dbus --with-modules --without-ns --without-imagemagick' Configured features: NOTIFY ACL GNUTLS LIBXML2 ZLIB MODULES THREADS Important settings: value of $LC_ALL: en_US.UTF-8 value of $LC_CTYPE: UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail tool-bar rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail regexp-opt rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils term/screen term/xterm xterm time-date elec-pair mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue multi-tty make-network-process emacs) Memory information: ((conses 16 93401 5763) (symbols 48 19401 1) (miscs 40 35 71) (strings 32 27575 976) (string-bytes 1 742301) (vectors 16 11803) (vector-slots 8 448648 7552) (floats 8 49 254) (intervals 56 209 13) (buffers 992 12)) From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 28 10:46:31 2019 Received: (at 38775) by debbugs.gnu.org; 28 Dec 2019 15:46:31 +0000 Received: from localhost ([127.0.0.1]:58803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilEIR-0003Tj-Ab for submit@debbugs.gnu.org; Sat, 28 Dec 2019 10:46:31 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:43639) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilEIO-0003TZ-SH for 38775@debbugs.gnu.org; Sat, 28 Dec 2019 10:46:30 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 47lSjH4HGxz1rWxg; Sat, 28 Dec 2019 16:46:27 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 47lSjH1JDcz1rYbN; Sat, 28 Dec 2019 16:46:27 +0100 (CET) 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.70]) (amavisd-new, port 10024) with ESMTP id IEa2U9z6saas; Sat, 28 Dec 2019 16:46:26 +0100 (CET) X-Auth-Info: d1pyC/hJssyk/cc2Yd81bKoIqTsvVLbjJ2owoUcMnK+6zQffsuEVcb5iVcssWy/O Received: from igel.home (ppp-46-244-165-162.dynamic.mnet-online.de [46.244.165.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sat, 28 Dec 2019 16:46:26 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id A72132C022C; Sat, 28 Dec 2019 16:46:25 +0100 (CET) From: Andreas Schwab To: Kritixi Lithos Subject: Re: bug#38775: (kbd "C-x ( ... C-x )") gulps "C-x (" and "C-x )" References: <783E4006-081B-404D-A606-30862A0BA1CF@gmail.com> X-Yow: I want DUSTIN HOFFMAN!! .. I want LIBERACE!! YOW!! Date: Sat, 28 Dec 2019 16:46:25 +0100 In-Reply-To: <783E4006-081B-404D-A606-30862A0BA1CF@gmail.com> (Kritixi Lithos's message of "Sat, 28 Dec 2019 17:12:40 +0200") Message-ID: <87woagzc4u.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.4 (/) X-Debbugs-Envelope-To: 38775 Cc: 38775@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: -1.4 (-) On Dez 28 2019, Kritixi Lithos wrote: > From `emacs -Q`, I write `(kbd "C-x ( C-d C-x )")` in the buffer, then > evaluate it using `C-M-x`, which gives "^D" instead of the expected > "^X(^D^X)". That's because kbd is just a wrapper around read-kbd-macro. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 28 12:25:00 2019 Received: (at 38775) by debbugs.gnu.org; 28 Dec 2019 17:25:00 +0000 Received: from localhost ([127.0.0.1]:58855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilFpk-0005mX-JD for submit@debbugs.gnu.org; Sat, 28 Dec 2019 12:25:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51167) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilFpi-0005mK-RP for 38775@debbugs.gnu.org; Sat, 28 Dec 2019 12:24:59 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ilFpc-00079w-Py; Sat, 28 Dec 2019 12:24:52 -0500 Received: from [176.228.60.248] (port=3044 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ilFpb-00011d-II; Sat, 28 Dec 2019 12:24:52 -0500 Date: Sat, 28 Dec 2019 19:24:53 +0200 Message-Id: <83mubcnz16.fsf@gnu.org> From: Eli Zaretskii To: Andreas Schwab In-reply-to: <87woagzc4u.fsf@igel.home> (message from Andreas Schwab on Sat, 28 Dec 2019 16:46:25 +0100) Subject: Re: bug#38775: (kbd "C-x ( ... C-x )") gulps "C-x (" and "C-x )" References: <783E4006-081B-404D-A606-30862A0BA1CF@gmail.com> <87woagzc4u.fsf@igel.home> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 38775 Cc: 38775@debbugs.gnu.org, kritixilithos@gmail.com 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 (---) > From: Andreas Schwab > Date: Sat, 28 Dec 2019 16:46:25 +0100 > Cc: 38775@debbugs.gnu.org > > On Dez 28 2019, Kritixi Lithos wrote: > > > From `emacs -Q`, I write `(kbd "C-x ( C-d C-x )")` in the buffer, then > > evaluate it using `C-M-x`, which gives "^D" instead of the expected > > "^X(^D^X)". > > That's because kbd is just a wrapper around read-kbd-macro. Yes, and FWIW Emacs always worked like that (I checked a far back as Emacs 23.1). From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 28 13:23:11 2019 Received: (at 38775) by debbugs.gnu.org; 28 Dec 2019 18:23:11 +0000 Received: from localhost ([127.0.0.1]:58892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilGk2-00078S-SY for submit@debbugs.gnu.org; Sat, 28 Dec 2019 13:23:11 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:55752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilGk0-00078D-58 for 38775@debbugs.gnu.org; Sat, 28 Dec 2019 13:23:08 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id xBSIJeBX102169; Sat, 28 Dec 2019 18:23:02 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2019-08-05; bh=7zRsHqM/zqq70T85EX9cXL+Th4whiJuvv51kUgIKjcs=; b=KTNzpKSDargNKCZN/NjrGOQlRnFTubfBvud+JMzLi/xGt+ODDMTElj52xuqfHQyiDeBG UbPvpVUKg4ZeY0Z7Bs1BI+RWKXe9su7m5B80ZD5GHu31XECMOlHjmef1XoKVQ1b6cWEH YarjwCINiQ3VRY/lEdVcTBmO9KT0Hw2iDGzA2XYPA1769qg4sSWKwkeMHJfPFbV0ubjV DzmeRMYCalYK3T338M5JEmvndKTA411Th//g7qYQaYVN81pkOtCcOgoYs0708dobprGk PEYWqnDWflaKK3lGfPliMNm0X7etgfSRCMFxvpZPzAXtMCLdkRDDLiMT1onEb4PCpUqA Eg== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2130.oracle.com with ESMTP id 2x5xft9jbu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 28 Dec 2019 18:23:02 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id xBSIJhl7186146; Sat, 28 Dec 2019 18:23:01 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3030.oracle.com with ESMTP id 2x5wap36ba-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 28 Dec 2019 18:23:01 +0000 Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id xBSIMx8n007871; Sat, 28 Dec 2019 18:22:59 GMT MIME-Version: 1.0 Message-ID: Date: Sat, 28 Dec 2019 10:22:58 -0800 (PST) From: Drew Adams To: Eli Zaretskii , Andreas Schwab Subject: RE: bug#38775: (kbd "C-x ( ... C-x )") gulps "C-x (" and "C-x )" References: <<783E4006-081B-404D-A606-30862A0BA1CF@gmail.com>> <<87woagzc4u.fsf@igel.home>> <<83mubcnz16.fsf@gnu.org>> In-Reply-To: <<83mubcnz16.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4939.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9484 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=774 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-1912280171 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9484 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=840 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-1912280171 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 38775 Cc: 38775@debbugs.gnu.org, kritixilithos@gmail.com 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 (---) > Yes, and FWIW Emacs always worked like that (I checked a far back as > Emacs 23.1). FWIW, I just checked Emacs 20.7, and it's the same. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 28 16:55:40 2019 Received: (at 38775) by debbugs.gnu.org; 28 Dec 2019 21:55:40 +0000 Received: from localhost ([127.0.0.1]:59038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilK3f-0003hz-QN for submit@debbugs.gnu.org; Sat, 28 Dec 2019 16:55:40 -0500 Received: from mail-qk1-f171.google.com ([209.85.222.171]:34550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilHtA-0000PE-7I for 38775@debbugs.gnu.org; Sat, 28 Dec 2019 14:36:40 -0500 Received: by mail-qk1-f171.google.com with SMTP id j9so24197078qkk.1 for <38775@debbugs.gnu.org>; Sat, 28 Dec 2019 11:36:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Dips8WKvWyruHWhW8iw+mdiHRqOO+rwmL/w8+ilAcrw=; b=aKnPEoja+dEL6ER5irGN6F2f/XA9ma9JXEmIO6Dn0/sgn9nlUKIGfydsW+ZWvGtp2m QBHTJlJLrJvdzXolohdAK1oYNGUmN7y3l99JYWrOMsQduEWQ+2e6wB0Bz1yniSul9yaP Dp566yUXTcZw6dKyuzulAScSTPrdzXjOl38uLeNLUzPFY1JpDoCCRNW1aNQcWEIN1Yb0 CZ6WswaVTY8K7+XebcBVDospx3VsjUFWH4irGckwMA5fI37f3dZTFkReG6T981zen1+Q 7DHgTBQGzOJGPAff0WAFOhzecSaLTlphwEP1pc99sCxC6VU5BiVWMFK54EYruVm+2npO SyCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Dips8WKvWyruHWhW8iw+mdiHRqOO+rwmL/w8+ilAcrw=; b=WbIP76wur8GhuI3G1Nv7+3LssWdVDANZal3G+ZqOShv2BY1oaiX4PiZeT6iFILVzyn rewrcUjroxv871nCtNVHKRWfxPH0gbTKkdHISlhnghC9wlIVJHs+r4PGXYXm9xQcvnjA djaZqeJGZZagih3Xd0XVrwozijxjAB3H2GCdB9tTUibOSnfiRrNhOArwqZ4ytvrSZpoJ diAwM28ulTf17bFP/BKXQN3kdnznpyS0J1PHV0zBpUSaiJhLIyY2DH8yAugs0Ye3MPaw CCzBeXXinsUDPA2kL4XdoJdaYwFkOmqklKO2XMVx3wbxU8hGYHvB9y+2oNzqCxaNooWn U8aQ== X-Gm-Message-State: APjAAAUrjRMJMGg0M6UV4AdhdJxoK8lvStYcnFKTTGw4yaj/tJOjNBzA i8gZUA5KyWeXe/pyKw1DgTYeOP1V4UiqtKmuCSoZ5A== X-Google-Smtp-Source: APXvYqzOw5yOpfGqRqQgnOygZinmNZuD86a20nRG9bfbpDzS3RSO2IwoCPNpkW9rNcnnV8min4kYBIcO2X+t03wZ7/Y= X-Received: by 2002:a05:620a:128d:: with SMTP id w13mr47970522qki.289.1577561794577; Sat, 28 Dec 2019 11:36:34 -0800 (PST) MIME-Version: 1.0 Received: by 2002:aed:22b0:0:0:0:0:0 with HTTP; Sat, 28 Dec 2019 11:36:34 -0800 (PST) In-Reply-To: <87woagzc4u.fsf@igel.home> References: <783E4006-081B-404D-A606-30862A0BA1CF@gmail.com> <87woagzc4u.fsf@igel.home> From: Kritixi Lithos Date: Sat, 28 Dec 2019 21:36:34 +0200 Message-ID: Subject: Re: bug#38775: (kbd "C-x ( ... C-x )") gulps "C-x (" and "C-x )" To: Andreas Schwab Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 38775 X-Mailman-Approved-At: Sat, 28 Dec 2019 16:55:38 -0500 Cc: eliz@gnu.org, 38775@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: -1.0 (-) > That's because kbd is just a wrapper around read-kbd-macro. Ah, intended behaviour then, read-kbd-macro's help file documents this so that resolves the issue. Thank you all for your swift replies. So how would you solve the original problem of calling emacs keystrokes with potential keyboard macros inside them? `command-execute` appears to use `execute-kbd-macro` according to the source, so trying `command-execute` on each keystroke does not work as intended with `C-x ( ... C-x )` among the commands. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 29 22:24:59 2021 Received: (at 38775) by debbugs.gnu.org; 30 Aug 2021 02:24:59 +0000 Received: from localhost ([127.0.0.1]:57858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKWyl-0007Lz-4N for submit@debbugs.gnu.org; Sun, 29 Aug 2021 22:24:59 -0400 Received: from quimby.gnus.org ([95.216.78.240]:58550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKWyf-0007Lh-Tz for 38775@debbugs.gnu.org; Sun, 29 Aug 2021 22:24:54 -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=fwWYBcM/0U2KdIzbb3y8Dd2qR2bGpdBv6+DRgZWmc/o=; b=UhBcB0dy9MrHcSiG4ewVeSVn88 1QsBuXuCLdCqHHIwDQviPY0h3O8xTC6IBiPvlzNrzyY8k32dLdlm31Y+9ZIN+72eYkc9YWlVvjvDv 4uq+l1CGNVbe3b/q7RDtEk6+aWM7D5rj6n2FmHaVig7WP1qkXM9uQGB67X0ltfLLkJpA=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mKWyU-0007U5-BA; Mon, 30 Aug 2021 04:24:42 +0200 From: Lars Ingebrigtsen To: Kritixi Lithos Subject: Re: bug#38775: (kbd "C-x ( ... C-x )") gulps "C-x (" and "C-x )" References: <783E4006-081B-404D-A606-30862A0BA1CF@gmail.com> <87woagzc4u.fsf@igel.home> Date: Mon, 30 Aug 2021 04:24:37 +0200 In-Reply-To: (Kritixi Lithos's message of "Sat, 28 Dec 2019 21:36:34 +0200") Message-ID: <87pmtv8yai.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: Kritixi Lithos writes: > So how would you solve the original problem of calling emacs > keystrokes with potential keyboard macros inside them? > `command-execute` appears to use `execute-kbd-macro` according to the > source [...] 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: 38775 Cc: eliz@gnu.org, 38775@debbugs.gnu.org, Andreas Schwab 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 (---) Kritixi Lithos writes: > So how would you solve the original problem of calling emacs > keystrokes with potential keyboard macros inside them? > `command-execute` appears to use `execute-kbd-macro` according to the > source, so trying `command-execute` on each keystroke does not work as > intended with `C-x ( ... C-x )` among the commands. Good question. More generally, given the textual representations of any number of Emacs keystrokes, do we have a way to get those replayed programmatically? I thought we had (on top of `call-last-kbd-macro' or edmacro), but I can't really find anything now? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue May 03 10:22:03 2022 Received: (at 38775) by debbugs.gnu.org; 3 May 2022 14:22:03 +0000 Received: from localhost ([127.0.0.1]:40641 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nltPe-0003cG-TF for submit@debbugs.gnu.org; Tue, 03 May 2022 10:22:03 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nltPc-0003bd-HH for 38775@debbugs.gnu.org; Tue, 03 May 2022 10:22:01 -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=zxeYlowyQ4ERtbupmXqPa1Z3vVpDnG6vs0xVYypGMlc=; b=JNIzjxlSXucYOdvY7E3qaMs1Aa SyKfpAbRmsm/9SWbvOuScZGum/zINZDTmc7j9xUMNFhFcwvWXr1V/FmUa8KcOm6jUtkVAPWUttSPf xdjQ4nhDqamowdAbxBTfX3Aj4UFQvT5FXAY5p0rlrYAeuudysAfBwr2aj2aWqGp8NaXQ=; 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 1nltPS-0006Ic-OL; Tue, 03 May 2022 16:21:53 +0200 From: Lars Ingebrigtsen To: Kritixi Lithos Subject: Re: bug#38775: (kbd "C-x ( ... C-x )") gulps "C-x (" and "C-x )" References: <783E4006-081B-404D-A606-30862A0BA1CF@gmail.com> <87woagzc4u.fsf@igel.home> X-Now-Playing: New Musik's _Warp_: "Here Comes The People" Date: Tue, 03 May 2022 16:21:50 +0200 In-Reply-To: (Kritixi Lithos's message of "Sat, 28 Dec 2019 21:36:34 +0200") Message-ID: <87zgjywvb5.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: Kritixi Lithos writes: > So how would you solve the original problem of calling emacs > keystrokes with potential keyboard macros inside them? > `command-execute` appears to use `execute-kbd-macro` according to the > source [...] 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: 38775 Cc: eliz@gnu.org, 38775@debbugs.gnu.org, Andreas Schwab 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 (---) Kritixi Lithos writes: > So how would you solve the original problem of calling emacs > keystrokes with potential keyboard macros inside them? > `command-execute` appears to use `execute-kbd-macro` according to the > source, so trying `command-execute` on each keystroke does not work as > intended with `C-x ( ... C-x )` among the commands. I've now fixed this in Emacs 29. `key-parse' now returns [24 40 4 24 41] for that sequence, while `kbd' maintains the backwards-compat code. (This has been broken for half a year and nobody noticed -- in Emacs 29, (kbd "C-x ( C-d C-x )") returned "" instead of "^D", so it's debatable whether it makes sense to keep the compat code, but at least we do for now. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue May 03 10:22:10 2022 Received: (at control) by debbugs.gnu.org; 3 May 2022 14:22:10 +0000 Received: from localhost ([127.0.0.1]:40644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nltPm-0003cZ-4O for submit@debbugs.gnu.org; Tue, 03 May 2022 10:22:10 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nltPj-0003cF-Qg for control@debbugs.gnu.org; Tue, 03 May 2022 10:22:08 -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=BPRtcToJkGYn3LOq4hH+pfYDmUa1I0OHJx34yh5q+tI=; b=LdnUjho+P09H3Kjr1k/A3N/3uK nW+1IGKQYdoyErTZ0H9Xc0MUyRoaNpFmFGTzLQPa4pBRxppxXf5CtoVv7Z6rvKM/KCfdxdVNi6PWA iKLuq7Q1v9SqtZ9tZYozh4e/QT3FgvAULZ9j6EewdbpAu7NbLwY2QTElk9Bgai+Z/cok=; 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 1nltPc-0006It-3A for control@debbugs.gnu.org; Tue, 03 May 2022 16:22:01 +0200 Date: Tue, 03 May 2022 16:21:59 +0200 Message-Id: <87y1ziwvaw.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #38775 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 38775 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 38775 29.1 quit From debbugs-submit-bounces@debbugs.gnu.org Tue May 03 10:39:56 2022 Received: (at 38775) by debbugs.gnu.org; 3 May 2022 14:39:56 +0000 Received: from localhost ([127.0.0.1]:40660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nltgx-0006Gn-Tl for submit@debbugs.gnu.org; Tue, 03 May 2022 10:39:56 -0400 Received: from mail-pl1-f174.google.com ([209.85.214.174]:33524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nltgw-0006GY-GW for 38775@debbugs.gnu.org; Tue, 03 May 2022 10:39:54 -0400 Received: by mail-pl1-f174.google.com with SMTP id d17so2143807plg.0 for <38775@debbugs.gnu.org>; Tue, 03 May 2022 07:39:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=5Wz7FFdr8yb+bxYekgRKtUTjRCkmaJmBJVDPFmsfaEE=; b=o12/P1qS4brY/WLQOWbbwx5h4yikOY916BZaKi/Q07aDtD7p5D989g4sWq0H8vqGkJ rLkisQTwL7nzWeMK1uev0wtD3YyUnviHQbd8PNQk43ugo6cXZ0UHCOVS8Bx4fvVeZct3 kP7iv0jyuyT5SnBumSBxshdMJRBQU9VFB5zZXsmadePxo2J/dKsu6JCJuVmCQancn4aL 5wMYuM3SNygt2GxzuveixGVGZ3zbELMVcy5i2WjO6zePmWymGwba809t0MEqNzxjRGbh o2rgGodcuHXFXZ6BxMXvTNHRBNDXaypDx2g/9MO8tffPG8t2x10yzEJh2z6w6r2XzTb4 Hhvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=5Wz7FFdr8yb+bxYekgRKtUTjRCkmaJmBJVDPFmsfaEE=; b=m/Ks1zRRQTWCVLsDRhfqW14Tk5mCY5tOZFXgszzzNJ6U6YdzDUJ+XC+2yxouosxNTH iAeTqYbiW1buGsGinNMIPPLlJznN7BMsrUxDoBNj/kVuLH3vu6sqc4z4g8HpvX9qYWw1 J9OaOGBrAv2h0zZLeespsaiPPPA7ApDpOzg7GczzXjXoCbxRrnzAeTmrXbA8s5QECVI8 tAnzvTzz8jdSoLMhucu9gDnsVFO4cJeAj3m37i9JhPcJmr87tgf32p6nlx4KX76Bt84D 9YSDdyvo+htrhcSxC59oNXtEVn0jbXmDyckJZHUX4u+wGI1chyv5m9iCx+bMKg2aX5Eg +9IA== X-Gm-Message-State: AOAM533A0Vk3VRpnXB7zRO//qWgsIoW5u6AE1nJVWhDAZ9QhgOoKeFmd wRUoufTWDfg/IK84rlP8B320mM5g580hvWvWLF8= X-Google-Smtp-Source: ABdhPJwICRnACqyhpxbTPSZj7itbslV5F1WcuryarK5ZxmlwBfvCEcj7qX3mYuoT1TIObmyceKfwUa7UAWymWFWaQAw= X-Received: by 2002:a17:902:6ac7:b0:150:24d6:b2ee with SMTP id i7-20020a1709026ac700b0015024d6b2eemr17198391plt.168.1651588788638; Tue, 03 May 2022 07:39:48 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6a20:938d:b0:7d:c7fc:e5e4 with HTTP; Tue, 3 May 2022 07:39:48 -0700 (PDT) In-Reply-To: <87zgjywvb5.fsf@gnus.org> References: <783E4006-081B-404D-A606-30862A0BA1CF@gmail.com> <87woagzc4u.fsf@igel.home> <87zgjywvb5.fsf@gnus.org> From: Kritixi Lithos Date: Tue, 3 May 2022 16:39:48 +0200 Message-ID: Subject: Re: bug#38775: (kbd "C-x ( ... C-x )") gulps "C-x (" and "C-x )" To: Lars Ingebrigtsen Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 38775 Cc: eliz@gnu.org, 38775@debbugs.gnu.org, Andreas Schwab 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: -1.0 (-) Cool, thanks! From unknown Sun Jun 22 08:09:04 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 01 Jun 2022 11:24:07 +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