emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master b66bc0c: Fix custom types for cursor-in-non-selecte


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master b66bc0c: Fix custom types for cursor-in-non-selected-windows
Date: Sat, 30 Apr 2016 16:02:43 +0000

branch: master
commit b66bc0cced786e0320e1c3b0758bd3c434d4e8b5
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Fix custom types for cursor-in-non-selected-windows
    
    * lisp/cus-start.el (standard): Use the same custom types for
    cursor-in-non-selected-windows as for cursor-type (bug#19214).
---
 lisp/cus-start.el |   35 ++++++++++++++++++-----------------
 1 file changed, 18 insertions(+), 17 deletions(-)

diff --git a/lisp/cus-start.el b/lisp/cus-start.el
index 1c10bf7..c830ed8 100644
--- a/lisp/cus-start.el
+++ b/lisp/cus-start.el
@@ -54,7 +54,8 @@
 ;; :risky - risky-local-variable property
 ;; :safe - safe-local-variable property
 ;; :tag - custom-tag property
-(let (standard native-p prop propval
+(let (standard
+      native-p prop propval
       ;; This function turns a value
       ;; into an expression which produces that value.
       (quoter (lambda (sexp)
@@ -67,27 +68,27 @@
                        (stringp sexp)
                        (numberp sexp))
                    sexp
-                 (list 'quote sexp)))))
+                 (list 'quote sexp))))
+      (cursor-type-types
+       '(choice
+         (const :tag "Frame default" t)
+         (const :tag "Filled box" box)
+         (const :tag "Hollow cursor" hollow)
+         (const :tag "Vertical bar" bar)
+         (cons  :tag "Vertical bar with specified width"
+                (const bar) integer)
+         (const :tag "Horizontal bar" hbar)
+         (cons  :tag "Horizontal bar with specified width"
+                (const hbar) integer)
+         (const :tag "None "nil))))
   (pcase-dolist
       (`(,symbol ,group ,type ,version . ,rest)
-           '(;; alloc.c
+           `(;; alloc.c
             (gc-cons-threshold alloc integer)
             (gc-cons-percentage alloc float)
             (garbage-collection-messages alloc boolean)
             ;; buffer.c
-            (cursor-type
-             display
-             (choice
-              (const :tag "Frame default" t)
-              (const :tag "Filled box" box)
-              (const :tag "Hollow cursor" hollow)
-              (const :tag "Vertical bar" bar)
-              (cons  :tag "Vertical bar with specified width"
-                     (const bar) integer)
-              (const :tag "Horizontal bar" hbar)
-              (cons  :tag "Horizontal bar with specified width"
-                     (const hbar) integer)
-              (const :tag "None "nil)))
+            (cursor-type display ,cursor-type-types)
             (mode-line-format mode-line sexp) ;Hard to do right.
             (major-mode internal function)
             (case-fold-search matching boolean)
@@ -147,7 +148,7 @@ Leaving \"Default\" unchecked is equivalent with specifying 
a default of
             (line-spacing display (choice (const :tag "none" nil) number)
                           "22.1")
             (cursor-in-non-selected-windows
-             cursor boolean nil
+             cursor ,cursor-type-types nil
              :tag "Cursor In Non-selected Windows"
              :set (lambda (symbol value)
                     (set-default symbol value)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]