From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Andrus Newsgroups: gmane.emacs.bugs Subject: bug#21771: 25.0.50; Can't customize whitespace-display-mappings Date: Fri, 1 Jan 2016 16:18:34 -0700 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1451694318 13444 80.91.229.3 (2 Jan 2016 00:25:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Jan 2016 00:25:18 +0000 (UTC) Cc: 21771@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 02 01:25:11 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aFA0M-0006iY-Qy for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Jan 2016 01:25:11 +0100 Original-Received: from localhost ([::1]:37059 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFA0L-0003GQ-Oy for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Jan 2016 19:25:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40076) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFA0H-0003DY-RS for bug-gnu-emacs@gnu.org; Fri, 01 Jan 2016 19:25:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aFA0E-0008Do-Fa for bug-gnu-emacs@gnu.org; Fri, 01 Jan 2016 19:25:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45758) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFA0E-0008Dk-C3 for bug-gnu-emacs@gnu.org; Fri, 01 Jan 2016 19:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aFA0E-0002iB-6Y for bug-gnu-emacs@gnu.org; Fri, 01 Jan 2016 19:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Andrus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Jan 2016 00:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21771 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21771-submit@debbugs.gnu.org id=B21771.145169426810377 (code B ref 21771); Sat, 02 Jan 2016 00:25:02 +0000 Original-Received: (at 21771) by debbugs.gnu.org; 2 Jan 2016 00:24:28 +0000 Original-Received: from localhost ([127.0.0.1]:33978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aF9zg-0002hJ-6Q for submit@debbugs.gnu.org; Fri, 01 Jan 2016 19:24:28 -0500 Original-Received: from mail-oi0-f50.google.com ([209.85.218.50]:35115) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aF9ze-0002h6-L7 for 21771@debbugs.gnu.org; Fri, 01 Jan 2016 19:24:26 -0500 Original-Received: by mail-oi0-f50.google.com with SMTP id l9so202258938oia.2 for <21771@debbugs.gnu.org>; Fri, 01 Jan 2016 16:24:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=O+wrd829BsbNxZbEuYc3EbfZrIJtTdIcyi8DZAA5Xmg=; b=Qtltf6D3FOEJvXzizBzKb2jHWTV9r0jXo6egpozOvEomifvMPbDhdKgNwb7N8k2PyI UsBmBwjgyrBXF1owD+3CINLUiBEiBQO57t7zveU/oekVGhYuN32E53RxDnlAVjHFOCQr 9SssG3TiavRETtmgWYy6BW3kdacQnnOrsQQdgp64/X60TgqlM94RXFV2jVrtoTfHzPgf oJeUGr5zqBYvuSwHcj4r0aO8J17M9JeWC37eSW3iEMCJomfTAmEXc75OGMuVLjq3AYW6 5wXT/tOKZiQUca8AFqgbgwq8rQ1BqNIuqq37vJ2CwYsVHuSSDZMeWDVRr4eHap+4gkJQ bsKQ== X-Received: by 10.202.195.17 with SMTP id t17mr50840843oif.80.1451690314456; Fri, 01 Jan 2016 15:18:34 -0800 (PST) Original-Received: by 10.202.88.212 with HTTP; Fri, 1 Jan 2016 15:18:34 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111069 Archived-At: On Thu, Dec 31, 2015 at 7:17 PM, Glenn Morris wrote: > Ivan Andrus wrote: > >>> This might be related to bug #2689, >>> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D2689 > >> - :valid-regexp "\\`.\\'" >> + :valid-regexp "\\`\\(.\\|\n\\)\\'" > > Note that this reintroduces part of the patch for #2689, which I had to > revert since it caused a worse problem (#3136) than the one it solved. > (I haven't checked whether the same issue applies now to your patch, but > you should.) Thanks for bringing that to my attention. My patch doesn=E2=80=99t cause 3= 136, because it doesn=E2=80=99t really solve the problem. It just works around = it by using "\n\n" to mean "\n". It does make things a little weird because there is a difference between when it starts out as a newline and when it=E2=80=99s changed to a newline.= That is, with my patch, if you customize white `whitespace-display-mappings=E2= =80=99, you=E2=80=99ll see it displayed as "\n\n". If you change it to (say) "d" i= t will be displayed as "d\n". It saves 'd' fine, but if you customize it again it will display as "d". Changing this to "\n" will cause it to display as "\n" and it will save "\n". Customizing again will show "\n\n" again. But given that the alternative causes #3136, maybe it=E2=80=99s not so bad. -Ivan