fix(edit): require subr-x in klammertext-align.el (Emacs 27)
klammertext-align.el calls string-trim, string-blank-p, and string-empty-p without requiring subr-x. Newer Emacs has that library loaded already; on Emacs 27 -- what Ubuntu 22.04 and Pop!_OS 22.04 ship -- the symbols are void and table alignment fails with "Symbol's function definition is void: string-blank-p". The README now states Emacs 27.1 as the supported floor. (from dev 43a4ce7dea2a)
This commit is contained in:
@@ -41,7 +41,7 @@ are regenerated on each release — patches cannot be merged directly.
|
||||
Report problems (or send patches) to the author; accepted changes are
|
||||
applied to the development tree and appear in a following snapshot.
|
||||
|
||||
This snapshot was assembled from development commit `ca9eaa2c867a`.
|
||||
This snapshot was assembled from development commit `43a4ce7dea2a`.
|
||||
|
||||
## License
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
helps Klammertext authors see the structure of klammer application through
|
||||
syntax highlighting.
|
||||
|
||||
Requires **Emacs 27.1 or newer** — the version Ubuntu 22.04 and Pop!_OS
|
||||
22.04 ship, so it is the practical floor. Tested on 27.1 and 30.2.
|
||||
|
||||
## Install
|
||||
|
||||
Put the `emacs` directory somewhere on your system, then tell Emacs where it is
|
||||
|
||||
@@ -50,6 +50,11 @@
|
||||
|
||||
;;; Code:
|
||||
|
||||
;; string-trim, string-blank-p, and string-empty-p live in subr-x, which is
|
||||
;; not loaded by default in a batch Emacs before 28. Without this require
|
||||
;; they are void on Emacs 27 (as shipped by Pop!_OS 22.04) while working on
|
||||
;; newer Emacs, so the alignment command fails on the older editor only.
|
||||
(require 'subr-x)
|
||||
(require 'klammertext-mode)
|
||||
|
||||
(defgroup klammertext-align nil
|
||||
|
||||
Reference in New Issue
Block a user