From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jakub T. Jankiewicz" Newsgroups: gmane.emacs.bugs Subject: bug#67182: 29.1; read-kbd-macro always return a vector Date: Wed, 15 Nov 2023 02:05:35 +0100 Message-ID: <20231115020535.7dd8b316@jcubic> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32795"; mail-complaints-to="usenet@ciao.gmane.io" To: 67182@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 15 02:16:42 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r34WI-0008IH-AV for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Nov 2023 02:16:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r34Vy-0000Y0-Ii; Tue, 14 Nov 2023 20:16:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r34Vw-0000W4-5A for bug-gnu-emacs@gnu.org; Tue, 14 Nov 2023 20:16:20 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r34Vv-0001Hv-F3 for bug-gnu-emacs@gnu.org; Tue, 14 Nov 2023 20:16:19 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r34Wb-0006Mi-Rb for bug-gnu-emacs@gnu.org; Tue, 14 Nov 2023 20:17:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Jakub T. Jankiewicz" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Nov 2023 01:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67182 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.170001099524402 (code B ref -1); Wed, 15 Nov 2023 01:17:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Nov 2023 01:16:35 +0000 Original-Received: from localhost ([127.0.0.1]:34374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r34WA-0006LV-Rm for submit@debbugs.gnu.org; Tue, 14 Nov 2023 20:16:35 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:39464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r34W8-0006LB-1k for submit@debbugs.gnu.org; Tue, 14 Nov 2023 20:16:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r34VL-0000JL-Tx for bug-gnu-emacs@gnu.org; Tue, 14 Nov 2023 20:15:44 -0500 Original-Received: from u1.atthost.pl ([185.255.40.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r34VG-0000mW-Gl for bug-gnu-emacs@gnu.org; Tue, 14 Nov 2023 20:15:43 -0500 Original-Received: from localhost (unknown [127.0.0.1]) by u1.atthost.pl (Postfix) with ESMTP id A8FC31248BC for ; Wed, 15 Nov 2023 01:05:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at atthost.pl Original-Received: from u1.atthost.pl ([185.255.40.21]) by localhost (atthost.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SIKrlcFQoi6w for ; Wed, 15 Nov 2023 02:05:37 +0100 (CET) Original-Received: from jcubic (unknown [178.218.193.129]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jcubic@jcubic.pl) by u1.atthost.pl (Postfix) with ESMTPSA id CFFFE123565 for ; Wed, 15 Nov 2023 02:05:36 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 u1.atthost.pl CFFFE123565 X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-redhat-linux-gnu) Received-SPF: pass client-ip=185.255.40.21; envelope-from=SRS0=0ufY=G4=jcubic.pl=jcubic@attmail.pl; helo=u1.atthost.pl X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:274337 Archived-At: This is the code I was always using in Emacs to send raw keys to modes like ansi-term: (defun raw (str) (interactive "sSend Raw Key: ") (term-send-raw-string (read-kbd-macro str))) But this doesn't work anymore it throw an error [3] when calling: (raw "C-c") According to documentation `C-h f read-kbd-macro` "The result will be a string if possible" but it seems that in new GNU Emacs it's always a vector. In GNU Emacs 29.1 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-09-24 built on e1d0f5fdfea948b9bb25e212c9c623e4 Windowing system distributor 'The X.Org Foundation', version 11.0.12014000 System Description: Fedora Linux 39 (Xfce) Configured using: 'configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --runstatedir=/run --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xpm --with-x-toolkit=gtk3 --with-gpm=no --with-xwidgets --with-modules --with-harfbuzz --with-cairo --with-json --with-native-compilation=aot --with-tree-sitter --with-sqlite3 --with-webp --with-xinput2 build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu CC=gcc 'CFLAGS=-DMAIL_USE_LOCKF -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' LDFLAGS=-Wl,-z,relro PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig CXX=g++ 'CXXFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM XWIDGETS GTK3 ZLIB Important settings: value of $LC_ALL: C value of $LANG: pl_PL.utf8 value of $XMODIFIERS: @im=none locale-coding-system: utf-8 Major mode: ELisp/d Minor modes in effect: windmove-mode: t shell-dirtrack-mode: t whitespace-mode: t delete-selection-mode: t highlight-symbol-mode: t display-time-mode: t erc-autojoin-mode: t erc-scrolltobottom-mode: t minibuffer-depth-indicate-mode: t global-auto-revert-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /home/kuba/projects/emacs-modes/multiple-cursors.el/multiple-cursors hides /home/kuba/projects/emacs-modes/multiple-cursors /home/kuba/projects/emacs-modes/polymode/modes/poly-markdown hides /home/kuba/projects/emacs-modes/poly-markdown /home/kuba/projects/emacs-modes/expand-region.el/expand-region hides /home/kuba/projects/emacs-modes/expand-region /home/kuba/projects/emacs-modes/highlight-symbol.el/highlight-symbol hides /home/kuba/projects/emacs-modes/highlight-symbol /home/kuba/projects/emacs-modes/mark-multiple.el/mark-multiple hides /home/kuba/projects/emacs-modes/mark-multiple /home/kuba/projects/emacs-modes/web-mode/web-mode hides /home/kuba/projects/emacs-modes/web-mode /home/kuba/projects/emacs-modes/php-mode/php-mode hides /home/kuba/projects/emacs-modes/php-mode /home/kuba/projects/emacs-modes/clojure-mode hides /home/kuba/.emacs.d/elpa/clojure-mode-20220418.2015/clojure-mode /home/kuba/projects/emacs-modes/markdown-mode hides /home/kuba/.emacs.d/elpa/markdown-mode-20181112.1529/markdown-mode /home/kuba/projects/emacs-modes/typescript-mode hides /home/kuba/.emacs.d/elpa/typescript-mode-20181018.553/typescript-mode /home/kuba/projects/emacs-modes/json hides /usr/share/emacs/29.1/lisp/json /home/kuba/projects/emacs-modes/csharp-mode hides /usr/share/emacs/29.1/lisp/progmodes/csharp-mode /home/kuba/projects/emacs-modes/linum hides /usr/share/emacs/29.1/lisp/obsolete/linum Features: (shadow sort mail-extr emacsbug message yank-media rfc822 mml mml-sec epa epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils sendmail rfc2047 rfc2045 ietf-drums windmove openai-chat shortdoc company-files company-oddmuse company-keywords company-etags company-gtags company-dabbrev-code company-dabbrev company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-css company-nxml company-bbdb make-mode tramp-cmds gambit cmuscheme scheme vc-hg vc-bzr tramp-cache time-stamp tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat parse-time misearch multi-isearch flyspell css-mode-expansions css-mode smie eww url-queue shr pixel-fill kinsoku url-file svg mm-url gnus nnheader gnus-util range wid-edit mm-util mail-prsvr color help-fns radix-tree cl-print debug backtrace term shell ehelp whitespace cl-indent vc-git diff-mode vc-dispatcher nodejs-repl tide tide-lv flycheck s typescript-mode delsel highlight-chars highlight-symbol highlight-current-line time multiple-cursors mc-hide-unmatched-lines-mode mc-separate-operations rectangular-region-mode mc-mark-pop mc-mark-more mc-cycle-cursors mc-edit-lines multiple-cursors-core rect bar-cursor repeat skeleton erc-join erc-match tls gnutls puny erc-goodies erc iso8601 erc-backend erc-networks erc-common erc-compat erc-loaddefs mb-depth ispell coverage highlight htmlize js-comint expand-region text-mode-expansions cc-mode-expansions the-org-mode-expansions js2-mode-expansions js-mode-expansions web-mode-expansions html-mode-expansions er-basic-expansions expand-region-core expand-region-custom mark-more-like-this inline-string-rectangle mark-multiple yaml-mode functions zencoding-mode notify whattf-dt html5-langs comp comp-cstr cl-extra help-mode emmet-mode chatgpt spinner ht lv openai tblui magit-popup dash tablist tablist-filter semantic/wisent/comp semantic/wisent semantic/wisent/wisent semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet dired dired-loaddefs request mailheader mail-utils let-alist markdown-mode cl autorevert filenotify web-mode disp-table company pcase edmacro kmacro finder-inf prisma-mode po-mode po php-mode advice speedbar ezimage dframe flymake-proc flymake compile warnings thingatpt add-log cc-langs rjsx-mode sgml-mode facemenu dom js2-mode etags fileloop xref project js c-ts-common treesit cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs imenu eaf derived eaf-interleave easy-mmode org-element org-persist xdg org-id org-refile avl-tree generator org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint org-pcomplete pcomplete comint ansi-osc ansi-color ring org-list org-footnote org-faces org-entities time-date noutline outline icons ob-emacs-lisp ob-core ob-eval org-cycle org-table ol rx org-fold org-fold-core org-keys oc org-loaddefs find-func cal-menu calendar cal-loaddefs org-version org-compat org-macs format-spec eaf-mindmap bookmark text-property-search pp dbus xml chatgpt-autoloads ht-autoloads lv-autoloads openai-autoloads request-autoloads tblui-autoloads tablist-autoloads info magit-popup-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine 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 emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads xwidget-internal dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 874709 431017) (symbols 48 43878 1) (strings 32 161534 11291) (string-bytes 1 5158452) (vectors 16 68327) (vector-slots 8 1567256 115522) (floats 8 382 471) (intervals 56 20425 807) (buffers 984 35)) -- Jakub T. Jankiewicz, Senior Front-End Developer https://jcubic.pl/me https://koduj.org