Mercurial > hg > xemacs-beta
comparison lisp/obsolete.el @ 5208:9fa29ec759e3
Implement suggest-key-bindings in terms of teach-extended-commands-p
2010-04-29 Aidan Kehoe <kehoea@parhasard.net>
* cmdloop.el (suggest-key-bindings):
Make this available, documenting that it's for GNU Emacs
compatibility.
Implement it in terms of teach-extended-commands-p and
teach-extended-commands-timeout, using Ben's
set-symbol-value-handler functionality.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Thu, 29 Apr 2010 16:16:47 +0100 |
parents | dc94bf0afa37 |
children | 7d06a8bf47d2 |
comparison
equal
deleted
inserted
replaced
5207:1096ef427b56 | 5208:9fa29ec759e3 |
---|---|
270 (defun set-keymap-parent (keymap parent) | 270 (defun set-keymap-parent (keymap parent) |
271 "Make the given keymap have (only) the given parent." | 271 "Make the given keymap have (only) the given parent." |
272 (set-keymap-parents keymap (if parent (list parent) '())) | 272 (set-keymap-parents keymap (if parent (list parent) '())) |
273 parent) | 273 parent) |
274 (make-compatible 'set-keymap-parent 'set-keymap-parents) | 274 (make-compatible 'set-keymap-parent 'set-keymap-parents) |
275 | |
276 (make-compatible-variable 'suggest-key-bindings 'teach-extended-commands-p) | |
275 | 277 |
276 ;; too bad there's not a way to check for aref, assq, and nconc | 278 ;; too bad there's not a way to check for aref, assq, and nconc |
277 ;; being called on the values of functions known to return keymaps, | 279 ;; being called on the values of functions known to return keymaps, |
278 ;; or known to return vectors of events instead of strings... | 280 ;; or known to return vectors of events instead of strings... |
279 | 281 |