all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: dancol@dancol.org
Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: Blink Cursor mode is off by default
Date: Tue, 12 Jun 2018 18:20:12 +0300	[thread overview]
Message-ID: <83in6oowur.fsf@gnu.org> (raw)
In-Reply-To: <5659356aea4cdccd07e28e441c1ae98b.squirrel@dancol.org>

> Date: Mon, 11 Jun 2018 21:12:52 -0700
> From: dancol@dancol.org
> Cc: "Daniel Colascione" <dancol@dancol.org>,
>  monnier@iro.umontreal.ca,
>  emacs-devel@gnu.org
> 
> > I think we can use (get var 'standard-value) instead to detect
> > variables that were modified in early-init, and refrain from
> > reinitializing them the second time.
> 
> Does that work? In the case of (blink-cursor-mode -1), we just set
> blink-cursor-mode to nil --- but it starts nil anyway, so we can't tell
> the difference. The standard-value property doesn't help, I think.

You are right: sadly, this doesn't work, certainly not when the user
customization doesn't change the value that custom-reevaluate-setting
sets.  We have no infrastructure I could find that records anywhere
the fact that user customizations changed did something, and in the
specific case of a minor mode, custom-reevaluate-setting simply calls
the mode function, so it does exactly what user customizations do.

> > Clean, but unsafe, as important parts of startup has not yet
> > been done.  E.g., anything related to fonts or faces will probably
> > not work reliably at that point.
> 
> Works fine for me. We don't run early init _that_ early: it comes before
> packages and site files, but the basic machinery is up. All I want is the
> ability to configure the first frame before it appears, and only X
> resources and early-init provide this ability.

You are lucky, or maybe your customizations are sophisticated enough
to work around the problems.

Anyway, I consider the problem with failed initialization of cursor
blinking serious enough to be in need of fixing.  So I installed the
second re-evaluation of custom-delayed-init-variables, and also added
some blurb to the docs that advises against putting in the early init
file what doesn't have to be there.  I consider the problem with
clobbering user customizations in early-init.el a secondary one,
especially since we already do that with one or two variables anyway,
although it would be good to fix that, of course.



  reply	other threads:[~2018-06-12 15:20 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83in6oowur.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=dancol@dancol.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.