diff options
| author | Gerd Möllmann | 2022-10-12 13:53:07 +0200 |
|---|---|---|
| committer | Gerd Möllmann | 2022-10-12 14:09:33 +0200 |
| commit | b3cdb8a3d3aba0ea537ecabd2900a3682e7c0660 (patch) | |
| tree | 8f20aa6cb1b0a1b1e6e24f8518697f8e12cd61c6 /lisp | |
| parent | 3e29407122da36e942c9a1c44e701f8aacae7c72 (diff) | |
| download | emacs-b3cdb8a3d3aba0ea537ecabd2900a3682e7c0660.tar.gz emacs-b3cdb8a3d3aba0ea537ecabd2900a3682e7c0660.zip | |
Intern keywords differently
Instead of something like (intern (format ":%s" ...)) do
(intern (format "%s" :keyword). Likewise in C.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/auth-source.el | 2 | ||||
| -rw-r--r-- | lisp/emacs-lisp/cl-macs.el | 2 | ||||
| -rw-r--r-- | lisp/emacs-lisp/macroexp.el | 2 | ||||
| -rw-r--r-- | lisp/net/nsm.el | 2 | ||||
| -rw-r--r-- | lisp/obsolete/cl-compat.el | 2 | ||||
| -rw-r--r-- | lisp/org/ox-ascii.el | 2 | ||||
| -rw-r--r-- | lisp/org/ox-html.el | 2 | ||||
| -rw-r--r-- | lisp/org/ox-koma-letter.el | 2 | ||||
| -rw-r--r-- | lisp/org/ox.el | 2 |
9 files changed, 9 insertions, 9 deletions
diff --git a/lisp/auth-source.el b/lisp/auth-source.el index feefd391a87..5d1e58d303b 100644 --- a/lisp/auth-source.el +++ b/lisp/auth-source.el | |||
| @@ -1160,7 +1160,7 @@ FILE is the file from which we obtained this token." | |||
| 1160 | (point-max)))))) | 1160 | (point-max)))))) |
| 1161 | 1161 | ||
| 1162 | (defun auth-source--symbol-keyword (symbol) | 1162 | (defun auth-source--symbol-keyword (symbol) |
| 1163 | (intern (format ":%s" symbol))) | 1163 | (intern (format "%s" symbol) :keyword)) |
| 1164 | 1164 | ||
| 1165 | (defun auth-source-netrc-normalize (alist filename) | 1165 | (defun auth-source-netrc-normalize (alist filename) |
| 1166 | (mapcar (lambda (entry) | 1166 | (mapcar (lambda (entry) |
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el index beafee1d631..394ba1e1e0e 100644 --- a/lisp/emacs-lisp/cl-macs.el +++ b/lisp/emacs-lisp/cl-macs.el | |||
| @@ -611,7 +611,7 @@ its argument list allows full Common Lisp conventions." | |||
| 611 | ;; shouldn't affect the key's name (bug#12367). | 611 | ;; shouldn't affect the key's name (bug#12367). |
| 612 | (if (eq ?_ (aref name 0)) | 612 | (if (eq ?_ (aref name 0)) |
| 613 | (setq name (substring name 1))) | 613 | (setq name (substring name 1))) |
| 614 | (intern (format ":%s" name))))) | 614 | (intern (format "%s" name) :keyword)))) |
| 615 | (varg (if (consp (car arg)) (cadar arg) (car arg))) | 615 | (varg (if (consp (car arg)) (cadar arg) (car arg))) |
| 616 | (def (if (cdr arg) (cadr arg) | 616 | (def (if (cdr arg) (cadr arg) |
| 617 | ;; The ordering between those two or clauses is | 617 | ;; The ordering between those two or clauses is |
diff --git a/lisp/emacs-lisp/macroexp.el b/lisp/emacs-lisp/macroexp.el index f4df40249de..abcb3e3e6b5 100644 --- a/lisp/emacs-lisp/macroexp.el +++ b/lisp/emacs-lisp/macroexp.el | |||
| @@ -819,7 +819,7 @@ test of free variables in the following ways: | |||
| 819 | ;; Hopefully this shouldn't happen thanks to the cycle detection, | 819 | ;; Hopefully this shouldn't happen thanks to the cycle detection, |
| 820 | ;; but in case it does happen, let's catch the error and give the | 820 | ;; but in case it does happen, let's catch the error and give the |
| 821 | ;; code a chance to macro-expand later. | 821 | ;; code a chance to macro-expand later. |
| 822 | (error "Eager macro-expansion failure: %S" err) | 822 | (error "Eager macro-expansion failure: %S in %S" err form) |
| 823 | form)))))) | 823 | form)))))) |
| 824 | 824 | ||
| 825 | ;; ¡¡¡ Big Ugly Hack !!! | 825 | ;; ¡¡¡ Big Ugly Hack !!! |
diff --git a/lisp/net/nsm.el b/lisp/net/nsm.el index 3146189be63..ed8228d97e9 100644 --- a/lisp/net/nsm.el +++ b/lisp/net/nsm.el | |||
| @@ -273,7 +273,7 @@ See also: `network-security-protocol-checks' and `nsm-noninteractive'" | |||
| 273 | (let* ((results | 273 | (let* ((results |
| 274 | (cl-loop | 274 | (cl-loop |
| 275 | for check in network-security-protocol-checks | 275 | for check in network-security-protocol-checks |
| 276 | for type = (intern (format ":%s" (car check))) | 276 | for type = (intern (format "%s" (car check)) :keyword) |
| 277 | ;; Skip the check if the user has already said that this | 277 | ;; Skip the check if the user has already said that this |
| 278 | ;; host is OK for this type of "error". | 278 | ;; host is OK for this type of "error". |
| 279 | for result = (and (not (memq type | 279 | for result = (and (not (memq type |
diff --git a/lisp/obsolete/cl-compat.el b/lisp/obsolete/cl-compat.el index e58f475d1c2..a68bec8d2de 100644 --- a/lisp/obsolete/cl-compat.el +++ b/lisp/obsolete/cl-compat.el | |||
| @@ -56,7 +56,7 @@ | |||
| 56 | (cl-list* 'defconst x (list 'quote x) (and doc (list doc)))) | 56 | (cl-list* 'defconst x (list 'quote x) (and doc (list doc)))) |
| 57 | 57 | ||
| 58 | (defun keyword-of (sym) | 58 | (defun keyword-of (sym) |
| 59 | (or (keywordp sym) (keywordp (intern (format ":%s" sym))))) | 59 | (or (keywordp sym) (keywordp (intern (format "%s" sym) :keyword)))) |
| 60 | 60 | ||
| 61 | 61 | ||
| 62 | ;; Multiple values. Note that the new package uses a different | 62 | ;; Multiple values. Note that the new package uses a different |
diff --git a/lisp/org/ox-ascii.el b/lisp/org/ox-ascii.el index 76a1a71fabe..c488d6d10b9 100644 --- a/lisp/org/ox-ascii.el +++ b/lisp/org/ox-ascii.el | |||
| @@ -1157,7 +1157,7 @@ holding export options." | |||
| 1157 | (defun org-ascii--translate (s info) | 1157 | (defun org-ascii--translate (s info) |
| 1158 | "Translate string S according to specified language and charset. | 1158 | "Translate string S according to specified language and charset. |
| 1159 | INFO is a plist used as a communication channel." | 1159 | INFO is a plist used as a communication channel." |
| 1160 | (let ((charset (intern (format ":%s" (plist-get info :ascii-charset))))) | 1160 | (let ((charset (intern (format "%s" (plist-get info :ascii-charset)) :keyword))) |
| 1161 | (org-export-translate s charset info))) | 1161 | (org-export-translate s charset info))) |
| 1162 | 1162 | ||
| 1163 | 1163 | ||
diff --git a/lisp/org/ox-html.el b/lisp/org/ox-html.el index 9cf9125aebd..e3f0cb569f5 100644 --- a/lisp/org/ox-html.el +++ b/lisp/org/ox-html.el | |||
| @@ -1979,7 +1979,7 @@ INFO is a plist used as a communication channel." | |||
| 1979 | "Return document preamble or postamble as a string, or nil. | 1979 | "Return document preamble or postamble as a string, or nil. |
| 1980 | TYPE is either `preamble' or `postamble', INFO is a plist used as a | 1980 | TYPE is either `preamble' or `postamble', INFO is a plist used as a |
| 1981 | communication channel." | 1981 | communication channel." |
| 1982 | (let ((section (plist-get info (intern (format ":html-%s" type)))) | 1982 | (let ((section (plist-get info (intern (format "html-%s" type) :keyword))) |
| 1983 | (spec (org-html-format-spec info))) | 1983 | (spec (org-html-format-spec info))) |
| 1984 | (when section | 1984 | (when section |
| 1985 | (let ((section-contents | 1985 | (let ((section-contents |
diff --git a/lisp/org/ox-koma-letter.el b/lisp/org/ox-koma-letter.el index 5f62cd1c040..dbc23be5875 100644 --- a/lisp/org/ox-koma-letter.el +++ b/lisp/org/ox-koma-letter.el | |||
| @@ -774,7 +774,7 @@ a communication channel." | |||
| 774 | (let* ((check-scope | 774 | (let* ((check-scope |
| 775 | ;; Non-nil value when SETTING was defined in SCOPE. | 775 | ;; Non-nil value when SETTING was defined in SCOPE. |
| 776 | (lambda (setting) | 776 | (lambda (setting) |
| 777 | (let ((property (intern (format ":inbuffer-%s" setting)))) | 777 | (let ((property (intern (format "inbuffer-%s" setting) :keyword))) |
| 778 | (if (eq scope 'global) | 778 | (if (eq scope 'global) |
| 779 | (eq (plist-get info property) 'koma-letter:empty) | 779 | (eq (plist-get info property) 'koma-letter:empty) |
| 780 | (not (eq (plist-get info property) 'koma-letter:empty)))))) | 780 | (not (eq (plist-get info property) 'koma-letter:empty)))))) |
diff --git a/lisp/org/ox.el b/lisp/org/ox.el index 56bb4b74df3..6b8925b0db4 100644 --- a/lisp/org/ox.el +++ b/lisp/org/ox.el | |||
| @@ -1969,7 +1969,7 @@ Return a string." | |||
| 1969 | ;; as in the original buffer, and call appropriate filters. | 1969 | ;; as in the original buffer, and call appropriate filters. |
| 1970 | (t | 1970 | (t |
| 1971 | (org-export-filter-apply-functions | 1971 | (org-export-filter-apply-functions |
| 1972 | (plist-get info (intern (format ":filter-%s" type))) | 1972 | (plist-get info (intern (format "filter-%s" type) :keyword)) |
| 1973 | (let ((blank (or (org-element-property :post-blank data) 0))) | 1973 | (let ((blank (or (org-element-property :post-blank data) 0))) |
| 1974 | (if (eq (org-element-class data parent) 'object) | 1974 | (if (eq (org-element-class data parent) 'object) |
| 1975 | (concat results (make-string blank ?\s)) | 1975 | (concat results (make-string blank ?\s)) |