aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/wid-edit.el
diff options
context:
space:
mode:
authorStefan Monnier2009-09-11 00:58:59 +0000
committerStefan Monnier2009-09-11 00:58:59 +0000
commit8cb95edf7cdec140efb1c8dbf4f7f33320f0ca0c (patch)
tree082de7005695b6792640b4a2d54cfbe4a67921fc /lisp/wid-edit.el
parent599498c31f0ce7a3ffd6094a12a986766b5a694d (diff)
downloademacs-8cb95edf7cdec140efb1c8dbf4f7f33320f0ca0c.tar.gz
emacs-8cb95edf7cdec140efb1c8dbf4f7f33320f0ca0c.zip
* keymap.c (QCadvertised_binding): New constant.
(syms_of_keymap): Initialize it. (Fwhere_is_internal): Try and use bindings from :advertised-binding if applicable. * progmodes/xscheme.el (xscheme-evaluation-commands): Put a :advertised-binding property rather than using advertised-xscheme-send-previous-expression. (advertised-xscheme-send-previous-expression): Declare obsolete. * emulation/crisp.el (crisp-mode-map): Use `undo' rather than `advertised-undo'. (crisp-mode): Add corresponding bindings to undo's :advertised-binding instead. * dired.el (dired-mode-map): Put a :advertised-binding property rather than using dired-advertised-find-file. (dired-advertised-find-file): * simple.el (advertised-undo): * wid-edit.el (advertised-widget-backward): Declare obsolete. (widget-keymap): Put a :advertised-binding property rather than using advertised-widget-backward. * bindings.el (ctl-x-map): Put a :advertised-binding property rather than using advertised-undo. * tutorial.el (tutorial--default-keys): Adjust accordingly.
Diffstat (limited to 'lisp/wid-edit.el')
-rw-r--r--lisp/wid-edit.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el
index e9156e729db..5a22b371db0 100644
--- a/lisp/wid-edit.el
+++ b/lisp/wid-edit.el
@@ -857,14 +857,16 @@ button end points."
857;; This alias exists only so that one can choose in doc-strings (e.g. 857;; This alias exists only so that one can choose in doc-strings (e.g.
858;; Custom-mode) which key-binding of widget-keymap one wants to refer to. 858;; Custom-mode) which key-binding of widget-keymap one wants to refer to.
859;; http://lists.gnu.org/archive/html/emacs-devel/2008-11/msg00480.html 859;; http://lists.gnu.org/archive/html/emacs-devel/2008-11/msg00480.html
860(defalias 'advertised-widget-backward 'widget-backward) 860(define-obsolete-function-alias 'advertised-widget-backward
861 'widget-backward "23.2")
861 862
862;;;###autoload 863;;;###autoload
863(defvar widget-keymap 864(defvar widget-keymap
864 (let ((map (make-sparse-keymap))) 865 (let ((map (make-sparse-keymap)))
865 (define-key map "\t" 'widget-forward) 866 (define-key map "\t" 'widget-forward)
866 (define-key map "\e\t" 'widget-backward) 867 (define-key map "\e\t" 'widget-backward)
867 (define-key map [(shift tab)] 'advertised-widget-backward) 868 (define-key map [(shift tab)] 'widget-backward)
869 (put 'widget-backward :advertised-binding [(shift tab)])
868 (define-key map [backtab] 'widget-backward) 870 (define-key map [backtab] 'widget-backward)
869 (define-key map [down-mouse-2] 'widget-button-click) 871 (define-key map [down-mouse-2] 'widget-button-click)
870 (define-key map [down-mouse-1] 'widget-button-click) 872 (define-key map [down-mouse-1] 'widget-button-click)