[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: log-view-diff
From: |
Juri Linkov |
Subject: |
Re: log-view-diff |
Date: |
Fri, 02 Dec 2005 02:34:12 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
> The doc for log-view-diff says:
>
> "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."
>
> but the implementation requires that mark is active:
>
> (interactive
> (list (if mark-active (region-beginning) (point))
> (if mark-active (region-end) (point))))
What about the following docstring? It should correctly document what
this function does.
Index: lisp/log-view.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/log-view.el,v
retrieving revision 1.23
diff -c -r1.23 log-view.el
*** lisp/log-view.el 31 Aug 2005 13:50:48 -0000 1.23
--- lisp/log-view.el 2 Dec 2005 00:33:33 -0000
***************
*** 196,204 ****
(defun log-view-diff (beg end)
"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
(list (if mark-active (region-beginning) (point))
(if mark-active (region-end) (point))))
--- 196,204 ----
(defun log-view-diff (beg end)
"Get the diff for several revisions.
! If point is the same as the mark or the mark is not active, get the
! diff between the revision at point and the next revision. Otherwise,
! get the diff between the revisions were the region starts and ends."
(interactive
(list (if mark-active (region-beginning) (point))
(if mark-active (region-end) (point))))
--
Juri Linkov
http://www.jurta.org/emacs/
- log-view-diff, Nick Roberts, 2005/12/01
- Re: log-view-diff,
Juri Linkov <=
- Re: log-view-diff, Nick Roberts, 2005/12/01
- Re: log-view-diff, Juri Linkov, 2005/12/01
- Re: log-view-diff, Nick Roberts, 2005/12/01
- Re: log-view-diff, Stefan Monnier, 2005/12/01
- Re: log-view-diff, Nick Roberts, 2005/12/02
- Re: log-view-diff, Juri Linkov, 2005/12/02
- Re: log-view-diff, Richard M. Stallman, 2005/12/03
- Re: log-view-diff, Juri Linkov, 2005/12/04
Re: log-view-diff, Juri Linkov, 2005/12/01
Re: log-view-diff, Richard M. Stallman, 2005/12/02