unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Blink Cursor mode is off by default
@ 2018-06-11 16:48 Eli Zaretskii
  2018-06-11 17:14 ` Stefan Monnier
  2018-06-11 20:43 ` Michael Heerdegen
  0 siblings, 2 replies; 24+ messages in thread
From: Eli Zaretskii @ 2018-06-11 16:48 UTC (permalink / raw)
  To: emacs-devel; +Cc: Radon Rosborough

Commit 2db57579b08ac99c464b6d3698648b3167fc5d55 caused what the
Subject says: blink-cursor-mode is now off by default on GUI frames.
(I see this on Windows, but I cannot imagine it is any different on
other GUI platforms.)  (Judging by lack of complaints, perhaps we
should just turn that mode off by default ;-)

It happened because that commit moved the call to
custom-reevaluate-setting to an earlier place during startup, and the
initial window-system is not yet set up at that place.  So the
condition in blink-cursor-mode evaluates to nil, and the mode is
disabled.

I can see several ways out of this:

  . Move the call to custom-reevaluate-setting back where it was, and
    instead call custom-reevaluate-setting in that earlier place only
    for Info-default-directory-list, which was the original reason why
    the call was moved;
  . Add a call to custom-reevaluate-setting for blink-cursor-mode
    where the window-system is already set up;
  . Call custom-reevaluate-setting for all the delayed-init variables
    twice: once where we do that now, and again where we did that
    before the above commit;
  . Introduce yet another variable similar to
    custom-delayed-init-variables, but separate from it, and put on
    it all the delayed-init variables that need the window-system to
    be set up, leaving all the rest in custom-delayed-init-variables.

I tend to favor the 3rd alternative, as it is relatively easy and at
the same time reliable.  The first two mean a significant maintenance
burden to consider each new variable whether it needs an additional
evaluation after window-system setup; the last alternative is maybe
too complex.

Comments?



^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2018-06-16 17:33 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-11 16:48 Blink Cursor mode is off by default Eli Zaretskii
2018-06-11 17:14 ` Stefan Monnier
2018-06-11 17:32   ` Eli Zaretskii
2018-06-11 22:13     ` Stefan Monnier
2018-06-11 23:19       ` dancol
2018-06-12  2:31         ` Eli Zaretskii
2018-06-12  2:33           ` Daniel Colascione
2018-06-12  4:02             ` Eli Zaretskii
2018-06-12  4:12               ` dancol
2018-06-12 15:20                 ` Eli Zaretskii
2018-06-12 15:52                   ` Stefan Monnier
2018-06-12 16:40                     ` Eli Zaretskii
2018-06-12 16:51                       ` dancol
2018-06-15 14:14                 ` Yes, please allow pre-configuration of first frame [was: Blink Cursor mode is off by default] N. Jackson
2018-06-15 14:31                   ` Eli Zaretskii
2018-06-15 21:34                   ` Stefan Monnier
2018-06-16 14:37                     ` Daniel Colascione
2018-06-16 17:20                       ` Stefan Monnier
2018-06-16 17:26                         ` Eli Zaretskii
2018-06-16 17:33                           ` Daniel Colascione
2018-06-12 15:24               ` Blink Cursor mode is off by default Stefan Monnier
2018-06-12  2:29       ` Eli Zaretskii
2018-06-11 20:43 ` Michael Heerdegen
2018-06-12  2:26   ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).