changeset 55175:e7a5be902830

(log-view-diff): Replace interactive code "r" by a list to allow to call it even if region is not active.
author Juri Linkov <juri@jurta.org>
date Tue, 27 Apr 2004 06:42:48 +0000
parents 084cf910857b
children 6bce3db285b5
files lisp/log-view.el
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/log-view.el	Tue Apr 27 06:39:46 2004 +0000
+++ b/lisp/log-view.el	Tue Apr 27 06:42:48 2004 +0000
@@ -191,8 +191,10 @@
   "Get the diff for several revisions.
 If the point is the same as the mark, get the diff for this revision.
 Otherwise, get the diff between the revisions
- were the region starts and ends."
-  (interactive "r")
+were the region starts and ends."
+  (interactive
+   (list (if mark-active (region-beginning) (point))
+         (if mark-active (region-end) (point))))
   (let ((fr (log-view-current-tag beg))
         (to (log-view-current-tag end)))
     (when (string-equal fr to)