Add calling convention to x-compose-font-name
authorStefan Kangas <stefankangas@gmail.com>
Tue, 8 Aug 2023 04:11:51 +0000 (06:11 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Tue, 8 Aug 2023 05:08:18 +0000 (07:08 +0200)
* lisp/international/fontset.el (x-compose-font-name): Add
advertised-calling-convention for argument ignored since 22.1.

lisp/international/fontset.el

index 27d7f509752f0f2cdc8c80faa221f782c6210b94..d879920b1d03186bb5a57e81ccbcf1db7def5fb5 100644 (file)
@@ -1274,9 +1274,8 @@ Return nil if PATTERN doesn't conform to XLFD."
 (defun x-compose-font-name (fields &optional _reduce)
   "Compose X fontname from FIELDS.
 FIELDS is a vector of XLFD fields, of length 12.
-If a field is nil, wild-card letter `*' is embedded.
-Optional argument REDUCE exists just for backward compatibility,
-and is always ignored."
+If a field is nil, wild-card letter `*' is embedded."
+  (declare (advertised-calling-convention (fields) "30.1"))
   (concat "-" (mapconcat (lambda (x) (or x "*")) fields "-")))