From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Vitaliy Chepelev <vitalij@gmx.com>
Newsgroups: gmane.emacs.bugs
Subject: bug#66244: Buffer is modified: Undo after comment-line
Date: Wed, 27 Sep 2023 17:12:37 -0000
Message-ID: <87r0mja6be.fsf@localhost.mail-host-address-is-not-set>
Mime-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="39613"; mail-complaints-to="usenet@ciao.gmane.io"
To: 66244@debbugs.gnu.org
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 27 19:24:08 2023
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1qlYGe-000A2W-JU
	for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Sep 2023 19:24:08 +0200
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-gnu-emacs-bounces@gnu.org>)
	id 1qlYGR-0000u9-4j; Wed, 27 Sep 2023 13:23:55 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1qlYGK-0000tv-Fh
 for bug-gnu-emacs@gnu.org; Wed, 27 Sep 2023 13:23:49 -0400
Original-Received: from debbugs.gnu.org ([2001:470:142:5::43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1qlYGK-0006Pi-7K
 for bug-gnu-emacs@gnu.org; Wed, 27 Sep 2023 13:23:48 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1qlYGX-0005z5-SL
 for bug-gnu-emacs@gnu.org; Wed, 27 Sep 2023 13:24:01 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Vitaliy Chepelev <vitalij@gmx.com>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Wed, 27 Sep 2023 17:24:01 +0000
Resent-Message-ID: <handler.66244.B.169583540522954@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 66244
X-GNU-PR-Package: emacs
X-Debbugs-Original-To: bug-gnu-emacs@gnu.org
Original-Received: via spool by submit@debbugs.gnu.org id=B.169583540522954
 (code B ref -1); Wed, 27 Sep 2023 17:24:01 +0000
Original-Received: (at submit) by debbugs.gnu.org; 27 Sep 2023 17:23:25 +0000
Original-Received: from localhost ([127.0.0.1]:52428 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1qlYFv-0005y9-Uf
 for submit@debbugs.gnu.org; Wed, 27 Sep 2023 13:23:25 -0400
Original-Received: from lists.gnu.org ([2001:470:142::17]:50078)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vitalij@gmx.com>) id 1qlY64-0005gT-9T
 for submit@debbugs.gnu.org; Wed, 27 Sep 2023 13:13:12 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <vitalij@gmx.com>) id 1qlY5g-000655-93
 for bug-gnu-emacs@gnu.org; Wed, 27 Sep 2023 13:12:48 -0400
Original-Received: from mout.gmx.net ([212.227.17.21])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <vitalij@gmx.com>) id 1qlY5c-0003C0-Aw
 for bug-gnu-emacs@gnu.org; Wed, 27 Sep 2023 13:12:47 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.com; s=s31663417;
 t=1695834759; x=1696439559; i=vitalij@gmx.com;
 bh=fl18LFN6ZDhsEsGOcterJ/Ad1z+WORyVvlmcEY/bshg=;
 h=X-UI-Sender-Class:From:To:Subject:Date;
 b=L/eOENHhjPoOvb9ez/KU3NLNa9pcYVJ83WcbTR5gdya4kQOSnRAGQzSHO0NsXU5oajHmee4vHK4
 3A8EJDH2K27S+l6K/V2DKXFyURZHwCpAaZ464tLJ+zmAIZs+9CB3Ha53UDLxX2OSV8PCUTxswdFxu
 /HsmuNiSfh+hIMzLc4B7vo03l6MNrejj0BiSJtL6uWEka70fDBC1H20ZwdGkOZ1py9Zyy1PR94av6
 AJTRSwnKh7Uj0DkNCAPobMC7Lm3jvu2zmieTLbg3+LQVUeROU52LvWCEApjXucyNLtWr6Bid5G+UI
 VV4kzVjOM+PmWmuM89Wg7D9r6sMS8uN6i64g==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Original-Received: from localhost ([91.193.179.63]) by mail.gmx.net (mrgmx105
 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MiaYJ-1rGEHA1R95-00ffSJ for
 <bug-gnu-emacs@gnu.org>; Wed, 27 Sep 2023 19:12:39 +0200
X-Provags-ID: V03:K1:4zwSw5F4WU0uCwVffuGxwHPAKSaQHYxjDG3i8sSNa360vn9QAqP
 N9CD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QQuA99 
Received-SPF: pass client-ip=212.227.17.21; envelope-from=vitalij@gmx.com;
 helo=mout.gmx.net
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 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, 
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Mailman-Approved-At: Wed, 27 Sep 2023 13:23:22 -0400
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
 the Swiss army knife of text editors" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Xref: news.gmane.io gmane.emacs.bugs:271423
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/271423>

Steps to reproduce:
1) C-x C-; or M-x comment-line
2) C-/ or M-x undo

result: U:@**-

In GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, X toolkit) of 2023-07-25

result: U:@---

Tested after removing of ~/.emacs and ~/.emacs.d/

Automatic generated report for emacs version with error:

In GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, X toolkit) of
 2023-09-27 built on localhost
Windowing system distributor 'The X.Org Foundation', version 11.0.12101008
System Description: Gentoo Linux

Configured using:
 'configure --prefix=3D/usr --build=3Dx86_64-pc-linux-gnu
 --host=3Dx86_64-pc-linux-gnu --mandir=3D/usr/share/man
 --infodir=3D/usr/share/info --datadir=3D/usr/share --sysconfdir=3D/etc
 --localstatedir=3D/var/lib --datarootdir=3D/usr/share
 --disable-silent-rules --docdir=3D/usr/share/doc/emacs-29.1-r1
 --htmldir=3D/usr/share/doc/emacs-29.1-r1/html --libdir=3D/usr/lib64
 --program-suffix=3D-emacs-29 --includedir=3D/usr/include/emacs-29
 --infodir=3D/usr/share/info/emacs-29 --localstatedir=3D/var
 --enable-locallisppath=3D/etc/emacs:/usr/share/emacs/site-lisp
 --without-compress-install --without-hesiod --without-pop
 --with-file-notification=3Dinotify --with-pdumper --enable-acl
 --without-dbus --without-modules --without-gameuser --with-libgmp
 --without-gpm --without-native-compilation --with-json
 --without-kerberos --without-kerberos5 --without-lcms2 --without-xml2
 --without-mailutils --without-selinux --with-sqlite3 --with-gnutls
 --without-libsystemd --with-threads --with-tree-sitter
 --without-wide-int --with-sound=3Dno --with-zlib --with-x --without-pgtk
 --without-ns --without-gconf --without-gsettings
 --without-toolkit-scroll-bars --with-xpm --with-xft --without-cairo
 --without-harfbuzz --without-libotf --without-m17n-flt
 --with-x-toolkit=3Dlucid --without-xaw3d --with-gif --with-jpeg
 --with-png --with-rsvg --without-tiff --with-webp --without-imagemagick
 --with-dumping=3Dpdumper 'CFLAGS=3D-O2 -pipe -mno-rdrnd -mno-aes
 -march=3Divybridge -msse -msse2 -mmmx -D_FORTIFY_SOURCE=3D2
 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fstack-clash-protection
 -fcf-protection' 'LDFLAGS=3D-Wl,-O1 -Wl,--as-needed''

Configured features:
ACL FREETYPE GIF GLIB GMP GNUTLS JPEG JSON NOTIFY INOTIFY PDUMPER PNG
RSVG SECCOMP SQLITE3 THREADS TREE_SITTER WEBP X11 XDBE XFT XIM XINPUT2
XPM LUCID ZLIB

Important settings:
  value of $LANG: C.UTF8
  locale-coding-system: utf-8-unix

Major mode: Programming modes - python-mode, python-ts-mode, elisp-mode

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-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
  blink-cursor-mode: t
  buffer-read-only: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
/home/u/.emacs.d/elpa/transient-0.3.7/transient hides /usr/share/emacs/29.=
1/lisp/transient

Features:
(shadow sort mail-extr emacsbug message yank-media puny dired
dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config
gnus-util text-property-search time-date mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils site-gentoo info
package browse-url url url-proxy url-privacy url-expand url-methods
url-history url-cookie generate-lisp-file url-domsuf url-util mailcap
url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs
password-cache json subr-x map byte-opt gv bytecomp byte-compile
url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren
electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode 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 lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine 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 emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads inotify dynamic-setting
font-render-setting x-toolkit xinput2 x multi-tty make-network-process
emacs)

Memory information:
((conses 16 67383 8982)
 (symbols 48 7959 0)
 (strings 32 25056 1635)
 (string-bytes 1 780232)
 (vectors 16 14848)
 (vector-slots 8 206286 10720)
 (floats 8 30 29)
 (intervals 56 356 0)
 (buffers 984 13))

=2D-
Best regards,
Vitaliy Chepelev
Python Middle Data Scientist
https://t.me/vitdata

=2D-
Best regards,
Vitaliy Chepelev
Python Middle Data Scientist
https://t.me/vitdata