diff options
| author | Stefan Monnier | 2021-04-10 16:25:28 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2021-04-10 16:25:28 -0400 |
| commit | cb6b810dfd721894cb8843e8b2a96b93ae4edce4 (patch) | |
| tree | 20a0cb50aa60456549b0ecf731c26505033fc610 | |
| parent | 1d474ad69d19d01b047012734530fb4c5eb82144 (diff) | |
| download | emacs-cb6b810dfd721894cb8843e8b2a96b93ae4edce4.tar.gz emacs-cb6b810dfd721894cb8843e8b2a96b93ae4edce4.zip | |
* lisp/jka-compr.el: Use lexical-binding
Prefer #' to quote function names.
| -rw-r--r-- | lisp/jka-compr.el | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/lisp/jka-compr.el b/lisp/jka-compr.el index 8aebcd0ec4d..a6223646c11 100644 --- a/lisp/jka-compr.el +++ b/lisp/jka-compr.el | |||
| @@ -1,7 +1,6 @@ | |||
| 1 | ;;; jka-compr.el --- reading/writing/loading compressed files | 1 | ;;; jka-compr.el --- reading/writing/loading compressed files -*- lexical-binding: t; -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1993-1995, 1997, 1999-2021 Free Software Foundation, | 3 | ;; Copyright (C) 1993-2021 Free Software Foundation, Inc. |
| 4 | ;; Inc. | ||
| 5 | 4 | ||
| 6 | ;; Author: Jay K. Adams <jka@ece.cmu.edu> | 5 | ;; Author: Jay K. Adams <jka@ece.cmu.edu> |
| 7 | ;; Maintainer: emacs-devel@gnu.org | 6 | ;; Maintainer: emacs-devel@gnu.org |
| @@ -120,7 +119,7 @@ data appears to be compressed already.") | |||
| 120 | (widen) (erase-buffer) | 119 | (widen) (erase-buffer) |
| 121 | (insert (format "Error while executing \"%s %s < %s\"\n\n" | 120 | (insert (format "Error while executing \"%s %s < %s\"\n\n" |
| 122 | prog | 121 | prog |
| 123 | (mapconcat 'identity args " ") | 122 | (mapconcat #'identity args " ") |
| 124 | infile)) | 123 | infile)) |
| 125 | 124 | ||
| 126 | (and errfile | 125 | (and errfile |
| @@ -170,7 +169,7 @@ to keep: LEN chars starting BEG chars from the beginning." | |||
| 170 | (format | 169 | (format |
| 171 | "%s %s 2> %s | \"%s\" bs=%d skip=%d %s 2> %s" | 170 | "%s %s 2> %s | \"%s\" bs=%d skip=%d %s 2> %s" |
| 172 | prog | 171 | prog |
| 173 | (mapconcat 'identity args " ") | 172 | (mapconcat #'identity args " ") |
| 174 | err-file | 173 | err-file |
| 175 | jka-compr-dd-program | 174 | jka-compr-dd-program |
| 176 | jka-compr-dd-blocksize | 175 | jka-compr-dd-blocksize |
| @@ -218,7 +217,7 @@ to keep: LEN chars starting BEG chars from the beginning." | |||
| 218 | "-c" | 217 | "-c" |
| 219 | (format "%s %s 2> %s %s" | 218 | (format "%s %s 2> %s %s" |
| 220 | prog | 219 | prog |
| 221 | (mapconcat 'identity args " ") | 220 | (mapconcat #'identity args " ") |
| 222 | err-file | 221 | err-file |
| 223 | (if (stringp output) | 222 | (if (stringp output) |
| 224 | (concat "> " output) | 223 | (concat "> " output) |
| @@ -227,7 +226,7 @@ to keep: LEN chars starting BEG chars from the beginning." | |||
| 227 | (jka-compr-error prog args infile message err-file)) | 226 | (jka-compr-error prog args infile message err-file)) |
| 228 | (delete-file err-file))) | 227 | (delete-file err-file))) |
| 229 | (or (eq 0 | 228 | (or (eq 0 |
| 230 | (apply 'call-process | 229 | (apply #'call-process |
| 231 | prog infile (if (stringp output) temp output) | 230 | prog infile (if (stringp output) temp output) |
| 232 | nil args)) | 231 | nil args)) |
| 233 | (jka-compr-error prog args infile message)) | 232 | (jka-compr-error prog args infile message)) |
| @@ -622,12 +621,12 @@ There should be no more than seven characters after the final `/'." | |||
| 622 | (substring file 0 (string-match (jka-compr-info-regexp info) file))) | 621 | (substring file 0 (string-match (jka-compr-info-regexp info) file))) |
| 623 | file))) | 622 | file))) |
| 624 | 623 | ||
| 625 | (put 'write-region 'jka-compr 'jka-compr-write-region) | 624 | (put 'write-region 'jka-compr #'jka-compr-write-region) |
| 626 | (put 'insert-file-contents 'jka-compr 'jka-compr-insert-file-contents) | 625 | (put 'insert-file-contents 'jka-compr #'jka-compr-insert-file-contents) |
| 627 | (put 'file-local-copy 'jka-compr 'jka-compr-file-local-copy) | 626 | (put 'file-local-copy 'jka-compr #'jka-compr-file-local-copy) |
| 628 | (put 'load 'jka-compr 'jka-compr-load) | 627 | (put 'load 'jka-compr #'jka-compr-load) |
| 629 | (put 'byte-compiler-base-file-name 'jka-compr | 628 | (put 'byte-compiler-base-file-name 'jka-compr |
| 630 | 'jka-compr-byte-compiler-base-file-name) | 629 | #'jka-compr-byte-compiler-base-file-name) |
| 631 | 630 | ||
| 632 | ;;;###autoload | 631 | ;;;###autoload |
| 633 | (defvar jka-compr-inhibit nil | 632 | (defvar jka-compr-inhibit nil |
| @@ -649,7 +648,7 @@ It is not recommended to set this variable permanently to anything but nil.") | |||
| 649 | ;; to prevent the primitive from calling our handler again. | 648 | ;; to prevent the primitive from calling our handler again. |
| 650 | (defun jka-compr-run-real-handler (operation args) | 649 | (defun jka-compr-run-real-handler (operation args) |
| 651 | (let ((inhibit-file-name-handlers | 650 | (let ((inhibit-file-name-handlers |
| 652 | (cons 'jka-compr-handler | 651 | (cons #'jka-compr-handler |
| 653 | (and (eq inhibit-file-name-operation operation) | 652 | (and (eq inhibit-file-name-operation operation) |
| 654 | inhibit-file-name-handlers))) | 653 | inhibit-file-name-handlers))) |
| 655 | (inhibit-file-name-operation operation)) | 654 | (inhibit-file-name-operation operation)) |
| @@ -674,7 +673,7 @@ by `jka-compr-installed'." | |||
| 674 | (last fnha)) | 673 | (last fnha)) |
| 675 | 674 | ||
| 676 | (while (cdr last) | 675 | (while (cdr last) |
| 677 | (if (eq (cdr (car (cdr last))) 'jka-compr-handler) | 676 | (if (eq (cdr (car (cdr last))) #'jka-compr-handler) |
| 678 | (setcdr last (cdr (cdr last))) | 677 | (setcdr last (cdr (cdr last))) |
| 679 | (setq last (cdr last)))) | 678 | (setq last (cdr last)))) |
| 680 | 679 | ||