Skip to content

Commit a826535

Browse files
committed
Fix byte-compile hook failure when package is already installed
Emacs outputs Unicode curly quotes in messages when the locale is UTF-8, but the grep filter in byte-compile.sh only matches ASCII quotes. This caused the pre-commit hook to fail on first run whenever package-delete produced output (e.g. after a version bump), then pass on retry because the package was already gone. Force text-quoting-style to straight so the output is always ASCII.
1 parent 0c6118e commit a826535

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

scripts/byte-compile-local.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
;; byte-compile-local.el --- -*- lexical-binding: t -*-
22

3+
(setq text-quoting-style 'straight) ; keep quotes ASCII for grep filters
34
(require 'treesit) ; to silence an autoload warning, seems like emacs bug
45
(require 'package)
56
(package-initialize)

0 commit comments

Comments
 (0)