diff options
| author | Lars Ingebrigtsen | 2016-04-30 17:57:57 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-05-01 19:27:13 +0200 |
| commit | ad5572b20f46dc678989cecd2d64926e1e1c846c (patch) | |
| tree | 9e3ed86aa9c281931ea5cd3da70b3cd32c27629c | |
| parent | 2ef780f306a2168a02d2afc050585cd7ada3ddb0 (diff) | |
| download | emacs-ad5572b20f46dc678989cecd2d64926e1e1c846c.tar.gz emacs-ad5572b20f46dc678989cecd2d64926e1e1c846c.zip | |
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).
(cherry picked from commit b66bc0cced786e0320e1c3b0758bd3c434d4e8b5)
| -rw-r--r-- | lisp/cus-start.el | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/lisp/cus-start.el b/lisp/cus-start.el index 5be61ce537c..001d638ca14 100644 --- a/lisp/cus-start.el +++ b/lisp/cus-start.el | |||
| @@ -54,7 +54,8 @@ | |||
| 54 | ;; :risky - risky-local-variable property | 54 | ;; :risky - risky-local-variable property |
| 55 | ;; :safe - safe-local-variable property | 55 | ;; :safe - safe-local-variable property |
| 56 | ;; :tag - custom-tag property | 56 | ;; :tag - custom-tag property |
| 57 | (let (standard native-p prop propval | 57 | (let (standard |
| 58 | native-p prop propval | ||
| 58 | ;; This function turns a value | 59 | ;; This function turns a value |
| 59 | ;; into an expression which produces that value. | 60 | ;; into an expression which produces that value. |
| 60 | (quoter (lambda (sexp) | 61 | (quoter (lambda (sexp) |
| @@ -67,27 +68,27 @@ | |||
| 67 | (stringp sexp) | 68 | (stringp sexp) |
| 68 | (numberp sexp)) | 69 | (numberp sexp)) |
| 69 | sexp | 70 | sexp |
| 70 | (list 'quote sexp))))) | 71 | (list 'quote sexp)))) |
| 72 | (cursor-type-types | ||
| 73 | '(choice | ||
| 74 | (const :tag "Frame default" t) | ||
| 75 | (const :tag "Filled box" box) | ||
| 76 | (const :tag "Hollow cursor" hollow) | ||
| 77 | (const :tag "Vertical bar" bar) | ||
| 78 | (cons :tag "Vertical bar with specified width" | ||
| 79 | (const bar) integer) | ||
| 80 | (const :tag "Horizontal bar" hbar) | ||
| 81 | (cons :tag "Horizontal bar with specified width" | ||
| 82 | (const hbar) integer) | ||
| 83 | (const :tag "None "nil)))) | ||
| 71 | (pcase-dolist | 84 | (pcase-dolist |
| 72 | (`(,symbol ,group ,type ,version . ,rest) | 85 | (`(,symbol ,group ,type ,version . ,rest) |
| 73 | '(;; alloc.c | 86 | `(;; alloc.c |
| 74 | (gc-cons-threshold alloc integer) | 87 | (gc-cons-threshold alloc integer) |
| 75 | (gc-cons-percentage alloc float) | 88 | (gc-cons-percentage alloc float) |
| 76 | (garbage-collection-messages alloc boolean) | 89 | (garbage-collection-messages alloc boolean) |
| 77 | ;; buffer.c | 90 | ;; buffer.c |
| 78 | (cursor-type | 91 | (cursor-type display ,cursor-type-types) |
| 79 | display | ||
| 80 | (choice | ||
| 81 | (const :tag "Frame default" t) | ||
| 82 | (const :tag "Filled box" box) | ||
| 83 | (const :tag "Hollow cursor" hollow) | ||
| 84 | (const :tag "Vertical bar" bar) | ||
| 85 | (cons :tag "Vertical bar with specified width" | ||
| 86 | (const bar) integer) | ||
| 87 | (const :tag "Horizontal bar" hbar) | ||
| 88 | (cons :tag "Horizontal bar with specified width" | ||
| 89 | (const hbar) integer) | ||
| 90 | (const :tag "None "nil))) | ||
| 91 | (mode-line-format mode-line sexp) ;Hard to do right. | 92 | (mode-line-format mode-line sexp) ;Hard to do right. |
| 92 | (major-mode internal function) | 93 | (major-mode internal function) |
| 93 | (case-fold-search matching boolean) | 94 | (case-fold-search matching boolean) |
| @@ -147,7 +148,7 @@ Leaving \"Default\" unchecked is equivalent with specifying a default of | |||
| 147 | (line-spacing display (choice (const :tag "none" nil) number) | 148 | (line-spacing display (choice (const :tag "none" nil) number) |
| 148 | "22.1") | 149 | "22.1") |
| 149 | (cursor-in-non-selected-windows | 150 | (cursor-in-non-selected-windows |
| 150 | cursor boolean nil | 151 | cursor ,cursor-type-types nil |
| 151 | :tag "Cursor In Non-selected Windows" | 152 | :tag "Cursor In Non-selected Windows" |
| 152 | :set (lambda (symbol value) | 153 | :set (lambda (symbol value) |
| 153 | (set-default symbol value) | 154 | (set-default symbol value) |