]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix documentation of 'dired-do-open'
authorEli Zaretskii <eliz@gnu.org>
Sat, 9 Dec 2023 08:54:07 +0000 (10:54 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 9 Dec 2023 19:14:07 +0000 (20:14 +0100)
* lisp/dired-aux.el (dired-do-open):
* etc/NEWS: Fix documentation of 'dired-do-open'.  (Bug#18132)

etc/NEWS
lisp/dired-aux.el

index 9a33e4e47c912823ee33395bfc268c2fa654bbcf..9038e4c724819dee6f19031c6cfa97ecbbf7d718 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -512,8 +512,10 @@ and a universal command such as "open" or "start"
 that delegates to the OS.
 
 *** New command 'dired-do-open'.
-Bound to the context menu "Open", delegates opening the marked files
-to the OS.
+This command is bound to "Open" in the context menu; it "opens" the
+marked or clicked on files according to the OS conventions.  For
+example, on systems supporting XDG, this runs 'xdg-open' on the
+files.
 
 ** Ediff
 
index 0998e76c4102604bc78b99f1efa7192180febe9d..44e9ae3701e44dba747d332d3a8be57029f2c586 100644 (file)
@@ -1405,10 +1405,13 @@ after adding own commands to the composite list."
 (declare-function w32-shell-execute "w32fns.c")
 
 (defun dired-do-open (&optional arg)
-  "Open the marked files or a file at click/point externally.
-If files are marked, run the command from `shell-command-guess-open'
-on each of marked files.  Otherwise, run it on the file where
-the mouse is clicked, or on the file at point."
+  "Open all marked (or next ARG) files using an external program.
+This \"opens\" the file(s) using the external command that is most
+appropriate for the file(s) according to the system conventions.
+If files are marked, run the command on each marked file.  Otherwise,
+run it on the next ARG files, or on the file at mouse-click, or on the
+file at point.  The appropriate command to \"open\" a file on each
+system is determined by `shell-command-guess-open'."
   (interactive "P" dired-mode)
   (let ((files (if (mouse-event-p last-nonmenu-event)
                    (save-excursion