aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Petton2015-09-27 17:59:35 +0200
committerNicolas Petton2015-09-28 21:15:58 +0200
commit5526561b0c8416cbae492bc246eacd30f7b1daa8 (patch)
treeeb11de704ffc1f9ba7a98f55227b888cb00cfce5
parent1f279344e4c4fad595d359d6d0aa619dea16c308 (diff)
downloademacs-5526561b0c8416cbae492bc246eacd30f7b1daa8.tar.gz
emacs-5526561b0c8416cbae492bc246eacd30f7b1daa8.zip
* lisp/arc-mode.el: Sharp-quote function arguments.
-rw-r--r--lisp/arc-mode.el30
1 files changed, 15 insertions, 15 deletions
diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el
index 4df41b5613c..f852f2d1a40 100644
--- a/lisp/arc-mode.el
+++ b/lisp/arc-mode.el
@@ -839,7 +839,7 @@ when parsing the archive."
839 ;; long when the archive -- which has to be moved in memory -- is large. 839 ;; long when the archive -- which has to be moved in memory -- is large.
840 (insert 840 (insert
841 (apply 841 (apply
842 (function concat) 842 #'concat
843 (mapcar 843 (mapcar
844 (lambda (fil) 844 (lambda (fil)
845 ;; Using `concat' here copies the text also, so we can add 845 ;; Using `concat' here copies the text also, so we can add
@@ -1050,7 +1050,7 @@ using `make-temp-file', and the generated name is returned."
1050 (setq default-directory arcdir) 1050 (setq default-directory arcdir)
1051 (make-local-variable 'archive-superior-buffer) 1051 (make-local-variable 'archive-superior-buffer)
1052 (setq archive-superior-buffer archive-buffer) 1052 (setq archive-superior-buffer archive-buffer)
1053 (add-hook 'write-file-functions 'archive-write-file-member nil t) 1053 (add-hook 'write-file-functions #'archive-write-file-member nil t)
1054 (setq archive-subfile-mode descr) 1054 (setq archive-subfile-mode descr)
1055 (setq archive-file-name-coding-system file-name-coding) 1055 (setq archive-file-name-coding-system file-name-coding)
1056 (if (and 1056 (if (and
@@ -1091,7 +1091,7 @@ using `make-temp-file', and the generated name is returned."
1091 (if read-only-p (setq archive-read-only t)) 1091 (if read-only-p (setq archive-read-only t))
1092 ;; We will write out the archive ourselves if it is 1092 ;; We will write out the archive ourselves if it is
1093 ;; part of another archive. 1093 ;; part of another archive.
1094 (remove-hook 'write-contents-functions 'archive-write-file t)) 1094 (remove-hook 'write-contents-functions #'archive-write-file t))
1095 (run-hooks 'archive-extract-hook) 1095 (run-hooks 'archive-extract-hook)
1096 (if archive-read-only 1096 (if archive-read-only
1097 (message "Note: altering this archive is not implemented.")))) 1097 (message "Note: altering this archive is not implemented."))))
@@ -1111,7 +1111,7 @@ using `make-temp-file', and the generated name is returned."
1111 exit-status success) 1111 exit-status success)
1112 (make-directory (directory-file-name default-directory) t) 1112 (make-directory (directory-file-name default-directory) t)
1113 (setq exit-status 1113 (setq exit-status
1114 (apply 'call-process 1114 (apply #'call-process
1115 (car command) 1115 (car command)
1116 nil 1116 nil
1117 nil 1117 nil
@@ -1136,7 +1136,7 @@ using `make-temp-file', and the generated name is returned."
1136 (let ((stderr-file (make-temp-file "arc-stderr"))) 1136 (let ((stderr-file (make-temp-file "arc-stderr")))
1137 (unwind-protect 1137 (unwind-protect
1138 (prog1 1138 (prog1
1139 (apply 'call-process 1139 (apply #'call-process
1140 (car command) 1140 (car command)
1141 nil 1141 nil
1142 (if stderr-file (list t stderr-file) t) 1142 (if stderr-file (list t stderr-file) t)
@@ -1157,7 +1157,7 @@ using `make-temp-file', and the generated name is returned."
1157 (stdout-file (make-temp-file "arc-stdout"))) 1157 (stdout-file (make-temp-file "arc-stdout")))
1158 (unwind-protect 1158 (unwind-protect
1159 (prog1 1159 (prog1
1160 (apply 'call-process 1160 (apply #'call-process
1161 (car command) 1161 (car command)
1162 nil 1162 nil
1163 `(:file ,stdout-file) 1163 `(:file ,stdout-file)
@@ -1284,7 +1284,7 @@ using `make-temp-file', and the generated name is returned."
1284 (setq ename 1284 (setq ename
1285 (encode-coding-string ename archive-file-name-coding-system)) 1285 (encode-coding-string ename archive-file-name-coding-system))
1286 (let* ((coding-system-for-write 'no-conversion) 1286 (let* ((coding-system-for-write 'no-conversion)
1287 (exitcode (apply 'call-process 1287 (exitcode (apply #'call-process
1288 (car command) 1288 (car command)
1289 nil 1289 nil
1290 nil 1290 nil
@@ -1444,7 +1444,7 @@ as a relative change like \"g+rw\" as for chmod(2)."
1444 (revert-buffer)))))) 1444 (revert-buffer))))))
1445 1445
1446(defun archive-*-expunge (archive files command) 1446(defun archive-*-expunge (archive files command)
1447 (apply 'call-process 1447 (apply #'call-process
1448 (car command) 1448 (car command)
1449 nil 1449 nil
1450 nil 1450 nil
@@ -1539,7 +1539,7 @@ This doesn't recover lost files, it just undoes changes in the buffer itself."
1539 (length files) 1539 (length files)
1540 (if (= 1 (length files)) "" "s")) 1540 (if (= 1 (length files)) "" "s"))
1541 "\n")) 1541 "\n"))
1542 (apply 'vector (nreverse files)))) 1542 (apply #'vector (nreverse files))))
1543 1543
1544(defun archive-arc-rename-entry (newname descr) 1544(defun archive-arc-rename-entry (newname descr)
1545 (if (string-match "[:\\\\/]" newname) 1545 (if (string-match "[:\\\\/]" newname)
@@ -1708,7 +1708,7 @@ This doesn't recover lost files, it just undoes changes in the buffer itself."
1708 (length files) 1708 (length files)
1709 (if (= 1 (length files)) "" "s")) 1709 (if (= 1 (length files)) "" "s"))
1710 "\n")) 1710 "\n"))
1711 (apply 'vector (nreverse files)))) 1711 (apply #'vector (nreverse files))))
1712 1712
1713(defconst archive-lzh-alternate-display t) 1713(defconst archive-lzh-alternate-display t)
1714 1714
@@ -1905,7 +1905,7 @@ This doesn't recover lost files, it just undoes changes in the buffer itself."
1905 (length files) 1905 (length files)
1906 (if (= 1 (length files)) "" "s")) 1906 (if (= 1 (length files)) "" "s"))
1907 "\n")) 1907 "\n"))
1908 (apply 'vector (nreverse files)))) 1908 (apply #'vector (nreverse files))))
1909 1909
1910(defun archive-zip-extract (archive name) 1910(defun archive-zip-extract (archive name)
1911 (cond 1911 (cond
@@ -2022,7 +2022,7 @@ This doesn't recover lost files, it just undoes changes in the buffer itself."
2022 (length files) 2022 (length files)
2023 (if (= 1 (length files)) "" "s")) 2023 (if (= 1 (length files)) "" "s"))
2024 "\n")) 2024 "\n"))
2025 (apply 'vector (nreverse files)))) 2025 (apply #'vector (nreverse files))))
2026 2026
2027(defun archive-zoo-extract (archive name) 2027(defun archive-zoo-extract (archive name)
2028 (archive-extract-by-stdout archive name archive-zoo-extract)) 2028 (archive-extract-by-stdout archive name archive-zoo-extract))
@@ -2083,7 +2083,7 @@ This doesn't recover lost files, it just undoes changes in the buffer itself."
2083 (length text)))) 2083 (length text))))
2084 files)) 2084 files))
2085 (insert sep (make-string maxname ?-) "\n") 2085 (insert sep (make-string maxname ?-) "\n")
2086 (apply 'vector files)))) 2086 (apply #'vector files))))
2087 2087
2088(defun archive-rar-extract (archive name) 2088(defun archive-rar-extract (archive name)
2089 ;; unrar-free seems to have no way to extract to stdout or even to a file. 2089 ;; unrar-free seems to have no way to extract to stdout or even to a file.
@@ -2171,7 +2171,7 @@ This doesn't recover lost files, it just undoes changes in the buffer itself."
2171 (length text)))) 2171 (length text))))
2172 files)) 2172 files))
2173 (insert sep (make-string maxname ?-) "\n") 2173 (insert sep (make-string maxname ?-) "\n")
2174 (apply 'vector files)))) 2174 (apply #'vector files))))
2175 2175
2176(defun archive-7z-extract (archive name) 2176(defun archive-7z-extract (archive name)
2177 ;; 7z doesn't provide a `quiet' option to suppress non-essential 2177 ;; 7z doesn't provide a `quiet' option to suppress non-essential
@@ -2272,7 +2272,7 @@ This doesn't recover lost files, it just undoes changes in the buffer itself."
2272 (length text)))) 2272 (length text))))
2273 files)) 2273 files))
2274 (insert sep (make-string maxname ?-) "\n") 2274 (insert sep (make-string maxname ?-) "\n")
2275 (apply 'vector files)))) 2275 (apply #'vector files))))
2276 2276
2277(defun archive-ar-extract (archive name) 2277(defun archive-ar-extract (archive name)
2278 (let ((destbuf (current-buffer)) 2278 (let ((destbuf (current-buffer))