emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

accessible-keymaps gives wrong result for autoloaded prefix keys


From: Drew Adams
Subject: accessible-keymaps gives wrong result for autoloaded prefix keys
Date: Mon, 2 Oct 2006 20:39:51 -0700

emacs -Q

M-: (accessible-keymaps (current-global-map) [f2])

This returns nil.

(accessible-keymaps (current-global-map) []) shows this in the global
map: (f2 . 2C-command).

The problem is that the `symbol-function' of `2C-command' is (autoload
"two-column" nil t keymap).

`accessible-keymaps' cannot do its job correctly, and return a correct
result, unless it loads two-column.el when it needs to.  Emacs should
consider that using `accessible-keymaps' this way should load the
file, just as using `C-h k f2' or `C-h f 2C-command' loads it.

The same is true for all other autoloaded commands bound to keymaps
(prefix keys).


In GNU Emacs 22.0.50.1 (i386-msvc-nt5.1.2600)
 of 2006-07-19 on BOS-CTHEWLAP2
X server distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-msvc (12.00)'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENU
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: Dired by name

Minor modes in effect:
  encoded-kbd-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <menu-bar>
<help-menu> <report-emacs-bug>

Recent messages:
(C:\Emacs-22-2006-07-19-Fran\bin\emacs.exe -q --no-site-file --debug-init
C:\drews-lisp-20)
Loading encoded-kb...done
For information about the GNU Project and its goals, type C-h C-p.
Loading dired...
Loading regexp-opt...done
Loading dired...done
Loading emacsbug...done





reply via email to

[Prev in Thread] Current Thread [Next in Thread]