emacs-diffs
[Top][All Lists]
Advanced

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

master da344e1 2/2: Doc fix for diff-no-select


From: Lars Ingebrigtsen
Subject: master da344e1 2/2: Doc fix for diff-no-select
Date: Thu, 10 Sep 2020 17:04:02 -0400 (EDT)

branch: master
commit da344e1884481e8d5e294b0f46df447c234bab41
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Doc fix for diff-no-select
    
    * lisp/vc/diff.el (diff-no-select): Document the BUF argument
    (bug#43307).
---
 lisp/vc/diff.el | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/lisp/vc/diff.el b/lisp/vc/diff.el
index 9e7e771..2ed8573 100644
--- a/lisp/vc/diff.el
+++ b/lisp/vc/diff.el
@@ -145,9 +145,13 @@ Possible values are:
 
 (defun diff-no-select (old new &optional switches no-async buf)
   ;; Noninteractive helper for creating and reverting diff buffers
-  "Compare the OLD and NEW file/buffer, and return a diff buffer.
+  "Compare the OLD and NEW file/buffer.
 
-See `diff' for the meaning of the arguments."
+If BUF is nil, the \"*Diff*\" buffer will be used as the diff
+buffer.  If non-nil, BUF will be used as the diff buffer.  The
+buffer used will be returned by this value.
+
+See `diff' for the meaning of the SWITCHES and NO-ASYNC arguments."
   (unless (bufferp new) (setq new (expand-file-name new)))
   (unless (bufferp old) (setq old (expand-file-name old)))
   (or switches (setq switches diff-switches)) ; If not specified, use default.



reply via email to

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