emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r107527: Tiny clarification for marke


From: Glenn Morris
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r107527: Tiny clarification for markers.texi
Date: Wed, 07 Mar 2012 00:33:11 -0800
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 107527
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Wed 2012-03-07 00:33:11 -0800
message:
  Tiny clarification for markers.texi
  
  * doc/lispref/markers.texi (The Mark):
  Tiny clarification re command loop and activate-mark-hook.
modified:
  doc/lispref/ChangeLog
  doc/lispref/markers.texi
=== modified file 'doc/lispref/ChangeLog'
--- a/doc/lispref/ChangeLog     2012-03-07 07:43:14 +0000
+++ b/doc/lispref/ChangeLog     2012-03-07 08:33:11 +0000
@@ -1,8 +1,9 @@
 2012-03-07  Glenn Morris  <address@hidden>
 
-       * markers.texi (The Region):
-       Briefly mention use-empty-active-region and region-active-p.
+       * markers.texi (The Region): Briefly mention use-empty-active-region
+       and region-active-p.
        (Overview of Markers): Reword garbage collection, add cross-ref.
+       (The Mark): Tiny clarification re command loop and activate-mark-hook.
 
 2012-03-07  Chong Yidong  <address@hidden>
 

=== modified file 'doc/lispref/markers.texi'
--- a/doc/lispref/markers.texi  2012-03-07 07:43:14 +0000
+++ b/doc/lispref/markers.texi  2012-03-07 08:33:11 +0000
@@ -595,8 +595,16 @@
 @defvarx deactivate-mark-hook
 These normal hooks are run, respectively, when the mark becomes active
 and when it becomes inactive.  The hook @code{activate-mark-hook} is
-also run at the end of a command if the mark is active and it is
-possible that the region may have changed.
+also run at the end of the command loop if the mark is active and it
+is possible that the region may have changed.
address@hidden
+This piece of command_loop_1, run unless deactivating the mark:
+  if (current_buffer != prev_buffer || MODIFF != prev_modiff)
+    {
+      Lisp_Object hook = intern ("activate-mark-hook");
+      Frun_hooks (1, &hook);
+    }
address@hidden ignore
 @end defvar
 
 @defun handle-shift-selection


reply via email to

[Prev in Thread] Current Thread [Next in Thread]