Skip to content

Commit beb72d5

Browse files
committed
Fix ghostel-test-package-version failure with stale .elc
locate-library prefers .elc over .el, so after a byte-compile (e.g. from make lint), the test reads bytecode instead of source and lm-header can't find the Version header. Use (locate-library "ghostel.el" t) to explicitly find the source file. Also update test to use renamed ghostel--suppress-interfering-modes.
1 parent 067af25 commit beb72d5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ghostel.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ matches the GitHub release tag even when MELPA rewrites the
447447
version to a date-based string."
448448
(require 'lisp-mnt nil t)
449449
(when (fboundp 'lm-header)
450-
(let ((lib (or load-file-name (locate-library "ghostel"))))
450+
(let ((lib (or load-file-name (locate-library "ghostel.el" t))))
451451
(when lib
452452
(with-temp-buffer
453453
(insert-file-contents lib nil 0 1024)

test/ghostel-test.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ cell, so the visual line width must equal the terminal column count."
11361136
(let ((global-hl-line-mode t))
11371137
(should global-hl-line-mode)
11381138
;; Suppress should opt this buffer out
1139-
(ghostel--suppress-hl-line-mode)
1139+
(ghostel--suppress-interfering-modes)
11401140
(should ghostel--saved-hl-line-mode)
11411141
;; Buffer-local global-hl-line-mode must be nil — this is the
11421142
;; mechanism that prevents global-hl-line-highlight (on

0 commit comments

Comments
 (0)