aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Gramiak2019-04-03 14:03:42 -0600
committerAlexander Gramiak2019-04-06 22:43:59 -0600
commitc6ea522de62d6064d5be9dd1ddf69dceb6506780 (patch)
tree866cb37b5532610174fb8e1bade209184ce0c53b
parent8f6e4798459a881b0a1602a1a0e30f0b73d49d22 (diff)
downloademacs-c6ea522de62d6064d5be9dd1ddf69dceb6506780.tar.gz
emacs-c6ea522de62d6064d5be9dd1ddf69dceb6506780.zip
Define and use new alias display-blink-cursor-p
display-graphic-p is not used in this case because it may be possible in the future for terminals to allow control over cursor blinking. For details, see bug#35058. * lisp/frame.el (blink-cursor-mode): Use display-blink-cursor-p.
-rw-r--r--lisp/frame.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/frame.el b/lisp/frame.el
index acf6a46716a..cc8ca49b3b7 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -1905,6 +1905,7 @@ frame's display)."
1905 (fboundp 'image-mask-p) 1905 (fboundp 'image-mask-p)
1906 (fboundp 'image-size))) 1906 (fboundp 'image-size)))
1907 1907
1908(defalias 'display-blink-cursor-p 'display-graphic-p)
1908(defalias 'display-multi-frame-p 'display-graphic-p) 1909(defalias 'display-multi-frame-p 'display-graphic-p)
1909(defalias 'display-multi-font-p 'display-graphic-p) 1910(defalias 'display-multi-font-p 'display-graphic-p)
1910 1911
@@ -2545,7 +2546,7 @@ terminals, cursor blinking is controlled by the terminal."
2545 :init-value (not (or noninteractive 2546 :init-value (not (or noninteractive
2546 no-blinking-cursor 2547 no-blinking-cursor
2547 (eq system-type 'ms-dos) 2548 (eq system-type 'ms-dos)
2548 (not (memq window-system '(x w32 ns))))) 2549 (not (display-blink-cursor-p))))
2549 :initialize 'custom-initialize-delay 2550 :initialize 'custom-initialize-delay
2550 :group 'cursor 2551 :group 'cursor
2551 :global t 2552 :global t