GNU bug report logs - #51606
29.0.50; [PATCH] Show offscreen context with properties

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: Arash Esbati <arash@HIDDEN>; Keywords: moreinfo patch; dated Fri, 5 Nov 2021 09:42:02 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 51606 <at> debbugs.gnu.org:


Received: (at 51606) by debbugs.gnu.org; 5 Nov 2021 14:01:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 05 10:01:41 2021
Received: from localhost ([127.0.0.1]:46706 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mizmn-0007JY-4t
	for submit <at> debbugs.gnu.org; Fri, 05 Nov 2021 10:01:41 -0400
Received: from eggs.gnu.org ([209.51.188.92]:37286)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1mizmk-0007JN-Rv
 for 51606 <at> debbugs.gnu.org; Fri, 05 Nov 2021 10:01:39 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:52364)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1mizmf-0005PS-Ha; Fri, 05 Nov 2021 10:01:33 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=/o5xALQtwZXi65gR13cLk3XfVydvjU31QLpj24ql/N8=; b=ZU1UOuizOmISinMmDxhb
 nK0QfJGpH0Ifokp9Xj2Ej1RPkOkTcINwlinwtu51Y/MORhn42TgTXmsCOFs9qM+ADtmx99xRzRjP0
 2VVCbluKWz4j1PGqyqiN8MNr0wb7SFKxIUMde2pghe8Cbz4n+0MNJMnT8bancIOayxYA3FEkitsfr
 AhaZUrPmPrK34A35jSyOAcYSdjkU5DltoKm5NgZ5ctF6kgQtutpGj8sS9k/e0IDXJlM+XFGHOMOCF
 EDPGrvPVIyoSaVRoP+5RQKqJGhGOIcxjiddk0GTzT9DVKGHjGIduG9HCUg3XrmLMmMkuZujgHzTSH
 x7x7L5EibxARlA==;
