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/org | |
| 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/org')
| -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 |
4 files changed, 4 insertions, 4 deletions
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)) |