aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorLars Ingebrigtsen2022-06-05 17:48:29 +0200
committerLars Ingebrigtsen2022-06-05 17:48:39 +0200
commit98d454627ca2e9a6cdb906895b044e7221db3f2f (patch)
treef264b97e754941b55a9bfa6b65c330e46fecfe42 /admin
parente8a941cf705f26cf9571e1eba4d23bbc63a056e4 (diff)
downloademacs-98d454627ca2e9a6cdb906895b044e7221db3f2f.tar.gz
emacs-98d454627ca2e9a6cdb906895b044e7221db3f2f.zip
Rename generate-file to generate-lisp-file
* lisp/url/url-cookie.el (url-cookie-write-file): * lisp/international/titdic-cnv.el (tit-process-header) (miscdic-convert): * lisp/international/ja-dic-cnv.el (skkdic-convert): * lisp/international/emoji.el (emoji--generate-file): * lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate--rubric): * admin/unidata/unidata-gen.el (unidata-gen-file) (unidata-gen-charprop): Adjust callers. * lisp/emacs-lisp/generate-lisp-file.el: Renamed from generate-file.el. Also rename some keyword parameters and require a generator function.
Diffstat (limited to 'admin')
-rw-r--r--admin/unidata/unidata-gen.el19
1 files changed, 9 insertions, 10 deletions
diff --git a/admin/unidata/unidata-gen.el b/admin/unidata/unidata-gen.el
index dc8c071999e..0a9fd5108ce 100644
--- a/admin/unidata/unidata-gen.el
+++ b/admin/unidata/unidata-gen.el
@@ -89,7 +89,7 @@
89;; PROPn: string representing the nth property value 89;; PROPn: string representing the nth property value
90 90
91(eval-when-compile (require 'cl-lib)) 91(eval-when-compile (require 'cl-lib))
92(require 'generate-file) 92(require 'generate-lisp-file)
93 93
94(defvar unidata-list nil) 94(defvar unidata-list nil)
95 95
@@ -1423,10 +1423,9 @@ Property value is a symbol `o' (Open), `c' (Close), or `n' (None)."
1423 (or elt (user-error "Unknown output file: %s" basename)) 1423 (or elt (user-error "Unknown output file: %s" basename))
1424 (or noninteractive (message "Generating %s..." file)) 1424 (or noninteractive (message "Generating %s..." file))
1425 (with-temp-file file 1425 (with-temp-file file
1426 (generate-file-heading 1426 (generate-lisp-file-heading
1427 basename 1427 basename 'unidata-gen-file
1428 :text (concat copyright " \ 1428 :commentary (concat copyright " \
1429Generated from Unicode data files by unidata-gen.el. \
1430The sources for this file are found in the admin/unidata/ directory in \ 1429The sources for this file are found in the admin/unidata/ directory in \
1431the Emacs sources. The Unicode data files are used under the \ 1430the Emacs sources. The Unicode data files are used under the \
1432Unicode Terms of Use, as contained in the file copyright.html in that \ 1431Unicode Terms of Use, as contained in the file copyright.html in that \
@@ -1448,15 +1447,15 @@ same directory."))
1448 (set-char-table-extra-slot table 3 describer)) 1447 (set-char-table-extra-slot table 3 describer))
1449 (insert (format "(define-char-code-property '%S\n %S\n %S)\n" 1448 (insert (format "(define-char-code-property '%S\n %S\n %S)\n"
1450 prop table docstring)))) 1449 prop table docstring))))
1451 (generate-file-trailer basename :inhibit-provide t)))) 1450 (generate-lisp-file-trailer basename :inhibit-provide t))))
1452 (or noninteractive (message "Generating %s...done" file))) 1451 (or noninteractive (message "Generating %s...done" file)))
1453 1452
1454(defun unidata-gen-charprop (&optional charprop-file text) 1453(defun unidata-gen-charprop (&optional charprop-file text)
1455 (or charprop-file (setq charprop-file (pop command-line-args-left))) 1454 (or charprop-file (setq charprop-file (pop command-line-args-left)))
1456 (with-temp-file charprop-file 1455 (with-temp-file charprop-file
1457 (generate-file-heading 1456 (generate-lisp-file-heading
1458 charprop-file 1457 charprop-file 'unidata-gen-charprop
1459 :text "Automatically generated by unidata-gen.el. See the admin/unidata/ directory in the Emacs sources.") 1458 :commentary "See the admin/unidata/ directory in the Emacs sources.")
1460 (if text 1459 (if text
1461 (insert text) 1460 (insert text)
1462 (dolist (elt unidata-file-alist) 1461 (dolist (elt unidata-file-alist)
@@ -1465,7 +1464,7 @@ same directory."))
1465 (unidata-prop-prop proplist) (car elt) 1464 (unidata-prop-prop proplist) (car elt)
1466 (unidata-prop-docstring proplist)))))) 1465 (unidata-prop-docstring proplist))))))
1467 (or noninteractive (message "Writing %s..." charprop-file)) 1466 (or noninteractive (message "Writing %s..." charprop-file))
1468 (generate-file-trailer charprop-file))) 1467 (generate-lisp-file-trailer charprop-file)))
1469 1468
1470(defun unidata-gen-scripts (&optional file) 1469(defun unidata-gen-scripts (&optional file)
1471 ;; Running from Makefile. 1470 ;; Running from Makefile.