aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-03-06 20:16:01 +0000
committerRichard M. Stallman2005-03-06 20:16:01 +0000
commit0251bafb90e63cc7f428e1b91db436c32ad2677c (patch)
tree15bf9af7204a8c97ed8adb0faf5f29bc1f96eb52
parenteac88b3bfb2990efc5787564ddf249f8cabd8df7 (diff)
downloademacs-0251bafb90e63cc7f428e1b91db436c32ad2677c.tar.gz
emacs-0251bafb90e63cc7f428e1b91db436c32ad2677c.zip
(activate-mark-hook, deactivate-mark-hook): Add defvars.
(push-mark-command): Run activate-mark-hook.
-rw-r--r--lisp/ChangeLog26
-rw-r--r--lisp/simple.el9
2 files changed, 35 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8e9345f5cfe..f41aa23695c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,29 @@
12005-03-06 Chong Yidong <cyd@stupidchicken.com>
2
3 * simple.el (activate-mark-hook, deactivate-mark-hook): Add defvars.
4 (push-mark-command): Run activate-mark-hook.
5
62005-03-06 Richard M. Stallman <rms@gnu.org>
7
8 * help-mode.el (help-mode-finish): Don't alter the element
9 in view-return-to-alist if there already is one.
10
11 * jit-lock.el (jit-lock-stealth-fontify): When calling sit-for,
12 make sure the current buffer is the expected one.
13
14 * novice.el (disabled-command-function): Output in *Disabled Command*.
15 Explicitly ignore non-keyboard events, and explicitly handle C-g.
16
17 * textmodes/flyspell.el (flyspell-large-region):
18 Pass args differently for aspell.
19
20 * files.el (mode-require-final-newline): Doc fix.
21
222005-03-03 Stephan Stahl <stahl@eos.franken.de> (tiny change)
23
24 * progmodes/which-func.el (which-function):
25 Specify NOERROR when calling imenu--make-index-alist.
26
12005-03-05 Stefan Monnier <monnier@iro.umontreal.ca> 272005-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2 28
3 * simple.el (normal-erase-is-backspace): Define default value. 29 * simple.el (normal-erase-is-backspace): Define default value.
diff --git a/lisp/simple.el b/lisp/simple.el
index 00005ae355b..38c9bff4130 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -2913,6 +2913,14 @@ START and END specify the portion of the current buffer to be copied."
2913(put 'mark-inactive 'error-conditions '(mark-inactive error)) 2913(put 'mark-inactive 'error-conditions '(mark-inactive error))
2914(put 'mark-inactive 'error-message "The mark is not active now") 2914(put 'mark-inactive 'error-message "The mark is not active now")
2915 2915
2916(defvar activate-mark-hook nil
2917 "Hook run when the mark becomes active.
2918It is also run at the end of a command, if the mark is active and
2919it is possible that the region may have changed")
2920
2921(defvar deactivate-mark-hook nil
2922 "Hook run when the mark becomes inactive.")
2923
2916(defun mark (&optional force) 2924(defun mark (&optional force)
2917 "Return this buffer's mark value as integer; error if mark inactive. 2925 "Return this buffer's mark value as integer; error if mark inactive.
2918If optional argument FORCE is non-nil, access the mark value 2926If optional argument FORCE is non-nil, access the mark value
@@ -3004,6 +3012,7 @@ Display `Mark set' unless the optional second arg NOMSG is non-nil."
3004 (if (or arg (null mark) (/= mark (point))) 3012 (if (or arg (null mark) (/= mark (point)))
3005 (push-mark nil nomsg t) 3013 (push-mark nil nomsg t)
3006 (setq mark-active t) 3014 (setq mark-active t)
3015 (run-hooks 'activate-mark-hook)
3007 (unless nomsg 3016 (unless nomsg
3008 (message "Mark activated"))))) 3017 (message "Mark activated")))))
3009 3018