From 24686948c246bdb8295f724e77f246af49e20b94 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 3 Jul 2018 00:57:12 +0200 Subject: [PATCH] ui/fci: fix invalid-face: line-number error #738 The line-number face was introduced in Emacs 26 and will cause this error in earlier versions. --- modules/ui/fci/config.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/ui/fci/config.el b/modules/ui/fci/config.el index 5283cb4cf..705001078 100644 --- a/modules/ui/fci/config.el +++ b/modules/ui/fci/config.el @@ -1,7 +1,9 @@ ;;; ui/fci/config.el -*- lexical-binding: t; -*- (defvar +fci-rule-color-function - (lambda () (face-foreground 'line-number)) + (if EMACS26+ + (lambda () (face-foreground 'line-number)) + (lambda () (face-foreground 'font-lock-comment-face))) "Color used to draw the fill-column rule. Accepts a color string or a function that returns a color.