Commit 72a4c29a authored by Pontus Freyhult's avatar Pontus Freyhult

Bugfix: Handle case when started from buffer with no local keymap.

parent cd33e4ba
2004-12-06 Pontus Freyhult <pont@soua.net>
Bugfix: Handle case when started from buffer with no local keymap
* menus.el (lyskom-define-menu-gnu): Only call
lyskom-menu-guess-shortcuts if we (current-local-map) is non-nil.
2004-12-04 Pontus Freyhult <pont@soua.net>
Bugfix: Do not leak password from session started in LysKOM buffer.
......
......@@ -510,7 +510,8 @@
(defun lyskom-define-menu-gnu (map menus &optional specials)
(let ((specials (or specials
(lyskom-menu-guess-shortcuts (current-local-map)))))
(when (current-local-map)
(lyskom-menu-guess-shortcuts (current-local-map))))))
(when menus
(lyskom-define-menu-gnu map (cdr menus) specials)
(let ((type (car (car menus)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment