aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2001-10-08 14:18:11 +0000
committerMiles Bader2001-10-08 14:18:11 +0000
commit62dc75c498dd3c0a08caccc10913402d01c993d3 (patch)
tree90e39b5aa3759aeb2b745c65652fb16a77a1b489
parent0c4d9527dd66841f3c42f0405dc0f70415618e19 (diff)
downloademacs-62dc75c498dd3c0a08caccc10913402d01c993d3.tar.gz
emacs-62dc75c498dd3c0a08caccc10913402d01c993d3.zip
(button-nop): Function removed.
(default-button): Use `ignore' as default button action.
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/button.el7
2 files changed, 3 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 20db64564a8..1481d60afe2 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -5,6 +5,8 @@
5 (forward-button): Implement wrapping, iterating, and skipping here 5 (forward-button): Implement wrapping, iterating, and skipping here
6 instead. 6 instead.
7 (button-activate): USE-MOUSE-ACTION is optional. 7 (button-activate): USE-MOUSE-ACTION is optional.
8 (button-nop): Function removed.
9 (default-button): Use `ignore' as default button action.
8 10
9 * apropos.el (apropos-next-label-button): Update arguments to 11 * apropos.el (apropos-next-label-button): Update arguments to
10 `next-button'. 12 `next-button'.
diff --git a/lisp/button.el b/lisp/button.el
index 3345015f9b8..f18a4bfffc3 100644
--- a/lisp/button.el
+++ b/lisp/button.el
@@ -75,7 +75,7 @@ Mode-specific keymaps may want to use this as their parent keymap.")
75(put 'default-button 'mouse-face 'highlight) 75(put 'default-button 'mouse-face 'highlight)
76(put 'default-button 'keymap button-map) 76(put 'default-button 'keymap button-map)
77(put 'default-button 'type 'button) 77(put 'default-button 'type 'button)
78(put 'default-button 'action 'button-nop) 78(put 'default-button 'action 'ignore)
79(put 'default-button 'help-echo "mouse-2, RET: Push this button") 79(put 'default-button 'help-echo "mouse-2, RET: Push this button")
80;; Make overlay buttons go away if their underlying text is deleted. 80;; Make overlay buttons go away if their underlying text is deleted.
81(put 'default-button 'evaporate t) 81(put 'default-button 'evaporate t)
@@ -86,11 +86,6 @@ Mode-specific keymaps may want to use this as their parent keymap.")
86;; they inherit this. 86;; they inherit this.
87(put 'default-button 'button t) 87(put 'default-button 'button t)
88 88
89;; This is the default button action.
90(defun button-nop (button)
91 "Do nothing to BUTTON."
92 nil)
93
94 89
95;; Button types (which can be used to hold default properties for buttons) 90;; Button types (which can be used to hold default properties for buttons)
96 91