Received: from [87.69.77.57] (port=3796 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 1mizmX-0003zU-RL; Fri, 05 Nov 2021 10:01:26 -0400
Date: Fri, 05 Nov 2021 16:01:07 +0200
Message-Id: <8335oaem70.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Daniel =?utf-8?Q?Mart=C3=ADn?= <mardani29@HIDDEN>,
 Richard Stallman <rms@HIDDEN>
In-Reply-To: <m1pmresqu3.fsf@HIDDEN> (message from Daniel =?utf-8?Q?Mart?=
 =?utf-8?Q?=C3=ADn?= on Fri, 05 Nov 2021 13:57:08 +0100)
Subject: Re: bug#51606: 29.0.50; [PATCH] Show offscreen context with properties
References: <86y263hrds.fsf@HIDDEN> <835yt6ero5.fsf@HIDDEN>
 <m1pmresqu3.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 51606
Cc: arash@HIDDEN, 51606 <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: Daniel Martín <mardani29@HIDDEN>
> Cc: Arash Esbati <arash@HIDDEN>,  51606 <at> debbugs.gnu.org
> Date: Fri, 05 Nov 2021 13:57:08 +0100
> 
> >> paren.el now can show the context in minibuffer when
> >> `show-paren-context-when-offscreen' is non-nil (introduced in this
> >> change 9f505c476e).  Is it possible to extend this that text properties
> >> are not stripped?  I'm thinking about something like this:
> >
> > Why do we remove the properties in the first place?  Daniel, any
> > special reasons?
> 
> No reason other than being cautious and "follow the traditional behavior
> of blink-matching-open".  The code that I extracted from
> blink-matching-open to reuse it for show-paren-mode removed the text
> properties (see
> https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/simple.el?h=emacs-28#n8608).
> If I'm not mistaken, this was apparently introduced in 2005 by Richard
> Stallman
> (https://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-28&id=1d0e3fc84f058248515f242c0484a0dabfac95aa),
> but I don't know the reasons for the change.  Perhaps it didn't look
> good on some TTY frames?

I'd be surprised.

Richard, do you remember why you removed text properties from the
blink-matching-open text it shows in the echo-area?




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

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


Received: (at 51606) by debbugs.gnu.org; 5 Nov 2021 12:57:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 05 08:57:23 2021
Received: from localhost ([127.0.0.1]:45087 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1miymY-0005Fm-Fz
	for submit <at> debbugs.gnu.org; Fri, 05 Nov 2021 08:57:22 -0400
Received: from sonic305-20.consmr.mail.ir2.yahoo.com ([77.238.177.82]:40805)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mardani29@HIDDEN>) id 1miymW-0005FV-7x
 for 51606 <at> debbugs.gnu.org; Fri, 05 Nov 2021 08:57:20 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048;
 t=1636117034; bh=xhg81jsS/ypDc92mXt3yQ+opJsFIgmb+1TAA7cOLWOA=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To;
 b=VBTnZB92dOBcWoFWcbnNsMNON4L80u8vuTuKWrmYN302+F/1W2O4m0ZZFmk671NOcDgIimtKxEqYvWiZX0dIMD09I48Syq28SkR7jUCdlDTIX6SL5PCKurztlt9P2aA7yK47vN6mVtaigj2r9v3bylKspBb7COQ+TrKY7KqXuCKpR+FQt16grwIBzi7BLrbv2XtJh4oGHzCaWrWWei5H7qCvRiy3MCAQwMM8IvT9Wmf3QtkdaaT6kzZ/53eNkr+RpNovy6sEHgNZu0945pyccNQtWPClthqi4JKNXWVvlnr7Tps30C8R+lFLbNDakaRR30DIQ4wrfLYf/+llmaRk6w==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1636117034; bh=SHT0o2MsM9uy6FyuKs7eceKBTqp5EkOCO7GZ3kTQ85R=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=Pw1c5dlxSnGyvsguIwbgHXR0PK05yxA8LH1Rb1wlqMN+0dfDeH4V7J3Bd+GEMPiEmkonK77dywil1QeD5xlFkU4O/N9PjuLjheRHDCPJhFgrrWQkFOPfq6D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pbmy3yqi13WfD6T2xlS
 _SvfCB3hHDaqanycQt1kz8aSj8eriXm8cXo8.LAiptI8n0lkubfwQd7KsS6Iu2dEBrX3lVXb2cZh
 FxqFBMG189zlJ171U3KFDZIUtgT5aVCTqGsDplf7YNx3L7Lj_sOIhnACduXHfBYh7tZ6u8N1meML
 QPjIpedMGZ0n.Zj6eLqC7YRYQcAXMuuPhDLYioZ3vZTc5qfuVoUDaDk6blT7KGFnGhK0UVuavX5I
 PqdCTc5Y7JL70f7PgkjQL5LLIC3uf4QY0L4xe4vMeGfjZNDNLXHQdb1KvYM2EfRZ3XstIOy8xC0I
 mZEZhEZue9qistyNCgbB6G8vNmJSFX8WbbJRZHINJG1spw.Z5VcFjsvnbhsKbidtgBqVNxnv1Vo7
 5Rn2BdwOuqhmZJXG5aRl32SZGuuCdhy.QBW7pQDr403mhtdqjwFu0vzromoyrlL_db2mcbWEFvoy
 T.YfLc3AFxiaCtvrNsoyNyKxMpiaOBKG5EQQZ6TuHw4dZgvFI5w--
X-Sonic-MF: <mardani29@HIDDEN>
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic305.consmr.mail.ir2.yahoo.com with HTTP; Fri, 5 Nov 2021 12:57:14 +0000
Received: by kubenode516.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP
 Server) with ESMTPA ID 1cfaa734044e291c56cca8040b1be81e; 
 Fri, 05 Nov 2021 12:57:10 +0000 (UTC)
From: =?utf-8?Q?Daniel_Mart=C3=ADn?= <mardani29@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#51606: 29.0.50; [PATCH] Show offscreen context with properties
References: <86y263hrds.fsf@HIDDEN> <835yt6ero5.fsf@HIDDEN>
Date: Fri, 05 Nov 2021 13:57:08 +0100
In-Reply-To: <835yt6ero5.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 05 Nov
 2021 14:02:50 +0200")
Message-ID: <m1pmresqu3.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.19266
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 1055
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 51606
Cc: Arash Esbati <arash@HIDDEN>, 51606 <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: -0.8 (/)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Arash Esbati <arash@HIDDEN>
>> Date: Fri, 05 Nov 2021 10:40:47 +0100
>> 
>> paren.el now can show the context in minibuffer when
>> `show-paren-context-when-offscreen' is non-nil (introduced in this
>> change 9f505c476e).  Is it possible to extend this that text properties
>> are not stripped?  I'm thinking about something like this:
>
> Why do we remove the properties in the first place?  Daniel, any
> special reasons?

