]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix customization of 'display-fill-column-indicator-character'
authorEli Zaretskii <eliz@gnu.org>
Sat, 9 May 2020 09:34:58 +0000 (12:34 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 9 May 2020 09:34:58 +0000 (12:34 +0300)
* lisp/cus-start.el (display-fill-column-indicator-character): Fix
the customization form.  (Bug#41145)

lisp/cus-start.el

index dff4d9a60609405a68f464bc02ed643181295083..bd32c7c61d3b960d7c7e4a618a142606d86c1869 100644 (file)
@@ -771,9 +771,16 @@ since it could result in memory overflow and make Emacs crash."
               :safe (lambda (value) (or (booleanp value) (integerp value))))
              (display-fill-column-indicator-character
               display-fill-column-indicator
-              character
+              (choice
+               (character :tag "Use U+2502 to indicate fill column"
+                      :value ?│)
+               (character :tag "Use | to indicate fill column"
+                      :value ?|)
+               (const :tag "If possible, use U+2502 to indicate fill column, otherwise use |"
+                      :value nil)
+               character)
               "27.1"
-              :safe characterp)
+              :safe (lambda (value) (or (characterp value) (booleanp value))))
             ;; xfaces.c
             (scalable-fonts-allowed display boolean "22.1")
             ;; xfns.c