From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: dancol@dancol.org Newsgroups: gmane.emacs.devel Subject: Re: Blink Cursor mode is off by default Date: Mon, 11 Jun 2018 21:12:52 -0700 Message-ID: <5659356aea4cdccd07e28e441c1ae98b.squirrel@dancol.org> References: <838t7lqnf0.fsf@gnu.org> <83zi01p6th.fsf@gnu.org> <13a2189b89d06be494cbc21561713d5d.squirrel@dancol.org> <83o9ggpwfs.fsf@gnu.org> <98930BC3-F62C-4BFF-8B06-8CFB65E8D243@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1528776695 23466 195.159.176.226 (12 Jun 2018 04:11:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 12 Jun 2018 04:11:35 +0000 (UTC) User-Agent: SquirrelMail/1.4.23 [SVN] Cc: Daniel Colascione , monnier@iro.umontreal.ca, emacs-devel@gnu.org To: "Eli Zaretskii" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 12 06:11:30 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fSaeY-0005z4-6f for ged-emacs-devel@m.gmane.org; Tue, 12 Jun 2018 06:11:30 +0200 Original-Received: from localhost ([::1]:52621 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSagd-00058I-92 for ged-emacs-devel@m.gmane.org; Tue, 12 Jun 2018 00:13:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSafy-00057x-6A for emacs-devel@gnu.org; Tue, 12 Jun 2018 00:12:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSafx-0005wC-6N for emacs-devel@gnu.org; Tue, 12 Jun 2018 00:12:58 -0400 Original-Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:37094) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSafv-0005vN-5w; Tue, 12 Jun 2018 00:12:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:To:From:Subject:Date:References:In-Reply-To:Message-ID; bh=80YVe3zQRWlNlWFTIP6tpWjy5O3sBtab2IRMlILKJ1U=; b=cNbEoDG5k1ScckifXJHU+Py12DxR2yshi4SJ38ioX/jEGVG+Vg/SP4IrFrGVkHgbNhM1InjyL0LyKLB5pTu0VjgdZRWQCp6tQ+rWfgacE2mxeUGDVeL5otHXDb0D1Okw5WSBqsvHVED1rqnUD1i4Lx9yHFcb4hHuFW9YDUXLDj/d+w54ar3fxmMrC+hAifMpTCYXSTSc2FUHmYQlo1P2lvwIauRxZVLRS+jCjQPVyw1kQlt6jW02mRwqY/pfFFiH7edRQrjf85EOzoGvjhydM0d6abwo2WTly7E439V4LXPDsaRUwWm6qUW4ykwuUP8kFU6+A21ZHRh4hOyzLvBuHQ==; Original-Received: from localhost ([127.0.0.1] helo=dancol.org) by dancol.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fSafs-00013m-6d; Mon, 11 Jun 2018 21:12:52 -0700 Original-Received: from 127.0.0.1 (SquirrelMail authenticated user dancol) by dancol.org with HTTP; Mon, 11 Jun 2018 21:12:52 -0700 In-Reply-To: <98930BC3-F62C-4BFF-8B06-8CFB65E8D243@gnu.org> X-Priority: 3 (Normal) Importance: Normal X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2600:3c01::f03c:91ff:fedf:adf3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:226253 Archived-At: > On June 12, 2018 5:33:32 AM GMT+03:00, Daniel Colascione > wrote: >> On 06/11/2018 07:31 PM, Eli Zaretskii wrote: >> >> Date: Mon, 11 Jun 2018 16:19:42 -0700 >> >> From: dancol@dancol.org >> >> Cc: "Eli Zaretskii" , >> >> emacs-devel@gnu.org >> >> >> >>>> Well, yes, but they aren't supposed to do that in that file, >> right? >> >> >> >> What about temporarily setting a variable watcher on >> blink-cursor-mode so >> >> we can tell whether early init touched it? >> > >> > I think it's too gross. >> >> Why? We have a tool. Let's use it. > > I cannot explain it, but it sounds inelegant. > > 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. >> >>> Not sure: a valid choice now is to do all your customizations in >> >>> early-init.el and not use any .emacs.d/init.el at all. >> >> >> >> That's what I do now. >> > >> > I suggest you don't. This is not what early-init.el is for. >> >> Why not? Now I can have the entire configuration loaded before the >> first >> frame is created. It looks clean. > > 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.