diff options
| author | Juri Linkov | 2004-04-27 06:42:48 +0000 |
|---|---|---|
| committer | Juri Linkov | 2004-04-27 06:42:48 +0000 |
| commit | da4ae7d3d80a2b1b8bb0b8baf1ecb488f2ef52ca (patch) | |
| tree | 45b2d8b23e00c3eb87390a0532ed1ecfce6bd3b5 | |
| parent | 836bb4786678227f2bb50497250dd726e2db3653 (diff) | |
| download | emacs-da4ae7d3d80a2b1b8bb0b8baf1ecb488f2ef52ca.tar.gz emacs-da4ae7d3d80a2b1b8bb0b8baf1ecb488f2ef52ca.zip | |
(log-view-diff): Replace interactive code "r"
by a list to allow to call it even if region is not active.
| -rw-r--r-- | lisp/log-view.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/log-view.el b/lisp/log-view.el index a6f736d16f7..51ca8907db8 100644 --- a/lisp/log-view.el +++ b/lisp/log-view.el | |||
| @@ -191,8 +191,10 @@ | |||
| 191 | "Get the diff for several revisions. | 191 | "Get the diff for several revisions. |
| 192 | If the point is the same as the mark, get the diff for this revision. | 192 | If the point is the same as the mark, get the diff for this revision. |
| 193 | Otherwise, get the diff between the revisions | 193 | Otherwise, get the diff between the revisions |
| 194 | were the region starts and ends." | 194 | were the region starts and ends." |
| 195 | (interactive "r") | 195 | (interactive |
| 196 | (list (if mark-active (region-beginning) (point)) | ||
| 197 | (if mark-active (region-end) (point)))) | ||
| 196 | (let ((fr (log-view-current-tag beg)) | 198 | (let ((fr (log-view-current-tag beg)) |
| 197 | (to (log-view-current-tag end))) | 199 | (to (log-view-current-tag end))) |
| 198 | (when (string-equal fr to) | 200 | (when (string-equal fr to) |