unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#43835: 28.0.50; auto-hscroll-mode/current-line + show-paren-mode + gnus-summary-mode = bug
@ 2020-10-06 18:53 Stephen Berman
  2020-10-06 19:10 ` Eli Zaretskii
  0 siblings, 1 reply; 17+ messages in thread
From: Stephen Berman @ 2020-10-06 18:53 UTC (permalink / raw)
  To: 43835

[-- Attachment #1: Type: text/plain, Size: 3107 bytes --]

I have observed a quirk in auto hscrolling the current line under
specific conditions.  I have only seen it in gnus-summary-mode, but
there can reproduce it reliably with the following recipe:

0. Save the attached email to a file.
1. emacs -Q
2. Type `M-x gnus' and enter `y' at the prompt to continue.
3. Type `Gf' and at the prompt enter the saved email file and then RET.
4. You should now be in the Gnus group buffer showing a document group
   created from that file; press RET to enter the group.  You should now
   be in a Gnus summary buffer containing only one line listing the
   saved email with point on that line.
5. Type `M-x customize-option RET auto-hscroll-mode RET' and in the
   Custom buffer select `Scroll only the current line' from the Value
   Menu and `Set for current session' from the State menu.  Type `q' to
   return to the Gnus summary buffer.
6. As a sanity check, type `C-e', moving point to the end of the line,
   which contains the email Subject line ending with `(this is a
   test)'.  Notice that the line remains scrolled with point after the
   closing paren: (point) -> 119.  Type `C-a' to move point to the
   beginning of the line.
7. From the Options menu check the item `Highlight Matching Parentheses'.
8. Type `C-e' again.
=> You should see the line scroll left to show the end of the line and
   then immediately scroll back, but with point remaining at 119, so the
   cursor is not visible.
9. If you now uncheck `Highlight Matching Parentheses' in the Options
   menu, hscrolling works again as expected, as in step 6.

I can reproduce this problem in Emacs 26, 27 and master, but I have only
been able to reproduce it in Gnus summary buffers, and only on the last
line of the summary and only when this line is longer than window-width
(so that hscrolling can happen) and the line ends with a pair of paren
characters (brackets and braces also show the effect) and
show-paren-mode is enabled.  Sometimes I have seen the hscroll get
restored after a several seconds, but other times this does not happen
(though I haven't tried waiting for more than maybe 15-20 seconds).
Non-final lines in the summary buffer that end with paren characters do
not show the anomalous hscrolling.  When I copy such a line to another
buffer and change that buffer's major mode to gnus-summary-mode, I
cannot reproduce the problem.


In GNU Emacs 28.0.50 (build 28, x86_64-pc-linux-gnu, GTK+ Version 3.24.17, cairo version 1.17.3)
 of 2020-10-06 built on strobe-jhalfs
Repository revision: bcd09e9869a3f371024286d25743ebaf17f0be9d
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12008000
System Description: Linux From Scratch SVN-20200401

Configured using:
 'configure 'CFLAGS=-Og -g3' PKG_CONFIG_PATH=/opt/qt5/lib/pkgconfig'

Configured features:
XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY
INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS
GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD PDUMPER LCMS2

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix


[-- Attachment #2: test --]
[-- Type: application/octet-stream, Size: 9912 bytes --]

From larsi@gnus.org Thu Oct  1 23:27:14 2020
Return-Path: <larsi@gnus.org>
Delivered-To: unknown
Received: from pop.gmx.net (212.227.17.169:995) by strobe-jhalfs.local with
  POP3-SSL; 01 Oct 2020 21:27:14 -0000
Received: from quimby.gnus.org ([95.216.78.240]) by mx-ha.gmx.net (mxgmx101
 [212.227.17.5]) with ESMTPS (Nemesis) id 1M4Juj-1kON510b1l-000I6W for
 <stephen.berman@gmx.net>; Thu, 01 Oct 2020 23:26:42 +0200
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
	 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
	References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
	Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
	Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
	List-Subscribe:List-Post:List-Owner:List-Archive;
	bh=gv4ov3N0sPb/vqtZjxSD2wXj+xOEfXzqE3mGol5EVQQ=; b=eTHnRi+bEEtHLZIs5cJ+yy0X4m
	Y9l1ruJUUhelYYTjf7J6hWga2LnYEKZgH6Y/PIgn1Bw/2ZA9rxMngUZs57GGoG9e+psAgIWJE9QR+
	lQKxscS6ZQFHNM/OLGSUGekrpSQQ17l3M5gk4PjXhknRbKwYElud4z/wNJmdHbfSSI0U=;
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo)
	by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <larsi@gnus.org>)
	id 1kO65u-0003bj-Dp; Thu, 01 Oct 2020 23:26:40 +0200
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Stephen Berman <stephen.berman@gmx.net>
Cc: Tino Calancha <tino.calancha@gmail.com>,  39280@debbugs.gnu.org
Subject: Re: bug#39280: 27.0.60; wdired-get-filename ignores first argument (this is a test)
References: <87k15fpaj2.fsf@calancha-pc.dy.bbexcite.jp>
	<87tv4j1cjm.fsf@gmx.net>
	<alpine.DEB.2.21.2001252209420.20097@calancha-pc.dy.bbexcite.jp>
	<87ftg2v6j9.fsf@gmx.net>
