diff options
| author | Tassilo Horn | 2020-05-06 16:48:57 +0200 |
|---|---|---|
| committer | Tassilo Horn | 2020-05-06 16:48:57 +0200 |
| commit | 4b8e6939bf7664fda33a7aaa03d2d8069358ff7b (patch) | |
| tree | ed3411303899b40c3712333315c7b48a6f543c3b /doc | |
| parent | d9e10a1d1a56b8740a276a3fa418f628f79790d0 (diff) | |
| download | emacs-4b8e6939bf7664fda33a7aaa03d2d8069358ff7b.tar.gz emacs-4b8e6939bf7664fda33a7aaa03d2d8069358ff7b.zip | |
Consult browse-url-{default-,}handlers in drag&drop.
* lisp/dnd.el (dnd-handle-one-url): Consult `browse-url-handlers' and
`browse-url-default-handlers' for a matching handler. Adapt
docstring.
* doc/lispref/frames.texi (Drag and Drop): Remove the docs for the
deprecated alist choice of `browse-url-browser-function' and mention
`browse-url-handlers' and `browse-url-default-handlers'.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/frames.texi | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi index 905e5c2e6ce..6bf5db2aa1d 100644 --- a/doc/lispref/frames.texi +++ b/doc/lispref/frames.texi | |||
| @@ -3875,13 +3875,15 @@ detailed knowledge of what types other applications use for drag and | |||
| 3875 | drop. | 3875 | drop. |
| 3876 | 3876 | ||
| 3877 | @vindex dnd-protocol-alist | 3877 | @vindex dnd-protocol-alist |
| 3878 | @vindex browse-url-handlers | ||
| 3879 | @vindex browse-url-default-handlers | ||
| 3878 | When an URL is dropped on Emacs it may be a file, but it may also be | 3880 | When an URL is dropped on Emacs it may be a file, but it may also be |
| 3879 | another URL type (https, etc.). Emacs first checks | 3881 | another URL type (https, etc.). Emacs first checks |
| 3880 | @code{dnd-protocol-alist} to determine what to do with the URL@. If | 3882 | @code{dnd-protocol-alist} to determine what to do with the URL@. If |
| 3881 | there is no match there and if @code{browse-url-browser-function} is | 3883 | there is no match there, Emacs looks for a match in |
| 3882 | an alist, Emacs looks for a match there. If no match is found the | 3884 | @code{browse-url-handlers} and @code{browse-url-default-handlers}. If |
| 3883 | text for the URL is inserted. If you want to alter Emacs behavior, | 3885 | still no match has been found, the text for the URL is inserted. If |
| 3884 | you can customize these variables. | 3886 | you want to alter Emacs behavior, you can customize these variables. |
| 3885 | 3887 | ||
| 3886 | @node Color Names | 3888 | @node Color Names |
| 3887 | @section Color Names | 3889 | @section Color Names |