* lisp/simple.el (activate-mark): Run activate-mark-hook.
authorKelly Dean <kellydeanch@yahoo.com>
Thu, 29 Nov 2012 20:09:37 +0000 (15:09 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 29 Nov 2012 20:09:37 +0000 (15:09 -0500)
Fixes: debbugs:13027

lisp/ChangeLog
lisp/simple.el

index 419c951..8e77ddc 100644 (file)
@@ -1,3 +1,7 @@
+2012-11-29  Kelly Dean  <kellydeanch@yahoo.com>  (tiny change)
+
+       * simple.el (activate-mark): Run activate-mark-hook (bug#13027).
+
 2012-11-29  Glenn Morris  <rgm@gnu.org>
 
        * files.el (hack-dir-local-variables): Warn if try to set
index 5867561..ecd0254 100644 (file)
@@ -4012,7 +4012,8 @@ run `deactivate-mark-hook'."
   (when (mark t)
     (setq mark-active t)
     (unless transient-mark-mode
-      (setq transient-mark-mode 'lambda))))
+      (setq transient-mark-mode 'lambda))
+    (run-hooks 'activate-mark-hook)))
 
 (defun set-mark (pos)
   "Set this buffer's mark to POS.  Don't use this function!