From unknown Sun Jun 15 08:31:38 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#45913 <45913@debbugs.gnu.org> To: bug#45913 <45913@debbugs.gnu.org> Subject: Status: 28.0.50; Cursor doesn't blink after `make-frame-on-display` Reply-To: bug#45913 <45913@debbugs.gnu.org> Date: Sun, 15 Jun 2025 15:31:38 +0000 retitle 45913 28.0.50; Cursor doesn't blink after `make-frame-on-display` reassign 45913 emacs submitter 45913 Stefan Monnier severity 45913 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 15 23:45:10 2021 Received: (at submit) by debbugs.gnu.org; 16 Jan 2021 04:45:10 +0000 Received: from localhost ([127.0.0.1]:42238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l0dSY-0002nQ-D3 for submit@debbugs.gnu.org; Fri, 15 Jan 2021 23:45:10 -0500 Received: from lists.gnu.org ([209.51.188.17]:46588) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l0dSV-0002nE-8G for submit@debbugs.gnu.org; Fri, 15 Jan 2021 23:45:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36720) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0dSU-0001YE-PW for bug-gnu-emacs@gnu.org; Fri, 15 Jan 2021 23:45:07 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:47812) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0dSS-0005gc-JO for bug-gnu-emacs@gnu.org; Fri, 15 Jan 2021 23:45:06 -0500 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 183318079B for ; Fri, 15 Jan 2021 23:45:03 -0500 (EST) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 2B7368063C for ; Fri, 15 Jan 2021 23:45:01 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1610772301; bh=iEV/NagAu7zJL7o1psVL05sI3yiaA+L18UVuGZaQ2R8=; h=From:To:Subject:Date:From; b=OUE+fAZMndspzSlRcfzlH7MzwmkeUVRAiYfCs4QHZYzG+pVjAOh/PHRSBHbwsV6EK rzhbpLiKGx/Zns11SohniJTCCvC5GNk1B+0yo5J7yOf/HFAr8TDuOs3ZoBKJSCYmYE ZcOuoFu2TxzXxS8eOAayxtICG4c6awRfxbu0TBemuJaIsR4oL6NhLlR8/oGy0cG+DD O7bOi0niC8ljGn6D2GUD0Ttics6Nqt5FKvFl149c3gezFExZfk/VXFRUp5HtyLG34A TxzkI5mlni0nzIenUg35ds8CmanXedDA0Z9Md5GYh7U9yzHvOmmZJm5UdDpSbvWJZz +zYq5lLCOYHPQ== Received: from alfajor (unknown [45.72.224.181]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id F15EE12067D for ; Fri, 15 Jan 2021 23:45:00 -0500 (EST) From: Stefan Monnier To: bug-gnu-emacs@gnu.org Subject: 28.0.50; Cursor doesn't blink after `make-frame-on-display` Date: Fri, 15 Jan 2021 23:44:49 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.073 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Package: Emacs Version: 28.0.50 If you do: emacs -Q -nw followed by M-x make-frame-on-display RET :1 RET The cursor doesn't blink in that new GUI frame, whereas if we do the reverse (start `emacs -Q` followed by the creation of a tty frame), the cursor does blink in the GUI frame. Stefan In GNU Emacs 28.0.50 (build 1, i686-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-01-08 built on alfajor Repository revision: 5f49898e79db25bd585e663cfcf30273e414ccd7 Repository branch: work Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: Debian GNU/Linux bullseye/sid Configured using: 'configure -C --enable-checking --enable-check-lisp-object-type --with-modules --with-cairo --with-tiff=ifavailable 'CFLAGS=-Wall -g3 -Og -Wno-pointer-sign' PKG_CONFIG_PATH=/home/monnier/lib/pkgconfig' From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 19 12:12:10 2021 Received: (at 45913-done) by debbugs.gnu.org; 19 Jan 2021 17:12:10 +0000 Received: from localhost ([127.0.0.1]:51460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1uY5-0001Cs-Ng for submit@debbugs.gnu.org; Tue, 19 Jan 2021 12:12:10 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:25215) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1uY1-0001C7-Qr; Tue, 19 Jan 2021 12:12:07 -0500 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 11A80809A7; Tue, 19 Jan 2021 12:12:00 -0500 (EST) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 5353D805F4; Tue, 19 Jan 2021 12:11:58 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1611076318; bh=DWwzP8btQWt0C8JZSXZYfbeymIF19gh40k5BkTjxvRQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=o/SDHF8iQac1yqS895ibLr+JH756Wp0BCMA3UPpCsUfVWWfOAiBDOBTzPVWpk4rIv RkoWdmBnxO5EkMYHHQWZLyDIleHUEcWMSJOLXkVe7WT/bVv4jRG96nmbpqfty8zZku +xjX9fXyterFIsWPTD4ojnrnjJ3GOLuXnRTw+Sv1HBYnrQ29xTBpN/+/Cc1EcXq3Lt YcWHhQU7wFaMGOlz2+IdVfCW1U/yzQjspwl88xBZRlbIGP6cKuZMf+iDScaD58Ghso SPqL/msGOpsY8J8WWqEjRAKXI9Jx02DWbeKVoPQBeGaZIHF4FWqf9z8WVVdXGgE9Y3 1CKj1VvRS3s7g== Received: from alfajor (unknown [45.72.224.181]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 0E344120177; Tue, 19 Jan 2021 12:11:58 -0500 (EST) From: Stefan Monnier To: Eli Zaretskii Subject: Re: bug#45857: 28.0.50; Not possible to set package-user-dir in early-init.el Message-ID: References: <83o8hrbbv6.fsf@gnu.org> <83h7njb6a5.fsf@gnu.org> <835z3ybpsj.fsf@gnu.org> <83k0se9hw2.fsf@gnu.org> Date: Tue, 19 Jan 2021 12:11:57 -0500 In-Reply-To: (Stefan Monnier's message of "Fri, 15 Jan 2021 23:52:29 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.071 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45913-done Cc: ola.x.nilsson@axis.com, 45913-done@debbugs.gnu.org, 45857-done@debbugs.gnu.org, 30994-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Maybe some time in the future this need will re-appear at which point we > may want to introduce some fancier system to control which var is > initialized when, but I think for now the patch below is > a better solution. Pushed, Stefan > > Stefan > > > 2021-01-15 Stefan Monnier > > * lisp/startup.el: Fix bug#45857, bug#30994, and bug#45913. > > (command-line): Don't re-evaluate the `custom-delayed-init-variables` > a second time after reading the `early-init.el` file. > (x-apply-session-resources): Set `blink-cursor-mode` rather than > `no-blinking-cursor`. > > * lisp/frame.el (blink-cursor-start): Turn `blink-cursor-mode` off > if `blink-cursor-mode` was set to nil. > (blink-cursor-mode): Default to it being enabled regardless of > `window-system`. > > > diff --git a/lisp/frame.el b/lisp/frame.el > index e2d7f21a49..06aab269dd 100644 > --- a/lisp/frame.el > +++ b/lisp/frame.el > @@ -2552,13 +2552,15 @@ blink-cursor-start > This starts the timer `blink-cursor-timer', which makes the cursor blink > if appropriate. It also arranges to cancel that timer when the next > command starts, by installing a pre-command hook." > - (when (null blink-cursor-timer) > + (cond > + ((null blink-cursor-mode) (blink-cursor-mode -1)) > + ((null blink-cursor-timer) > ;; Set up the timer first, so that if this signals an error, > ;; blink-cursor-end is not added to pre-command-hook. > (setq blink-cursor-blinks-done 1) > (blink-cursor--start-timer) > (add-hook 'pre-command-hook #'blink-cursor-end) > - (internal-show-cursor nil nil))) > + (internal-show-cursor nil nil)))) > > (defun blink-cursor-timer-function () > "Timer function of timer `blink-cursor-timer'." > @@ -2637,9 +2639,8 @@ blink-cursor-mode > terminals, cursor blinking is controlled by the terminal." > :init-value (not (or noninteractive > no-blinking-cursor > - (eq system-type 'ms-dos) > - (not (display-blink-cursor-p)))) > - :initialize 'custom-initialize-delay > + (eq system-type 'ms-dos))) > + :initialize #'custom-initialize-delay > :group 'cursor > :global t > (blink-cursor-suspend) > diff --git a/lisp/startup.el b/lisp/startup.el > index 552802a38d..7011fbf458 100644 > --- a/lisp/startup.el > +++ b/lisp/startup.el > @@ -1172,6 +1172,7 @@ command-line > ;; are dependencies between them. > (nreverse custom-delayed-init-variables)) > (mapc #'custom-reevaluate-setting custom-delayed-init-variables) > + (setq custom-delayed-init-variables nil) > > ;; Warn for invalid user name. > (when init-file-user > @@ -1301,12 +1302,6 @@ command-line > (startup--setup-quote-display) > (setq internal--text-quoting-flag t)) > > - ;; Re-evaluate again the predefined variables whose initial value > - ;; depends on the runtime context, in case some of them depend on > - ;; the window-system features. Example: blink-cursor-mode. > - (mapc #'custom-reevaluate-setting custom-delayed-init-variables) > - (setq custom-delayed-init-variables nil) > - > (normal-erase-is-backspace-setup-frame) > > ;; Register default TTY colors for the case the terminal hasn't a > @@ -1487,13 +1482,13 @@ x-apply-session-resources > opens a graphical frame. > > This can set the values of `menu-bar-mode', `tool-bar-mode', > -`tab-bar-mode', and `no-blinking-cursor', as well as the `cursor' face. > +`tab-bar-mode', and `blink-cursor-mode', as well as the `cursor' face. > Changed settings will be marked as \"CHANGED outside of Customize\"." > (let ((no-vals '("no" "off" "false" "0")) > (settings '(("menuBar" "MenuBar" menu-bar-mode nil) > ("toolBar" "ToolBar" tool-bar-mode nil) > ("scrollBar" "ScrollBar" scroll-bar-mode nil) > - ("cursorBlink" "CursorBlink" no-blinking-cursor t)))) > + ("cursorBlink" "CursorBlink" blink-cursor-mode nil)))) > (dolist (x settings) > (if (member (x-get-resource (nth 0 x) (nth 1 x)) no-vals) > (set (nth 2 x) (nth 3 x))))) From unknown Sun Jun 15 08:31:38 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 17 Feb 2021 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator