1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 15:21:51 -08:00
emacs/etc
Po Lu e53fba3fd4 Add support for dragging text from Emacs to other programs
This still probably needs some more protection from
malfunctioning clients which delete windows at random, but I
don't know if that's a problem in practice.

* doc/emacs/frames.texi (Drag and Drop):
* doc/lispref/frames.texi (Drag and Drop): Document new
features.

* etc/NEWS: Announce new function `x-begin-drag' and new user
option `mouse-drag-and-drop-region-cross-program'.

* lisp/mouse.el (mouse-drag-and-drop-region-cross-program): New
user option.
(x-begin-drag): New variable declaration.
(mouse-drag-and-drop-region): If the mouse moves out of an Emacs
frame, begin a window system drag.
* lisp/x-dnd.el (x-dnd-handle-xdnd): Remove left-over debugging
code.

* src/xfns.c (Fx_set_mouse_absolute_pixel_position): Fix
indentation of opening paren.
(Fx_begin_drag): New function.
(syms_of_xfns): Define new subr.
* src/xselect.c (x_timestamp_for_selection): New function.

* src/xterm.c (X_DND_SUPPORTED_VERSION): New preprocessor
declaration.
(x_dnd_get_window_proto, x_dnd_send_enter, x_dnd_send_position)
(x_dnd_send_leave, x_dnd_send_drop, x_set_dnd_targets)
(x_dnd_begin_drag_and_drop): New functions.
(handle_one_xevent): Handle drag-and-drop motion and button
events when active.
(x_free_frame_resources): If f is the DND source, stop
drag-and-drop.
(x_term_init): Intern new atoms.
(syms_of_xterm): New symbol QXdndSelection.

* src/xterm.h (struct x_display_info): New atoms
Xatom_XdndAware, Xatom_XdndSelection, Xatom_XdndTypeList,
Xatom_XdndActionCopy, Xatom_XdndActionMove,
Xatom_XdndActionLink, Xatom_XdndActionAsk,
Xatom_XdndActionPrivate, Xatom_XdndActionList,
Xatom_XdndActionDescription, Xatom_XdndProxy, Xatom_XdndEnter,
Xatom_XdndPosition, Xatom_XdndStatus, Xatom_XdndLeave,
Xatom_XdndDrop, and Xatom_XdndFinished.
2022-03-16 11:31:29 +08:00
..
charsets ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
e Implement alternative sub-buffer support in term.el 2022-01-24 20:02:33 +01:00
forms ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
gnus
images Merge from origin/emacs-28 2022-01-02 06:31:44 +01:00
nxml
org ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
refcards Merge from origin/emacs-28 2022-01-02 06:31:44 +01:00
schema ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
srecode ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
themes Update modus-themes to version 2.2.0 2022-02-23 15:00:09 +02:00
tutorials Merge from origin/emacs-28 2022-01-02 06:31:44 +01:00
AUTHORS ; Update files for 28.0.91 pretest 2022-01-08 13:09:25 +01:00
CALC-NEWS ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ChangeLog.1 ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
compilation.txt Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
COPYING
DEBUG Clang debug notes 2022-03-13 12:04:22 -07:00
DEVEL.HUMOR ; * etc/DEVEL.HUMOR: Add a recent joke. 2022-02-11 10:15:20 +02:00
DISTRIB ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
edt-user.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
emacs-buffer.gdb ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
emacs-mail.desktop Hide emacs-mail.desktop, emacsclient-mail.desktop from menus 2021-07-02 13:09:18 +02:00
emacs.desktop Drop redundant keywords in .desktop files. 2021-08-11 14:05:25 +02:00
emacs.icon
emacs.metainfo.xml ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
emacs.service * etc/emacs.service: 2020-12-14 17:59:58 +01:00
emacsclient-mail.desktop Hint that emacsclient.desktop should match a search for “emacsclient” 2021-08-11 14:05:14 +02:00
emacsclient.desktop Drop redundant keywords in .desktop files. 2021-08-11 14:05:25 +02:00
enriched.txt ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ERC-NEWS Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
ETAGS.EBNF ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ETAGS.README ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
future-bug
gnus-tut.txt ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
grep.txt ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
HELLO Add support for Tai Tham script 2022-02-16 17:07:58 +02:00
HISTORY Prepare the Emacs 27.2 release. 2021-03-18 08:43:54 -04:00
JOKES
MACHINES Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
MH-E-NEWS ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
NEWS Add support for dragging text from Emacs to other programs 2022-03-16 11:31:29 +08:00
NEWS.1-17 ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
NEWS.18 ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
NEWS.19 ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
NEWS.20 ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
NEWS.21 ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
NEWS.22 ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
NEWS.23 ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
NEWS.24 ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
NEWS.25 ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
NEWS.26 ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
NEWS.27 ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
NEWS.28 Merge from origin/emacs-28 2022-03-03 06:30:34 +01:00
NEXTSTEP ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
NXML-NEWS ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ORG-NEWS ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
org.gnu.emacs.defaults.gschema.xml ; Add 2022 to copyright years. 2022-01-01 07:07:15 -05:00
package-keyring.gpg * etc/package-keyring.gpg: Add the 2019 key (backport) 2019-05-08 13:19:36 -04:00
PROBLEMS Revert "Remove PROBLEMS section on double-buffering" 2022-02-21 19:01:14 +02:00
ps-prin0.ps ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ps-prin1.ps ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
publicsuffix.txt Update publicsuffix.txt from upstream 2022-03-01 06:04:06 +01:00
README ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
rgb.txt
ses-example.ses ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
spook.lines Add more spook.lines 2019-07-13 05:09:45 +02:00
TERMS ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
TODO * etc/TODO: Update some entires related to macOS and NS. 2022-02-14 14:05:46 +08:00
w32-feature.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
yow.lines

This directory contains the architecture-independent files used by or
with Emacs.  This includes some text files of documentation for GNU
Emacs or of interest to Emacs users, and the file of dumped docstrings
for Emacs functions and variables.

COPYRIGHT AND LICENSE INFORMATION FOR IMAGE FILES

File: emacs.icon
  Author: Sun Microsystems, Inc
  Copyright (C) 1999, 2001-2022 Free Software Foundation, Inc.
  License: GNU General Public License version 3 or later (see COPYING)