GNU bug report logs - #52896
29.0.50; transient-mark-mode is set to a lot of 'only syms

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Andrey Listopadov <andreyorst@HIDDEN>; Keywords: moreinfo; dated Thu, 30 Dec 2021 09:54:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 52896 <at> debbugs.gnu.org:


Received: (at 52896) by debbugs.gnu.org; 7 Jan 2022 18:53:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 07 13:53:12 2022
Received: from localhost ([127.0.0.1]:45900 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n5uMM-0006XO-Ka
	for submit <at> debbugs.gnu.org; Fri, 07 Jan 2022 13:53:12 -0500
Received: from mail-ed1-f53.google.com ([209.85.208.53]:33567)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <andreyorst@HIDDEN>) id 1n5uMF-0006Wk-0o
 for 52896 <at> debbugs.gnu.org; Fri, 07 Jan 2022 13:53:05 -0500
Received: by mail-ed1-f53.google.com with SMTP id m21so25785715edc.0
 for <52896 <at> debbugs.gnu.org>; Fri, 07 Jan 2022 10:52:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=DQ7t/mswjtYl/X5LMba0F6BLeqvPCFmiDTUiaMllx/g=;
 b=O0gEqLtlrEnxdIZjzOnMkX2K2zgTGcuOfBf9ciAgLkj0MHEdlBsnX1VCwrPGM/E+IG
 f4RDRRZhneoXw9Uq2JyccbtpwefDr6i+bFF3z0c74lsyJYuMRo5sxqIoo5sa2h98srEc
 86uOyw4Y9u9VlNbMOUpdtRGQTIRHfJi56/8eVvF2XlqvnkcB3SFnBOQin5sCGZvU/gAL
 coT/xGiJHbY6Jbz/BBfudZ4zFtTHpc+c3aZFSKFsa9rL/nwBg+x2ZUt112jKnuuMhQQI
 8glA6R997mrrKgEdxuPlOZrFy1MSCn8GuNwk+w8S89gdmCIWlTr1tppP3DjkMSfX7wo3
 BA/A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=DQ7t/mswjtYl/X5LMba0F6BLeqvPCFmiDTUiaMllx/g=;
 b=tzWgdO345NL6bx6yyXh2SU8oerXeZlWEp1GAUTUwk6tS3SEXo4Q/kOCEUC7sj934Re
 hFvOJZz0AUzWiiVhEQ6SQIq5WJPJPDlC91gFWfv8ulJaAl47slncGNHvJFb0WZ81Fv/4
 S5Uwx4Gsz1e157o8z334kWRAFNdd2LjoUESeLTZHcu5OwGAM4aNg4arsxC9u1r/cTjCz
 kAalKYRhfGG54h/H8t2fblzY9Lw2CXmCpfWAeqMAxt40bjuAplISFqf6EmZLvUGY+Yj9
 U4SN/KDLJrFG/utAe5xV0rCwXnRuEE7cIInUiBSI98LqiYSoi1ueMkrKkR6AnB4Avsyc
 GfBw==
X-Gm-Message-State: AOAM531i0QMORWtqoco5DE4oEwvWHD6/GR36D4eVHrQ6rFJCRJU+Wnti
 ugaTDucYwqse9t40Xttw19I0ztS9cMzKsIUwTeo=
X-Google-Smtp-Source: ABdhPJwuTUX47kCa7oiTu91AZmjxFR1BrBVayECf6ADVsyBfBlBu6mVdEDOztWLqBAO1+bjD5Fll0Apk+39ndNuGGrY=
X-Received: by 2002:a50:ee94:: with SMTP id f20mr54194153edr.49.1641581573029; 
 Fri, 07 Jan 2022 10:52:53 -0800 (PST)
MIME-Version: 1.0
References: <CAAKhXobWy31cAXERK3Fo8jGYPuuSAwvjR-+c66wqOo8a6WSscw@HIDDEN>
 <831r1uhqra.fsf@HIDDEN>
 <CAAKhXoYtLSM4N+y0sMqJzNj69PccM3rwXOndD1joBRGo9hJqmA@HIDDEN>
 <83zgohhpcf.fsf@HIDDEN>
 <CAAKhXoZ32D5ARiyvrAic-fu2CKnvghgUGZQoUwNgZhGKBngCVQ@HIDDEN>
 <83y241hmod.fsf@HIDDEN>
 <CAAKhXoa_wS-P3Ojmi59FSNF=46ewpV8OB_6zyj78zWUffrw_uw@HIDDEN>
 <CAAKhXob_RQHfZAFqwT6xqUP0VWDcUkhUq5V0_Y-eAPJcr8U5SA@HIDDEN>
 <CAAKhXoYEVxCvjezA+ppK+_c5x98mbkwqPsNSjkHsegC4=ARoFA@HIDDEN>
 <CAAKhXoYCtuEmyx2Qn8Ra6c9kRZWEi3viLRhKc29_vbkxK3J-Yw@HIDDEN>
 <83bl0sdhmn.fsf@HIDDEN> <834k6kdg44.fsf@HIDDEN>
 <CAAKhXoYSYE_Xh6kk8wfoAkp=-+ps_ikQeqbWbymJXXQUStO9mQ@HIDDEN>
 <83pmp34cs9.fsf@HIDDEN>
In-Reply-To: <83pmp34cs9.fsf@HIDDEN>
From: Andrey Listopadov <andreyorst@HIDDEN>
Date: Fri, 7 Jan 2022 21:52:16 +0300
Message-ID: <CAAKhXobVjAmQVfhx8BwBWP-ZwP-D+vxs+jNL8fSv2bhZ-BSmfg@HIDDEN>
Subject: Re: bug#52896: 29.0.50;
 transient-mark-mode is set to a lot of 'only syms
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 52896
Cc: 52896 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> Thanks for testing.  I installed this on the master branch, and will
> consider backporting to emacs-28 if no issues are reported for it.

Thank you! Will keep an eye on this in case any errors show up.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#52896; Package emacs. Full text available.

Message received at 52896 <at> debbugs.gnu.org:


Received: (at 52896) by debbugs.gnu.org; 7 Jan 2022 18:32:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 07 13:32:55 2022
Received: from localhost ([127.0.0.1]:45876 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n5u2p-0005xC-78
	for submit <at> debbugs.gnu.org; Fri, 07 Jan 2022 13:32:55 -0500
Received: from eggs.gnu.org ([209.51.188.92]:33036)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1n5u2l-0005wt-EW
 for 52896 <at> debbugs.gnu.org; Fri, 07 Jan 2022 13:32:54 -0500
Received: from [2001:470:142:3::e] (port=51742 helo=fencepost.gnu.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1n5u2g-0002m2-5t; Fri, 07 Jan 2022 13:32:46 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=QM4cCCs/6mvvF1y+YAE5q8syzSPdBO7atsBFTJbe77M=; b=sew5+EZEDo69
 Q6DMcA2+4gOWtGpGYovuR8gBGWcJPhorvY+m/RC+VC3mWPXuuI1ERfITnc/tdsxYoeCU9QxKN0jL6
 OTMxhVZXZJ6gSD5y/8NpGTZN7kWCkoWVaLQ/J8uhvA/4pkq0zst0OGI5FUYVJ79C5dLZVhtnuksxj
 gvFh46zvvWmG8VT5zPcT4upO3YZR2/DBugh0H2q+bJmI7s/tjKRjG7y/dv4u5REl/xej597IWMDQq
 lL4Dq5Sw7WLaN5ohUoC72ODEI1wx6wNBqHcr8A2gX9hZujviyUHZo11NbhMfEgrXOoZtpBPGEPJV1
 3nAFcqPDqgiFM+e0C5qMbg==;
Received: from [87.69.77.57] (port=2704 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1n5u2g-0006nH-6L; Fri, 07 Jan 2022 13:32:46 -0500
Date: Fri, 07 Jan 2022 20:32:38 +0200
Message-Id: <83pmp34cs9.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Andrey Listopadov <andreyorst@HIDDEN>
In-Reply-To: <CAAKhXoYSYE_Xh6kk8wfoAkp=-+ps_ikQeqbWbymJXXQUStO9mQ@HIDDEN>
 (message from Andrey Listopadov on Fri, 7 Jan 2022 21:17:41 +0300)
Subject: Re: bug#52896: 29.0.50;
 transient-mark-mode is set to a lot of 'only syms
References: <CAAKhXobWy31cAXERK3Fo8jGYPuuSAwvjR-+c66wqOo8a6WSscw@HIDDEN>
 <831r1uhqra.fsf@HIDDEN>
 <CAAKhXoYtLSM4N+y0sMqJzNj69PccM3rwXOndD1joBRGo9hJqmA@HIDDEN>
 <83zgohhpcf.fsf@HIDDEN>
 <CAAKhXoZ32D5ARiyvrAic-fu2CKnvghgUGZQoUwNgZhGKBngCVQ@HIDDEN>
 <83y241hmod.fsf@HIDDEN>
 <CAAKhXoa_wS-P3Ojmi59FSNF=46ewpV8OB_6zyj78zWUffrw_uw@HIDDEN>
 <CAAKhXob_RQHfZAFqwT6xqUP0VWDcUkhUq5V0_Y-eAPJcr8U5SA@HIDDEN>
 <CAAKhXoYEVxCvjezA+ppK+_c5x98mbkwqPsNSjkHsegC4=ARoFA@HIDDEN>
 <CAAKhXoYCtuEmyx2Qn8Ra6c9kRZWEi3viLRhKc29_vbkxK3J-Yw@HIDDEN>
 <83bl0sdhmn.fsf@HIDDEN> <834k6kdg44.fsf@HIDDEN>
 <CAAKhXoYSYE_Xh6kk8wfoAkp=-+ps_ikQeqbWbymJXXQUStO9mQ@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 52896
Cc: 52896 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Andrey Listopadov <andreyorst@HIDDEN>
> Date: Fri, 7 Jan 2022 21:17:41 +0300
> Cc: 52896 <at> debbugs.gnu.org
> 
> > Sorry, please use the patch below instead:
> >
> > diff --git a/lisp/simple.el b/lisp/simple.el
> > index 070d276..cbcde9f 100644
> > --- a/lisp/simple.el
> > +++ b/lisp/simple.el
> > @@ -6664,7 +6664,7 @@ exchange-point-and-mark
> >          (user-error "No mark set in this buffer"))
> >      (set-mark (point))
> >      (goto-char omark)
> > -    (cond (temp-highlight
> > +    (cond ((and (not arg) (not temp-highlight))
> >            (setq-local transient-mark-mode (cons 'only transient-mark-mode)))
> >           ((xor arg (not (region-active-p)))
> >            (deactivate-mark))
> 
> Seems to work without issues

Thanks for testing.  I installed this on the master branch, and will
consider backporting to emacs-28 if no issues are reported for it.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#52896; Package emacs. Full text available.

Message received at 52896 <at> debbugs.gnu.org:


Received: (at 52896) by debbugs.gnu.org; 7 Jan 2022 18:27:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 07 13:27:10 2022
Received: from localhost ([127.0.0.1]:45870 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n5txG-0005ma-KQ
	for submit <at> debbugs.gnu.org; Fri, 07 Jan 2022 13:27:10 -0500
Received: from mail-ed1-f43.google.com ([209.85.208.43]:34551)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <andreyorst@HIDDEN>) id 1n5txD-0005mG-PV
 for 52896 <at> debbugs.gnu.org; Fri, 07 Jan 2022 13:27:10 -0500
Received: by mail-ed1-f43.google.com with SMTP id u25so25413355edf.1
 for <52896 <at> debbugs.gnu.org>; Fri, 07 Jan 2022 10:27:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=ZrWOUbKYosu9l3+d4lLCQQu+53fwvIiH1Ux47iC0tDs=;
 b=apAVXwxLme/aLhLzQ7A4XiSLLxdV8Kk/XQNUD6oReByfHUFF2QPgBwNfCytUNBSfgt
 Asnj+Pv19uqUGXaLUCSdqz2XU8vyC/7Qq4M4MIWxxOjsiNZ2HsOzqe5z5nf4/2VHCDeA
 6nmxviEgCgF6OPyOrcqLoKn234Za8sHSg3v7Aubw1zUAFyBDwBh9EOo/5u3uMApzps+g
 Zl559lvZRPr0fG7EoJxLet5My/ujxNmaWAKNX1xI93THSyo3Gz3LpX6VJuPWqJ19XMc2
 ACcjTnKYcRABb8EApNyZoiYalCRtVzfzNfv+2mjXfcybNLF8ojrIxjYFrg4qJQP57BRx
 /7sA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=ZrWOUbKYosu9l3+d4lLCQQu+53fwvIiH1Ux47iC0tDs=;
 b=gDIHYyjStl6R/UOQST4VhfsGP3AcHzkuQvevAlOjO9Hft16DK6TlIPaHMehHfJ8umE
 6UcAAHBvqxwqHx3upq5TDDpX99kqBL8EfwPkzTsouPQ+lE9QI6Sq0bjURejHfwzEF3vg
 lkLyVt04uKrUqJb7pss96fkeC8+f8j/MHuGotLSFFWd6cK2JSaanjAS9zSI84frFJHhF
 +9UD8hNAiXdS6Hi10bJp7VAWD40JG2u+COk9HxllT2sq4/3RzCJqjcEgthZL2EnN/K+j
 KDkYHf+Zu+vrzPSDIikiOBmv0ANX/z1qPNQ8QLdh1LaS9DfTQ5ZJxMzF0STjqKtz+b+4
 u+hA==
X-Gm-Message-State: AOAM531/hlg2qrjaG5Wui9NIBUSTwBeGn3Gf4c6ZoRajk+2wnL7iF5KJ
 4TAZCWpIIMR5T4w62jmRJkdbg2XV6AtRQaZ56xKwdi5W
X-Google-Smtp-Source: ABdhPJwxQasOtcKyURMhYCrI9d5ltCQzvh3BHroNS98R7uUp1TfQXmtyWHjMWcaxs2o2wmBCFVOTrlTwMW/doAhHBuI=
X-Received: by 2002:a17:907:3d88:: with SMTP id
 he8mr52497958ejc.241.1641579497637; 
 Fri, 07 Jan 2022 10:18:17 -0800 (PST)
MIME-Version: 1.0
References: <CAAKhXobWy31cAXERK3Fo8jGYPuuSAwvjR-+c66wqOo8a6WSscw@HIDDEN>
 <831r1uhqra.fsf@HIDDEN>
 <CAAKhXoYtLSM4N+y0sMqJzNj69PccM3rwXOndD1joBRGo9hJqmA@HIDDEN>
 <83zgohhpcf.fsf@HIDDEN>
 <CAAKhXoZ32D5ARiyvrAic-fu2CKnvghgUGZQoUwNgZhGKBngCVQ@HIDDEN>
 <83y241hmod.fsf@HIDDEN>
 <CAAKhXoa_wS-P3Ojmi59FSNF=46ewpV8OB_6zyj78zWUffrw_uw@HIDDEN>
 <CAAKhXob_RQHfZAFqwT6xqUP0VWDcUkhUq5V0_Y-eAPJcr8U5SA@HIDDEN>
 <CAAKhXoYEVxCvjezA+ppK+_c5x98mbkwqPsNSjkHsegC4=ARoFA@HIDDEN>
 <CAAKhXoYCtuEmyx2Qn8Ra6c9kRZWEi3viLRhKc29_vbkxK3J-Yw@HIDDEN>
 <83bl0sdhmn.fsf@HIDDEN> <834k6kdg44.fsf@HIDDEN>
In-Reply-To: <834k6kdg44.fsf@HIDDEN>
From: Andrey Listopadov <andreyorst@HIDDEN>
Date: Fri, 7 Jan 2022 21:17:41 +0300
Message-ID: <CAAKhXoYSYE_Xh6kk8wfoAkp=-+ps_ikQeqbWbymJXXQUStO9mQ@HIDDEN>
Subject: Re: bug#52896: 29.0.50;
 transient-mark-mode is set to a lot of 'only syms
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 52896
Cc: 52896 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> Sorry, please use the patch below instead:
>
> diff --git a/lisp/simple.el b/lisp/simple.el
> index 070d276..cbcde9f 100644
> --- a/lisp/simple.el
> +++ b/lisp/simple.el
> @@ -6664,7 +6664,7 @@ exchange-point-and-mark
>          (user-error "No mark set in this buffer"))
>      (set-mark (point))
>      (goto-char omark)
> -    (cond (temp-highlight
> +    (cond ((and (not arg) (not temp-highlight))
>            (setq-local transient-mark-mode (cons 'only transient-mark-mode)))
>           ((xor arg (not (region-active-p)))
>            (deactivate-mark))

Seems to work without issues




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#52896; Package emacs. Full text available.

Message received at 52896 <at> debbugs.gnu.org:


Received: (at 52896) by debbugs.gnu.org; 3 Jan 2022 14:54:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 03 09:54:48 2022
Received: from localhost ([127.0.0.1]:34540 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n4OjQ-0005ks-2K
	for submit <at> debbugs.gnu.org; Mon, 03 Jan 2022 09:54:48 -0500
Received: from eggs.gnu.org ([209.51.188.92]:54004)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1n4OjM-0005ke-Uh
 for 52896 <at> debbugs.gnu.org; Mon, 03 Jan 2022 09:54:39 -0500
Received: from [2001:470:142:3::e] (port=53244 helo=fencepost.gnu.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1n4OjH-0006f1-KN; Mon, 03 Jan 2022 09:54:31 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=QgXNNBX8KebQJSpzPA+LIP6nXpLU6BHjODD4peePZOg=; b=Eb+CHZxhuvVM
 OfAH3/6saiK2XU1xzKkF3V1qJ3hXyiszpmG2KDo9iZRrAJMiRkFOaCTt949EhNRRzz1THLW9qTbcQ
 /aJzwniP49UIH42qH2Pe06D4mMiJgUpWhA3gbS/JJeq0C0gtiddL1u9IaRa0/ukIBhqJy/96NvWkp
 tcCRrVFK5W1QU28zihFtIsF3EBaX7A+r8JaGL6HpKgc7/SdHtTRQ8V1/0WH/PFCVeCO5iKTJMtXsu
 cdDvJry1RpzG3+leCUBba63Un0vGH20SPNxah1JKrm9Kp2cZ7NrloC72Y0z6qzHGLAm+7ACc1327F
 mGxEH0TDeHgNDgwktYNhTQ==;
Received: from [87.69.77.57] (port=1773 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1n4OjH-0006CI-HJ; Mon, 03 Jan 2022 09:54:31 -0500
Date: Mon, 03 Jan 2022 16:54:35 +0200
Message-Id: <834k6kdg44.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: andreyorst@HIDDEN
In-Reply-To: <83bl0sdhmn.fsf@HIDDEN> (message from Eli Zaretskii on Mon, 03
 Jan 2022 16:21:52 +0200)
Subject: Re: bug#52896: 29.0.50;
 transient-mark-mode is set to a lot of 'only syms
References: <CAAKhXobWy31cAXERK3Fo8jGYPuuSAwvjR-+c66wqOo8a6WSscw@HIDDEN>
 <831r1uhqra.fsf@HIDDEN>
 <CAAKhXoYtLSM4N+y0sMqJzNj69PccM3rwXOndD1joBRGo9hJqmA@HIDDEN>
 <83zgohhpcf.fsf@HIDDEN>
 <CAAKhXoZ32D5ARiyvrAic-fu2CKnvghgUGZQoUwNgZhGKBngCVQ@HIDDEN>
 <83y241hmod.fsf@HIDDEN>
 <CAAKhXoa_wS-P3Ojmi59FSNF=46ewpV8OB_6zyj78zWUffrw_uw@HIDDEN>
 <CAAKhXob_RQHfZAFqwT6xqUP0VWDcUkhUq5V0_Y-eAPJcr8U5SA@HIDDEN>
 <CAAKhXoYEVxCvjezA+ppK+_c5x98mbkwqPsNSjkHsegC4=ARoFA@HIDDEN>
 <CAAKhXoYCtuEmyx2Qn8Ra6c9kRZWEi3viLRhKc29_vbkxK3J-Yw@HIDDEN>
 <83bl0sdhmn.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 52896
Cc: 52896 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> Date: Mon, 03 Jan 2022 16:21:52 +0200
> From: Eli Zaretskii <eliz@HIDDEN>
> Cc: 52896 <at> debbugs.gnu.org
> 
> Thanks.  Does the patch below give good results, i.e. does it fix this
> problem without introducing any others?

Sorry, please use the patch below instead:

diff --git a/lisp/simple.el b/lisp/simple.el
index 070d276..cbcde9f 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -6664,7 +6664,7 @@ exchange-point-and-mark
         (user-error "No mark set in this buffer"))
     (set-mark (point))
     (goto-char omark)
-    (cond (temp-highlight
+    (cond ((and (not arg) (not temp-highlight))
 	   (setq-local transient-mark-mode (cons 'only transient-mark-mode)))
 	  ((xor arg (not (region-active-p)))
 	   (deactivate-mark))




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#52896; Package emacs. Full text available.

Message received at 52896 <at> debbugs.gnu.org:


Received: (at 52896) by debbugs.gnu.org; 3 Jan 2022 14:21:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 03 09:21:56 2022
Received: from localhost ([127.0.0.1]:34486 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n4ODk-0004oN-2u
	for submit <at> debbugs.gnu.org; Mon, 03 Jan 2022 09:21:56 -0500
Received: from eggs.gnu.org ([209.51.188.92]:44800)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1n4ODi-0004o8-PC
 for 52896 <at> debbugs.gnu.org; Mon, 03 Jan 2022 09:21:55 -0500
Received: from [2001:470:142:3::e] (port=52156 helo=fencepost.gnu.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1n4ODd-0002dd-Hz; Mon, 03 Jan 2022 09:21:49 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=AMcM9bVqZJlzet3+XVNkdTLwEr9FywJGI84Kh4mV7bY=; b=o1Y7snDuXGVE
 p8PPawFJXtLKx0EPid+dO/asnMConPtdn6rXVZ7A5Rk8/wreTkWxVlx2AQGrS6VWNJLEzYLJJ7gK5
 7/+luVKL+gvtdU/S83cWwD9mo+CQMbqvA46OMp7pxiNktftukEbYUxv1h8nvo5mRT9XZTGp9oZS9t
 GgF7BZyAbFhhxzrTl3acRv87GXPcTL7FjcWtgF+IBRvF9af8ABXoYlVu7yJ6uzgF6kym4gj/3fv0l
 kJl6lDab3JPA+EE6Ig6jxDfXaL1bJH9nKT1y+7BBuYNQL+JANH/CMX10+q5VvI56udN7ubnz7L+wb
 Z0J8yldPG/PwnevEmQRkUw==;
Received: from [87.69.77.57] (port=3733 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1n4ODb-0003SR-PB; Mon, 03 Jan 2022 09:21:48 -0500
Date: Mon, 03 Jan 2022 16:21:52 +0200
Message-Id: <83bl0sdhmn.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Andrey Listopadov <andreyorst@HIDDEN>
In-Reply-To: <CAAKhXoYCtuEmyx2Qn8Ra6c9kRZWEi3viLRhKc29_vbkxK3J-Yw@HIDDEN>
 (message from Andrey Listopadov on Thu, 30 Dec 2021 23:40:25 +0300)
Subject: Re: bug#52896: 29.0.50;
 transient-mark-mode is set to a lot of 'only syms
References: <CAAKhXobWy31cAXERK3Fo8jGYPuuSAwvjR-+c66wqOo8a6WSscw@HIDDEN>
 <831r1uhqra.fsf@HIDDEN>
 <CAAKhXoYtLSM4N+y0sMqJzNj69PccM3rwXOndD1joBRGo9hJqmA@HIDDEN>
 <83zgohhpcf.fsf@HIDDEN>
 <CAAKhXoZ32D5ARiyvrAic-fu2CKnvghgUGZQoUwNgZhGKBngCVQ@HIDDEN>
 <83y241hmod.fsf@HIDDEN>
 <CAAKhXoa_wS-P3Ojmi59FSNF=46ewpV8OB_6zyj78zWUffrw_uw@HIDDEN>
 <CAAKhXob_RQHfZAFqwT6xqUP0VWDcUkhUq5V0_Y-eAPJcr8U5SA@HIDDEN>
 <CAAKhXoYEVxCvjezA+ppK+_c5x98mbkwqPsNSjkHsegC4=ARoFA@HIDDEN>
 <CAAKhXoYCtuEmyx2Qn8Ra6c9kRZWEi3viLRhKc29_vbkxK3J-Yw@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 52896
Cc: 52896 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Andrey Listopadov <andreyorst@HIDDEN>
> Date: Thu, 30 Dec 2021 23:40:25 +0300
> Cc: 52896 <at> debbugs.gnu.org
> 
> 1. M-x transient-mark-mode RET - turn tmm off;
> 2. S-right - select the default text in the *scratch* buffer;
> 3. `C-x C-x`, `C-x C-x`, `C-x C-x`, `C-x C-x`, `C-x C-x`, `C-x C-x` -
> this would cons some `only' symbols to the list;
> 4. `C-g' - remove the region highlighting, this removes one `only'
> from the list;
> 5. `C-SPC C-SPC' - displays a message "mark set" and then "mark
> activated",  but no highlighting happens, because of remaining `only'
> in the list.

Thanks.  Does the patch below give good results, i.e. does it fix this
problem without introducing any others?

diff --git a/lisp/simple.el b/lisp/simple.el
index 070d276..31463a7 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -6664,7 +6664,7 @@ exchange-point-and-mark
         (user-error "No mark set in this buffer"))
     (set-mark (point))
     (goto-char omark)
-    (cond (temp-highlight
+    (cond ((not temp-highlight)
 	   (setq-local transient-mark-mode (cons 'only transient-mark-mode)))
 	  ((xor arg (not (region-active-p)))
 	   (deactivate-mark))




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#52896; Package emacs. Full text available.

Message received at 52896 <at> debbugs.gnu.org:


Received: (at 52896) by debbugs.gnu.org; 30 Dec 2021 20:41:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 30 15:41:08 2021
Received: from localhost ([127.0.0.1]:54582 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n32EW-0001oP-Lk
	for submit <at> debbugs.gnu.org; Thu, 30 Dec 2021 15:41:08 -0500
Received: from mail-ed1-f45.google.com ([209.85.208.45]:45814)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <andreyorst@HIDDEN>) id 1n32EV-0001oA-OR
 for 52896 <at> debbugs.gnu.org; Thu, 30 Dec 2021 15:41:08 -0500
Received: by mail-ed1-f45.google.com with SMTP id j6so101978270edw.12
 for <52896 <at> debbugs.gnu.org>; Thu, 30 Dec 2021 12:41:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=Ipx1sjXUHcwQEAfIIalUYsbPcAKy9awjORFBRBLcl14=;
 b=gdYFsj2blNxrZQU44lprtXrI98XRFGxIN89N1WAIVfU2x1IQn0J8hBwf9k8jcg5wMv
 DWlVOSNXezhSrenT3VkOPyIY9LOVwrxTVxj5jQvLW9MEzLnPn0b1CFQ2Ya32bSZMV1mn
 wohRL36Vnonxw93AQ+DU4p3i3cSWw6DRV6k7e4Ert7zg9tmoXeZZJTwnrTPtJD46KkOe
 UBS4mZ//W5vBY0wLYff72Jfdhj++PrVDLE9mX9P4UoapKM3LX7gZhfCIDERV3HhW23oJ
 4vGFW4oqOxfSCLqAcMu90YfuQ1mQzd/pVQo4JWDEtjYKhuOslhsbC3CQGCRoACTzqnLo
 mt0g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=Ipx1sjXUHcwQEAfIIalUYsbPcAKy9awjORFBRBLcl14=;
 b=KiMnex3ry/XwQdHMWj0HMicPHatRWSAD98xGR7bWao8WTAuLHIh3gBQZ5Lwmm2+kyG
 KHAIw3J7tbT2y47VUSOdCc82FZMLwvNAgDzLfn1k0ZHSIY17NGpdswRDMhHuxDSoAAk5
 xvbCyWpZft5LyNAaYuwVwl1Gtsu0YIFn83jtuxzY7bTKm9/f+VaBLRAlRJZJSPsiXCMi
 bNfpoV3EXslX11WqByI8gTPopZve4pt0PlcFOV4lvavwyxUnuBc7jMWVBk8V93XfJ8Ej
 ky5i2A0sj7C5/qbOs5ExtI20iCa5EDKA6t4x8NxUTOWt09KtR7sfOsYG0TH6tax7/90m
 EuwA==
X-Gm-Message-State: AOAM532uRh/ye7/JkJPiORkb7BZOYUj86j2woEHthfaz08WUvHgKpNxT
 oKu2SgF31N1S+OAIB9dOl4CviUJULJmPB//qCRaf7esV+Pk=
X-Google-Smtp-Source: ABdhPJwo3/PPAoOfOyq6JTqyIIaZYI72EygV2IjrdMO8hrgkTtGfbNb2rynar9pqf30IifSHcuWpmRDtQDmZ9jo5ZZQ=
X-Received: by 2002:a17:907:3d88:: with SMTP id
 he8mr27169407ejc.241.1640896861818; 
 Thu, 30 Dec 2021 12:41:01 -0800 (PST)
MIME-Version: 1.0
References: <CAAKhXobWy31cAXERK3Fo8jGYPuuSAwvjR-+c66wqOo8a6WSscw@HIDDEN>
 <831r1uhqra.fsf@HIDDEN>
 <CAAKhXoYtLSM4N+y0sMqJzNj69PccM3rwXOndD1joBRGo9hJqmA@HIDDEN>
 <83zgohhpcf.fsf@HIDDEN>
 <CAAKhXoZ32D5ARiyvrAic-fu2CKnvghgUGZQoUwNgZhGKBngCVQ@HIDDEN>
 <83y241hmod.fsf@HIDDEN>
 <CAAKhXoa_wS-P3Ojmi59FSNF=46ewpV8OB_6zyj78zWUffrw_uw@HIDDEN>
 <CAAKhXob_RQHfZAFqwT6xqUP0VWDcUkhUq5V0_Y-eAPJcr8U5SA@HIDDEN>
 <CAAKhXoYEVxCvjezA+ppK+_c5x98mbkwqPsNSjkHsegC4=ARoFA@HIDDEN>
In-Reply-To: <CAAKhXoYEVxCvjezA+ppK+_c5x98mbkwqPsNSjkHsegC4=ARoFA@HIDDEN>
From: Andrey Listopadov <andreyorst@HIDDEN>
Date: Thu, 30 Dec 2021 23:40:25 +0300
Message-ID: <CAAKhXoYCtuEmyx2Qn8Ra6c9kRZWEi3viLRhKc29_vbkxK3J-Yw@HIDDEN>
Subject: Re: bug#52896: 29.0.50;
 transient-mark-mode is set to a lot of 'only syms
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 52896
Cc: 52896 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

So, to be clear, the issue is that `C-SPC C-SPC' doesn't enable region
highlighting, preventing from running functions that operate on the
active region.
Full reproduction steps for `emacs -Q' once again:

1. M-x transient-mark-mode RET - turn tmm off;
2. S-right - select the default text in the *scratch* buffer;
3. `C-x C-x`, `C-x C-x`, `C-x C-x`, `C-x C-x`, `C-x C-x`, `C-x C-x` -
this would cons some `only' symbols to the list;
4. `C-g' - remove the region highlighting, this removes one `only'
from the list;
5. `C-SPC C-SPC' - displays a message "mark set" and then "mark
activated",  but no highlighting happens, because of remaining `only'
in the list.

Only after *enough* `C-SPC C-SPC' or other commands, the region
highlighting begins to work again.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#52896; Package emacs. Full text available.

Message received at 52896 <at> debbugs.gnu.org:


Received: (at 52896) by debbugs.gnu.org; 30 Dec 2021 20:33:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 30 15:33:07 2021
Received: from localhost ([127.0.0.1]:54564 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n326l-0001ZI-Dk
	for submit <at> debbugs.gnu.org; Thu, 30 Dec 2021 15:33:07 -0500
Received: from mail-ed1-f48.google.com ([209.85.208.48]:47048)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <andreyorst@HIDDEN>) id 1n326j-0001Yf-MF
 for 52896 <at> debbugs.gnu.org; Thu, 30 Dec 2021 15:33:05 -0500
Received: by mail-ed1-f48.google.com with SMTP id l5so67404360edj.13
 for <52896 <at> debbugs.gnu.org>; Thu, 30 Dec 2021 12:33:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=o1Nrs1APV3MlF5rPL1S0ZTHKi4e/b1GCnwLCc8UqNTQ=;
 b=qDU0RqJS+DSWgkizgTuYPkqvVwj7OK5kFYuug0AfSTSLtfumB94o1ksVIxQgbjHyEm
 IJGjFFdjD9Wf3BBlY+Qy1dZ1JzpoF7cq5wxiLP1KcaV61zAKhQpl63exrhypgM8Fmjur
 ygsztDHNP1zTatJNVp7Jo+bmrVDIXHNK2pin2WHv1fwfqWf6Ot4cxVozd2EUNEoTFkSc
 2kTdkmIbRnq2v3jK/Y7bxTayOaX69SWc1BTosQCfdNSHF2jRhogLn6m0cVEWPHkAgZFC
 N04oVsjV7gNgSOGLmPW1eP5kbx0bnG+csi5QdvxRYYpSMhA6lvbG55DUw0/hLIPTOI7F
 Jvwg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=o1Nrs1APV3MlF5rPL1S0ZTHKi4e/b1GCnwLCc8UqNTQ=;
 b=yRHFlM5pt8FALW3FCUX0ZGxWA2blXdm9JhaM+wWQYGZIjmdVEJPa7njqQo5W2ZY05s
 ncHSkwXBp5QTvTv/Q/VXRPpW3fIlnGzEIZGj5TIKVlORwU8sz+DtnLySPqOW8X5kGHqq
 FVtiCfUFyXR1we08TdrqrRA7WrP6Zh7lOm9LWKB6dDAnHFK+e8VLTcUvcYLMUMK2EklD
 lDJjoonXth0J3EQoEelY+56bDKtfDkOUESa6LQbXyHjvCC+M1oIiYDop2exARPlOiIm1
 wBhKrbR41IANm6Q1Vhdpzf4pAN5/B8EkurAu4WHumqcOpInPg+0C+sj3c07ePMqWbIzf
 s2ow==
X-Gm-Message-State: AOAM533xHSwpYAQPITp1+tayJOC/JeA5Bp7QwEfxCfEVlSHvMQrspa49
 Ryg0pWzKgereq+QSonzR6cL1USSXi42MYmDjZeQkX29t
X-Google-Smtp-Source: ABdhPJwH6FCvubdmX7lJebinhksrVmFvGDBO+RIdtvMuK3QKFnQiw/92sspWN3DCtHy8ZeUAIuKFrqw79y8U7i962No=
X-Received: by 2002:a17:907:3d88:: with SMTP id
 he8mr27150179ejc.241.1640896379889; 
 Thu, 30 Dec 2021 12:32:59 -0800 (PST)
MIME-Version: 1.0
References: <CAAKhXobWy31cAXERK3Fo8jGYPuuSAwvjR-+c66wqOo8a6WSscw@HIDDEN>
 <831r1uhqra.fsf@HIDDEN>
 <CAAKhXoYtLSM4N+y0sMqJzNj69PccM3rwXOndD1joBRGo9hJqmA@HIDDEN>
 <83zgohhpcf.fsf@HIDDEN>
 <CAAKhXoZ32D5ARiyvrAic-fu2CKnvghgUGZQoUwNgZhGKBngCVQ@HIDDEN>
 <83y241hmod.fsf@HIDDEN>
 <CAAKhXoa_wS-P3Ojmi59FSNF=46ewpV8OB_6zyj78zWUffrw_uw@HIDDEN>
 <CAAKhXob_RQHfZAFqwT6xqUP0VWDcUkhUq5V0_Y-eAPJcr8U5SA@HIDDEN>
In-Reply-To: <CAAKhXob_RQHfZAFqwT6xqUP0VWDcUkhUq5V0_Y-eAPJcr8U5SA@HIDDEN>
From: Andrey Listopadov <andreyorst@HIDDEN>
Date: Thu, 30 Dec 2021 23:32:23 +0300
Message-ID: <CAAKhXoYEVxCvjezA+ppK+_c5x98mbkwqPsNSjkHsegC4=ARoFA@HIDDEN>
Subject: Re: bug#52896: 29.0.50;
 transient-mark-mode is set to a lot of 'only syms
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 52896
Cc: 52896 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Perhaps the intention was that the execution of
`exchange-point-and-mark' would remove `once' from the list, so the
function should add it back thus ensuring that the highlighting added
by the shift select would not go away.  However, this instead results
in an uncontrollably growing list, which then interferes with `C-SPC
C-SPC'.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#52896; Package emacs. Full text available.

Message received at 52896 <at> debbugs.gnu.org:


Received: (at 52896) by debbugs.gnu.org; 30 Dec 2021 20:27:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 30 15:27:53 2021
Received: from localhost ([127.0.0.1]:54547 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n321g-0001Mz-QR
	for submit <at> debbugs.gnu.org; Thu, 30 Dec 2021 15:27:52 -0500
Received: from mail-ed1-f44.google.com ([209.85.208.44]:39528)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <andreyorst@HIDDEN>) id 1n321e-0001Mf-GE
 for 52896 <at> debbugs.gnu.org; Thu, 30 Dec 2021 15:27:51 -0500
Received: by mail-ed1-f44.google.com with SMTP id f5so102005792edq.6
 for <52896 <at> debbugs.gnu.org>; Thu, 30 Dec 2021 12:27:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=LSmEBVWy5eNrmY1WRHJaxLs8gzE5wZDNPSf/rryeGCI=;
 b=BE2VPW+o5yoF9hqPGPv/7WJi6zBULiD+Ad6hc4puRVUx4tztYXIF9RFg/HT6+A7gib
 +TYKcEQtc0/O7QsBqObbQViJ4RMTwRNOnCgNJFa+bKHMGJTrI30+5Y84tPCyesyRUfY9
 81WQjveatS2+rhMRfrp96aPgS2WYmErwUvAYxSHAxo4ycsgiMDpQRcw2QBfjuBJZ/Flu
 kktEs8JxmeWOzvjdwcph15oGUSCX5qwX+zkWFRLETKnzLiDmgcZh6Pxdv3n5v0r6NqVz
 BNwQO0nkxd+O2qoY5+9ZR1vqt34N8mMCS8QG0hH9Q1179NtLUorL+obauRjmY2nYi/xY
 4v7g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=LSmEBVWy5eNrmY1WRHJaxLs8gzE5wZDNPSf/rryeGCI=;
 b=s0WjPp8aLS4zSk2IsBccIha4tUoRXbl6MxLfWtw3zEsPzXDOAPTDu6Z2w7UkI13pnq
 c9ighuIE6KEShK3X8rtHkN6kpN7UE0eRzh1ZKfwYFI6vZEv5eyU0T0VQffcg4D2ay6Dd
 WYzYOFomoyJx0K+WSK+3G74encJeQv+QnZ8McKJCRTZRa+rB0zutRprxz3uy528x9YMh
 NK4tMhrm+l8SCHEGVpuQeGJsIOkid5f8RDRZhTsppnM8aNeY3xYQLjTu4d3W8OcgJ+vk
 GcdLqzSG22x5kEjTB6MrGleyVNVkEnm5nxKA9uBaXuz4BqzUX+cnwSkGPgP+cR8kKbb1
 sYoQ==
X-Gm-Message-State: AOAM533WdUOp3vYpExsYrFegSld3xX4iIxnPf5f5bLyAdxvETm29L9Ra
 zVeMYka144Z4+t8OLC2VTjQfa9keUA53H2AeHt0=
X-Google-Smtp-Source: ABdhPJy0eyG3CJ1ROIVHVW0Hy3GHRbJ9hUoFuwRPY/nxNajhycCw5Id5Zg05mOnNejkGqmd6RVHwZe3J210wLxksoF4=
X-Received: by 2002:aa7:c1cf:: with SMTP id d15mr32229013edp.130.1640896064701; 
 Thu, 30 Dec 2021 12:27:44 -0800 (PST)
MIME-Version: 1.0
References: <CAAKhXobWy31cAXERK3Fo8jGYPuuSAwvjR-+c66wqOo8a6WSscw@HIDDEN>
 <831r1uhqra.fsf@HIDDEN>
 <CAAKhXoYtLSM4N+y0sMqJzNj69PccM3rwXOndD1joBRGo9hJqmA@HIDDEN>
 <83zgohhpcf.fsf@HIDDEN>
 <CAAKhXoZ32D5ARiyvrAic-fu2CKnvghgUGZQoUwNgZhGKBngCVQ@HIDDEN>
 <83y241hmod.fsf@HIDDEN>
 <CAAKhXoa_wS-P3Ojmi59FSNF=46ewpV8OB_6zyj78zWUffrw_uw@HIDDEN>
In-Reply-To: <CAAKhXoa_wS-P3Ojmi59FSNF=46ewpV8OB_6zyj78zWUffrw_uw@HIDDEN>
From: Andrey Listopadov <andreyorst@HIDDEN>
Date: Thu, 30 Dec 2021 23:27:08 +0300
Message-ID: <CAAKhXob_RQHfZAFqwT6xqUP0VWDcUkhUq5V0_Y-eAPJcr8U5SA@HIDDEN>
Subject: Re: bug#52896: 29.0.50;
 transient-mark-mode is set to a lot of 'only syms
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 52896
Cc: 52896 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

sorry, misinterpreted.

Yes, if I perform *enough* commands, it goes back to `nil'.  But the
problem is that I can easily make this list a giant one, the way I've
described in the previous message - repeated execution of exchange
point and mark clearly misbehaves here




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#52896; Package emacs. Full text available.

Message received at 52896 <at> debbugs.gnu.org:


Received: (at 52896) by debbugs.gnu.org; 30 Dec 2021 20:21:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 30 15:21:05 2021
Received: from localhost ([127.0.0.1]:54543 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n31v7-0001BP-3u
	for submit <at> debbugs.gnu.org; Thu, 30 Dec 2021 15:21:05 -0500
Received: from mail-ed1-f54.google.com ([209.85.208.54]:34752)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <andreyorst@HIDDEN>) id 1n31v4-0001Ab-VL
 for 52896 <at> debbugs.gnu.org; Thu, 30 Dec 2021 15:21:03 -0500
Received: by mail-ed1-f54.google.com with SMTP id x15so102098023edv.1
 for <52896 <at> debbugs.gnu.org>; Thu, 30 Dec 2021 12:21:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=60S/nsX2IouYAZDqljkUS2R6l+5k4mps4q6jmI1WoL0=;
 b=Ro1XraVCh9xEQdAAUhmnLt9YlhoUu6xJAJd509TQfrhWEgdfOaFKrzNgogjo5rpTxL
 dYDrsPCwP9K56xUchbYUmWvFTtn3KYu1eTWv/oWC3b/mqUFHa2nA/dKieekZke8epy2e
 wF5h+OotU7dvzBbwgvR/AQnfxLpavZ8vAQYawchIQbzKUGzYXsEy6DZBv8WSfIc6glU/
 TAne/961CxYdWHuUc50OpfvJXWpmSK88wl0+pnOdT9VEnV5B3VvqzFIRVjgSe0LJl1xQ
 DEULOhuNsF0J4PH7m2AlonYi3KXRPwKmbYUS3wdRMkbkUigKCK8Q1DfvS4t2g+VGK2j+
 LgRA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=60S/nsX2IouYAZDqljkUS2R6l+5k4mps4q6jmI1WoL0=;
 b=wgzaPA2a4WjnRMo/ybN4o32dgi4Vg5bwnRnIICByXEslcAmZ3okEmRu1EKSl0CMNgL
 fR7iuVRFiXQuDBQup80tflfFkIMlHw/ueUeY9W00nIATkra7PyTYIhNJ6mZrIVLB6+iL
 BCg6egFXBlC7cA4WZ+QWGwJmOkvzYUHTMOqrDkgeHiWh7zqIuv4vH5ULuxEhDNSCni7C
 9HCuiC86wDFVusvaYseLu0loAoNmD1PgcdvSDixCG4ecffztNKwC35ZtK1YBOIJdHp63
 kl1bksmGXhBEYnkABrgVKnV8YlpYSDWN4a73oD5ErRavLCFzT79beJarh1zgeblk7GQW
 L0xA==
X-Gm-Message-State: AOAM530dtIF/v4t8kLipVFh3ZGY8K0agu7J/nPD04vIhbE5I8J04R9me
 nc18eusriL0nsdnIcfhghFiu9o2hHhZe+lIPS2oJ5/l6
X-Google-Smtp-Source: ABdhPJyZfWtiF/u7D1dDLOYNZVhoGOZkdnwkaQi3x0YlHFPxjTs1qracaE+4+vzzvhM/HsBLtocO7viJryZ79klXEzM=
X-Received: by 2002:a17:906:ff14:: with SMTP id
 zn20mr26835700ejb.649.1640895657154; 
 Thu, 30 Dec 2021 12:20:57 -0800 (PST)
MIME-Version: 1.0
References: <CAAKhXobWy31cAXERK3Fo8jGYPuuSAwvjR-+c66wqOo8a6WSscw@HIDDEN>
 <831r1uhqra.fsf@HIDDEN>
 <CAAKhXoYtLSM4N+y0sMqJzNj69PccM3rwXOndD1joBRGo9hJqmA@HIDDEN>
 <83zgohhpcf.fsf@HIDDEN>
 <CAAKhXoZ32D5ARiyvrAic-fu2CKnvghgUGZQoUwNgZhGKBngCVQ@HIDDEN>
 <83y241hmod.fsf@HIDDEN>
In-Reply-To: <83y241hmod.fsf@HIDDEN>
From: Andrey Listopadov <andreyorst@HIDDEN>
Date: Thu, 30 Dec 2021 23:20:20 +0300
Message-ID: <CAAKhXoa_wS-P3Ojmi59FSNF=46ewpV8OB_6zyj78zWUffrw_uw@HIDDEN>
Subject: Re: bug#52896: 29.0.50;
 transient-mark-mode is set to a lot of 'only syms
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 52896
Cc: 52896 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> If you then perform enough non-shifted commands, the value goes back
> to nil.  So I'm not sure I see the problem.

No, it doesn't.  Instead, it removes a single `once' from the list per
executed command.  So if you have a list of `(once once once once)',
pressing `C-a' will turn it to `(once once once)'.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#52896; Package emacs. Full text available.

Message received at 52896 <at> debbugs.gnu.org:


Received: (at 52896) by debbugs.gnu.org; 30 Dec 2021 20:17:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 30 15:17:58 2021
Received: from localhost ([127.0.0.1]:54536 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n31s6-00014Q-KV
	for submit <at> debbugs.gnu.org; Thu, 30 Dec 2021 15:17:58 -0500
Received: from eggs.gnu.org ([209.51.188.92]:48546)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1n31s1-00013s-KK
 for 52896 <at> debbugs.gnu.org; Thu, 30 Dec 2021 15:17:53 -0500
Received: from [2001:470:142:3::e] (port=54902 helo=fencepost.gnu.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1n31rw-0007sP-CC; Thu, 30 Dec 2021 15:17:48 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=r7SryE7Wk1mNNRf64Vb4F8FtM2IwwKVVKmsMfTHV2gw=; b=mZy4XeRcUaMt
 BEyH0t5BB6Mia2kx1hXlbKPWG7rpw6xvPGSKecE4Sk++/io/NFJszS/+UJbw+UN9pdrJLwWp7zyjX
 UhAKxYaOGHGHP3zd0DZT+jvshIYiHkSr48wyfRjAy8qYzVU2FBWIAZYMOjKzdndktVZuQeHbtLLq+
 lD+lq6TDjm/ACaBB5XkvHiaj/zDPZWeAeAIVt/rRB1ODL7xqcVkjMXM1bqnyiyOzrxzmtuXV6M+vO
 8H26xkxQUMMgLtOKdCgR54ArFAhYgurN218pyRuvAeCe8Zlsbi51Nze3yJLrpQLqtNAMCwvxnuxrE
 5U5vIKvO3Isz2gVxrDOFNw==;
Received: from [87.69.77.57] (port=3445 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1n31rw-0004dc-Be; Thu, 30 Dec 2021 15:17:48 -0500
Date: Thu, 30 Dec 2021 22:17:54 +0200
Message-Id: <83y241hmod.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Andrey Listopadov <andreyorst@HIDDEN>
In-Reply-To: <CAAKhXoZ32D5ARiyvrAic-fu2CKnvghgUGZQoUwNgZhGKBngCVQ@HIDDEN>
 (message from Andrey Listopadov on Thu, 30 Dec 2021 23:02:13 +0300)
Subject: Re: bug#52896: 29.0.50;
 transient-mark-mode is set to a lot of 'only syms
References: <CAAKhXobWy31cAXERK3Fo8jGYPuuSAwvjR-+c66wqOo8a6WSscw@HIDDEN>
 <831r1uhqra.fsf@HIDDEN>
 <CAAKhXoYtLSM4N+y0sMqJzNj69PccM3rwXOndD1joBRGo9hJqmA@HIDDEN>
 <83zgohhpcf.fsf@HIDDEN>
 <CAAKhXoZ32D5ARiyvrAic-fu2CKnvghgUGZQoUwNgZhGKBngCVQ@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 52896
Cc: 52896 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Andrey Listopadov <andreyorst@HIDDEN>
> Date: Thu, 30 Dec 2021 23:02:13 +0300
> Cc: 52896 <at> debbugs.gnu.org
> 
> > That's true, but in "emacs -Q", once I use a non-shifted command, the
> > value becomes just nil, as intended.
> 
> Here's how to reproduce this without expand-region in `emacs -Q'
> 
> 1. `M-x transient-mark-mode RET' - disabling tmm;
> 2. Shift-right on some word in the *scratch* buffer - initial `only'
> is consed to `transient-mark-mode';
> 3. `C-x C-x' `C-x C-x' `C-x C-x' to invoke the
> `exchange-point-and-mark' function several times;
> 4. `C-h v transient-mark-mode RET' - the value is `(only only only only only)'.

If you then perform enough non-shifted commands, the value goes back
to nil.  So I'm not sure I see the problem.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#52896; Package emacs. Full text available.

Message received at 52896 <at> debbugs.gnu.org:


Received: (at 52896) by debbugs.gnu.org; 30 Dec 2021 20:02:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 30 15:02:58 2021
Received: from localhost ([127.0.0.1]:54517 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n31da-0000cs-4M
	for submit <at> debbugs.gnu.org; Thu, 30 Dec 2021 15:02:58 -0500
Received: from mail-ed1-f54.google.com ([209.85.208.54]:33628)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <andreyorst@HIDDEN>) id 1n31dX-0000ca-Vy
 for 52896 <at> debbugs.gnu.org; Thu, 30 Dec 2021 15:02:56 -0500
Received: by mail-ed1-f54.google.com with SMTP id m21so103062109edc.0
 for <52896 <at> debbugs.gnu.org>; Thu, 30 Dec 2021 12:02:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=e1TsmsYy5fstn3wONmdy3KXvnh0nodr8ZqeENyKzhG4=;
 b=aYZVk01X5SwSIpfse0mDuV1PSZvAXWOJsCwn06qmdHk6gcYk3hfoUOdgQrYA/xA1d2
 TFWuz3TweK2VisKPbLjcanLzCSjyMFLLnWBCXd1vBdvzrAEHzZLwQccahVeetJAfAakv
 VA/xvSbhirL8gGdUp9TK/82jr4X8nsYGQpRpAdkhdh6i8QUiCaK9/2RvDefiKIfAc4Ri
 DyogHdBkH3lcW0BJALeg6MobVMr9NXzSbNDtlF8UU91SbhCSAjZcnA/XK9CvQtFR66KU
 FCohVNy0InMW8ylV6Dq8vrJFv+S+IdiCVUsoxrQy2aGutpsn7d0YXOBDT/+DH3evCWmW
 /BCw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=e1TsmsYy5fstn3wONmdy3KXvnh0nodr8ZqeENyKzhG4=;
 b=T5fP/hH3dbRA9eCXVt4DSY/Y0HVx5Jc6isH5BO00Ft5l7BOG/k5BC4ga0GWS9WT+fj
 DTHp2fqx5QQMnZzC5f8Gl4dcyaTSWhkZYpGYFgv2DSX4yUnUoV3SttvWCS9vRJidA7La
 OD6+j+oLTuFvECqALAPGmTWETG3rrQb65x3X20IiV2LRkHmaFm8LAqMiXrIYYLQwPOBS
 VOdPqoLXH2UkJG5DIXhVwur1iJ7SiTjXO3capGbn/iCnOoBSa0FHyUC0Ya+Uctf7oIM/
 ACA1AzCf8v6SO1oUZ/80Oep55vNytUWbSoZJaBIyP0vURVZJZ6bHvRZiUHMTsW8TY/r8
 /35Q==
X-Gm-Message-State: AOAM532ND/8WV75ecbviFehGaa9tSu7/AYAmq/g8ZI/PJRemrmneux0C
 xPMY3r0RitZHZ8A+kgoSirDP37hN/1dVkzfsiks=
X-Google-Smtp-Source: ABdhPJysSONsZH1JIbdN1IUmutSg9j871+52fqXNbKdjVc8UdLLgxxRhEhTB8tcsZvVU7DlMkH5WRGcwpizLhl4ATqo=
X-Received: by 2002:a17:907:3d88:: with SMTP id
 he8mr27069863ejc.241.1640894569826; 
 Thu, 30 Dec 2021 12:02:49 -0800 (PST)
MIME-Version: 1.0
References: <CAAKhXobWy31cAXERK3Fo8jGYPuuSAwvjR-+c66wqOo8a6WSscw@HIDDEN>
 <831r1uhqra.fsf@HIDDEN>
 <CAAKhXoYtLSM4N+y0sMqJzNj69PccM3rwXOndD1joBRGo9hJqmA@HIDDEN>
 <83zgohhpcf.fsf@HIDDEN>
In-Reply-To: <83zgohhpcf.fsf@HIDDEN>
From: Andrey Listopadov <andreyorst@HIDDEN>
Date: Thu, 30 Dec 2021 23:02:13 +0300
Message-ID: <CAAKhXoZ32D5ARiyvrAic-fu2CKnvghgUGZQoUwNgZhGKBngCVQ@HIDDEN>
Subject: Re: bug#52896: 29.0.50;
 transient-mark-mode is set to a lot of 'only syms
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 52896
Cc: 52896 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> That's true, but in "emacs -Q", once I use a non-shifted command, the
> value becomes just nil, as intended.

Here's how to reproduce this without expand-region in `emacs -Q'

1. `M-x transient-mark-mode RET' - disabling tmm;
2. Shift-right on some word in the *scratch* buffer - initial `only'
is consed to `transient-mark-mode';
3. `C-x C-x' `C-x C-x' `C-x C-x' to invoke the
`exchange-point-and-mark' function several times;
4. `C-h v transient-mark-mode RET' - the value is `(only only only only only)'.

So I guess this is the `exchange-point-and-mark' issue.

-- 
Andrey Listopadov




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#52896; Package emacs. Full text available.

Message received at 52896 <at> debbugs.gnu.org:


Received: (at 52896) by debbugs.gnu.org; 30 Dec 2021 19:20:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 30 14:20:39 2021
Received: from localhost ([127.0.0.1]:54498 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n30yd-0007lg-Ax
	for submit <at> debbugs.gnu.org; Thu, 30 Dec 2021 14:20:39 -0500
Received: from eggs.gnu.org ([209.51.188.92]:56530)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1n30yc-0007lN-0p
 for 52896 <at> debbugs.gnu.org; Thu, 30 Dec 2021 14:20:38 -0500
Received: from [2001:470:142:3::e] (port=52020 helo=fencepost.gnu.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1n30yU-0004zJ-Ja; Thu, 30 Dec 2021 14:20:32 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=IoVxFtOKINl1vNGaewfxUrYNaDdGGe+N2PS+KqCxXrA=; b=luIxmtrHdHAl
 5456clqZERPjFa/lKaRElzI5Otrcum2/o2p8jC6gD1hqhpnmqTJ1JnANe53BNLbM2D7VahZHr0eYx
 zvLSl6AIPCRV+lDKvwmXiyWuOxHwQE8fZgBcRt3vsQLqHwPR8oUpkD593CgL6UREAOhrSy4FXHI42
 mZCWHb/zWzb3Nqh7RfBCDDjRLg7pBEQgY06/qJtKjWOj4La6mAujFHHkQjvRvmUqbbeI8ex1oFyhc
 9u/s48n4u+P7w/4hHi9xlxkGAGbRgjeEeCdLW+9roqRg1qPw5iDY2Jo+AeSmRcxbqvB1DjguOU6fB
 pTsdQzN5iGlVBFp6qcTaGg==;
Received: from [87.69.77.57] (port=3882 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1n30yB-0000hh-TL; Thu, 30 Dec 2021 14:20:30 -0500
Date: Thu, 30 Dec 2021 21:20:16 +0200
Message-Id: <83zgohhpcf.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Andrey Listopadov <andreyorst@HIDDEN>
In-Reply-To: <CAAKhXoYtLSM4N+y0sMqJzNj69PccM3rwXOndD1joBRGo9hJqmA@HIDDEN>
 (message from Andrey Listopadov on Thu, 30 Dec 2021 22:07:26 +0300)
Subject: Re: bug#52896: 29.0.50;
 transient-mark-mode is set to a lot of 'only syms
References: <CAAKhXobWy31cAXERK3Fo8jGYPuuSAwvjR-+c66wqOo8a6WSscw@HIDDEN>
 <831r1uhqra.fsf@HIDDEN>
 <CAAKhXoYtLSM4N+y0sMqJzNj69PccM3rwXOndD1joBRGo9hJqmA@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 52896
Cc: 52896 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Andrey Listopadov <andreyorst@HIDDEN>
> Date: Thu, 30 Dec 2021 22:07:26 +0300
> Cc: 52896 <at> debbugs.gnu.org
> 
> > How come transient-mark-mode became set to 'only' in the first place?
> > That is supposed to happen only when shift-translated commands are
> > used, and should be reset to the old value whenever the first
> > non-shift-translated command is used.  See the doc string of
> > transient-mark-mode (the variable).
> 
> The expand-region package sets transient mark mode to `only' when tmm
> is disabled:
> 
> https://github.com/magnars/expand-region.el/blob/4b8322774d9c1d8b64a0049d1dbbc1e7ce80c1a0/expand-region-core.el#L57
> https://github.com/magnars/expand-region.el/blob/4b8322774d9c1d8b64a0049d1dbbc1e7ce80c1a0/expand-region-core.el#L163
> 
> > You can see how it works if, in "emacs -Q", you press and hold Shift
> > and use arrow keys to move point, then evaluate
> >
> >   M-: transient-mark-mode RET
> >
> > You should then see the value '(only . t)' of the variable.  Once you
> > type some unshifted command, like C-f, the value becomes t again.
> 
> Yes, I know, but in the case when transient mark mode is disabled, its
> value is not `(only . t)', but `(only . nil)' which is just `(only)'.

That's true, but in "emacs -Q", once I use a non-shifted command, the
value becomes just nil, as intended.

> > Bottom line: you should look in expand-region.el for the reasons of
> > this misbehavior, and perhaps report a bug to its developers.
> 
> Unfortunately, Magnar Sveen disabled the issue-reporting feature of
> github for this particular project.
> However, looking at the docstring, I guess what expand-region does is
> correct, and the `exchange-point-and-mark' function does kind of a
> weird check - e.g. it checks if the car of `transient-mark-mode' is
> `only' and then conses another only to that.
> But again, I'm not sure what's the intention here, maybe it is expected.

It sounds like expand-region.el assumes something about an internal
implementation detail of this variable.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#52896; Package emacs. Full text available.

Message received at 52896 <at> debbugs.gnu.org:


Received: (at 52896) by debbugs.gnu.org; 30 Dec 2021 19:08:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 30 14:08:10 2021
Received: from localhost ([127.0.0.1]:54492 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n30mY-0007Ol-5E
	for submit <at> debbugs.gnu.org; Thu, 30 Dec 2021 14:08:10 -0500
Received: from mail-ed1-f44.google.com ([209.85.208.44]:34330)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <andreyorst@HIDDEN>) id 1n30mW-0007OT-Nj
 for 52896 <at> debbugs.gnu.org; Thu, 30 Dec 2021 14:08:09 -0500
Received: by mail-ed1-f44.google.com with SMTP id x15so101527790edv.1
 for <52896 <at> debbugs.gnu.org>; Thu, 30 Dec 2021 11:08:08 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=UdyeXh/vetndBW9i9q/D7Ldmp72oqYiaW4SxDOA7Qag=;
 b=Nqaoem9t7DLLkZjbmdMQLMpeGouHaNe0qY25RxzIWH8YVwssLYvIGrKlDLPJTwUziw
 G5HkgDZAzmduS6HIVb4a1Oq6Nu0T8airaNOqYLUBeR3KKsZ4MT4gSEghtv3abIh1h8W6
 U5FJLTfV2RW8QNG8KuuDswTUydhg4ZVz/xuLxO3O7LzayMxByqDV7nd+sn0GEyWH1ffP
 vleZIv30tTBlxxcWY+bMR3vXIwupZmsThND2tXDqHaUfbK+r/YuiotTdjad3uuEEeM3p
 kWpb+5xc2EH9ZTqsZfeyokx6cwScFEwmoVvy9TPXrflJqTjqpA222/2fc4/vKSRnUo7C
 bPwQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=UdyeXh/vetndBW9i9q/D7Ldmp72oqYiaW4SxDOA7Qag=;
 b=sXMHS2AnE987R4I0vVB08AnrpWssB2Izy+BWNaOJsX0qj3C3wgKoc6duxS7Npt5nyd
 5+n+Tmf2EAVNyDssSxXbAN8EFLraRNfaXA4EPim2z6U28H+pTdhBNh9yT/HlDV+72f/H
 vFf76zRtpWN7jOLxQ+1cRn6pCA9LC3KSNR8jiZ7ekbe38JUlREE1JhDnPM9fWfwPZk55
 Y8n3e6xOrDQ/9YhxNZ7KP2WPmNTfPW1Fb1z22j2HKPeWp6WDjgX4dwaFoE8908CEwoCG
 6K6YEOJvxCfdO3wrX7Ejgy9cXwakMJo2D9uVUk3yM4VOJzv5NpEFLTF0qUF4fifuBhFr
 4PJg==
X-Gm-Message-State: AOAM5307E3iwgMX7mCDcG9mgmS1bM+5pXHl75lhubQyeDMUjHv2YLpL3
 TFpUhBOxZk2zPM6C/IEhviyC5Fr/jykizpxyEKs=
X-Google-Smtp-Source: ABdhPJx010p9ChzX8sJZnY468PEg8AnkTGk1NIt0IMRk95oT6BX0vOyDehzfccwVrwx3zbCkH9ZnBjbfdQs86UFvZNA=
X-Received: by 2002:a17:907:3d88:: with SMTP id
 he8mr26925129ejc.241.1640891282880; 
 Thu, 30 Dec 2021 11:08:02 -0800 (PST)
MIME-Version: 1.0
References: <CAAKhXobWy31cAXERK3Fo8jGYPuuSAwvjR-+c66wqOo8a6WSscw@HIDDEN>
 <831r1uhqra.fsf@HIDDEN>
In-Reply-To: <831r1uhqra.fsf@HIDDEN>
From: Andrey Listopadov <andreyorst@HIDDEN>
Date: Thu, 30 Dec 2021 22:07:26 +0300
Message-ID: <CAAKhXoYtLSM4N+y0sMqJzNj69PccM3rwXOndD1joBRGo9hJqmA@HIDDEN>
Subject: Re: bug#52896: 29.0.50;
 transient-mark-mode is set to a lot of 'only syms
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 52896
Cc: 52896 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> How come transient-mark-mode became set to 'only' in the first place?
> That is supposed to happen only when shift-translated commands are
> used, and should be reset to the old value whenever the first
> non-shift-translated command is used.  See the doc string of
> transient-mark-mode (the variable).

The expand-region package sets transient mark mode to `only' when tmm
is disabled:

https://github.com/magnars/expand-region.el/blob/4b8322774d9c1d8b64a0049d1dbbc1e7ce80c1a0/expand-region-core.el#L57
https://github.com/magnars/expand-region.el/blob/4b8322774d9c1d8b64a0049d1dbbc1e7ce80c1a0/expand-region-core.el#L163

> You can see how it works if, in "emacs -Q", you press and hold Shift
> and use arrow keys to move point, then evaluate
>
>   M-: transient-mark-mode RET
>
> You should then see the value '(only . t)' of the variable.  Once you
> type some unshifted command, like C-f, the value becomes t again.

Yes, I know, but in the case when transient mark mode is disabled, its
value is not `(only . t)', but `(only . nil)' which is just `(only)'.
And since expand-region conses `only' initially, the
`exchange-point-and-mark' function then rapidly conses a lot of
symbols to it as well, since expand region uses it.

> So I suspect that the expand-region.el package you installed does
> something to cause this, and in particular doesn't take care to reset
> the value when it should.

I don't think it should reset it, e.g. it behaves well, and sets it to
allow shift-select to work:

https://github.com/magnars/expand-region.el/pull/225

> Bottom line: you should look in expand-region.el for the reasons of
> this misbehavior, and perhaps report a bug to its developers.

Unfortunately, Magnar Sveen disabled the issue-reporting feature of
github for this particular project.
However, looking at the docstring, I guess what expand-region does is
correct, and the `exchange-point-and-mark' function does kind of a
weird check - e.g. it checks if the car of `transient-mark-mode' is
`only' and then conses another only to that.
But again, I'm not sure what's the intention here, maybe it is expected.

-- 
Andrey Listopadov




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#52896; Package emacs. Full text available.

Message received at 52896 <at> debbugs.gnu.org:


Received: (at 52896) by debbugs.gnu.org; 30 Dec 2021 18:49:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 30 13:49:47 2021
Received: from localhost ([127.0.0.1]:54468 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n30Uk-0006nx-VC
	for submit <at> debbugs.gnu.org; Thu, 30 Dec 2021 13:49:47 -0500
Received: from eggs.gnu.org ([209.51.188.92]:50038)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1n30Uj-0006nk-GL
 for 52896 <at> debbugs.gnu.org; Thu, 30 Dec 2021 13:49:45 -0500
Received: from [2001:470:142:3::e] (port=51126 helo=fencepost.gnu.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1n30Ue-0003aA-0U; Thu, 30 Dec 2021 13:49:40 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=h/AYc4q79OV5U8JTi5BXbC3YimbTy+bGDAddqyL4fl4=; b=c9nDgAZFgX6C
 K2Ywu3NeQJA4DfyuxOvCV41Li8NE08hQm9PyLXT61YHAjA3w6Meiosa4bssqCtnNeTJuD71AzIlLA
 sU1cleP50R4WZhP48sOAGZHvuhTLAZ0ITK1Snw59BsGPLStIzizDsDhQoWU6KcQoJpWSz60joAauW
 DmTL7GJQvEOhaaG6WX/Ouq02uZ4g4MoZ4KjWF8t0uhkEIRP7Pj4HB7nfPfa4UrowMS5eULiAlzan+
 /eh2YF8ltswpsngcYpKwiJVTObZ3+aMx9tDIz+lA7QpZYvJWsihIzS1VxGAAmZ1jcQ+9fFXW5+7HD
 TIRij1L1z8ldL+4hs5CFkQ==;
Received: from [87.69.77.57] (port=1957 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1n30Ud-00084y-SJ; Thu, 30 Dec 2021 13:49:40 -0500
Date: Thu, 30 Dec 2021 20:49:45 +0200
Message-Id: <831r1uhqra.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Andrey Listopadov <andreyorst@HIDDEN>
In-Reply-To: <CAAKhXobWy31cAXERK3Fo8jGYPuuSAwvjR-+c66wqOo8a6WSscw@HIDDEN>
 (message from Andrey Listopadov on Thu, 30 Dec 2021 12:53:08 +0300)
Subject: Re: bug#52896: 29.0.50;
 transient-mark-mode is set to a lot of 'only syms
References: <CAAKhXobWy31cAXERK3Fo8jGYPuuSAwvjR-+c66wqOo8a6WSscw@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 52896
Cc: 52896 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Andrey Listopadov <andreyorst@HIDDEN>
> Date: Thu, 30 Dec 2021 12:53:08 +0300
> 
> I've installed the expand-region.el package and noticed that transient
> mark mode started misbehaving.  I'm using Emacs with
> `transient-mark-mode' disabled, and enable it occasionally via `C-SPC
> C-SPC' when needed.  After using `er/expand-region' function I've
> noticed that `C-SPC C-SPC' doesn't highlight the region.  Upon further
> inspection I've noticed that the `transient-mark-mode' variable is set
> to `(only only only only only ... only) with a total of 26 `only'
> symbols.  Symbols disappear one by one when I move the point or invoke
> other commands, so eventually `C-SPC C-SPC' starts working again.
> 
> I've added a watcher to the `transient-mark-mode' variable and upon
> first activation of expand region I see this:
> 
>     transient-mark-mode (only) set #<buffer *scratch*>
>     transient-mark-mode (only only) set #<buffer *scratch*>
>     transient-mark-mode (only only only) set #<buffer *scratch*>
>     transient-mark-mode (only only only only) set #<buffer *scratch*>
>     Type = to expand again, - to contract, 0 to reset
> 
> Upon further investigation I've found that this happens inside the
> `exchange-point-and-mark' function.  I've added a message right before
> `cons' call to confirm that:
> 
>     transient-mark-mode (only) set #<buffer *scratch*>
>     exchange-point-and-mark
>     transient-mark-mode (only only) set #<buffer *scratch*>
>     exchange-point-and-mark
>     transient-mark-mode (only only only) set #<buffer *scratch*>
>     exchange-point-and-mark
>     transient-mark-mode (only only only only) set #<buffer *scratch*>
>     Type = to expand again, - to contract, 0 to reset
> 
> The function explicitly checks if ``(eq (car-safe transient-mark-mode)
> 'only)'' is true and then conses `only' to the `transient-mark-mode',
> causing it to grow.  I'm not sure what is the intention here, but this
> makes it harder using `C-SPC C-SPC` to temporarily activate the
> transient mark mode.

How come transient-mark-mode became set to 'only' in the first place?
That is supposed to happen only when shift-translated commands are
used, and should be reset to the old value whenever the first
non-shift-translated command is used.  See the doc string of
transient-mark-mode (the variable).

You can see how it works if, in "emacs -Q", you press and hold Shift
and use arrow keys to move point, then evaluate

  M-: transient-mark-mode RET

You should then see the value '(only . t)' of the variable.  Once you
type some unshifted command, like C-f, the value becomes t again.

So I suspect that the expand-region.el package you installed does
something to cause this, and in particular doesn't take care to reset
the value when it should.

Bottom line: you should look in expand-region.el for the reasons of
this misbehavior, and perhaps report a bug to its developers.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#52896; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 30 Dec 2021 09:53:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 30 04:53:51 2021
Received: from localhost ([127.0.0.1]:51432 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n2s86-0000X0-RY
	for submit <at> debbugs.gnu.org; Thu, 30 Dec 2021 04:53:51 -0500
Received: from lists.gnu.org ([209.51.188.17]:44614)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <andreyorst@HIDDEN>) id 1n2s85-0000Wt-It
 for submit <at> debbugs.gnu.org; Thu, 30 Dec 2021 04:53:49 -0500
Received: from eggs.gnu.org ([209.51.188.92]:48334)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <andreyorst@HIDDEN>)
 id 1n2s84-0002Ui-VX
 for bug-gnu-emacs@HIDDEN; Thu, 30 Dec 2021 04:53:49 -0500
Received: from [2a00:1450:4864:20::52b] (port=33478
 helo=mail-ed1-x52b.google.com)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <andreyorst@HIDDEN>)
 id 1n2s83-0007k3-3w
 for bug-gnu-emacs@HIDDEN; Thu, 30 Dec 2021 04:53:48 -0500
Received: by mail-ed1-x52b.google.com with SMTP id m21so97291127edc.0
 for <bug-gnu-emacs@HIDDEN>; Thu, 30 Dec 2021 01:53:45 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:from:date:message-id:subject:to;
 bh=aq8XQmEet5oNSJl234eo87pTYEgh8jUHLNkjP6eF3CY=;
 b=ManU95F4oRKJdhY4xoxuoBxF6hzju+S5Iq+dSNpbY2jW01UPbKWjXLH2hw1roKj/Rt
 J8ienCROqy6bvKztCA/ypImiqNnNStbph9l9oy5G31eS1mMAQQpD4gG+cy1Sr+mxjUXy
 rpJ91TxN0X7xiK6bmT4gHAMMTPPYserBvfeLMwMZL0ZwWFEo5DPTjH5Dpxs5l16btTXV
 TZYjZUO9gyPJDeO5fY1Aw7vTuaaPrwrv7MVC0EZCdqeqWu9hIZi+ssSBNoH5O3GdFSwd
 iPMoMMl9qxnKTF6V22wwY22XMEiAPORRgCS4cqG6trPA0eSyDF6JmrdEJDox0BVE9Cil
 s5Qw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=aq8XQmEet5oNSJl234eo87pTYEgh8jUHLNkjP6eF3CY=;
 b=1yiPrvpjwKq50v4RfyYhWGWuZNsa3248TQ4Pz+HVsa1vQmqHAOVM1rBwDCowx8JiP5
 N5nVngZ9u9sMtxKM8NJYMYQv3uBgOvYmsVpsvxQPTHfxDdTeWt2inRDQKz6DeO4Mk6i0
 FHgw60i0sCih2L51ODt2RRAKPYirk/YKu/Rf/jkDbrx+lMwRN7msBZvXuH7xVDOETiLD
 /C4DbbBqvUXaOC8GanP2YuG3m1nFjMxI2NXjH2QQjHaVjAQVUB7mfKKOf/jwV1K5+ffP
 fC5xBtg5noS3qvab+oOjgxU/SDkykx8InvbZeY27s3BM1mtHlFf+Zwrem3oRsxFJYw0r
 /nvw==
X-Gm-Message-State: AOAM530W/1YLXyLSAHUEwrLSL6tiFkLKWwrcWVfDi2e88h4gkPP1u7Fx
 4LwTH4w+utOOaRCYX4LKQF3IC2pm9ODFqBjnLNERmbOI/eA=
X-Google-Smtp-Source: ABdhPJwWTu9y11ouBGa5l+PxZav9ePrZf0gtHqYgQZ+6kNLw7cLUgeaomyhaLcFJkR84PNFQXSvN0n2+oWbQ0dTHZZY=
X-Received: by 2002:a17:906:7944:: with SMTP id
 l4mr24691167ejo.598.1640858024272; 
 Thu, 30 Dec 2021 01:53:44 -0800 (PST)
MIME-Version: 1.0
From: Andrey Listopadov <andreyorst@HIDDEN>
Date: Thu, 30 Dec 2021 12:53:08 +0300
Message-ID: <CAAKhXobWy31cAXERK3Fo8jGYPuuSAwvjR-+c66wqOo8a6WSscw@HIDDEN>
Subject: 29.0.50; transient-mark-mode is set to a lot of 'only syms
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset="UTF-8"
X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::52b
 (failed)
Received-SPF: pass client-ip=2a00:1450:4864:20::52b;
 envelope-from=andreyorst@HIDDEN; helo=mail-ed1-x52b.google.com
X-Spam_score_int: 6
X-Spam_score: 0.6
X-Spam_bar: /
X-Spam_report: (0.6 / 5.0 requ) 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_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

I've installed the expand-region.el package and noticed that transient
mark mode started misbehaving.  I'm using Emacs with
`transient-mark-mode' disabled, and enable it occasionally via `C-SPC
C-SPC' when needed.  After using `er/expand-region' function I've
noticed that `C-SPC C-SPC' doesn't highlight the region.  Upon further
inspection I've noticed that the `transient-mark-mode' variable is set
to `(only only only only only ... only) with a total of 26 `only'
symbols.  Symbols disappear one by one when I move the point or invoke
other commands, so eventually `C-SPC C-SPC' starts working again.

I've added a watcher to the `transient-mark-mode' variable and upon
first activation of expand region I see this:

    transient-mark-mode (only) set #<buffer *scratch*>
    transient-mark-mode (only only) set #<buffer *scratch*>
    transient-mark-mode (only only only) set #<buffer *scratch*>
    transient-mark-mode (only only only only) set #<buffer *scratch*>
    Type = to expand again, - to contract, 0 to reset

Upon further investigation I've found that this happens inside the
`exchange-point-and-mark' function.  I've added a message right before
`cons' call to confirm that:

    transient-mark-mode (only) set #<buffer *scratch*>
    exchange-point-and-mark
    transient-mark-mode (only only) set #<buffer *scratch*>
    exchange-point-and-mark
    transient-mark-mode (only only only) set #<buffer *scratch*>
    exchange-point-and-mark
    transient-mark-mode (only only only only) set #<buffer *scratch*>
    Type = to expand again, - to contract, 0 to reset

The function explicitly checks if ``(eq (car-safe transient-mark-mode)
'only)'' is true and then conses `only' to the `transient-mark-mode',
causing it to grow.  I'm not sure what is the intention here, but this
makes it harder using `C-SPC C-SPC` to temporarily activate the
transient mark mode.

In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.30, cairo version 1.17.4)
 of 2021-12-29 built on toolbox
Repository revision: 3fc8032a1aac535e8f6ba03547bd9fa2b0880193
Repository branch: master
System Description: Fedora Linux 35 (Workstation Edition)

Configured using:
 'configure --with-native-compilation --with-pgtk
 --prefix=/home/alist/.local'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY
PDUMPER PGTK PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS XIM
GTK3 ZLIB

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:
  shell-dirtrack-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  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
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  indent-tabs-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug sendmail comp comp-cstr cl-extra
help-mode pcase org-macs cap-words superword subword ruby-mode smie rx
python tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x
tramp-compat shell pcomplete parse-time iso8601 ls-lisp format-spec
rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt
rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util
nxml-enc xmltok html-mode-expansions sgml-mode facemenu dom cc-cmds
cc-engine cc-vars cc-defs er-basic-expansions thingatpt
expand-region-core advice expand-region-custom warnings cl compile
comint ansi-color ring autoload radix-tree lisp-mnt tar-mode arc-mode
archive-mode mm-archive message yank-media dired dired-loaddefs rfc822
mml mml-sec epa derived epg rfc6068 epg-config gnus-util
text-property-search time-date mailabbrev gmm-utils mailheader mm-decode
mm-bodies mm-encode mail-utils gnutls network-stream url-http mail-parse
rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm rmc
puny url-cache url-auth cus-edit pp cus-start cus-load wid-edit
finder-inf package browse-url url url-proxy url-privacy url-expand
url-methods url-history url-cookie url-domsuf url-util mailcap
url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache json map url-vars seq gv subr-x byte-opt
bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc
paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode
mwheel term/pgtk-win pgtk-win term/common-win 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 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 emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice
button 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 dbusbind inotify
dynamic-setting system-font-setting font-render-setting cairo
move-toolbar gtk x-toolkit pgtk lcms2 multi-tty make-network-process
native-compile emacs)

Memory information:
((conses 16 193794 12810)
 (symbols 48 17181 1)
 (strings 32 60612 2225)
 (string-bytes 1 2133315)
 (vectors 16 30994)
 (vector-slots 8 449511 20505)
 (floats 8 76 163)
 (intervals 56 595 0)
 (buffers 992 15))




Acknowledgement sent to Andrey Listopadov <andreyorst@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#52896; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 15 Jan 2022 10:00:02 UTC

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