GNU bug report logs - #38006
27.0.50; C-h w doesn't appear to work with autoloaded commands

Previous Next

Package: emacs;

Reported by: Philipp Stephani <p.stephani2 <at> gmail.com>

Date: Thu, 31 Oct 2019 15:57:01 UTC

Severity: minor

Found in version 27.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 38006 in the body.
You can then email your comments to 38006 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#38006; Package emacs. (Thu, 31 Oct 2019 15:57:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Philipp Stephani <p.stephani2 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 31 Oct 2019 15:57:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Philipp Stephani <p.stephani2 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50; C-h w doesn't appear to work with autoloaded commands
Date: Thu, 31 Oct 2019 16:56:01 +0100
emacs -Q
C-h w 2C-two-columns RET
Output is "2C-two-columns is not on any key".
However, <f2> <f2> runs 2C-two-columns.
This means that apparently C-h w doesn't work with autoloaded commands
that aren't yet loaded.  It would be nice if this worked.


In GNU Emacs 27.0.50 (build 85, x86_64-pc-linux-gnu, GTK+ Version 3.24.5)
 of 2019-10-31
Repository revision: 111a95fe6d209aff6e7f26cb6777fbdf02aae15d
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12004000
System Description: Debian GNU/Linux 10 (buster)

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Configured using:
 'configure --enable-gtk-deprecation-warnings
 --enable-gcc-warnings=warn-only --with-modules --without-pop
 --with-mailutils --enable-checking=all --enable-check-lisp-object-type
 'CFLAGS=-O1 -fno-omit-frame-pointer -ggdb3 -fsanitize=address
 -fsanitize=undefined -fno-sanitize=leak' 'LDFLAGS=-fsanitize=address
 -fsanitize=undefined -fno-sanitize=leak''

Configured features:
XPM JPEG TIFF GIF PNG SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY
LIBSELINUX GNUTLS FREETYPE HARFBUZZ XFT ZLIB TOOLKIT_SCROLL_BARS GTK3
X11 XDBE XIM MODULES THREADS PDUMPER GMP

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
  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
  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 dired dired-loaddefs
format-spec rfc822 mml easymenu mml-sec epa epg epg-config gnus-util
rmail rmail-loaddefs text-property-search time-date mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils phst skeleton
derived edmacro kmacro pcase ffap thingatpt url-parse auth-source cl-seq
eieio eieio-core cl-macs eieio-loaddefs password-cache json map url-vars
subr-x rx gnutls puny seq byte-opt gv bytecomp byte-compile cconv dbus
xml cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook
vc-hooks lisp-float-type 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 elisp-mode lisp-mode prog-mode register page
tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse
jit-lock font-lock syntax facemenu font-core term/tty-colors frame
minibuffer 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 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 dbusbind inotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 58772 5583)
 (symbols 48 7763 1)
 (strings 32 20643 1429)
 (string-bytes 1 672136)
 (vectors 16 11771)
 (vector-slots 8 155346 7418)
 (floats 8 25 24)
 (intervals 56 204 0)
 (buffers 1000 11))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38006; Package emacs. (Thu, 31 Oct 2019 16:31:02 GMT) Full text and rfc822 format available.

Message #8 received at 38006 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> suse.de>
To: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: 38006 <at> debbugs.gnu.org
Subject: Re: bug#38006: 27.0.50;
 C-h w doesn't appear to work with autoloaded commands
Date: Thu, 31 Oct 2019 17:30:21 +0100
On Okt 31 2019, Philipp Stephani wrote:

> emacs -Q
> C-h w 2C-two-columns RET
> Output is "2C-two-columns is not on any key".
> However, <f2> <f2> runs 2C-two-columns.
> This means that apparently C-h w doesn't work with autoloaded commands
> that aren't yet loaded.  It would be nice if this worked.

The problem is that the keymap that is bound to f2 is autoloaded.  Emacs
does not know how that keymap looks like until it is loaded, and the
command isn't really bound until then.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab <at> suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."




Severity set to 'minor' from 'normal' Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 14 Apr 2020 18:43:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38006; Package emacs. (Mon, 14 Jun 2021 14:38:01 GMT) Full text and rfc822 format available.

Message #13 received at 38006 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Andreas Schwab <schwab <at> suse.de>
Cc: Philipp Stephani <p.stephani2 <at> gmail.com>, 38006 <at> debbugs.gnu.org
Subject: Re: bug#38006: 27.0.50; C-h w doesn't appear to work with
 autoloaded commands
Date: Mon, 14 Jun 2021 16:36:52 +0200
Andreas Schwab <schwab <at> suse.de> writes:

> On Okt 31 2019, Philipp Stephani wrote:
>
>> emacs -Q
>> C-h w 2C-two-columns RET
>> Output is "2C-two-columns is not on any key".
>> However, <f2> <f2> runs 2C-two-columns.
>> This means that apparently C-h w doesn't work with autoloaded commands
>> that aren't yet loaded.  It would be nice if this worked.
>
> The problem is that the keymap that is bound to f2 is autoloaded.  Emacs
> does not know how that keymap looks like until it is loaded, and the
> command isn't really bound until then.

So I don't think there's anything to fix here, and I'm closing this bug
report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 38006 <at> debbugs.gnu.org and Philipp Stephani <p.stephani2 <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 14 Jun 2021 14:38:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 13 Jul 2021 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 279 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.