mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-07 15:00:34 -08:00
Make 'byte-compile-info*' functions more logical
* lisp/emacs-lisp/byte-run.el (byte-compile-info): New function that's more flexible that replaces 'byte-compile-info-string' and 'byte-compile-info-message'. (byte-compile-info-string): Make obsolete. (byte-compile-info-message): Ditto. * lisp/international/ja-dic-cnv.el (skkdic-convert-okuri-ari) (skkdic-convert-postfix, skkdic-convert-prefix) (skkdic-collect-okuri-nasi, skkdic-set-okuri-nasi): * lisp/finder.el (finder-compile-keywords): * lisp/cus-dep.el (custom-make-dependencies): Adjust callers to use the new function.
This commit is contained in:
parent
155b2c8a8d
commit
7384f194be
4 changed files with 27 additions and 15 deletions
|
|
@ -576,13 +576,26 @@ Otherwise, return nil. For internal use only."
|
|||
(mapconcat (lambda (char) (format "`?\\%c'" char))
|
||||
sorted ", ")))))
|
||||
|
||||
(defun byte-compile-info (string &optional message type)
|
||||
"Format STRING in a way that looks pleasing in the compilation output.
|
||||
If MESSAGE, output the message, too.
|
||||
|
||||
If TYPE, it should be a string that says what the information
|
||||
type is. This defaults to \"INFO\"."
|
||||
(let ((string (format " %-9s%s" (or type "INFO") string)))
|
||||
(when message
|
||||
(message "%s" string))
|
||||
string))
|
||||
|
||||
(defun byte-compile-info-string (&rest args)
|
||||
"Format ARGS in a way that looks pleasing in the compilation output."
|
||||
(format " %-9s%s" "INFO" (apply #'format args)))
|
||||
(declare (obsolete byte-compile-info "28.1"))
|
||||
(byte-compile-info (apply #'format args)))
|
||||
|
||||
(defun byte-compile-info-message (&rest args)
|
||||
"Message format ARGS in a way that looks pleasing in the compilation output."
|
||||
(message "%s" (apply #'byte-compile-info-string args)))
|
||||
(declare (obsolete byte-compile-info "28.1"))
|
||||
(byte-compile-info (apply #'format args) t))
|
||||
|
||||
|
||||
;; I nuked this because it's not a good idea for users to think of using it.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue