[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/no-purespace b0afe306b74 30/41: Don't call purecopy in dnd.el
From: |
Stefan Kangas |
Subject: |
scratch/no-purespace b0afe306b74 30/41: Don't call purecopy in dnd.el |
Date: |
Thu, 12 Dec 2024 16:57:51 -0500 (EST) |
branch: scratch/no-purespace
commit b0afe306b748a3fa140cde580239d0f99669850a
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>
Don't call purecopy in dnd.el
* lisp/dnd.el (dnd-protocol-alist):
* lisp/pgtk-dnd.el (pgtk-dnd-types-alist, pgtk-dnd-known-types):
* lisp/x-dnd.el (x-dnd-types-alist, x-dnd-known-types):
Remove calls to purecopy.
---
lisp/dnd.el | 10 +++++-----
lisp/pgtk-dnd.el | 36 ++++++++++++++++-----------------
lisp/x-dnd.el | 61 ++++++++++++++++++++++++++++----------------------------
3 files changed, 53 insertions(+), 54 deletions(-)
diff --git a/lisp/dnd.el b/lisp/dnd.el
index bf8d3908619..99120c11f8d 100644
--- a/lisp/dnd.el
+++ b/lisp/dnd.el
@@ -42,11 +42,11 @@
;;;###autoload
(defcustom dnd-protocol-alist
- `((,(purecopy "^file:///") . dnd-open-local-file) ; XDND format.
- (,(purecopy "^file://[^/]") . dnd-open-file) ; URL with host
- (,(purecopy "^file:/[^/]") . dnd-open-local-file) ; Old KDE, Motif, Sun
- (,(purecopy "^file:[^/]") . dnd-open-local-file) ; MS-Windows
- (,(purecopy "^\\(https?\\|ftp\\|nfs\\)://") . dnd-open-file))
+ '(("^file:///" . dnd-open-local-file) ; XDND format.
+ ("^file://[^/]" . dnd-open-file) ; URL with host
+ ("^file:/[^/]" . dnd-open-local-file) ; Old KDE, Motif, Sun
+ ("^file:[^/]" . dnd-open-local-file) ; MS-Windows
+ ("^\\(https?\\|ftp\\|nfs\\)://" . dnd-open-file))
"The functions to call for different protocols when a drop is made.
This variable is used by `dnd-handle-multiple-urls'.
The list contains of (REGEXP . FUNCTION) pairs.
diff --git a/lisp/pgtk-dnd.el b/lisp/pgtk-dnd.el
index edc51320a79..526d0cfda95 100644
--- a/lisp/pgtk-dnd.el
+++ b/lisp/pgtk-dnd.el
@@ -55,15 +55,15 @@ The default value for this variable is
`pgtk-dnd-default-test-function'."
:group 'pgtk)
(defcustom pgtk-dnd-types-alist
- `((,(purecopy "text/uri-list") . pgtk-dnd-handle-uri-list)
- (,(purecopy "FILE_NAME") . pgtk-dnd-handle-file-name)
- (,(purecopy "UTF8_STRING") . pgtk-dnd-insert-utf8-text)
- (,(purecopy "text/plain;charset=UTF-8") . pgtk-dnd-insert-utf8-text)
- (,(purecopy "text/plain;charset=utf-8") . pgtk-dnd-insert-utf8-text)
- (,(purecopy "text/plain") . dnd-insert-text)
- (,(purecopy "COMPOUND_TEXT") . pgtk-dnd-insert-ctext)
- (,(purecopy "STRING") . dnd-insert-text)
- (,(purecopy "TEXT") . dnd-insert-text))
+ `(("text/uri-list" . pgtk-dnd-handle-uri-list)
+ ("FILE_NAME" . pgtk-dnd-handle-file-name)
+ ("UTF8_STRING" . pgtk-dnd-insert-utf8-text)
+ ("text/plain;charset=UTF-8" . pgtk-dnd-insert-utf8-text)
+ ("text/plain;charset=utf-8" . pgtk-dnd-insert-utf8-text)
+ ("text/plain" . dnd-insert-text)
+ ("COMPOUND_TEXT" . pgtk-dnd-insert-ctext)
+ ("STRING" . dnd-insert-text)
+ ("TEXT" . dnd-insert-text))
"Which function to call to handle a drop of that type.
If the type for the drop is not present, or the function is nil,
the drop is rejected. The function takes three arguments, WINDOW, ACTION
@@ -77,15 +77,15 @@ if drop is successful, nil if not."
:group 'pgtk)
(defcustom pgtk-dnd-known-types
- (mapcar 'purecopy '("text/uri-list"
- "FILE_NAME"
- "UTF8_STRING"
- "text/plain;charset=UTF-8"
- "text/plain;charset=utf-8"
- "text/plain"
- "COMPOUND_TEXT"
- "STRING"
- "TEXT"))
+ '("text/uri-list"
+ "FILE_NAME"
+ "UTF8_STRING"
+ "text/plain;charset=UTF-8"
+ "text/plain;charset=utf-8"
+ "text/plain"
+ "COMPOUND_TEXT"
+ "STRING"
+ "TEXT")
"The types accepted by default for dropped data.
The types are chosen in the order they appear in the list."
:version "22.1"
diff --git a/lisp/x-dnd.el b/lisp/x-dnd.el
index 063b1dd6228..866ef7a5704 100644
--- a/lisp/x-dnd.el
+++ b/lisp/x-dnd.el
@@ -58,21 +58,21 @@ The default value for this variable is
`x-dnd-default-test-function'."
:group 'x)
(defcustom x-dnd-types-alist
- `((,(purecopy "text/uri-list") . x-dnd-handle-uri-list)
- (,(purecopy "text/x-moz-url") . x-dnd-handle-moz-url)
- (,(purecopy "_NETSCAPE_URL") . x-dnd-handle-uri-list)
- (,(purecopy "FILE_NAME") . x-dnd-handle-file-name)
- (,(purecopy "UTF8_STRING") . x-dnd-insert-utf8-text)
- (,(purecopy "text/plain;charset=UTF-8") . x-dnd-insert-utf8-text)
- (,(purecopy "text/plain;charset=utf-8") . x-dnd-insert-utf8-text)
- (,(purecopy "text/unicode") . x-dnd-insert-utf16-text)
- (,(purecopy "text/plain") . dnd-insert-text)
- (,(purecopy "COMPOUND_TEXT") . x-dnd-insert-ctext)
- (,(purecopy "STRING") . dnd-insert-text)
- (,(purecopy "TEXT") . dnd-insert-text)
- (,(purecopy "DndTypeFile") . x-dnd-handle-offix-file)
- (,(purecopy "DndTypeFiles") . x-dnd-handle-offix-files)
- (,(purecopy "DndTypeText") . dnd-insert-text))
+ '(("text/uri-list" . x-dnd-handle-uri-list)
+ ("text/x-moz-url" . x-dnd-handle-moz-url)
+ ("_NETSCAPE_URL" . x-dnd-handle-uri-list)
+ ("FILE_NAME" . x-dnd-handle-file-name)
+ ("UTF8_STRING" . x-dnd-insert-utf8-text)
+ ("text/plain;charset=UTF-8" . x-dnd-insert-utf8-text)
+ ("text/plain;charset=utf-8" . x-dnd-insert-utf8-text)
+ ("text/unicode" . x-dnd-insert-utf16-text)
+ ("text/plain" . dnd-insert-text)
+ ("COMPOUND_TEXT" . x-dnd-insert-ctext)
+ ("STRING" . dnd-insert-text)
+ ("TEXT" . dnd-insert-text)
+ ("DndTypeFile" . x-dnd-handle-offix-file)
+ ("DndTypeFiles" . x-dnd-handle-offix-files)
+ ("DndTypeText" . dnd-insert-text))
"Functions to call to handle drag-and-drop of known types.
If the type of the drop is not present in the alist, or the
function corresponding to the type is nil, the drop of that
@@ -90,22 +90,21 @@ excluding `ask') if drop is successful, nil if not."
:group 'x)
(defcustom x-dnd-known-types
- (mapcar 'purecopy
- '("XdndDirectSave0"
- "text/uri-list"
- "text/x-moz-url"
- "_NETSCAPE_URL"
- "FILE_NAME"
- "UTF8_STRING"
- "text/plain;charset=UTF-8"
- "text/plain;charset=utf-8"
- "text/unicode"
- "text/plain"
- "COMPOUND_TEXT"
- "STRING"
- "TEXT"
- "DndTypeFile"
- "DndTypeText"))
+ '("XdndDirectSave0"
+ "text/uri-list"
+ "text/x-moz-url"
+ "_NETSCAPE_URL"
+ "FILE_NAME"
+ "UTF8_STRING"
+ "text/plain;charset=UTF-8"
+ "text/plain;charset=utf-8"
+ "text/unicode"
+ "text/plain"
+ "COMPOUND_TEXT"
+ "STRING"
+ "TEXT"
+ "DndTypeFile"
+ "DndTypeText")
"The types accepted by default for dropped data.
The types are chosen in the order they appear in the list."
:version "22.1"
- scratch/no-purespace c9ab3258760 12/41: Pure storage removal: Remove documentation, (continued)
- scratch/no-purespace c9ab3258760 12/41: Pure storage removal: Remove documentation, Stefan Kangas, 2024/12/12
- scratch/no-purespace 5ec86966638 07/41: Pure storage removal: Replace calls to removed functions, Stefan Kangas, 2024/12/12
- scratch/no-purespace bd2b59f0733 11/41: Pure storage removal: Adjust nativecomp code, Stefan Kangas, 2024/12/12
- scratch/no-purespace 647f6aa4c06 13/41: Pure storage removal: Bump nativecomp ABI, Stefan Kangas, 2024/12/12
- scratch/no-purespace 1de87314c4c 19/41: Make bindings--define-key obsolete, Stefan Kangas, 2024/12/12
- scratch/no-purespace c951fd415cd 21/41: Avoid compiler warning in process_mark_stack, Stefan Kangas, 2024/12/12
- scratch/no-purespace 538a2428983 22/41: Remove purecopy calls from files.el, Stefan Kangas, 2024/12/12
- scratch/no-purespace d121953b971 24/41: Don't call purecopy in common-win.el, Stefan Kangas, 2024/12/12
- scratch/no-purespace a4e38cc3753 25/41: Don't call purecopy in bindings.el, Stefan Kangas, 2024/12/12
- scratch/no-purespace 04408e198f1 26/41: Don't call purecopy in progmodes/*.el, Stefan Kangas, 2024/12/12
- scratch/no-purespace b0afe306b74 30/41: Don't call purecopy in dnd.el,
Stefan Kangas <=
- scratch/no-purespace 8bd246d87ea 29/41: Don't call purecopy in vc/*.el, Stefan Kangas, 2024/12/12
- scratch/no-purespace 5afc2733546 32/41: Don't call purecopy in mouse.el, Stefan Kangas, 2024/12/12
- scratch/no-purespace bb64e9464c5 34/41: Remove purespace fix from cl-preloaded.el, Stefan Kangas, 2024/12/12
- scratch/no-purespace e7926ab4860 40/41: Delete variable pure-space-overflow, Stefan Kangas, 2024/12/12
- scratch/no-purespace 28dadb6f10a 41/41: Mark pure-bytes-used as obsolete, Stefan Kangas, 2024/12/12
- scratch/no-purespace 0e37b11e659 16/41: Unexec removal: Documentation adjustments, Stefan Kangas, 2024/12/12
- scratch/no-purespace 5b471384d18 18/41: Purecopy removal: Lisp code, Stefan Kangas, 2024/12/12
- scratch/no-purespace 00a1152fad5 20/41: Update pdumper hashes, Stefan Kangas, 2024/12/12
- scratch/no-purespace e44b1bf5cca 27/41: Don't call purecopy in textmodes/*.el, Stefan Kangas, 2024/12/12
- scratch/no-purespace a54ff8c18fa 17/41: Unexec removal: Build system, Stefan Kangas, 2024/12/12