From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: More about blink-cursor-mode
Date: Tue, 22 Feb 2005 08:52:29 -0500 [thread overview]
Message-ID: <877jl0909p.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <200502220124.j1M1OWK19942@raven.dms.auburn.edu> (Luc Teirlinck's message of "Mon, 21 Feb 2005 19:24:32 -0600 (CST)")
> which ensured that the value when evaluated before startup.el was
> loaded would be nil.
Any evidence that it matters?
Really, it shouldn't matter, so if you know of a place where it matters,
maybe we should fix it. The initial value is simply forcibly overridden in
startup.el, without paying *any* attention to the old value. At least
that's how it should work.
> In any case all this round-about hack seems completely unnecessary
> It will be necessary for other options that still need to be given a
> correct Custom standard expression and for which the noninteractive
> coincidence will not happen.
No, the same "blind override" should apply there as well.
> and if really the standard expression signals an error if it is
> evaluated too early, then we can just wrap it with a
> (condition-case nil ... (error nil)) or some such.
> One _definitely_ does not want to wrap a Custom standard expression in
> a condition-case.
Why not, exactly?
> Seems like a much better option than this nasty unexplained stuff
> we have now.
> The comment tried to explain it.
It did not explain why this particular workaround was used.
E.g. why (defvar cursor-blink-mode)? It seems 100% useless since it's only
a byte-compiler directive and only has the effect of declaring the variable
2 lines earlier, but since the variable is not *used* in those two lines, it
shouldn't matter. Why not wrap the expression in condition-case instead?
Or place `boundp' checks instead? That's what I mean by "lack of
explanation".
> The comment left after your change does not make a lot of sense any
> more.
> Maybe it is better to put the:
> (defvar blink-cursor-mode)
> (unless (default-boundp 'blink-cursor-mode)
> (setq-default blink-cursor-mode nil))
> with something like the original comment back in, to protect against
> future code changes, that might undo the current lucky coincidence.
Please *concretely* justify the need for such ugly code, before
considering re-installing it.
> If not, I believe that the comment in the patch below should be added.
If you want to add such a comment, it should start by explaining why it's
important that the initial value be nil rather than t or `slipper'.
Otherwise it makes no sense.
> The :group _definitely_ should be changed back to 'cursor, as the
> patch below does.
Fair enough ;-)
Stefan
next prev parent reply other threads:[~2005-02-22 13:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-20 1:55 More about blink-cursor-mode Luc Teirlinck
2005-02-20 21:38 ` Stefan
2005-02-21 3:27 ` Luc Teirlinck
2005-02-22 1:24 ` Luc Teirlinck
2005-02-22 13:52 ` Stefan Monnier [this message]
2005-02-23 2:53 ` Luc Teirlinck
2005-02-23 4:23 ` Stefan Monnier
2005-02-22 1:37 ` Luc Teirlinck
2005-02-22 13:54 ` Stefan Monnier
2005-02-22 8:42 ` Richard Stallman
2005-02-21 10:21 ` Richard Stallman
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=877jl0909p.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
/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.