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: Fri, 25 Sep 2020 11:32:41 -0300 Message-ID: References: <87mwl0vo36.wl%claudio.bley@gmail.com> <87a6xgd2rw.fsf@gnus.org> <871rirb5ot.fsf@gnus.org> <87ft76rxaw.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="0000000000002bb44905b0243197" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28586"; 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 Fri Sep 25 16:34:09 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 1kLonZ-0007L9-Lg for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Sep 2020 16:34:09 +0200 Original-Received: from localhost ([::1]:41758 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLonY-0001er-OF for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Sep 2020 10:34:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46722) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLonS-0001dJ-Tc for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2020 10:34:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33512) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kLonS-0006bI-Jv for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2020 10:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kLonS-0000XG-Ce for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2020 10:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mauro Aranda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Sep 2020 14:34:02 +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.16010443821981 (code B ref 15925); Fri, 25 Sep 2020 14:34:02 +0000 Original-Received: (at 15925) by debbugs.gnu.org; 25 Sep 2020 14:33:02 +0000 Original-Received: from localhost ([127.0.0.1]:45057 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLomT-0000Vj-Ly for submit@debbugs.gnu.org; Fri, 25 Sep 2020 10:33:02 -0400 Original-Received: from mail-wm1-f68.google.com ([209.85.128.68]:39068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLomR-0000VR-N5 for 15925@debbugs.gnu.org; Fri, 25 Sep 2020 10:33:00 -0400 Original-Received: by mail-wm1-f68.google.com with SMTP id b79so3532777wmb.4 for <15925@debbugs.gnu.org>; Fri, 25 Sep 2020 07:32:59 -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=HbvwOKHBT08p6UP7HyW0QSzWbcQGGKFYfrwwKL9ph4s=; b=uQQZJAoS1v57Ct9AyJcEnKFpxf3cqD+WZdMHAMhBkALP+JiT0x1ZrUr2muLUN4Gmpj BwrYER3syHN4wiZkLTUz0Pf8OZiUguIycvAlKCcS8ilwf219HVcBgr9tYi1RoaMXEFV5 soks+IPXoRXAz4gW/ArFRc1HMOw0wiGIom3tOnJYYS4pQ6JKR7+34bJGt2q2ie1aQ627 JgA0dxkxyVpuXGFwqkBfR//TtLSQgIjZrnvYZv3Vd7tltxANqbUbGvzAjPStOokPFFVG Km1RCFmXC814y9M/p5Ctii13aHPteQo8mIJJ2T5h43MjXZEfQsXSuF34jzHHfBcApwyI Dkew== 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=HbvwOKHBT08p6UP7HyW0QSzWbcQGGKFYfrwwKL9ph4s=; b=r+jj6qS0rNZQ0PJcXLDZK3UfQY9oAxg2MaMA37NTU3qfaS0KrWaMRXFDLrRZ65/TI0 0KmDU4cPUhBbO9org7N5YyO5fWj03MYtPts/4+X44nZkT2SPAbki0pidc8eiSvZVDp76 FfhBJWf3MvYbrti4SWqW386+z+6bKwrugGoJvnJb12VpR2sK006pF1s9efjX8hr8UVI9 QdhX584l3MbGLIdQSGma+FVuOF89Z2Vegn/5XftO9aZfeVzQUz5WfaeCeJrCzGRUCnpn JrSYJjWniWP6/5eujBZCJyjEYgOhSskwRZY7M8ht3laKqs+3WNVFrw6qAaoiEwSKKiUW fNag== X-Gm-Message-State: AOAM533805M43rTa09nk+LK7dRBKpqkoDi5KJRtBtL1goGLJlwQSpkKv GX6MAYhIK0O0N2yFEu+TBDkyIrSIflbWURYQRlI= X-Google-Smtp-Source: ABdhPJyCUAqyRwHU44b368B2dVyj/z/F+5w42QCA6Qw5c0wCoD46X+UO/56oIwBwp8bQnKqQFRDNvmkjJNnuqT6/l6k= X-Received: by 2002:a1c:e40b:: with SMTP id b11mr3600166wmh.100.1601044373803; Fri, 25 Sep 2020 07:32:53 -0700 (PDT) In-Reply-To: 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:188977 Archived-At: --0000000000002bb44905b0243197 Content-Type: multipart/alternative; boundary="0000000000002bb44705b0243195" --0000000000002bb44705b0243195 Content-Type: text/plain; charset="UTF-8" How does the attached patch look? I didn't include changes for the rest of the escape sequences, because of Eli's objections. The reason I used the notify function is because it is much simpler than rebinding insertion commands and having to copy some of the functionality. And I don't think the change in the calls to the notify function for editable-field widgets (and descendants) will be much of a problem. I looked for functions that assume EVENT is nil and found none, nor in-tree or in third-party packages. --0000000000002bb44705b0243195 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
How does the attached patch look? I didn't include cha= nges for the rest
of the escape sequences, because of Eli's objectio= ns.

