From 2a0fd94af282555e268df1d14cbda8b24c9bfd8e Mon Sep 17 00:00:00 2001 From: "Elias G. Perez" Date: Thu, 2 May 2024 10:33:43 -0600 Subject: [PATCH] Fix bug#70711 * lisp/progmodes/flymake.el (flymake--indicator-overlay-spec): Check if `flymake-fringe-indicator-position' or `flymake-margin-indicator-position' are non-nil for allow no indicators. (cherry picked from commit dc77164104451293ccc32b687090370c70df4481) --- lisp/progmodes/flymake.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index f5bf68db574..2e602658ea7 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el @@ -754,13 +754,15 @@ associated `flymake-category' return DEFAULT." (indicator-cdr (if (listp value) (cdr value)))) (cond - ((symbolp indicator-car) + ((and (symbolp indicator-car) + flymake-fringe-indicator-position) (propertize "!" 'display (cons flymake-fringe-indicator-position (if (listp value) value (list value))))) - ((stringp indicator-car) + ((and (stringp indicator-car) + flymake-margin-indicator-position) (propertize "!" 'display `((margin ,flymake-margin-indicator-position) -- 2.39.5