From: Po Lu <luangruo@yahoo.com>
To: emacs-devel@gnu.org
Subject: Documentation fix
Date: Fri, 07 Apr 2023 20:04:43 +0800 [thread overview]
Message-ID: <871qkvq4o4.fsf@yahoo.com> (raw)
In-Reply-To: 871qkvq4o4.fsf.ref@yahoo.com
Would someone who can please install the following change to emacs-29?
Savannah seems to be down again.
2023-04-07 Po Lu <luangruo@yahoo.com>
* doc/lispref/frames.texi (Drag and Drop): Fix
description of `x-dnd-direct-save-function'.
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi
index 9083b4b01c9..fd3bf67cf9f 100644
--- a/doc/lispref/frames.texi
+++ b/doc/lispref/frames.texi
@@ -4177,19 +4177,25 @@ Drag and Drop
However, @code{x-dnd-types-alist} does not handle a special kind of
drop sent by a program that wants Emacs to tell it where to save a
file in a specific location determined by the user. These drops are
-instead handled by a function that is the value of the variable
-@code{x-dnd-direct-save-function}. This function should accept two arguments.
-If the first argument is non-@code{nil}, then the second argument is a
-file name to save (with leading directories) that the other
-program recommends, and the
-function should return the full file name under which it should be
-saved. After the function completes, Emacs will ask the other program
-to save the file under the name that was returned, and if the file was
-successfully saved, call the function again with the first argument
-set to a non-@code{nil} value and the second argument set to the file
-name that was returned. The function should then perform whatever
-action is appropriate (i.e., opening the file or refreshing a
-directory listing.)
+instead handled by a function determined by the variable
+@code{x-dnd-direct-save-function}. This function is essentially two
+functions in one---its first argument is a boolean which tells it what
+operations to perform.
+
+ When the drop takes place, the function is first called with its
+first argument set to a non-@code{nil} value, and its second argument
+set to a file name that the file should be saved under; this file name
+does not contain the directory under which the file should be saved.
+
+ The function should return the complete file name under which the
+file should be saved, including the directory where it should be
+saved, under which Emacs will ask the other program to save the file.
+
+ If the file was successfully saved, the function is called again,
+this time with the first argument set to @code{nil}, and the second
+argument set to the file name that was returned. The function should
+then perform whatever action is appropriate (i.e., opening the file or
+refreshing a directory listing.)
@cindex initiating drag-and-drop
On capable window systems, Emacs also supports dragging contents
next parent reply other threads:[~2023-04-07 12:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <871qkvq4o4.fsf.ref@yahoo.com>
2023-04-07 12:04 ` Po Lu [this message]
2023-04-07 12:18 ` Documentation fix Eli Zaretskii
2023-04-07 13:37 ` Po Lu
2023-04-08 15:37 ` Eli Zaretskii
2023-04-09 0:37 ` Po Lu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871qkvq4o4.fsf@yahoo.com \
--to=luangruo@yahoo.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).