From unknown Fri Jun 20 18:24:32 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#29198 <29198@debbugs.gnu.org> To: bug#29198 <29198@debbugs.gnu.org> Subject: Status: Cursor fringe arrow indicator not updating. Reply-To: bug#29198 <29198@debbugs.gnu.org> Date: Sat, 21 Jun 2025 01:24:32 +0000 retitle 29198 Cursor fringe arrow indicator not updating. reassign 29198 emacs submitter 29198 Keith David Bershatsky severity 29198 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 07 14:58:08 2017 Received: (at submit) by debbugs.gnu.org; 7 Nov 2017 19:58:08 +0000 Received: from localhost ([127.0.0.1]:57052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCA0d-0006fS-Uq for submit@debbugs.gnu.org; Tue, 07 Nov 2017 14:58:08 -0500 Received: from eggs.gnu.org ([208.118.235.92]:57949) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCA0b-0006ey-P5 for submit@debbugs.gnu.org; Tue, 07 Nov 2017 14:58:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCA0V-0007QW-OH for submit@debbugs.gnu.org; Tue, 07 Nov 2017 14:58:00 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:58408) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eCA0V-0007QO-KV for submit@debbugs.gnu.org; Tue, 07 Nov 2017 14:57:59 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCA0U-0007dm-De for bug-gnu-emacs@gnu.org; Tue, 07 Nov 2017 14:57:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCA0R-0007Ny-2R for bug-gnu-emacs@gnu.org; Tue, 07 Nov 2017 14:57:58 -0500 Received: from gateway22.websitewelcome.com ([192.185.46.224]:15029) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eCA0Q-0007NJ-Qs for bug-gnu-emacs@gnu.org; Tue, 07 Nov 2017 14:57:54 -0500 Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway22.websitewelcome.com (Postfix) with ESMTP id BD3A5C029 for ; Tue, 7 Nov 2017 13:57:52 -0600 (CST) Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id CA0MeUVLGc72gCA0MeRofx; Tue, 07 Nov 2017 13:57:52 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:To:From:Message-ID:Date: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=JPQMd5URJP8nN7TZahOEiPQFZjuoFr357aQKiQ7eYZ4=; b=NIg4JLZ5cApdr/TTacAluYhJ9F OyXX63bjMq7SCEk7eip1VqHL8GurMsNnblecluvsWJpJ9lC4lKjQNV78P1EEdlTagyCmmET3UH3QT Ud8RpEIGUAqZ6o+MtUSD7y8l2B8l2TmzU7ujy/5hzdNYdDgusH0p1B2flldHC1wpNc02NQsX24wt+ MW2pJP+PK9hEDSG9jgsDiFtFsFRwrtGWFaSaeGn6ZtRVMndgkiAWmRC/tZvgaELqnQ7OhDEwoZwke u2O0+JSvVi7SjdcR9fptZU+payPzPpr2BWU46qQdWQegCIi06CkB6UcPOYRvpVya5fyhioNqvBpLi b3k5QV7A==; Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:50483 helo=server.private) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1eCA0M-000oZd-9j for bug-gnu-emacs@gnu.org; Tue, 07 Nov 2017 13:57:50 -0600 Date: Tue, 07 Nov 2017 11:57:49 -0800 Message-ID: From: Keith David Bershatsky To: Emacs Bug Reports Subject: Cursor fringe arrow indicator not updating. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3053.hostgator.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-BWhitelist: no X-Source-IP: 45.48.239.195 X-Source-L: No X-Exim-ID: 1eCA0M-000oZd-9j X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.private) [45.48.239.195]:50483 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) 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: -5.0 (-----) The following code works fine with no user configuration in Emacs 25.3. However, it does not work well with the current version of the master branch. The overlay arrow indicator is not updating as the user moves up or down in the buffer with the keyboard arrow keys. Step 1: Open an Emacs built from the current master branch. Step 2: Got to the scratch buffer and evaluate the code below. Step 3: Maneuver up and down with the arrow keys navigating the code below. The fringe bitmap indicator should track the vertical cursor position, but it does not work. (defface +-left-fringe-cursor-face '((t (:foreground "firebrick"))) "Face for `+-left-fringe-cursor-face'." :group '+-mode) (defun set-fringe-cursor () "Doc-string" (if (not (and (eobp) (bolp))) (setq +-left-fringe-overlay-position (copy-marker (line-beginning-position))) (setq +-left-fringe-overlay-position nil))) (define-fringe-bitmap '+-cursor-left-fringe-bitmap [128 192 96 48 24 48 96 192 128] 9 8 'center) (set-fringe-bitmap-face '+-cursor-left-fringe-bitmap '+-left-fringe-cursor-face) ;;; `overlay-arrow-bitmap' is a special SYMBOL defined in xdisp.c. (defvar +-left-fringe-overlay-position nil "Doc-string.") (make-variable-buffer-local '+-left-fringe-overlay-position) (add-to-list 'overlay-arrow-variable-list '+-left-fringe-overlay-position) (put '+-left-fringe-overlay-position 'overlay-arrow-bitmap '+-cursor-left-fringe-bitmap) (add-hook 'post-command-hook 'set-fringe-cursor 'append 'local) From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 07 15:37:44 2017 Received: (at 29198) by debbugs.gnu.org; 7 Nov 2017 20:37:44 +0000 Received: from localhost ([127.0.0.1]:57090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCAcy-0007cy-Gg for submit@debbugs.gnu.org; Tue, 07 Nov 2017 15:37:44 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39722) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCAcx-0007cl-FX for 29198@debbugs.gnu.org; Tue, 07 Nov 2017 15:37:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCAco-0006PZ-CC for 29198@debbugs.gnu.org; Tue, 07 Nov 2017 15:37:38 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58301) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCAco-0006PV-8L; Tue, 07 Nov 2017 15:37:34 -0500 Received: from [176.228.60.248] (port=1464 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eCAcn-0006V2-Lz; Tue, 07 Nov 2017 15:37:34 -0500 Date: Tue, 07 Nov 2017 22:37:43 +0200 Message-Id: <837ev1su3s.fsf@gnu.org> From: Eli Zaretskii To: Keith David Bershatsky In-reply-to: (message from Keith David Bershatsky on Tue, 07 Nov 2017 11:57:49 -0800) Subject: Re: bug#29198: Cursor fringe arrow indicator not updating. References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 29198 Cc: 29198@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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Tue, 07 Nov 2017 11:57:49 -0800 > From: Keith David Bershatsky > > The following code works fine with no user configuration in Emacs 25.3. However, it does not work well with the current version of the master branch. The overlay arrow indicator is not updating as the user moves up or down in the buffer with the keyboard arrow keys. > > Step 1: Open an Emacs built from the current master branch. > > Step 2: Got to the scratch buffer and evaluate the code below. > > Step 3: Maneuver up and down with the arrow keys navigating the code below. The fringe bitmap indicator should track the vertical cursor position, but it does not work. Does it update if you type "M-x"? If it does, you aren't triggering a thorough enough redisplay. From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 07 15:48:39 2017 Received: (at 29198) by debbugs.gnu.org; 7 Nov 2017 20:48:39 +0000 Received: from localhost ([127.0.0.1]:57096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCAnX-0007sY-IE for submit@debbugs.gnu.org; Tue, 07 Nov 2017 15:48:39 -0500 Received: from gateway33.websitewelcome.com ([192.185.146.87]:14695) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCAnW-0007sO-7f for 29198@debbugs.gnu.org; Tue, 07 Nov 2017 15:48:38 -0500 Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway33.websitewelcome.com (Postfix) with ESMTP id 8C21E22D0FA for <29198@debbugs.gnu.org>; Tue, 7 Nov 2017 14:48:36 -0600 (CST) Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id CAnUeHvc4RtUXCAnUeSxWS; Tue, 07 Nov 2017 14:48:36 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:Cc:To:From:Message-ID:Date: Sender:Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=MjOrVdnAzinahKr+n3l3GigHoyg7zckH2YljHOHYJe8=; b=YMH8tycg4o9sqh3I/9Uo+cwRk3 8Th5ef1XQoqLOGyAsapBTttiGsak9e+736LWonbYPQpKlHtjLkEdPigTsxzWxHYyJDnjTwdkimqwy T6jRkJAtLr5+PFO8eZiuGjqbCWtro8OZE5vMnkVh8UDXQp2UO9bX0lgCqBR1jQeHXxdvXqkaUd9CQ dDaA4DrtfOiLrxh7K+O/qxmaoccVI4JVPd0Wwf2jByxoGMO/6O7Zaa0RNL28faIqZdTCWKkMrK+1B K9cFlHX5LyVULeyU4B2iCVgkYeVCr32A606qjkgn8SHZXUTH+mEVT5bImL35I0NYsMU5djLMCioX4 wzZy8nsA==; Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:50837 helo=server.private) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1eCAnT-001XE7-Oz; Tue, 07 Nov 2017 14:48:35 -0600 Date: Tue, 07 Nov 2017 12:48:35 -0800 Message-ID: From: Keith David Bershatsky To: Eli Zaretskii Subject: Re: bug#29198: Cursor fringe arrow indicator not updating. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3053.hostgator.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-BWhitelist: no X-Source-IP: 45.48.239.195 X-Source-L: No X-Exim-ID: 1eCAnT-001XE7-Oz X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.private) [45.48.239.195]:50837 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29198 Cc: 29198@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: 0.0 (/) Yes, "M-x" triggers an immediate removal of the old indicator and places the new indicator at the current line position. I would recommend adding an exception to the redisplay optimization to check for a change of placement to the built-in overlay fringe arrow indicator. Since the fringe arrow indicator has been an existing feature of Emacs for quite some time (built-in to xdisp.c), it should (in my opinion) work out of the box without the need for the user to force a redisplay with additional Lisp code. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DATE: [11-07-2017 12:37:43] <07 Nov 2017 22:37:43 +0200> FROM: Eli Zaretskii > > * * * > > Does it update if you type "M-x"? If it does, you aren't triggering a > thorough enough redisplay. From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 07 22:39:14 2017 Received: (at 29198) by debbugs.gnu.org; 8 Nov 2017 03:39:14 +0000 Received: from localhost ([127.0.0.1]:57359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCHCs-0003Zz-IU for submit@debbugs.gnu.org; Tue, 07 Nov 2017 22:39:14 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50723) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCHCr-0003Zm-9Z for 29198@debbugs.gnu.org; Tue, 07 Nov 2017 22:39:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCHCi-0004Vr-4a for 29198@debbugs.gnu.org; Tue, 07 Nov 2017 22:39:08 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCHCi-0004Vn-1D; Tue, 07 Nov 2017 22:39:04 -0500 Received: from [176.228.60.248] (port=1750 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eCHCh-00013G-4X; Tue, 07 Nov 2017 22:39:03 -0500 Date: Wed, 08 Nov 2017 05:39:14 +0200 Message-Id: <8360alsal9.fsf@gnu.org> From: Eli Zaretskii To: Keith David Bershatsky In-reply-to: (message from Keith David Bershatsky on Tue, 07 Nov 2017 12:48:35 -0800) Subject: Re: bug#29198: Cursor fringe arrow indicator not updating. References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 29198 Cc: 29198@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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Tue, 07 Nov 2017 12:48:35 -0800 > From: Keith David Bershatsky > Cc: 29198@debbugs.gnu.org > > Yes, "M-x" triggers an immediate removal of the old indicator and places the new indicator at the current line position. > > I would recommend adding an exception to the redisplay optimization to check for a change of placement to the built-in overlay fringe arrow indicator. Since the fringe arrow indicator has been an existing feature of Emacs for quite some time (built-in to xdisp.c), it should (in my opinion) work out of the box without the need for the user to force a redisplay with additional Lisp code. The other features which display the fringe arrow work correctly, so evidently there is a way of moving it from Lisp. From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 08 23:26:26 2017 Received: (at 29198) by debbugs.gnu.org; 9 Nov 2017 04:26:26 +0000 Received: from localhost ([127.0.0.1]:59278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCeQ4-0003TT-MN for submit@debbugs.gnu.org; Wed, 08 Nov 2017 23:26:26 -0500 Received: from gateway34.websitewelcome.com ([192.185.150.107]:43254) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCeQ1-0003TE-UI for 29198@debbugs.gnu.org; Wed, 08 Nov 2017 23:26:22 -0500 Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway34.websitewelcome.com (Postfix) with ESMTP id 22AA53DA93 for <29198@debbugs.gnu.org>; Wed, 8 Nov 2017 22:26:18 -0600 (CST) Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id CePxeo8FBRtUXCePxeyvok; Wed, 08 Nov 2017 22:26:18 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:Cc:To:From:Message-ID:Date: Sender:Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=yPII1GnbFg6CrY1Tm0k5dwCs3HzMrd+bowiVnxFsp1E=; b=CYs/LIr6KD153X8TrSe4QVHoW0 oe8xv05bPNCfKtP2Ly1VsbUA4710KIjVOtl7yCcHCW33+Ek1UDpS1PKApXfu8fBh1DIkr8xUjo1JS QKyAS54DkeEUbNAWM85KTiawdVMjxqYQIEnGvKav6C+G21ZOQ5lxjGKp9h4fRQZEljfkH7e0iR9+M H25lqziUWczQFQUnxl65AGbd86JLUuYcKH30rLdyWIH+7PLzPROX6FHFfcg7IRn0d2wo8hzk5x37X vsUzDLLqIM8Qj6Jh6CGrBXwAaeHyjN8yXZ9xNNQTzx0mz8LLzDd7PN/7kImEMd09xm82m8AvXp9WC s9mHh6Ew==; Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:55628 helo=server.private) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1eCePx-0020ga-3G; Wed, 08 Nov 2017 22:26:17 -0600 Date: Wed, 08 Nov 2017 20:26:16 -0800 Message-ID: From: Keith David Bershatsky To: Eli Zaretskii Subject: Re: bug#29198: Cursor fringe arrow indicator not updating. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3053.hostgator.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-BWhitelist: no X-Source-IP: 45.48.239.195 X-Source-L: No X-Exim-ID: 1eCePx-0020ga-3G X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.private) [45.48.239.195]:55628 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-Spam-Score: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This feature was broken on February 23, 2017 with: dee8674414fae2323fd9cbf05aa762e72fa575e5 I manually reversed the optimization that was applied with the above-mentioned patch, and built a new Emacs 26 downloaded today and am able to verify that this corrects the problem. I.e., manually reversing *a575e5 as applied to xdisp.c makes everything work properly. [...] Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [192.185.150.107 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 1.1 TRACKER_ID BODY: Incorporates a tracking ID number 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-Debbugs-Envelope-To: 29198 Cc: 29198@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: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This feature was broken on February 23, 2017 with: dee8674414fae2323fd9cbf05aa762e72fa575e5 I manually reversed the optimization that was applied with the above-mentioned patch, and built a new Emacs 26 downloaded today and am able to verify that this corrects the problem. I.e., manually reversing *a575e5 as applied to xdisp.c makes everything work properly. [...] Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [192.185.150.107 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 1.1 TRACKER_ID BODY: Incorporates a tracking ID number 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid This feature was broken on February 23, 2017 with: dee8674414fae2323fd9cbf05aa762e72fa575e5 I manually reversed the optimization that was applied with the above-mentioned patch, and built a new Emacs 26 downloaded today and am able to verify that this corrects the problem. I.e., manually reversing *a575e5 as applied to xdisp.c makes everything work properly. I used the lo-tech approach of trying out various builds until I found the date where the feature stopped working properly. Keith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DATE: [11-07-2017 19:39:14] <08 Nov 2017 05:39:14 +0200> FROM: Eli Zaretskii > > * * * > > The other features which display the fringe arrow work correctly, so > evidently there is a way of moving it from Lisp. From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 08 23:43:52 2017 Received: (at 29198) by debbugs.gnu.org; 9 Nov 2017 04:43:52 +0000 Received: from localhost ([127.0.0.1]:59289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCegx-0003vQ-W0 for submit@debbugs.gnu.org; Wed, 08 Nov 2017 23:43:52 -0500 Received: from gateway20.websitewelcome.com ([192.185.52.45]:39985) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCegw-0003vC-Fx for 29198@debbugs.gnu.org; Wed, 08 Nov 2017 23:43:50 -0500 Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway20.websitewelcome.com (Postfix) with ESMTP id 06667400C6473 for <29198@debbugs.gnu.org>; Wed, 8 Nov 2017 22:43:49 -0600 (CST) Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id Cegue4FHXtuxmCegueQupi; Wed, 08 Nov 2017 22:43:49 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:Cc:To:From:Message-ID:Date: Sender:Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=PUMkfbvOHbPG3V2foEee2Aa8mV66R/jTt9cP3E1YnuE=; b=Hm80s1eGxMhFtV5/88BWYgcA9O kw7kmwauH7TAuGIeCt5PouY8bhiXPelP+CbG/OuElWX8jIDi3lEb1aRZeVhgbqNEFjlMOwrOAncPU vb7qo0xFQkIsCx1nZFo+TL+uqybzJ8V8xq0J3s2xIKKbsX0ScuUVBxxO4NW3TuLKU8EZcLHVf72rE iYIz+c1fF5Bt720DyHuOmed9TXqrk/4KAuqdqKgMoRWg7IY4XvcPf8Cm2yjAwTel5NGLWwTmMtzmV Y7OVv/keaKO8xEaeurBNJKstK/zzaQloxz8AHdJzqOVPETjT9yyUDK1cMz9t2DnHSfb2HUfasQknO OgVFC/FA==; Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:55897 helo=server.private) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1eCegu-002Ltj-7M; Wed, 08 Nov 2017 22:43:48 -0600 Date: Wed, 08 Nov 2017 20:43:47 -0800 Message-ID: From: Keith David Bershatsky To: Eli Zaretskii Subject: Re: bug#29198: Cursor fringe arrow indicator not updating. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3053.hostgator.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-BWhitelist: no X-Source-IP: 45.48.239.195 X-Source-L: No X-Exim-ID: 1eCegu-002Ltj-7M X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.private) [45.48.239.195]:55897 X-Source-Auth: lawlist X-Email-Count: 3 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 29198 Cc: 29198@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: 0.5 (/) I thought it may also be helpful for you to be aware that the slow-down that I reported on reddit with this feature was experienced with a build of Emacs _prior_ to February 23, 2017, when the following patch was applied dee8674414fae2323fd9cbf05aa762e72fa575e5. [I am doing my Emacs C tinkering/development of new features and my daily workflow with an older version of Emacs master branch, that has certain patches applied such as line numbers and horizontal scrolling of the current line.] Here is the relevent reddit thread from a few weeks ago: https://www.reddit.com/r/emacs/comments/76a5nu/how_to_speed_up_fringe_overlay_cursor_arrow/dohj50i/?st=j9rzd34c&sh=f19a1d88 I did some profiling (in a version of Emacs prior to February 23, 2017) and can see that there is increased garbage collection, perhaps due to the placement of a marker, but I'm just guessing as to the cause. It may have also been due to a full redisplay or something of that nature. Keith From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 09 11:29:11 2017 Received: (at 29198-done) by debbugs.gnu.org; 9 Nov 2017 16:29:11 +0000 Received: from localhost ([127.0.0.1]:60617 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCphW-0006jQ-S9 for submit@debbugs.gnu.org; Thu, 09 Nov 2017 11:29:11 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCphV-0006jE-9g for 29198-done@debbugs.gnu.org; Thu, 09 Nov 2017 11:29:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCphN-0007T7-1g for 29198-done@debbugs.gnu.org; Thu, 09 Nov 2017 11:29:04 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38956) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCphM-0007Sz-Tu; Thu, 09 Nov 2017 11:29:00 -0500 Received: from [176.228.60.248] (port=2967 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eCphM-0000NH-9S; Thu, 09 Nov 2017 11:29:00 -0500 Date: Thu, 09 Nov 2017 18:29:14 +0200 Message-Id: <83po8rquud.fsf@gnu.org> From: Eli Zaretskii To: Keith David Bershatsky In-reply-to: (message from Keith David Bershatsky on Wed, 08 Nov 2017 20:26:16 -0800) Subject: Re: bug#29198: Cursor fringe arrow indicator not updating. References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 29198-done Cc: 29198-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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Wed, 08 Nov 2017 20:26:16 -0800 > From: Keith David Bershatsky > Cc: 29198@debbugs.gnu.org > > This feature was broken on February 23, 2017 with: > > dee8674414fae2323fd9cbf05aa762e72fa575e5 > > I manually reversed the optimization that was applied with the above-mentioned patch, and built a new Emacs 26 downloaded today and am able to verify that this corrects the problem. I.e., manually reversing *a575e5 as applied to xdisp.c makes everything work properly. Thanks. Meanwhile I also arrived at the conclusion that this is a bug, because the same recipe does work on TTY frames. Of course, reverting the above changes is not the solution, because as you yourself noticed, it caused redisplay to be significantly snappier. The problem with those changes is that they opened the path for the code to use redisplay optimizations when overlay-arrows are displayed, which (the optimizations) are incompatible with overlay-arrow display. So the correct solution would be to disable those optimizations when overlay-arrows are displayed in the buffer. Which I just did. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 09 23:19:15 2017 Received: (at 29198) by debbugs.gnu.org; 10 Nov 2017 04:19:15 +0000 Received: from localhost ([127.0.0.1]:33035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eD0mh-0002pQ-FR for submit@debbugs.gnu.org; Thu, 09 Nov 2017 23:19:15 -0500 Received: from gateway31.websitewelcome.com ([192.185.143.35]:38908) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eD0me-0002pH-I1 for 29198@debbugs.gnu.org; Thu, 09 Nov 2017 23:19:14 -0500 Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway31.websitewelcome.com (Postfix) with ESMTP id 684E01C20E6 for <29198@debbugs.gnu.org>; Thu, 9 Nov 2017 22:19:10 -0600 (CST) Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id D0mbeDRjbRtUXD0mceO4Vp; Thu, 09 Nov 2017 22:19:10 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:Cc:To:From:Message-ID:Date: Sender:Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=yYxnJoIy5NB2sJzcLPi2eUnwZIm8TXQnQKpmsgrOcFM=; b=aGn2NjV7LvyVXH1OQbR4C2dewo NHFky22i1k1MlsepQj/ogm5Uu62Th4jF43uWxqya6i9P9Qo2oYmSx9jt0G+Z+re8iLnMafldo5EJK jZslXZ6Lfro79R9b/4D2Haf7zqs2iugEHVjWBwOz0YRdcSE0cQDN3+eFOwxvq2GJ/vbVqrzWa8Xxl pRqcFP7xaKZpH+OiWJBZ7HkC9QozwxtA3rFhYxRU0XnyzncWNB4GODiX15FldmpV89gOnqf03vDzP /mLTgVVAVLfdKbYjwrOktnOyAY8EdFAi9WAcaHXdoqpBX2Altg15R7byWklo3N+WKljo7VuERzWPK bTN4ATMg==; Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:56315 helo=server.private) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1eD0mb-000Dlt-Hq; Thu, 09 Nov 2017 22:19:09 -0600 Date: Thu, 09 Nov 2017 20:19:08 -0800 Message-ID: From: Keith David Bershatsky To: Eli Zaretskii Subject: Re: bug#29198: Cursor fringe arrow indicator not updating. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3053.hostgator.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-BWhitelist: no X-Source-IP: 45.48.239.195 X-Source-L: No X-Exim-ID: 1eD0mb-000Dlt-Hq X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.private) [45.48.239.195]:56315 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29198 Cc: 29198@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: 0.0 (/) Thank you, Eli. I have tested the patch with a current version of Emacs 26 branch and am able to verify that this feature is working well, and the prior issue with the lag has been rectified. Great job! Keith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DATE: [11-09-2017 08:29:14] <09 Nov 2017 18:29:14 +0200> FROM: Eli Zaretskii > > * * * > > Thanks. Meanwhile I also arrived at the conclusion that this is a > bug, because the same recipe does work on TTY frames. > > Of course, reverting the above changes is not the solution, because as > you yourself noticed, it caused redisplay to be significantly > snappier. The problem with those changes is that they opened the path > for the code to use redisplay optimizations when overlay-arrows are > displayed, which (the optimizations) are incompatible with > overlay-arrow display. So the correct solution would be to disable > those optimizations when overlay-arrows are displayed in the buffer. > Which I just did. > > Thanks. From unknown Fri Jun 20 18:24:32 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 08 Dec 2017 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