X-Now-Playing: Joanna Newsom's _The Milk-Eyed Mender_: ""En Gallop""
Date: Thu, 01 Oct 2020 23:26:29 +0200
In-Reply-To: <87ftg2v6j9.fsf@gmx.net> (Stephen Berman's message of "Sun, 26
	Jan 2020 11:47:06 +0100")
Message-ID: <87lfgpzlh6.fsf@gnus.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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
 @@CONTACT_ADDRESS@@ for details.
 
 Content preview:  Stephen Berman <stephen.berman@gmx.net> writes: >>> Do you
    have a use case for this? >> No, I don't have one. > > I see you do now,
   as a possible fix for bug#39284. Looks like this wasn't applied at the time,
    but if I read the patch correctly, it looks like the right fix to me, so
   I've applied it to Emacs 28 now. 
 
 Content analysis details:   (-2.9 points, 5.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                             [score: 0.0000]
Envelope-To: <stephen.berman@gmx.net>
X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=V3;
X-Spam-Flag: NO
X-UI-Filterresults: notjunk:1;V03:K0:ti+gBpEImdY=:hCeCOqElgHqOcifO5jncQpFgek
 ZSDg4MZfpw0Dknfao7k225snGBw5muR3xEXf34ChVLTVnMvP9GBdoTuBm7dMjl6UyY+ELMBFk
 zBYE7EjgoJATj8p0lbvpgnbS/wLUzIPM0DIfmTd2gpuoEtes+GzSHz53a+MbiDDDZgYW99B5A
 B+lNm7W8ophaBn9xRcXs16SIQ0WB+T9BX36t8hHg4BXc4eiCUkUK2WCU/hVJuUaQeeAH5wzRR
 MZh2vIa90TVFJBEU7FcftEw7hMMD6EgeGm+R2Uhcx1bYlT6NgTH0BLu/karNpn/lwSC7SyZt2
 A63Q5GQExtiZ8n0qLNTl3ZHsL03pF0YNbXYUsclp9vAj56soKfVNp8tQ44pU4c72rh5DHg3qC
 9ae0MC8UqU19lUwni3shbQbcYsk2cU4/o/2Q21u1gWgQXLp98OmzN0r28Y+i+k69HQwYtXkTf
 GworG68/G9Ek4QzAhLG1lxSZxXFVpR7tXn3j+1u+/jV8nu3UaNEZaMnNylAlx/jBomIifGDf1
 QSN2bD8YBFmEbCE9gVdP4SjcvSdSNLjeLS4DddXTPK9gb1t+xZwybu3MOZ76zSj0EWzf4ZCxi
 ThUb2GGGeEy0koaV4hThF+QI0Q/yNzOAFOf+0EU+YGGBocYBAzcj0yJsOGogrBjoL2TMQi6Jh
 oHl0NahGVSqA4w6A17X/aeMgbwWZlx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0Ct86IqzHxZ
 4WtFMAdPIqlRHqPaw8/ev/22Zmfq8/gMqtkxyjGTtGGbAbBXptrHLzeUJyymMungYWwX7VCWj
 jY2/4aCJCZ1Lnnd85xKQK51R9CIdj4x/Dw0IHth3DQVFMFU=

Stephen Berman <stephen.berman@gmx.net> writes:

>>> Do you have a use case for this?
>> No, I don't have one.
>
> I see you do now, as a possible fix for bug#39284.

Looks like this wasn't applied at the time, but if I read the patch
correctly, it looks like the right fix to me, so I've applied it to
Emacs 28 now.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2020-10-08 12:27 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-06 18:53 bug#43835: 28.0.50; auto-hscroll-mode/current-line + show-paren-mode + gnus-summary-mode = bug Stephen Berman
2020-10-06 19:10 ` Eli Zaretskii
2020-10-06 20:05   ` Stephen Berman
2020-10-06 21:59     ` Stephen Berman
2020-10-07  7:25       ` Eli Zaretskii
2020-10-07 12:46         ` Eli Zaretskii
2020-10-07 12:58           ` Eli Zaretskii
2020-10-07  7:08     ` Eli Zaretskii
2020-10-07 20:54       ` Stephen Berman
2020-10-08  8:22         ` Eli Zaretskii
2020-10-08  8:39           ` Stephen Berman
2020-10-08  9:10             ` Eli Zaretskii
2020-10-08 10:18               ` Stephen Berman
2020-10-08 11:55                 ` Eli Zaretskii
2020-10-08 12:24                   ` Stephen Berman
2020-10-08 12:27                     ` Eli Zaretskii
2020-10-08 11:53               ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).