all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ivan Andrus <darthandrus@gmail.com>
To: Glenn Morris <rgm@gnu.org>
Cc: 21771@debbugs.gnu.org
Subject: bug#21771: 25.0.50; Can't customize whitespace-display-mappings
Date: Fri, 1 Jan 2016 16:18:34 -0700	[thread overview]
Message-ID: <CA+R1CoxEkVmY+nPz6Y0qh91tA5fAReKaL_m_Pc2H=wHDHN3w7w@mail.gmail.com> (raw)
In-Reply-To: <kyoad6t55k.fsf@fencepost.gnu.org>

On Thu, Dec 31, 2015 at 7:17 PM, Glenn Morris <rgm@gnu.org> wrote:
> Ivan Andrus wrote:
>
>>> This might be related to bug #2689,
>>> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=2689
>
>> -  :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’t cause 3136,
because it doesn’t 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’s changed to a newline.  That
is, with my patch, if you customize white `whitespace-display-mappings’,
you’ll see it displayed as "\n\n".  If you change it to (say) "d" it
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’s not so bad.

-Ivan





      reply	other threads:[~2016-01-01 23:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-27 20:58 bug#21771: 25.0.50; Can't customize whitespace-display-mappings Ivan Andrus
2015-12-30  3:38 ` Ivan Andrus
2016-01-01  2:17   ` Glenn Morris
2016-01-01 23:18     ` Ivan Andrus [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+R1CoxEkVmY+nPz6Y0qh91tA5fAReKaL_m_Pc2H=wHDHN3w7w@mail.gmail.com' \
    --to=darthandrus@gmail.com \
    --cc=21771@debbugs.gnu.org \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.