emacs-diffs
[Top][All Lists]
Advanced

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

master 7ee5d36: Clarify dired-jump doc string


From: Lars Ingebrigtsen
Subject: master 7ee5d36: Clarify dired-jump doc string
Date: Sat, 21 Aug 2021 10:21:03 -0400 (EDT)

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

    Clarify dired-jump doc string
    
    * lisp/dired.el (dired-jump): Make the doc string say what happens
    in buffers not visiting files (bug#14733).
---
 lisp/dired.el | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/lisp/dired.el b/lisp/dired.el
index 0add0ab..3789bef 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -4495,11 +4495,18 @@ Ask means pop up a menu for the user to select one of 
copy, move or link."
 ;;;###autoload
 (defun dired-jump (&optional other-window file-name)
   "Jump to Dired buffer corresponding to current buffer.
-If in a file, Dired the current directory and move to file's line.
+If in a buffer visiting a file, Dired the current directory and
+move to that file's line.
+
+If the current buffer isn't visiting a file, jump to the
+`default-directory' Dired buffer.
+
 If in Dired already, pop up a level and goto old directory's line.
 In case the proper Dired file line cannot be found, refresh the dired
 buffer and try again.
+
 When OTHER-WINDOW is non-nil, jump to Dired buffer in other window.
+
 When FILE-NAME is non-nil, jump to its line in Dired.
 Interactively with prefix argument, read FILE-NAME."
   (interactive



reply via email to

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