The reason I used the notify function is because it is much simp= ler than
rebinding insertion commands and having to copy some of the
= functionality.=C2=A0 And I don't think the change in the calls to the n= otify
function for editable-field widgets (and descendants) will be much= of a
problem.=C2=A0 I looked for functions that assume EVENT is nil and= found
none, nor in-tree or in third-party packages.
--0000000000002bb44705b0243195-- --0000000000002bb44905b0243197 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Display-some-character-widget-values-in-a-more-user-.patch" Content-Disposition: attachment; filename="0001-Display-some-character-widget-values-in-a-more-user-.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kficgd6p0 RnJvbSBlNWNjZGI4NjhiNzE2Njc3OTdkYmY3Mzk5ZTkyNDc1MDNkNzFiODA5IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBNYXVybyBBcmFuZGEgPG1hdXJvb2FyYW5kYUBnbWFpbC5jb20+ C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BAQCAnY2hhcmFjdGVyCiAgIDp2YWx1ZS10by1pbnRlcm5hbCAobGFtYmRhIChfd2lk Z2V0IHZhbHVlKQogCQkgICAgICAgKGlmIChzdHJpbmdwIHZhbHVlKQogCQkJICAgdmFsdWUKLQkJ CSAoY2hhci10by1zdHJpbmcgdmFsdWUpKSkKKyAgICAgICAgICAgICAgICAgICAgICAgICAobGV0 ICgoZGlzcAorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAod2lkZ2V0LWNoYXJhY3Rl ci0tY2hhbmdlLWNoYXJhY3Rlci1kaXNwbGF5CisgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICB2YWx1ZSkpKQorICAgICAgICAgICAgICAgICAgICAgICAgICAgKGlmIGRpc3AKKyAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAocHJvcGVydGl6ZSAoY2hhci10by1zdHJpbmcgdmFs dWUpICdkaXNwbGF5IGRpc3ApCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChjaGFyLXRv LXN0cmluZyB2YWx1ZSkpKSkpCiAgIDp2YWx1ZS10by1leHRlcm5hbCAobGFtYmRhIChfd2lkZ2V0 IHZhbHVlKQogCQkgICAgICAgKGlmIChzdHJpbmdwIHZhbHVlKQogCQkJICAgKGFyZWYgdmFsdWUg MCkKIAkJCSB2YWx1ZSkpCiAgIDptYXRjaCAobGFtYmRhIChfd2lkZ2V0IHZhbHVlKQotCSAgIChj aGFyYWN0ZXJwIHZhbHVlKSkpCisJICAgKGNoYXJhY3RlcnAgdmFsdWUpKQorICA6bm90aWZ5ICMn d2lkZ2V0LWNoYXJhY3Rlci1ub3RpZnkpCisKKzs7IE9ubHkgc29tZSBlc2NhcGUgc2VxdWVuY2Vz LCBub3QgYWxsIG9mIHRoZW0uICAoQnVnIzE1OTI1KQorKGRlZnZhciB3aWRnZXQtY2hhcmFjdGVy LS1lc2NhcGUtc2VxdWVuY2VzLWFsaXN0CisgICcoKD9cdCAuID90KQorICAgICg/XG4gL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