No reason other than being cautious and "follow the traditional behavior
of blink-matching-open".  The code that I extracted from
blink-matching-open to reuse it for show-paren-mode removed the text
properties (see
https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/simple.el?h=emacs-28#n8608).
If I'm not mistaken, this was apparently introduced in 2005 by Richard
Stallman
(https://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-28&id=1d0e3fc84f058248515f242c0484a0dabfac95aa),
but I don't know the reasons for the change.  Perhaps it didn't look
good on some TTY frames?




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

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


Received: (at 51606) by debbugs.gnu.org; 5 Nov 2021 12:03:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 05 08:03:15 2021
Received: from localhost ([127.0.0.1]:45020 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mixwA-0003uu-Vw
	for submit <at> debbugs.gnu.org; Fri, 05 Nov 2021 08:03:15 -0400
Received: from eggs.gnu.org ([209.51.188.92]:53506)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1mixw9-0003ue-Sl
 for 51606 <at> debbugs.gnu.org; Fri, 05 Nov 2021 08:03:14 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:43890)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1mixw4-0008Cv-KC; Fri, 05 Nov 2021 08:03:08 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=OzgNrLcdg7QYsUwsI6PwhwNO++6r2u5xF/LyyAKa84Q=; b=nqNrHrgHCLYoacQbRbGl
 n90mSeNg7btJ50Y4Mg2f0iUUtDzZnDZIO/Qm//Uqa1gZt0YOtuTRSDoBVeBVN4ynfG8IUoUQO0QfK
 0PW+4gD7z/s1uAePiO2j4UlEdYihFWtVL7q/nMRGg4tj3Iu0nhdTP8kTeR7ANw3wVKfl//qrn2vMU
 MydeYTJlYOOYhW3tWv9Q5v547V0YfLoULQ5u/JL1fUejwUBumPQSkCYDFvTuVNXPUi94Otvvb8BfA
 qctqQQYHYzV6aBRuuXLckVZSHV3OvojQEjLEasZ0DXxzdN6klYul4+W1e7x6QSqU3w6x5fMMYm6qd
 pv8WCGnMLF6/Hw==;
Received: from [87.69.77.57] (port=4517 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 1mixw4-0006Hu-2r; Fri, 05 Nov 2021 08:03:08 -0400
Date: Fri, 05 Nov 2021 14:02:50 +0200
Message-Id: <835yt6ero5.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Arash Esbati <arash@HIDDEN>, Daniel =?utf-8?Q?Mart=C3=ADn?=
 <mardani29@HIDDEN>
In-Reply-To: <86y263hrds.fsf@HIDDEN> (message from Arash Esbati on Fri, 05
 Nov 2021 10:40:47 +0100)
Subject: Re: bug#51606: 29.0.50; [PATCH] Show offscreen context with properties
References: <86y263hrds.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 51606
Cc: 51606 <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: Arash Esbati <arash@HIDDEN>
> Date: Fri, 05 Nov 2021 10:40:47 +0100
> 
> paren.el now can show the context in minibuffer when
> `show-paren-context-when-offscreen' is non-nil (introduced in this
> change 9f505c476e).  Is it possible to extend this that text properties
> are not stripped?  I'm thinking about something like this:

Why do we remove the properties in the first place?  Daniel, any
special reasons?




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

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


Received: (at submit) by debbugs.gnu.org; 5 Nov 2021 09:41:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 05 05:41:11 2021
Received: from localhost ([127.0.0.1]:44850 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mivih-0004Hw-6j
	for submit <at> debbugs.gnu.org; Fri, 05 Nov 2021 05:41:11 -0400
Received: from lists.gnu.org ([209.51.188.17]:55178)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <arash@HIDDEN>) id 1mivif-0004Ho-Kp
 for submit <at> debbugs.gnu.org; Fri, 05 Nov 2021 05:41:10 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:40470)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <arash@HIDDEN>) id 1mivif-0002tT-Ed
 for bug-gnu-emacs@HIDDEN; Fri, 05 Nov 2021 05:41:09 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:52876)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <arash@HIDDEN>) id 1mivif-0002hV-2q
 for bug-gnu-emacs@HIDDEN; Fri, 05 Nov 2021 05:41:09 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to:
 references; bh=GeLv8KDACo8EYOTR2HcOut8Jg8sQH5NRDh6KJsnfWWg=; b=ihPqM8h7Ck4h/l
 qILgi7NMYCGlf5+cThmPXFcuOt15KQk2vABrMzElnSoBamOdMulR3l1mts+Y0REq41iO6E7k2LG/Y
 QGRCEWpw0iKhc+TXQsmsOXS5218MGQHfh0X2TjopDtOuK63SQqejnrxxoYRPzWH9DmWbyM5SQ1bLE
 SQwL5AYPy+mspOYOF9of2vyk78PuqlBuTc1HmJSa2LZLHEbXmZ3aVNEkSLWyvQypjCf9GWfF4+Z2U
 /idvdKcXiPPAGK0bYyuyGfxCmEwW65Nbn2s1pojNk5T/1Q4yNJMISf3JxVtXJRvOm/2cWyyAZi7Gx
 L6EWQIYhn9P/UHxC5cog==;
Received: from p5b3265dc.dip0.t-ipconnect.de ([91.50.101.220]:55663
 helo=MUTANT)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <arash@HIDDEN>) id 1mivie-0000Ga-Nj
 for bug-gnu-emacs@HIDDEN; Fri, 05 Nov 2021 05:41:08 -0400
From: Arash Esbati <arash@HIDDEN>
To: emacs-bugs <bug-gnu-emacs@HIDDEN>
Subject: 29.0.50; [PATCH] Show offscreen context with properties
Date: Fri, 05 Nov 2021 10:40:47 +0100
Message-ID: <86y263hrds.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
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: -3.3 (---)

Hi all,

paren.el now can show the context in minibuffer when
`show-paren-context-when-offscreen' is non-nil (introduced in this
change 9f505c476e).  Is it possible to extend this that text properties
are not stripped?  I'm thinking about something like this:

--8<---------------cut here---------------start------------->8---
diff --git a/lisp/paren.el b/lisp/paren.el
index 7e7cf6c262..d0330f2f6a 100644
--- a/lisp/paren.el
+++ b/lisp/paren.el
@@ -96,6 +96,14 @@ show-paren-context-when-offscreen
   :type 'boolean
   :version "29.1")

+(defcustom show-paren-context-when-offscreen-with-properties nil
+  "If non-nil, show the offscreen context in the echo area with properties.
+It is complementary to `show-paren-context-when-offscreen' and is
+taken into account when `show-paren-context-when-offscreen' is
+non-nil."
+  :type 'boolean
+  :version "29.1")
+
 (defvar show-paren--idle-timer nil)
 (defvar show-paren--overlay
   (let ((ol (make-overlay (point) (point) nil t))) (delete-overlay ol) ol)
@@ -332,7 +340,9 @@ show-paren-function
                       (message-log-max nil))
                   (minibuffer-message
                    "Matches %s"
-                   (substring-no-properties open-paren-line-string)))))
+                   (if show-paren-context-when-offscreen-with-properties
+                       open-paren-line-string
+                     (substring-no-properties open-paren-line-string))))))
           ;; Always set the overlay face, since it varies.
           (overlay-put show-paren--overlay 'priority show-paren-priority)
           (overlay-put show-paren--overlay 'face face))))))
--8<---------------cut here---------------end--------------->8---

Any comments welcome.  I will prepare a proper format-patch (incl. update of
programs.texi) once this is accepted.

Best, Arash




Acknowledgement sent to Arash Esbati <arash@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#51606; 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: Fri, 5 Nov 2021 23:30:02 UTC

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