]> git.eshelyaron.com Git - emacs.git/commitdiff
Make compilation-filter-hook into a defcustom
authorStefan Kangas <stefankangas@gmail.com>
Thu, 20 Mar 2025 18:21:08 +0000 (19:21 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sun, 23 Mar 2025 18:15:31 +0000 (19:15 +0100)
* lisp/progmodes/compile.el (compilation-filter-hook): Make variable
into a defcustom.

(cherry picked from commit 40a17ce3b238ea0223d1b3e1c72f48352e1ca63d)

lisp/progmodes/compile.el

index abe53655fad3bbb13fa5675c86ed3607d26e61b8..7c3bde6a188577bce0169f4af9be19353a90caaa 100644 (file)
@@ -85,14 +85,18 @@ Similarly, to remove a prefix \"bar/\", use:
                               (string :tag "Replace matched filename with"))))
   :version "27.1")
 
-(defvar compilation-filter-hook nil
+(defcustom compilation-filter-hook nil
   "Hook run after `compilation-filter' has inserted a string into the buffer.
 It is called with the variable `compilation-filter-start' bound
 to the position of the start of the inserted text, and point at
 its end.
 
 If Emacs lacks asynchronous process support, this hook is run
-after `call-process' inserts the grep output into the buffer.")
+after `call-process' inserts the grep output into the buffer."
+  :type 'hook
+  :options '(ansi-color-compilation-filter
+             ansi-osc-compilation-filter)
+  :version "31.1")
 
 (defvar compilation-filter-start nil
   "Position of the start of the text inserted by `compilation-filter'.