From unknown Tue Aug 19 23:14:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47549: 26.3; cperl-mode: buffer view is being re-positioned outside user control Resent-From: Jim McKim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Apr 2021 15:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47549 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 47549@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161729240415105 (code B ref -1); Thu, 01 Apr 2021 15:54:01 +0000 Received: (at submit) by debbugs.gnu.org; 1 Apr 2021 15:53:24 +0000 Received: from localhost ([127.0.0.1]:58386 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lRzdL-0003vY-PV for submit@debbugs.gnu.org; Thu, 01 Apr 2021 11:53:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:52286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lRzR8-0003cE-K0 for submit@debbugs.gnu.org; Thu, 01 Apr 2021 11:40:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50508) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRzR8-0000ZP-D1 for bug-gnu-emacs@gnu.org; Thu, 01 Apr 2021 11:40:46 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:55043) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lRzR6-0000dq-0s for bug-gnu-emacs@gnu.org; Thu, 01 Apr 2021 11:40:46 -0400 Received: by mail-wm1-x332.google.com with SMTP id k128so1259127wmk.4 for ; Thu, 01 Apr 2021 08:40:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=2E9/N7Nt1V3rjbXSIhzYEPp8ljMmUBTpAEWZD6YmH5Y=; b=X5zmS2/7SDeYYjTCFMrUd5xO3l/d+EEeg2WTiA6NHYOvs9F75GMVJC/L4/n1DUshit fBi9wK9B/N55ggCcAzybqP3tUknzuWgc0mB0OvuAaWrQ27xZd3rVLcXmqlg5sh39Nrc/ eqnvHxnGFoWuXfp2hxnn3jxL/itJ0du2U/ROwD2oOSt3yT8QWzk6nY2K53T2Ba130vnL 0upUJThzuGCX71HjpL5J6wz9/ZwSKlRi4fqlnlWKPS0kzcGdSbCytYSd9O45BOkeM4wf uaVEOEPV/5ay7itd8ukWb0OB5+SV1dmUzOHt+zcEQdpbBx3z9/NwjdfP9q5bBEKRk+5p rfdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=2E9/N7Nt1V3rjbXSIhzYEPp8ljMmUBTpAEWZD6YmH5Y=; b=AjwNuBU4V1UNpWSAudHVhpEa/c7zM9I8XMzAvrGcmBzOiSdd91TpddLM4eSGP8F7Ot TFp+lRv0iIX6tKg8riYgDgG6Tz+jQSMk661eLtHf3+xE+a4LQhGG7zscGazUNL3TTppN V1a0oUl9mkDwiaFBDtbm8TBnBSQu4qg2rJ7KnGDoNH0m8gbt02vBeGOWeWxz7ocbvI+r w9F5oa/lJ/pGpWCVLJ7dB1xLo8IiLorXuPYC+xxkA9eUYPahqmlUhuKW7mpPLWHF0PUw j5fx3mVYs0IG2Fhll8tqLT0lZGjjCgOC0LPb+O4azt37RM44GusSzUqYCpEliapEVqTT 1jtg== X-Gm-Message-State: AOAM532eYrBSxZ9UtmgjxbMeS/QcrXAR9+IhWnGeDMe6L+1wqde0P5EW hxDKqoZlUJBlwtTP+gU/jfO2Hxqtjqqxmg6JqThSudty3N4= X-Google-Smtp-Source: ABdhPJzDKSRIQFjlJA14tDIDjrzmIc32xEdAUW3La7phsQ/0GbRy/xwKVgjSwo5wssL0mR/WLxkU6y8Thlzu/kEG5Jk= X-Received: by 2002:a7b:ce91:: with SMTP id q17mr8954917wmj.28.1617291641140; Thu, 01 Apr 2021 08:40:41 -0700 (PDT) MIME-Version: 1.0 From: Jim McKim Date: Thu, 1 Apr 2021 11:40:28 -0400 Message-ID: Content-Type: multipart/alternative; boundary="000000000000c4b91405beeb0d9b" Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=jmckim@gmail.com; helo=mail-wm1-x332.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Mailman-Approved-At: Thu, 01 Apr 2021 11:53:22 -0400 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 (--) --000000000000c4b91405beeb0d9b Content-Type: text/plain; charset="UTF-8" --text follows this line-- - Starting from 'emacs -Q' - Invoke CPerl mode via 'M-X cperl-mode'. - Edit (or create) a buffer that has more lines than the display window. - Open another window (same size), via 'C-x 5 2'. - Position the view in that second window to the end of the buffer, via 'ESC->'. - In the first window, near the top of the buffer, enter this string, the start of a pair of escaped [] brackets within a perl regexp range: my $x = qr/[\[\ - Enter the second escaped ']': my $x = qr/[\[\] When it is entered, a diagnostic like Couldn't find end of charclass in a REx, pos=33584 is displayed in the echo area at the bottom of the edit window and then the other window displaying that buffer is scrolled (repositioned) back to the same view as the window being edited, outside the user's control, abandoning its previous position. The views, the windows, that are repositioned are those of any latter part of the buffer. Peculiarly, identical edits in latter portions of the buffer do not cause a similar repositioning of top-of-buffer views although they do generate the diagnostic. This is just one example of how the repositioning happens. In general, any edit that results in a message being displayed in the echo area causes the view to be repositioned. In the cperl source (git cperl-master), it looks like these diagnostics are generated via elisp's (message) function. Is this repositioning a side effect of that function? The repositioning causes problems when it's important to maintain multiple views of different parts of a large file. It's like shaking all the bookmarks out of a reference book, then trying to find the bookmarked places again. In GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.14) of 2020-03-26, modified by Debian built on lcy01-amd64-020 Windowing system distributor 'The X.Org Foundation', version 11.0.12009000 System Description: Ubuntu 20.04.2 LTS Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.3/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.3/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs-mEZBk7/emacs-26.3+1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS LIBSYSTEMD LCMS2 Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils elec-pair time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 94874 11705) (symbols 48 20386 1) (miscs 40 44 143) (strings 32 28402 800) (string-bytes 1 746365) (vectors 16 13898) (vector-slots 8 500864 9876) (floats 8 49 231) (intervals 56 262 0) (buffers 992 11)) --000000000000c4b91405beeb0d9b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
--text follows this line--

- Starting from 'ema= cs -Q'

- Invoke CPerl mode via 'M-X cperl-mode'.

= - Edit (or create) a buffer that has more lines than the display window.
- Open another window (same size), via 'C-x 5 2'.

- Pos= ition the view in that second window to the end of the buffer, via
'= ESC->'.

- In the first window, near the top of the buffe= r, enter this string,
the start of a pair of escaped [] brackets= within a perl regexp range:

my $x =3D qr/[\[\

- Enter the = second escaped ']':

my $x =3D qr/[\[\]

When it is ent= ered, a diagnostic like

=C2=A0 Couldn't find end of charcla= ss in a REx, pos=3D33584

is displayed in the echo = area at the bottom of the edit window and then
the other window displayi= ng that buffer is scrolled (repositioned) back
to the same view as the w= indow being edited, outside the user's control,
abandoning its previ= ous position.

The views, the windows, that are repositioned are thos= e of any latter
part of the buffer.

Peculiarly, identical edits i= n latter portions of the buffer do not
cause a similar repositioning of = top-of-buffer views although they do
generate the diagnostic.

Thi= s is just one example of how the repositioning happens. In general,
any = edit that results in a message being displayed in the echo area
causes t= he view to be repositioned.

In the cperl source (git cperl-master), = it looks like these
diagnostics are generated via elisp's (message) = function. Is this
repositioning a side effect of that function?

T= he repositioning causes problems when it's important to maintain
mul= tiple views of different parts of a large file. It's like shaking
al= l the bookmarks out of a reference book, then trying to find the
bookmar= ked places again.

In GNU Emacs 26.3 (build 2, x86_64-pc-linux= -gnu, GTK+ Version 3.24.14)
=C2=A0of 2020-03-26, modified by Debian buil= t on lcy01-amd64-020
Windowing system distributor 'The X.Org Foundat= ion', version 11.0.12009000
System Description: =C2=A0 =C2=A0 Ubuntu= 20.04.2 LTS

Recent messages:
For information about GNU Emacs and= the GNU system, type C-h C-a.

Configured using:
=C2=A0'confi= gure --build x86_64-linux-gnu --prefix=3D/usr
=C2=A0--sharedstatedir=3D/= var/lib --libexecdir=3D/usr/lib
=C2=A0--localstatedir=3D/var/lib --infod= ir=3D/usr/share/info
=C2=A0--mandir=3D/usr/share/man --enable-libsystemd= --with-pop=3Dyes
=C2=A0--enable-locallisppath=3D/etc/emacs:/usr/local/s= hare/emacs/26.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs= /26.3/site-lisp:/usr/share/emacs/site-lisp
=C2=A0--with-sound=3Dalsa --w= ithout-gconf --with-mailutils --build
=C2=A0x86_64-linux-gnu --prefix=3D= /usr --sharedstatedir=3D/var/lib
=C2=A0--libexecdir=3D/usr/lib --localst= atedir=3D/var/lib
=C2=A0--infodir=3D/usr/share/info --mandir=3D/usr/shar= e/man --enable-libsystemd
=C2=A0--with-pop=3Dyes
=C2=A0--enable-local= lisppath=3D/etc/emacs:/usr/local/share/emacs/26.3/site-lisp:/usr/local/shar= e/emacs/site-lisp:/usr/share/emacs/26.3/site-lisp:/usr/share/emacs/site-lis= p
=C2=A0--with-sound=3Dalsa --without-gconf --with-mailutils --with-x=3D= yes
=C2=A0--with-x-toolkit=3Dgtk3 --with-toolkit-scroll-bars 'CFLAGS= =3D-g -O2
=C2=A0-fdebug-prefix-map=3D/build/emacs-mEZBk7/emacs-26.3+1=3D= . -fstack-protector-strong
=C2=A0-Wformat -Werror=3Dformat-security -Wal= l' 'CPPFLAGS=3D-Wdate-time
=C2=A0-D_FORTIFY_SOURCE=3D2' '= ;LDFLAGS=3D-Wl,-Bsymbolic-functions -Wl,-z,relro''

Configure= d features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTI= NGS GLIB
NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF X= FT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS LIBSYSTEMD LCMS2
Important settings:
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 v= alue of $XMODIFIERS: @im=3Dibus
=C2=A0 locale-coding-system: utf-8-unix<= br>
Major mode: Lisp Interaction

Minor modes in effect:
=C2=A0= tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 eldoc-mode: t
= =C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool= -bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t<= br>=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 bl= ink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryp= tion-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 line-number-mode:= t
=C2=A0 transient-mark-mode: t

Load-path shadows:
None found= .


Features:
(shadow sort mail-extr emac= sbug message rmc puny seq byte-opt gv
bytecomp byte-compile cconv cl-loa= ddefs cl-lib dired dired-loaddefs
format-spec rfc822 mml easymenu mml-se= c password-cache epa derived epg
epg-config gnus-util rmail rmail-loadde= fs mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils= mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-= utils elec-pair time-date
mule-util tooltip eldoc electric uniquify edif= f-hook vc-hooks
lisp-float-type mwheel term/x-win x-win term/common-win = x-dnd tool-bar
dnd fontset image regexp-opt fringe tabulated-list replac= e newcomment
text-mode elisp-mode lisp-mode prog-mode register page menu= -bar
rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-loc= k
syntax facemenu font-core term/tty-colors frame cl-generic cham georgi= an
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
j= apanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
eth= iopic indian cyrillic chinese composite charscript charprop
case-table e= pa-hook jka-cmpr-hook help simple abbrev obarray minibuffer
cl-preloaded= nadvice loaddefs button faces cus-face macroexp files
text-properties o= verlay sha1 md5 base64 format env code-pages mule
custom widget hashtabl= e-print-readable backquote threads dbusbind
inotify lcms2 dynamic-settin= g system-font-setting font-render-setting
move-toolbar gtk x-toolkit x m= ulti-tty make-network-process emacs)

Memory inform= ation:
((conses 16 94874 11705)
=C2=A0(symbols 48 20386 1)
=C2=A0(= miscs 40 44 143)
=C2=A0(strings 32 28402 800)
=C2=A0(string-bytes 1 7= 46365)
=C2=A0(vectors 16 13898)
=C2=A0(vector-slots 8 500864 9876)=C2=A0(floats 8 49 231)
=C2=A0(intervals 56 262 0)
=C2=A0(buffers 99= 2 11))

--000000000000c4b91405beeb0d9b-- From unknown Tue Aug 19 23:14:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47549: 26.3; cperl-mode: buffer view is being re-positioned outside user control [PATCH] Resent-From: haj@posteo.de (Harald =?UTF-8?Q?J=C3=B6rg?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Apr 2021 21:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47549 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jim McKim Cc: 47549@debbugs.gnu.org Received: via spool by 47549-submit@debbugs.gnu.org id=B47549.161731390618348 (code B ref 47549); Thu, 01 Apr 2021 21:52:02 +0000 Received: (at 47549) by debbugs.gnu.org; 1 Apr 2021 21:51:46 +0000 Received: from localhost ([127.0.0.1]:58808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lS5EA-0004ls-06 for submit@debbugs.gnu.org; Thu, 01 Apr 2021 17:51:46 -0400 Received: from mout02.posteo.de ([185.67.36.66]:34461) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lS5E6-0004lc-Vd for 47549@debbugs.gnu.org; Thu, 01 Apr 2021 17:51:44 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 7FD892400FD for <47549@debbugs.gnu.org>; Thu, 1 Apr 2021 23:51:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1617313896; bh=Y1smHbSwlVV6hg80iCNl0vVZUKaMrEyU1JSi2J58ccA=; h=From:To:Cc:Subject:Date:From; b=bbbQfAr4O9jc3Ql9dZaVEM77PL1MB8YBFdP3D6hqzmq9trrexbiARtr7O8FocPRvY MMZ+RmDBYC/oIc2P97p723tgOqZy4IoSKnm9qOcsB/EFrdguyMIPgIj9nDa8T6KbHR g7IIhNpJ7GwnS+VNHIJHZL4itlr09KJqUnt7aDMv1INiUCH5cC4XIVbXlQPoPV4WDe PxKDK1ishduCZKl6SZEG5CHYfR1LXXzFUjOVKCoEUkuVyQdb1bf80zyV4akMJ84Jlx KgyidOMuLMtdO3qNCCnHYR5FFscH4VJvasZYlDx4iUPQc8rWA9WszsqMpMmMj8fZuP oT8xmiOITL1Pw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FBH2H298Bz9rxP; Thu, 1 Apr 2021 23:51:35 +0200 (CEST) From: haj@posteo.de (Harald =?UTF-8?Q?J=C3=B6rg?=) In-Reply-To: (Jim McKim's message of "Thu, 1 Apr 2021 11:40:28 -0400") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Date: Thu, 01 Apr 2021 23:51:34 +0200 Message-ID: <8735w93c7t.fsf@hajtower> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) 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 (---) --=-=-= Content-Type: text/plain Jim McKim writes: > - Starting from 'emacs -Q' > > - Invoke CPerl mode via 'M-X cperl-mode'. > > - Edit (or create) a buffer that has more lines than the display window. > > - Open another window (same size), via 'C-x 5 2'. > > - Position the view in that second window to the end of the buffer, via > 'ESC->'. > > - In the first window, near the top of the buffer, enter this string, > the start of a pair of escaped [] brackets within a perl regexp range: > > my $x = qr/[\[\ > > - Enter the second escaped ']': > > my $x = qr/[\[\] > > When it is entered, a diagnostic like > > Couldn't find end of charclass in a REx, pos=33584 The "pos" in that message should be the character position of the beginning of the charclass - 33584 seems to be not near the top of the buffer? But I guess this isn't relevant - see below. > is displayed in the echo area at the bottom of the edit window and then > the other window displaying that buffer is scrolled (repositioned) back > to the same view as the window being edited, outside the user's control, > abandoning its previous position. > > The views, the windows, that are repositioned are those of any latter > part of the buffer. > > Peculiarly, identical edits in latter portions of the buffer do not > cause a similar repositioning of top-of-buffer views although they do > generate the diagnostic. > > This is just one example of how the repositioning happens. In general, > any edit that results in a message being displayed in the echo area > causes the view to be repositioned. > > In the cperl source (git cperl-master), it looks like these > diagnostics are generated via elisp's (message) function. Is this > repositioning a side effect of that function? A similar report occured on Perlmonks recently (coincidence?), and ever since then I've been trying to reproduce it. I seem to have collected some relevant components now, but still fail to construct a situation where an _inactive_ frame is scrolled: - The qr// construct is apparently unclosed. I'm writing "apparently" because somewhere in the following source code there will be a slash which cperl-mode takes for closing the qr construct. There are good chances that this occurs outside of the visible portion of the screen. - cperl-mode writes some diagnostics while its point is at the (presumed) end of the qr// construct. It appears that Emacs tries to make that point visible when the message is printed - it scrolls forward, changing (window-start) so that the (presumed) end of the qr// construct is centered. - After the parsing process is done, cperl-mode jumps back to the original point - but the original value of (window-start) is lost, Emacs now centers the window at the original position. This makes the active frame "jump" which should not happen. The patch avoids this situation by postponing any output from `cperl-find-pods-heres' until the code has restored the original window position. This works for me in interactive tests. Unfortunately, I failed to come up with an automated test for that situation: Batch tests have no window. -- Cheers, haj --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-cperl-mode-Don-t-reposition-the-window-when-writing-.patch Content-Description: cperl-mode: Don't reposition frames >From 7f2651308f43281621af8c481c74d5b0481a302f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harald=20J=C3=B6rg?= Date: Thu, 1 Apr 2021 22:30:56 +0200 Subject: [PATCH] ; cperl-mode: Don't reposition the window when writing messages * lisp/progmodes/cperl-mode.el (cperl-find-pods-heres): Avoid printing messages while point is off-screen (Bug#47549) --- lisp/progmodes/cperl-mode.el | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index 7612f8d284..176ea166f8 100644 --- a/lisp/progmodes/cperl-mode.el +++ b/lisp/progmodes/cperl-mode.el @@ -3608,7 +3608,8 @@ cperl-find-pods-heres ;; 1+6+2+1+1+6+1+1+1=20 extra () before this: "\\|" "\\\\\\(['`\"($]\\)") ; BACKWACKED something-hairy - "")))) + ""))) + warning-message) (unwind-protect (progn (save-excursion @@ -3671,7 +3672,7 @@ cperl-find-pods-heres (looking-at "\\(cut\\|end\\)\\>")) (if (or (nth 3 state) (nth 4 state) ignore-max) nil ; Doing a chunk only - (message "=cut is not preceded by a POD section") + (setq warning-message "=cut is not preceded by a POD section") (or (car err-l) (setcar err-l (point)))) (beginning-of-line) @@ -3686,7 +3687,7 @@ cperl-find-pods-heres (goto-char b) (if (re-search-forward "\n=\\(cut\\|end\\)\\>" stop-point 'toend) (progn - (message "=cut is not preceded by an empty line") + (setq warning-message "=cut is not preceded by an empty line") (setq b1 t) (or (car err-l) (setcar err-l b)))))) (beginning-of-line 2) ; An empty line after =cut is not POD! @@ -3829,7 +3830,8 @@ cperl-find-pods-heres (progn ; Pretend we matched at the end (goto-char (point-max)) (re-search-forward "\\'") - (message "End of here-document `%s' not found." tag) + (setq warning-message + (format "End of here-document `%s' not found." tag)) (or (car err-l) (setcar err-l b)))) (if cperl-pod-here-fontify (progn @@ -3906,7 +3908,8 @@ cperl-find-pods-heres 'face font-lock-string-face) (cperl-commentify (point) (+ (point) 2) nil) (cperl-put-do-not-fontify (point) (+ (point) 2) t)) - (message "End of format `%s' not found." name) + (setq warning-message + (format "End of format `%s' not found." name)) (or (car err-l) (setcar err-l b))) (forward-line) (if (> (point) max) @@ -4426,8 +4429,9 @@ cperl-find-pods-heres REx-subgr-end argument) ; continue (setq argument nil))) (and argument - (message "Couldn't find end of charclass in a REx, pos=%s" - REx-subgr-start)) + (setq warning-message + (format "Couldn't find end of charclass in a REx, pos=%s" + REx-subgr-start))) (setq argument (1- (point))) (goto-char REx-subgr-end) (cperl-highlight-charclass @@ -4483,7 +4487,8 @@ cperl-find-pods-heres (setq qtag "Can't find })"))) (progn (goto-char (1- e)) - (message "%s" qtag)) + (setq warning-message + (format "%s" qtag))) (cperl-postpone-fontification (1- tag) (1- (point)) 'face font-lock-variable-name-face) @@ -4512,7 +4517,7 @@ cperl-find-pods-heres ;; (1- e) 'toend) (search-forward ")" (1- e) 'toend) ;;) - (message + (setq warning-message "Couldn't find end of (?#...)-comment in a REx, pos=%s" REx-subgr-start)))) (if (>= (point) e) @@ -4592,8 +4597,8 @@ cperl-find-pods-heres (if (> (point) stop-point) (progn (if end - (message "Garbage after __END__/__DATA__ ignored") - (message "Unbalanced syntax found while scanning") + (setq warning-message "Garbage after __END__/__DATA__ ignored") + (setq warning-message "Unbalanced syntax found while scanning") (or (car err-l) (setcar err-l b))) (goto-char stop-point)))) (setq cperl-syntax-state (cons state-point state) @@ -4612,7 +4617,8 @@ cperl-find-pods-heres ;; cperl-mode-syntax-table. ;; (set-syntax-table cperl-mode-syntax-table) ) - (list (car err-l) overshoot))) + (list (car err-l) overshoot) + (when warning-message (message warning-message)))) (defun cperl-find-pods-heres-region (min max) (interactive "r") -- 2.20.1 --=-=-=-- From unknown Tue Aug 19 23:14:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47549: 26.3; cperl-mode: buffer view is being re-positioned outside user control [PATCH] fixed! Resent-From: haj@posteo.de (Harald =?UTF-8?Q?J=C3=B6rg?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Apr 2021 22:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47549 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jim McKim Cc: 47549@debbugs.gnu.org Received: via spool by 47549-submit@debbugs.gnu.org id=B47549.161731767723898 (code B ref 47549); Thu, 01 Apr 2021 22:55:02 +0000 Received: (at 47549) by debbugs.gnu.org; 1 Apr 2021 22:54:37 +0000 Received: from localhost ([127.0.0.1]:58827 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lS6Cy-0006DO-UP for submit@debbugs.gnu.org; Thu, 01 Apr 2021 18:54:37 -0400 Received: from mout01.posteo.de ([185.67.36.65]:45342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lS6Cx-0006DA-TJ for 47549@debbugs.gnu.org; Thu, 01 Apr 2021 18:54:36 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 455A716005C for <47549@debbugs.gnu.org>; Fri, 2 Apr 2021 00:54:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1617317668; bh=jaRsPFvd9IqAO5Lp/XRpZ3WkX2YLDXoHJ/jSXjuxl7M=; h=From:To:Cc:Subject:Date:From; b=g8t/5U8Mzq2Xp2uoTyyW1tdbY354PyeWO8hwPQLK6/6r7ckUtEnWUH/p8qnG751xH 8rXkIqbXyn1GRPuRpHC2wgIF5uJkASaa4ZmJqJkHImHqiUF8DqJuqV07UdyZ8rIks1 SysiwooIdTGtW7IIU3NyBesXsbXYSFh+8kbqGgOezN1jr8kwMfcalSOlIn+A6ru1Jf Jtsh969VsAbjljZo8sjavm5P6UAdmDCP+NKZccvUkMELK+wN7Ex4qS4ImVL21UdrYM GfepADdud1fzaGa8Kgal8exPtLe39VI74ijuIojXwkQ/ymjX5YQD55kaPhtq5B7uFk 1bkauVMARfgTw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FBJQq4DGmz6tm9; Fri, 2 Apr 2021 00:54:27 +0200 (CEST) From: haj@posteo.de (Harald =?UTF-8?Q?J=C3=B6rg?=) In-Reply-To: <8735w93c7t.fsf@hajtower> ("Harald \=\?utf-8\?Q\?J\=C3\=B6rg\=22's\?\= message of "Thu, 01 Apr 2021 23:51:34 +0200") References: <8735w93c7t.fsf@hajtower> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Date: Fri, 02 Apr 2021 00:54:26 +0200 Message-ID: <87y2e11uql.fsf_-_@hajtower> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) 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 (---) haj@posteo.de (Harald J=C3=B6rg) writes: > The patch avoids this situation by postponing any output from > `cperl-find-pods-heres' until the code has restored the original window > position. This works for me in interactive tests. Sorry - the previous message contained a bad patch. Please use the attached patch instead! --=20 Cheers, haj From unknown Tue Aug 19 23:14:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47549: 26.3; cperl-mode: buffer view is being re-positioned outside user control [PATCH] fixed! Resent-From: haj@posteo.de (Harald =?UTF-8?Q?J=C3=B6rg?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Apr 2021 22:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47549 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jim McKim Cc: 47549@debbugs.gnu.org Received: via spool by 47549-submit@debbugs.gnu.org id=B47549.161731790124248 (code B ref 47549); Thu, 01 Apr 2021 22:59:02 +0000 Received: (at 47549) by debbugs.gnu.org; 1 Apr 2021 22:58:21 +0000 Received: from localhost ([127.0.0.1]:58835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lS6Gb-0006J0-Ep for submit@debbugs.gnu.org; Thu, 01 Apr 2021 18:58:21 -0400 Received: from mout02.posteo.de ([185.67.36.66]:54379) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lS6GZ-0006Il-6o for 47549@debbugs.gnu.org; Thu, 01 Apr 2021 18:58:20 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id DCB972400FB for <47549@debbugs.gnu.org>; Fri, 2 Apr 2021 00:58:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1617317892; bh=gUzQV/rM2NeIf065X5WIcxYfacnHD4QtvRvE70hbUeA=; h=From:To:Cc:Subject:Date:From; b=lOcdK2Aegk1DT9rY2FEY3wZLnwbdbPMdVeEEP2uUpghz7Z4DmylzrQClaTdixcW5B AhdF2Dy3OHsnrgTlqIoBLVP5/pwJkDYjq7mvjDIZCnHnp5thVGIH1i5gPM7c+JM9yD EphMZucQhE5RTkuT8PpnwOJoJVZgQTF68SKYX+d4qQLWCAeQpKqg+Uv1a5g/71mfcB F+xenV/mCVfH8Op60RO9WXaS/Twkk4IgSpHZMX+IVCd0YILYthYrh2XT4XLOV1t3ba w3zbpip7+egOK3xili93x2h7rxiAMn3GBZbgsGNmy6or/ZWZHvdV3jZqB8GyC8fuY9 aqpU71zTaGzlw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FBJW8290kz9rxH; Fri, 2 Apr 2021 00:58:12 +0200 (CEST) From: haj@posteo.de (Harald =?UTF-8?Q?J=C3=B6rg?=) In-Reply-To: <87y2e11uql.fsf_-_@hajtower> ("Harald \=\?utf-8\?Q\?J\=C3\=B6rg\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 02 Apr 2021 00:54:26 +0200") References: <8735w93c7t.fsf@hajtower> <87y2e11uql.fsf_-_@hajtower> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Date: Fri, 02 Apr 2021 00:58:11 +0200 Message-ID: <87tuop1ukc.fsf@hajtower> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) 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 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable haj@posteo.de (Harald J=C3=B6rg) writes: > haj@posteo.de (Harald J=C3=B6rg) writes: > >> The patch avoids this situation by postponing any output from >> `cperl-find-pods-heres' until the code has restored the original window >> position. This works for me in interactive tests. > > Sorry - the previous message contained a bad patch. Please use the > attached patch instead! Oh my. It's too late. This time I forgot to actually attach the patch. --=20 Sorry, haj --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-cperl-mode-Don-t-reposition-the-window-when-writing-.patch Content-Description: cperl-mode: Don't reposition windows >From 42b13aa9bfba74c7a4c6e9285f768615772fda8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harald=20J=C3=B6rg?= Date: Fri, 2 Apr 2021 00:46:38 +0200 Subject: [PATCH] ; cperl-mode: Don't reposition the window when writing messages * lisp/progmodes/cperl-mode.el (cperl-find-pods-heres): Avoid printing messages while point is off-screen (Bug#47549) --- lisp/progmodes/cperl-mode.el | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index 7612f8d284..7878e91096 100644 --- a/lisp/progmodes/cperl-mode.el +++ b/lisp/progmodes/cperl-mode.el @@ -3608,7 +3608,8 @@ cperl-find-pods-heres ;; 1+6+2+1+1+6+1+1+1=20 extra () before this: "\\|" "\\\\\\(['`\"($]\\)") ; BACKWACKED something-hairy - "")))) + ""))) + warning-message) (unwind-protect (progn (save-excursion @@ -3671,7 +3672,7 @@ cperl-find-pods-heres (looking-at "\\(cut\\|end\\)\\>")) (if (or (nth 3 state) (nth 4 state) ignore-max) nil ; Doing a chunk only - (message "=cut is not preceded by a POD section") + (setq warning-message "=cut is not preceded by a POD section") (or (car err-l) (setcar err-l (point)))) (beginning-of-line) @@ -3686,7 +3687,7 @@ cperl-find-pods-heres (goto-char b) (if (re-search-forward "\n=\\(cut\\|end\\)\\>" stop-point 'toend) (progn - (message "=cut is not preceded by an empty line") + (setq warning-message "=cut is not preceded by an empty line") (setq b1 t) (or (car err-l) (setcar err-l b)))))) (beginning-of-line 2) ; An empty line after =cut is not POD! @@ -3829,7 +3830,8 @@ cperl-find-pods-heres (progn ; Pretend we matched at the end (goto-char (point-max)) (re-search-forward "\\'") - (message "End of here-document `%s' not found." tag) + (setq warning-message + (format "End of here-document `%s' not found." tag)) (or (car err-l) (setcar err-l b)))) (if cperl-pod-here-fontify (progn @@ -3906,7 +3908,8 @@ cperl-find-pods-heres 'face font-lock-string-face) (cperl-commentify (point) (+ (point) 2) nil) (cperl-put-do-not-fontify (point) (+ (point) 2) t)) - (message "End of format `%s' not found." name) + (setq warning-message + (format "End of format `%s' not found." name)) (or (car err-l) (setcar err-l b))) (forward-line) (if (> (point) max) @@ -4426,8 +4429,9 @@ cperl-find-pods-heres REx-subgr-end argument) ; continue (setq argument nil))) (and argument - (message "Couldn't find end of charclass in a REx, pos=%s" - REx-subgr-start)) + (setq warning-message + (format "Couldn't find end of charclass in a REx, pos=%s" + REx-subgr-start))) (setq argument (1- (point))) (goto-char REx-subgr-end) (cperl-highlight-charclass @@ -4483,7 +4487,8 @@ cperl-find-pods-heres (setq qtag "Can't find })"))) (progn (goto-char (1- e)) - (message "%s" qtag)) + (setq warning-message + (format "%s" qtag))) (cperl-postpone-fontification (1- tag) (1- (point)) 'face font-lock-variable-name-face) @@ -4512,9 +4517,9 @@ cperl-find-pods-heres ;; (1- e) 'toend) (search-forward ")" (1- e) 'toend) ;;) - (message - "Couldn't find end of (?#...)-comment in a REx, pos=%s" - REx-subgr-start)))) + (setq warning-message + (format "Couldn't find end of (?#...)-comment in a REx, pos=%s" + REx-subgr-start))))) (if (>= (point) e) (goto-char (1- e))) (cond @@ -4592,8 +4597,8 @@ cperl-find-pods-heres (if (> (point) stop-point) (progn (if end - (message "Garbage after __END__/__DATA__ ignored") - (message "Unbalanced syntax found while scanning") + (setq warning-message "Garbage after __END__/__DATA__ ignored") + (setq warning-message "Unbalanced syntax found while scanning") (or (car err-l) (setcar err-l b))) (goto-char stop-point)))) (setq cperl-syntax-state (cons state-point state) @@ -4612,6 +4617,7 @@ cperl-find-pods-heres ;; cperl-mode-syntax-table. ;; (set-syntax-table cperl-mode-syntax-table) ) + (when warning-message (message warning-message)) (list (car err-l) overshoot))) (defun cperl-find-pods-heres-region (min max) -- 2.20.1 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 02 09:46:44 2021 Received: (at control) by debbugs.gnu.org; 2 Apr 2021 13:46:44 +0000 Received: from localhost ([127.0.0.1]:59436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lSK8K-0003Dz-7G for submit@debbugs.gnu.org; Fri, 02 Apr 2021 09:46:44 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55720) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lSK8I-0003Dm-FN for control@debbugs.gnu.org; Fri, 02 Apr 2021 09:46:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type: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=J/sFuKhyJNHuO4QWgV35yirhB6x8EXZSxZ2DKcD/w+Q=; b=nFBfwCDFvNaCXr3K1Y9hVDgnJF tnYnK3JU2ywyzII3AO7+fqPQRte+JHNPbMEL01g5LYH9GGodZV230UuxBTcOHCWT4en0xj6zqBysI JHBtxEK5WsECmJeMfOr8lN2h2QsftK3CiXBAqitlBSLRflL9WbIrMw9xzQVAARJZU1qo=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lSK89-0005Cw-UJ for control@debbugs.gnu.org; Fri, 02 Apr 2021 15:46:35 +0200 Date: Fri, 02 Apr 2021 15:46:33 +0200 Message-Id: <87lfa0lrye.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #47549 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: tags 47549 + patch quit 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] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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.0 (-) tags 47549 + patch quit From unknown Tue Aug 19 23:14:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47549: 26.3; cperl-mode: buffer view is being re-positioned outside user control Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Apr 2021 20:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47549 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: haj@posteo.de (Harald =?UTF-8?Q?J=C3=B6rg?=) Cc: Jim McKim , 47549@debbugs.gnu.org Received: via spool by 47549-submit@debbugs.gnu.org id=B47549.161756758822977 (code B ref 47549); Sun, 04 Apr 2021 20:20:02 +0000 Received: (at 47549) by debbugs.gnu.org; 4 Apr 2021 20:19:48 +0000 Received: from localhost ([127.0.0.1]:36540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lT9Dn-0005yX-V4 for submit@debbugs.gnu.org; Sun, 04 Apr 2021 16:19:48 -0400 Received: from quimby.gnus.org ([95.216.78.240]:50674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lT9Dl-0005yH-Vl for 47549@debbugs.gnu.org; Sun, 04 Apr 2021 16:19:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=5SzMhEiqKRRKUsHbLT9HVGe49vbxOo2rpWuA9/sYo4s=; b=aBJqUlVgIqX0NLGqO7zZdQgKqx LYdZuC53Pi8D3N4wLUVgz2o19HouRH5NaHRu0aY5m49NY8Z4VwIUmihhW7GLuGAqMwsCyC7OdMsew tJCcpqLSBJYiyW4ZmmAnJKKcez9vmyDHOlgrDufA+eYPrnHvLujJUOjqPIQ+jlVowpwM=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lT9Dc-0002Q2-PV; Sun, 04 Apr 2021 22:19:40 +0200 From: Lars Ingebrigtsen References: <8735w93c7t.fsf@hajtower> <87y2e11uql.fsf_-_@hajtower> <87tuop1ukc.fsf@hajtower> X-Now-Playing: JPEGMAFIA's _EP2!_: "PANIC ROOM!" Date: Sun, 04 Apr 2021 22:19:36 +0200 In-Reply-To: <87tuop1ukc.fsf@hajtower> ("Harald =?UTF-8?Q?J=C3=B6rg?="'s message of "Fri, 02 Apr 2021 00:58:11 +0200") Message-ID: <87sg45eraf.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; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: haj@posteo.de (Harald =?UTF-8?Q?J=C3=B6rg?=) writes: > Oh my. It's too late. This time I forgot to actually attach the patch. :-) 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] X-Spam-Score: 0.0 (/) 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.0 (-) haj@posteo.de (Harald J=C3=B6rg) writes: > Oh my. It's too late. This time I forgot to actually attach the patch. :-) Looks good to me; applied to Emacs 28. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 04 16:19:54 2021 Received: (at control) by debbugs.gnu.org; 4 Apr 2021 20:19:54 +0000 Received: from localhost ([127.0.0.1]:36543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lT9Dt-0005yp-O6 for submit@debbugs.gnu.org; Sun, 04 Apr 2021 16:19:53 -0400 Received: from quimby.gnus.org ([95.216.78.240]:50690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lT9Ds-0005yV-Jx for control@debbugs.gnu.org; Sun, 04 Apr 2021 16:19:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type: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=MbT6H8rCZrE4nKEKDVUY/1FvCbQbSjrc/IgEEU07xgo=; b=UjhvbEtX47u5yJVzaeyMeOrODS OX1ib8gUD8E4E2iD4P5EsR9Wmeze9Uy4tDTt4zvpjamlE9xyDkcaSuhKRpOSJOEADBGD4GTIQeDHs WnMr8n9mpx24ZA8ZCkpB6FPdnTMkw0PSuqBCOXTdr7kGxmVHa9qBNEHznG4wRRmlsmIU=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lT9Dl-0002QB-4J for control@debbugs.gnu.org; Sun, 04 Apr 2021 22:19:47 +0200 Date: Sun, 04 Apr 2021 22:19:44 +0200 Message-Id: <87r1jpera7.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #47549 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: tags 47549 fixed close 47549 28.1 quit 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] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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.0 (-) tags 47549 fixed close 47549 28.1 quit