Stefan Kangas <stefankangas@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 76113) by debbugs.gnu.org; 4 Mar 2025 02:47:37 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 03 21:47:36 2025 Received: from localhost ([127.0.0.1]:53744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tpIJk-0000Na-Km for submit <at> debbugs.gnu.org; Mon, 03 Mar 2025 21:47:36 -0500 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]:47156) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>) id 1tpIJi-0000NJ-5D for 76113 <at> debbugs.gnu.org; Mon, 03 Mar 2025 21:47:35 -0500 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-5e0573a84fcso7070940a12.2 for <76113 <at> debbugs.gnu.org>; Mon, 03 Mar 2025 18:47:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741056448; x=1741661248; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=6a8X0pNzT28Xj2icAEyzKRRm3QBvJJ3l9zQjvz1KYsU=; b=DKfqWyOceyHeG0BmyHJ6RtvB69b3g+dAVksp993VGvGVhpfDrHQ2LSXH+/towW1T1s zUYqHlN8oNBCnU49zBK24Qcb0sXw4vRfeyg5thLntevustd3POH59DdsEEAsyHWe8YQi Fr94MNhbyFtJ08zlrSVwwk5BrTW+AsXNNX0Soy1W7+/LJYgmnhfQSeGJDb1mGD3kR60C msdWUmKLXtjImMc5nn9sa5G1scb1Jh3oN8SOnlfI6lFWPVaL6TnbDdpQRpyP98IfvtTn M9p8dB/KgqK+RWxh2aww++Bnx3lljCh5Q32dg/XQSGECASHo/V2mD3RODybCJHsLVB8Z KgTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741056448; x=1741661248; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6a8X0pNzT28Xj2icAEyzKRRm3QBvJJ3l9zQjvz1KYsU=; b=h562pgNL8oWqIeAIh1X1tWtXeuAiKp5wyxsWnmDGJ02aEMbLmAWG2sjyy1nsO8ur1p ikkvWVlskoQGDyVvHOSjLNCLJ9wZXxECDD+t0bj7GRvRM6+WeI3G6fzrh0zFLGHGh9ve /Kma5ymRqQV6txZRHbl9oCooc1TS8F4pEAT6krWaVd3KAPLtBGFLaBB62GpQsXpi1NIh hGOfNjASzdmDs+Le1oWnXO3n3StCDeRimH3MIQk7P1EkZnBh2YGUQDxrNy4pavLfj7nc atdC6OchLst6PI9BDoIqDqZebwNKjXRyLJrOltBB7QaOR+LdcKU4zZulNYjURBha5AJJ zgQA== X-Gm-Message-State: AOJu0YyGKlsxMzEFtarPuiyVBlmbm6/yufirqEf2TUPb8BniSxiOeEAi xJmi/Y5rQ44kxnOs76PJoIaC2KplfNK6zX0XPfUPDb6ro9mvBgtVrnj7xuBIp7VFEcs/wyQlc77 RhiSYfEG1SL+lg3ZBfA/7+r37T9rw1XfDfOsWsA== X-Gm-Gg: ASbGnctuWk8ob6sVJV+b+ePu05gjhlEfdt3sC+72FNWtfNjUt8QG93bC3K0g2JgUCo6 9tgltzAdEojVU6rQ7jUcuvXm9TtYRQKR2dPZQViEfhyuEQlqhlxoWsb1W9OsuiSFykEIGu8/sok NH/P15haew5+j11GmriF9134JTSnQ= X-Google-Smtp-Source: AGHT+IH1OaZQUBDmW4smWzRD9fa/ItJbdyiZ3L9mWIYoVOGZCZKOlLw9bPaxgcpfO0ghgy9ST6uznAxb+0GOM11yfN0= X-Received: by 2002:a50:cc0c:0:b0:5e4:d75a:573e with SMTP id 4fb4d7f45d1cf-5e4d75a57fcmr12815970a12.32.1741056448000; Mon, 03 Mar 2025 18:47:28 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 3 Mar 2025 18:47:27 -0800 From: Stefan Kangas <stefankangas@HIDDEN> In-Reply-To: <0bc76a8084bf85ef57f6043577627644@HIDDEN> References: <0bc76a8084bf85ef57f6043577627644@HIDDEN> MIME-Version: 1.0 Date: Mon, 3 Mar 2025 18:47:27 -0800 X-Gm-Features: AQ5f1JohUcnKb5LA18fRLQlee61O0SzTvOoHEnMH1PzywQ7sczBuIi9Y3CHFLaI Message-ID: <CADwFkmnMT_tEgEmvE=qBa5v9d5Y2XDpTU1EiG2Q+afVqK796tA@HIDDEN> Subject: Re: bug#76113: 29.4; Behavior of kmacro-bind-to-key (C-x C-k b) To: eponymous@HIDDEN Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 76113 Cc: 76113 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.9 (/) eponymous@HIDDEN writes: > I know this is a bug that I have found by not following the keybinding > standards of GNU Emacs. Sequences of the type C-x C-k {UPPERCASE > LETTER} are _supposed_ to be reserved for user-defined key macros. As > for why I would bind C-x C-k A to toggle-frame-fullscreen, in my initial > discovery of the bug it was bound to a function that I defined in my > .emacs/init.py file. I'm not sure this is a use case we want to support: (global-set-key (kbd "C-x C-k A") 'toggle-frame-fullscreen) Can't you just bind this to some other key?
bug-gnu-emacs@HIDDEN
:bug#76113
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 7 Feb 2025 03:53:00 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 06 22:53:00 2025 Received: from localhost ([127.0.0.1]:60200 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tgFQG-0000Ch-P9 for submit <at> debbugs.gnu.org; Thu, 06 Feb 2025 22:53:00 -0500 Received: from lists.gnu.org ([2001:470:142::17]:34370) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eponymous@HIDDEN>) id 1tgA2A-00065d-4c for submit <at> debbugs.gnu.org; Thu, 06 Feb 2025 17:07:42 -0500 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 <eponymous@HIDDEN>) id 1tgA22-0004Oq-VC for bug-gnu-emacs@HIDDEN; Thu, 06 Feb 2025 17:07:35 -0500 Received: from relay1-i.mailbaby.net ([199.231.189.101]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <eponymous@HIDDEN>) id 1tgA20-0000rg-N4 for bug-gnu-emacs@HIDDEN; Thu, 06 Feb 2025 17:07:34 -0500 Received: from us2.providedns.com ([209.133.215.34] us2.providedns.com) (Authenticated sender: mb20610) by relay1-i.mailbaby.net (MailBabyMTA) with ESMTPSA id 194dd4d099000008bb.001 for <bug-gnu-emacs@HIDDEN> (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Thu, 06 Feb 2025 22:06:41 +0000 X-Zone-Loop: 20852ddc10e02eb47a859310515cdd61f9d9dda66713 ARC-Authentication-Results: i=1; offloadmongo2b.mailbaby.net; auth=pass smtp.auth=mb20610 smtp.mailfrom=eponymous@HIDDEN ARC-Seal: i=1; s=detka; d=mailbaby.net; t=1738879601; a=rsa-sha256; cv=none; b=i3GV1T09/LWgwILGJmiYuD3NRxw94S69UHtGeyQD/r26U3N1D8+R4hxrAOs6ib0QfXQ03i t1z1EYaYMqaaubPmAWb+XCXCMhcAqxYfUEF0q/tD95yZU0bCt64w5lC112Hus5azXaJpOo DWlvkNJad/OiOYs3f9NTe2JoUfL08t5HTkhrQ+Nu3gCCmFtLB/WCFcc8kV5LFn/zRwbumj wERWhzPDkEs4QBa61VbUiD27/aG5hFPdiH/RNYqgQKWYb+TLsNmhZckubzDtB7gPlLpoLT si60HadGgiqEd+C/GbTsN2jR4vSJi4ZQsXq/nkQ9j+MpAtgfsXhqW2OfkUfH2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbaby.net; s=detka; t=1738879601; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=1c8E1vGfcKTGmwkB7QfutRY3i7MDr+6aDzlk50d4P7k=; b=nv54GuBjxhizjmkjLVJkyFy02Jb97sbb6GfWq7MH1fomhn1aF9CjoLZAKb4tEHURTmpFu7 5R8lOP/Q1JXhQPh9addaDHqplYO+j7pBadyA5EuYOm+HbBEAW05zvD5mpXuWdEFzND60XM 3ANJD/GtzBPEwsL0ncRaGSgzsLEbVXJdVdLqFPRJvpYycrG3jdgoWqwOi3EXeWShcixBAQ AxgUKAXzia/QwknllP/7b/+D6tZRZ4dg95XLOGm5f1XqSxtN39vZ9llsKc3myfnrWK0+Zo gZ5hnUtroCcgpARuSVrxrOifuV4e2XJNo3+BmbvHGX+KJqZP6SywASgcgx5kbA== X-MB-ID: mb20610|eponymous@HIDDEN X-SPF: pass Feedback-ID: mb20610:194dd4d099000008bb:209.133.215.34:mbaby X-NS-SCAN: PASS DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=fagricipni.com; s=default; h=Content-Transfer-Encoding:Content-Type: Message-ID:Subject:To:From:Date:MIME-Version:Sender:Reply-To:Cc: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=1c8E1vGfcKTGmwkB7QfutRY3i7MDr+6aDzlk50d4P7k=; b=myEbSvx8OtypeNuHA8d2acZm7G pVTHcPats01bTMdG0Uf8RE2kX1jJ9NZ4DYDG1Kvd1XaHdNJRHTkq7FBZzNdITfD7iHZG+EVSmzCvR ksU4H4osH2Bi99EnQ1pKMmeFAqiAcNhKN9CR2mOhvYK7Nj3O8sEIzAWG847WakqUJ4VKbsa2zpevX gKmbR6PZ5qYOukuJCmYtuLKFkbRwru8AlODPFpkfDXqrPUHRPUcT2vyY9YzFCS7qYW5+oLlFcu2B8 muqUo91PDNfHr/vGv9igxEG4Pjnyp/3ZXJ7YcuJ8G+On/4EXkevHSIxUjXLYoV10I2QobJeRCYHke 8x8EeA2g==; Received: from localhost ([127.0.0.1]:39946 helo=us2.providedns.com) by us2.providedns.com with esmtpa (Exim 4.98) (envelope-from <eponymous@HIDDEN>) id 1tgA1B-00000004Kev-48GG for bug-gnu-emacs@HIDDEN; Thu, 06 Feb 2025 17:06:40 -0500 MIME-Version: 1.0 Date: Thu, 06 Feb 2025 17:06:40 -0500 From: eponymous@HIDDEN To: bug-gnu-emacs@HIDDEN Subject: 29.4; Behavior of kmacro-bind-to-key (C-x C-k b) User-Agent: Roundcube Webmail/1.6.9 Message-ID: <0bc76a8084bf85ef57f6043577627644@HIDDEN> X-Sender: eponymous@HIDDEN Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-AuthUser: eponymous@HIDDEN Received-SPF: pass client-ip=199.231.189.101; envelope-from=eponymous@HIDDEN; helo=relay1-i.mailbaby.net X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, GAPPY_SUBJECT=0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.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 the administrator of that system for details. Content preview: I know this is a bug that I have found by not following the keybinding standards of GNU Emacs. Sequences of the type C-x C-k {UPPERCASE LETTER} are _supposed_ to be reserved for user-defined key macro [...] Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 GAPPY_SUBJECT Subject: contains G.a.p.p.y-T.e.x.t X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 06 Feb 2025 22:52:56 -0500 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 0.1 (/) I know this is a bug that I have found by not following the keybinding standards of GNU Emacs. Sequences of the type C-x C-k {UPPERCASE LETTER} are _supposed_ to be reserved for user-defined key macros. As for why I would bind C-x C-k A to toggle-frame-fullscreen, in my initial discovery of the bug it was bound to a function that I defined in my .emacs/init.py file. NOTE: When I say in my instructions "some other text", I literally typed that phrase. Start Emacs In *scratch* buffer Type F3 Type (global-set-key (kbd "C-x C-k A") 'toggle-frame-fullscreen) Type F4 Type ESC x eval-buffer Type C-x C-k A Goes full-screen Type F11 Goes back to previous size Type C-x C-k b F11 Raises error message about current assignment of F11 THIS IS PROPER. (1) Type no Type C-x C-k b C-x C-k A Raises error message about current assignment of C-x C-k A THIS IS WHAT I EXPECT (2) Type no Type C-x C-k b A FAILS to raise error message about current assignment of C-x C-k A THIS I EXPECTED TO RAISE AN ERROR (3) Type C-x C-k A Types out (global-set-key (kbd "C-x C-k A") 'toggle-frame-fullscreen) Which proves that actually was reassigned Type F3 Type some other text Type F4 Type C-x C-k b C-x C-k A Raises error message about current assignment of C-x C-k A THIS I DO NOT EXPECT (4) Type no Type C-x C-k b A FAILS to raise error message about current assignment of C-x C-k A THIS IS WHAT I EXPECT (5) Type C-x C-k b A Types some other text END OF DEMONSTRATION The documentation for kmacro-bind-to-key includes: You can bind to any valid key sequence, but if you try to bind to a key with an existing command binding, you will be asked for confirmation whether to replace that binding. But obviously you did intend for macros stored in C-x C-k {UPPERCASE LETTER} to be replaced by other macros. The behavior at point 5 is exactly as I would expect, but is inconsistent with the behavior at point 4. Also, since at points 2 and 3, the key sequence C-x C-k A is bound to something other than a keyboard macro, I personally want a warning*; but in any event the behavior at 2 and 3 should be consistent. *My expectations are that kmacro-bind-to-key give a warning on assigning to a user-reserved key macro sequence when something other than a key macro is bound to that key sequence, at the very least it should behave the same whether it is given the key sequence in short or full form. In GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2024-10-24 built on fagricipni-A320M-S2H Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: Linux Mint 21.3 Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LANG: en_US.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 show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: (only . t) auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils face-remap shortdoc text-property-search help-fns radix-tree macros time-date subr-x cl-seq cl-extra help-mode edmacro kmacro 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 dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 50357 7387) (symbols 48 5632 0) (strings 32 15684 1800) (string-bytes 1 440206) (vectors 16 10519) (vector-slots 8 160957 12516) (floats 8 84 56) (intervals 56 284 0) (buffers 976 12))
eponymous@HIDDEN
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#76113
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.