From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mauro Aranda Newsgroups: gmane.emacs.bugs Subject: bug#15925: 24.3.50; error when customizing whitespace-display-mappings Date: Wed, 23 Sep 2020 12:26:39 -0300 Message-ID: References: <87mwl0vo36.wl%claudio.bley@gmail.com> <87a6xgd2rw.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000822b6505affcb6af" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22748"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Glenn Morris , 15925@debbugs.gnu.org, claudio.bley@googlemail.com To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 23 17:27:15 2020 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 1kL6fq-0005nK-Tg for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Sep 2020 17:27:14 +0200 Original-Received: from localhost ([::1]:37292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kL6fp-0005Kr-Sb for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Sep 2020 11:27:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kL6fe-0005Iz-Lz for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2020 11:27:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54224) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kL6fe-0006DY-1T for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2020 11:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kL6fd-00080q-TJ for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2020 11:27:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mauro Aranda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Sep 2020 15:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15925 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 15925-submit@debbugs.gnu.org id=B15925.160087482030788 (code B ref 15925); Wed, 23 Sep 2020 15:27:01 +0000 Original-Received: (at 15925) by debbugs.gnu.org; 23 Sep 2020 15:27:00 +0000 Original-Received: from localhost ([127.0.0.1]:37537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kL6fb-00080V-Lp for submit@debbugs.gnu.org; Wed, 23 Sep 2020 11:26:59 -0400 Original-Received: from mail-wm1-f44.google.com ([209.85.128.44]:52366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kL6fa-00080E-1F for 15925@debbugs.gnu.org; Wed, 23 Sep 2020 11:26:58 -0400 Original-Received: by mail-wm1-f44.google.com with SMTP id q9so442442wmj.2 for <15925@debbugs.gnu.org>; Wed, 23 Sep 2020 08:26:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/uCZBz2V8MLTgO5rlxAv4G1qtGQcFjydFccopPaXskU=; b=tn9b3gfaIy6eiVK9AXxRNpT3C2IXDHlSKDSMd/yR2FAWRlJ+xY+Wu54v9kVJjAGnfZ GTUfCNw34fdZafUpeSIfuPpXcoptl6Ta/T65O32WATkJUgldoJF3YQ/21fAXVC70da+8 1PON1mK0xbxLdlFj/nd1HZAixwqfyzllOOcDPlYpTvJIF5AYE1Q+glyLkaWrGNljVF8z tL75MeXvArTkLo7KTqsLocfokVaZR7cf7zpc1/ssCv24cseK3OcRziV1qB8G3Wb1xtuR pNJOV6ZrAOhCrD2/PrSIOLofm3JECooAnVxqiIM52I3vUR3jcAmkAt5QXxMaKCJWubH4 ryLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/uCZBz2V8MLTgO5rlxAv4G1qtGQcFjydFccopPaXskU=; b=AwcdDIw552Ax6nL5p9cZTaamoojSN94mt90QyvfuIsey7qlipe7iTcYJLPE3eF8PwS /BsDjcTW1QJFiiJrzoulj+aIfgsY+MF9IjFATghNy3A5gScbZ7tQbQIMTCOfVyZSYGPc MpEBiqrkPHwkYczYejl+e05dUcUXVAG5fPSq9k/WORND6SNhC28oWvU5i+gzA50Jrjot noQV0hVmzEmYZDXP6m6xQLE73ImRK05px0UaSTTtW++eU1xzae7YmeVoSHfgQm/Hrq2x PDsle5Nd0aDhL2pQhrIn9tE34gfWABYp+F7+Kzhf/3Z60Rlvf67gp7vrcujj/sm0b/Ic 2M1w== X-Gm-Message-State: AOAM5324vLUzlssyz/Robd2YbHyq4iBYpW8dY+w46cAHyZxbl5IgjsLX NXtcSTcNIIUAPOaiF7Tw1qD7jXBnvOaY7n0XaOk= X-Google-Smtp-Source: ABdhPJwchtJkDEEuyGex16B5FOeZPBfiJf9GeZ01FRJ5tS6CY6LvkHbdH+s4bUsuDhonHw5E3OasyZAsE/cKzBdsd3U= X-Received: by 2002:a1c:e40b:: with SMTP id b11mr132820wmh.100.1600874812155; Wed, 23 Sep 2020 08:26:52 -0700 (PDT) In-Reply-To: <87a6xgd2rw.fsf@gnus.org> 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:188799 Archived-At: --000000000000822b6505affcb6af Content-Type: text/plain; charset="UTF-8" Lars Ingebrigtsen writes: > Mauro Aranda writes: > >> I attach a patch that should fix this (but that does not change the >> way the characters are displayed) and that doesn't introduce the >> breakage of Bug#3136 (for which I added a test). > > Thanks; applied to Emacs 28. Thank you. > The bits that remains to be fixed here is the display of the TAB/newline > (etc.) characters? Yes. I think there were two suggestions, which if I'm not mistaken can be summarized as: - Display newline as \n, tab as \t, etc. - Display newline as C-j (or ?\\C-j, or \\C-j, etc), tab as C-i, etc. To those suggestions, I add one of mine: - Display newline as ^J, tab as ^I, etc. That is what Isearch does, and I think it would not be much of a trouble to implement that. Furthermore, we already display other non-printable characters like that, so my suggestion would just change newline and tab, I think. --000000000000822b6505affcb6af Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Lars Ingebrigtsen <la= rsi@gnus.org> writes:

> Mauro Aranda <maurooaranda@gmail.com> writes:
>
= >> I attach a patch that should fix this (but that does not change th= e
>> way the characters are displayed) and that doesn't introd= uce the
>> breakage of Bug#3136 (for which I added a test).
>= ;
> Thanks; applied to Emacs 28.

Thank you.

> The bi= ts that remains to be fixed here is the display of the TAB/newline
> = (etc.) characters?

Yes.=C2=A0 I think there were two suggestions, wh= ich if I'm not mistaken can
be summarized as:
- Display newline a= s \n, tab as \t, etc.
- Display newline as C-j (or ?\\C-j, or \\C-j, etc= ), tab as C-i, etc.

To those suggestions, I add one of mine:
- Di= splay newline as ^J, tab as ^I, etc.

That is what Isearch does, and = I think it would not be much of a
trouble to implement that.=C2=A0 Furth= ermore, we already display other
non-printable characters like that, so = my suggestion would just
change newline and tab, I think.
--000000000000822b6505affcb6af--