mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 12:21:25 -08:00
(log-view-diff): Replace interactive code "r"
by a list to allow to call it even if region is not active.
This commit is contained in:
parent
836bb47866
commit
da4ae7d3d8
1 changed files with 4 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue