unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#38006: 27.0.50; C-h w doesn't appear to work with autoloaded commands
@ 2019-10-31 15:56 Philipp Stephani
  2019-10-31 16:30 ` Andreas Schwab
  0 siblings, 1 reply; 3+ messages in thread
From: Philipp Stephani @ 2019-10-31 15:56 UTC (permalink / raw)
  To: 38006


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))





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#38006: 27.0.50; C-h w doesn't appear to work with autoloaded commands
  2019-10-31 15:56 bug#38006: 27.0.50; C-h w doesn't appear to work with autoloaded commands Philipp Stephani
@ 2019-10-31 16:30 ` Andreas Schwab
  2021-06-14 14:36   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Schwab @ 2019-10-31 16:30 UTC (permalink / raw)
  To: Philipp Stephani; +Cc: 38006

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@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#38006: 27.0.50; C-h w doesn't appear to work with autoloaded commands
  2019-10-31 16:30 ` Andreas Schwab
@ 2021-06-14 14:36   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2021-06-14 14:36 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Philipp Stephani, 38006

Andreas Schwab <schwab@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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-14 14:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-31 15:56 bug#38006: 27.0.50; C-h w doesn't appear to work with autoloaded commands Philipp Stephani
2019-10-31 16:30 ` Andreas Schwab
2021-06-14 14:36   ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).