From fedb25819a40515249cd7b26f914e3b224190761 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Mon, 26 Oct 2020 19:15:30 +0100 Subject: [PATCH] Tweak where global-display-fill-column-indicator-modes is on * lisp/display-fill-column-indicator.el (global-display-fill-column-indicator-mode): Don't switch on in special-mode buffers (bug#44232). --- etc/NEWS | 5 +++++ lisp/display-fill-column-indicator.el | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/etc/NEWS b/etc/NEWS index d2d4a044007..e681ce3a854 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1185,6 +1185,11 @@ list. ** Miscellaneous +--- +*** 'global-display-fill-column-indicator-mode' isn't on in all buffers. +It's not off in special-mode buffers, as specified by the new user +option 'global-display-fill-column-indicator-modes'. + --- *** New user option 'compilation-search-all-directories'. When doing parallel builds, directories and compilation errors may diff --git a/lisp/display-fill-column-indicator.el b/lisp/display-fill-column-indicator.el index e1395f000bf..3ba419156e8 100644 --- a/lisp/display-fill-column-indicator.el +++ b/lisp/display-fill-column-indicator.el @@ -74,7 +74,8 @@ See Info node `Displaying Boundaries' for details." ;;;###autoload (define-globalized-minor-mode global-display-fill-column-indicator-mode - display-fill-column-indicator-mode display-fill-column-indicator--turn-on) + display-fill-column-indicator-mode display-fill-column-indicator--turn-on + :predicate '((not special-mode) t)) (provide 'display-fill-column-indicator) -- 2.39.2