From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#50989: 28.0.60; nobreak-char-display in Eldoc buffers Date: Tue, 05 Oct 2021 11:13:35 +0200 Message-ID: <878rz7al6o.fsf@gnus.org> References: <87ilyev33a.fsf@gmail.com> <83y27a8iyq.fsf@gnu.org> <87fstixrpm.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28080"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 50989@debbugs.gnu.org, =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= To: Augusto Stoffel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 05 11:14:12 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mXgWZ-00074T-V4 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 Oct 2021 11:14:11 +0200 Original-Received: from localhost ([::1]:33252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXgWY-0008KS-Nt for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 Oct 2021 05:14:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33840) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXgWQ-0008KB-Ay for bug-gnu-emacs@gnu.org; Tue, 05 Oct 2021 05:14:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55744) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXgWP-0006Pz-Ue for bug-gnu-emacs@gnu.org; Tue, 05 Oct 2021 05:14:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mXgWP-000599-NY for bug-gnu-emacs@gnu.org; Tue, 05 Oct 2021 05:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Oct 2021 09:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50989 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 50989-submit@debbugs.gnu.org id=B50989.163342523119746 (code B ref 50989); Tue, 05 Oct 2021 09:14:01 +0000 Original-Received: (at 50989) by debbugs.gnu.org; 5 Oct 2021 09:13:51 +0000 Original-Received: from localhost ([127.0.0.1]:39054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXgWE-00058P-My for submit@debbugs.gnu.org; Tue, 05 Oct 2021 05:13:50 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:39986) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXgWA-000587-4a for 50989@debbugs.gnu.org; Tue, 05 Oct 2021 05:13:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=+5QdRSgNEWtmE5C829vDDZQqtHGEy/ZIxQtSAMFuRdA=; b=sftn83UaShqXkAZVbYVKWhXzWn sAvxK9A/macITkdlLvYF2gywNX6P+yvDZtl7meAz9B+zXXnF/FMSgUHYJzqflxeSWtXwj5LbRhItK 3FZvN4U5oqpVPouc6oYDBu8JRlzTXhQ/HF4Cte6lzL55bcoAuDClyf6kvDiChntOmmeI=; Original-Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mXgW0-0005CT-BG; Tue, 05 Oct 2021 11:13:39 +0200 X-Now-Playing: Various's _I Wanna Be Kate: The Songs of Kate Bush_: "Kashka From Baghdad-Babooshka (2020 Remaster)" In-Reply-To: <87fstixrpm.fsf@gmail.com> (Augusto Stoffel's message of "Sun, 03 Oct 2021 13:39:33 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:216433 Archived-At: Augusto Stoffel writes: >> Eldoc's display facilities are only for displaying. Sure, you may want >> to copy text away from there, but I'd say that's rare. So it wouldn't >> be a problem >> in practice, unless I'm missing something > > I agree -- this is for display only, in which case NBSP and space are > supposed to be indistinguishable. With the attached patch, if you copy > the text from the Eldoc buffer to some other buffer, the NBSPs are still > there so they will be displayed as such. I can see arguments for both ways of doing this -- "cleaning up" the string before display, and fixing the display (as your patch is doing). I think the main argument here -- that eldoc buffers are for display only, so nbsp should be displayed as normal space -- is compelling, though, so I've applied your patch to Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no