GNU bug report logs - #41245
27.0.91; Error clicking on a button in custom-mode in another window

Previous Next

Package: emacs;

Reported by: Trevor Spiteri <tspiteri <at> ieee.org>

Date: Wed, 13 May 2020 21:59:01 UTC

Severity: normal

Merged with 40788

Found in versions 27.0.91, 28.0.50

Fixed in version 27.1

Done: Robert Pluim <rpluim <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 41245 in the body.
You can then email your comments to 41245 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#41245; Package emacs. (Wed, 13 May 2020 21:59:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Trevor Spiteri <tspiteri <at> ieee.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 13 May 2020 21:59:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Trevor Spiteri <tspiteri <at> ieee.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.91; Error clicking on a button in custom-mode in another window
Date: Wed, 13 May 2020 23:58:43 +0200
1. Run emacs -Q
2. Fill the *scratch* buffer with some text (350 characters is enough).
3. M-x customize-option-other-window abbrev-all-caps
4. C-x o (to switch back to *scratch* buffer window)
5. Click on "Toggle" button right next to "Abbrev All Caps"

The text " [ State ]: EDITED, shown value does not take effect until
you set or save it.\n" (81 characters including new line) is inserted at
point 298 in the scratch buffer, overwriting 29 characters in the
process. 298 is also the point at which the State button is drawn in the
custom buffer. The custom-mode window is also broken: the State button
now appears as regular text.





In GNU Emacs 27.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.20, cairo version 1.16.0)
of 2020-05-10 built on desktop
Repository revision: be0d1cac83d14596406571f9cb668031ec5675ac
Repository branch: emacs-27
Windowing system distributor 'Fedora Project', version 11.0.12008000
System Description: Fedora 32 (Workstation Edition)

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Creating customization items...
Creating customization items ...done
Creating customization setup...done
To install your edits, invoke [State] and choose the Set operation
Error running timer ‘custom-magic-reset’: (args-out-of-range #301 308)

Configured using:
'configure --prefix=/home/trevor/.local/opt/emacs --with-x-toolkit=gtk3
--with-cairo --with-xwidgets'

Configured features:
XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY
INOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS
LIBSYSTEMD JSON PDUMPER LCMS2 GMP

Important settings:
value of $LC_MONETARY: en_GB.utf8
value of $LC_NUMERIC: en_GB.utf8
value of $LC_TIME: en_GB.utf8
value of $LANG: en_GB.utf8
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 dired dired-loaddefs
format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config
gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq
byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils thingatpt help-fns
radix-tree help-mode cus-edit easymenu cus-start cus-load wid-edit
cl-loaddefs cl-lib 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 tab-bar menu-bar
rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core term/tty-colors frame minibuffer 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
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
xwidget-internal cairo move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 66284 10277)
(symbols 48 7701 1)
(strings 32 20097 1479)
(string-bytes 1 624441)
(vectors 16 11596)
(vector-slots 8 144733 9362)
(floats 8 31 39)
(intervals 56 221 0)
(buffers 1000 13))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41245; Package emacs. (Thu, 14 May 2020 13:54:02 GMT) Full text and rfc822 format available.

Message #8 received at 41245 <at> debbugs.gnu.org (full text, mbox):

From: Mauro Aranda <maurooaranda <at> gmail.com>
To: Trevor Spiteri <tspiteri <at> ieee.org>
Cc: 41245 <at> debbugs.gnu.org
Subject: Re: bug#41245: 27.0.91; Error clicking on a button in custom-mode in
 another window
Date: Thu, 14 May 2020 10:53:36 -0300
[Message part 1 (text/plain, inline)]
Trevor Spiteri <tspiteri <at> ieee.org> writes:

> 1. Run emacs -Q
> 2. Fill the *scratch* buffer with some text (350 characters is enough).
> 3. M-x customize-option-other-window abbrev-all-caps
> 4. C-x o (to switch back to *scratch* buffer window)
> 5. Click on "Toggle" button right next to "Abbrev All Caps"
>
> The text " [ State ]: EDITED, shown value does not take effect until
> you set or save it.\n" (81 characters including new line) is inserted at
> point 298 in the scratch buffer, overwriting 29 characters in the
> process. 298 is also the point at which the State button is drawn in the
> custom buffer. The custom-mode window is also broken: the State button
> now appears as regular text.
>

I think the proposed patches in Bug#40788 would solve this problem as
well.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41245; Package emacs. (Thu, 14 May 2020 15:29:01 GMT) Full text and rfc822 format available.

Message #11 received at 41245 <at> debbugs.gnu.org (full text, mbox):

From: Robert Pluim <rpluim <at> gmail.com>
To: Mauro Aranda <maurooaranda <at> gmail.com>
Cc: 41245 <at> debbugs.gnu.org, Trevor Spiteri <tspiteri <at> ieee.org>
Subject: Re: bug#41245: 27.0.91; Error clicking on a button in custom-mode
 in another window
Date: Thu, 14 May 2020 17:28:37 +0200
>>>>> On Thu, 14 May 2020 10:53:36 -0300, Mauro Aranda <maurooaranda <at> gmail.com> said:

    Mauro> Trevor Spiteri <tspiteri <at> ieee.org> writes:
    >> 1. Run emacs -Q
    >> 2. Fill the *scratch* buffer with some text (350 characters is enough).
    >> 3. M-x customize-option-other-window abbrev-all-caps
    >> 4. C-x o (to switch back to *scratch* buffer window)
    >> 5. Click on "Toggle" button right next to "Abbrev All Caps"
    >> 
    >> The text " [ State ]: EDITED, shown value does not take effect until
    >> you set or save it.\n" (81 characters including new line) is inserted at
    >> point 298 in the scratch buffer, overwriting 29 characters in the
    >> process. 298 is also the point at which the State button is drawn in the
    >> custom buffer. The custom-mode window is also broken: the State button
    >> now appears as regular text.
    >> 

    Mauro> I think the proposed patches in Bug#40788 would solve this problem as
    Mauro> well.

Did I not commit the fix? .... No, I didnʼt, Iʼll get to it soon I
hope.

If the patch from Bug#40788 works Iʼll merge the two reports.

Robert




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41245; Package emacs. (Thu, 14 May 2020 18:55:01 GMT) Full text and rfc822 format available.

Message #14 received at 41245 <at> debbugs.gnu.org (full text, mbox):

From: Trevor Spiteri <tspiteri <at> ieee.org>
To: Robert Pluim <rpluim <at> gmail.com>, Mauro Aranda <maurooaranda <at> gmail.com>
Cc: 41245 <at> debbugs.gnu.org
Subject: Re: bug#41245: 27.0.91; Error clicking on a button in custom-mode in
 another window
Date: Thu, 14 May 2020 20:54:50 +0200
>     Mauro> I think the proposed patches in Bug#40788 would solve this problem as
>     Mauro> well.
>
> Did I not commit the fix? .... No, I didnʼt, Iʼll get to it soon I
> hope.
>
> If the patch from Bug#40788 works Iʼll merge the two reports.


The patch does seem to fix the issue for me. Will the patch be included
in the 27 branch? It is a pretty nasty regression that corrupts data in
the current buffer.





Merged 40788 41245. Request was from Robert Pluim <rpluim <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 21 Jul 2020 08:30:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.1, send any further explanations to 40788 <at> debbugs.gnu.org and David Ponce <da_vid <at> orange.fr> Request was from Robert Pluim <rpluim <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 21 Jul 2020 14:41:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 19 Aug 2020 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 251 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.