aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2019-08-06 00:38:58 +0300
committerJuri Linkov2019-08-06 00:38:58 +0300
commitaa624a092db1e2c2e09345a08e3609095a9f9fc3 (patch)
tree9b6080a55a5ebae1ecb5f2e8093f8a91abb6f992
parent0c9075f0af275e4a44cda363d61313c2667c5e7d (diff)
downloademacs-aa624a092db1e2c2e09345a08e3609095a9f9fc3.tar.gz
emacs-aa624a092db1e2c2e09345a08e3609095a9f9fc3.zip
* lisp/cus-start.el: Add :safe to display-fill-column-indicator (bug#36861)
(display-fill-column-indicator) (display-fill-column-indicator-column) (display-fill-column-indicator-character): Add :safe predicates.
-rw-r--r--lisp/cus-start.el102
1 files changed, 57 insertions, 45 deletions
diff --git a/lisp/cus-start.el b/lisp/cus-start.el
index e1d0bce2ad0..ddb9546ad1a 100644
--- a/lisp/cus-start.el
+++ b/lisp/cus-start.el
@@ -616,52 +616,64 @@ since it could result in memory overflow and make Emacs crash."
616 (const :tag "Grow only" :value grow-only)) 616 (const :tag "Grow only" :value grow-only))
617 "25.1") 617 "25.1")
618 (display-raw-bytes-as-hex display boolean "26.1") 618 (display-raw-bytes-as-hex display boolean "26.1")
619 (display-line-numbers display-line-numbers 619 (display-line-numbers
620 (choice 620 display-line-numbers
621 (const :tag "Off (nil)" :value nil) 621 (choice
622 (const :tag "Absolute line numbers" 622 (const :tag "Off (nil)" :value nil)
623 :value t) 623 (const :tag "Absolute line numbers"
624 (const :tag "Relative line numbers" 624 :value t)
625 :value relative) 625 (const :tag "Relative line numbers"
626 (const :tag "Visually relative line numbers" 626 :value relative)
627 :value visual)) 627 (const :tag "Visually relative line numbers"
628 "26.1") 628 :value visual))
629 (display-line-numbers-width display-line-numbers 629 "26.1")
630 (choice 630 (display-line-numbers-width
631 (const :tag "Dynamically computed" 631 display-line-numbers
632 :value nil) 632 (choice
633 (integer :menu-tag "Fixed number of columns" 633 (const :tag "Dynamically computed"
634 :value 2 634 :value nil)
635 :format "%v")) 635 (integer :menu-tag "Fixed number of columns"
636 "26.1") 636 :value 2
637 (display-line-numbers-current-absolute display-line-numbers 637 :format "%v"))
638 (choice 638 "26.1")
639 (const :tag "Display actual number of current line" 639 (display-line-numbers-current-absolute
640 :value t) 640 display-line-numbers
641 (const :tag "Display zero as number of current line" 641 (choice
642 :value nil)) 642 (const :tag "Display actual number of current line"
643 "26.1") 643 :value t)
644 (display-line-numbers-widen display-line-numbers 644 (const :tag "Display zero as number of current line"
645 (choice 645 :value nil))
646 (const :tag "Disregard narrowing when calculating line numbers" 646 "26.1")
647 :value t) 647 (display-line-numbers-widen
648 (const :tag "Count lines from beginning of narrowed region" 648 display-line-numbers
649 :value nil)) 649 (choice
650 "26.1") 650 (const :tag "Disregard narrowing when calculating line numbers"
651 :value t)
652 (const :tag "Count lines from beginning of narrowed region"
653 :value nil))
654 "26.1")
651 655
652 (display-fill-column-indicator display-fill-column-indicator 656 (display-fill-column-indicator
653 boolean "27.1") 657 display-fill-column-indicator
654 (display-fill-column-indicator-column display-fill-column-indicator 658 boolean
655 (choice 659 "27.1"
656 (const :tag "Use fill-column variable" 660 :safe booleanp)
657 :value t) 661 (display-fill-column-indicator-column
658 (const :tag "Fixed column number" 662 display-fill-column-indicator
659 :value 70 663 (choice
660 :format "%v") 664 (const :tag "Use fill-column variable"
661 integer) 665 :value t)
662 "27.1") 666 (const :tag "Fixed column number"
663 (display-fill-column-indicator-character display-fill-column-indicator 667 :value 70
664 character "27.1") 668 :format "%v")
669 integer)
670 "27.1"
671 :safe (lambda (value) (or (booleanp value) (integerp value))))
672 (display-fill-column-indicator-character
673 display-fill-column-indicator
674 character
675 "27.1"
676 :safe characterp)
665 ;; xfaces.c 677 ;; xfaces.c
666 (scalable-fonts-allowed display boolean "22.1") 678 (scalable-fonts-allowed display boolean "22.1")
667 ;; xfns.c 679 ;; xfns.c