From: Vinicius Jose Latorre <viniciusjl@ig.com.br>
To: Eli Barzilay <eli@barzilay.org>
Cc: Chong Yidong <cyd@stupidchicken.com>, 4177@emacsbugs.donarmstrong.com
Subject: bug#4177: 23.1; whitespace-mode and typing spaces
Date: Sun, 13 Sep 2009 22:52:20 -0300 [thread overview]
Message-ID: <4AADA1D4.5080203@ig.com.br> (raw)
In-Reply-To: <87r5udqaof.fsf@stupidchicken.com>
Hi Eli,
All problems you had pointed out are due to the way whitespace uses
font-lock.
I'll try to modified the font-lock programming using some functions
(plus regular
expressions) instead of only regular expressions.
BTW, you said you are using quiet colors, could you send me back these
colors?
> `whitespace-mode' is generally very useful, but there are some
> annoyances:
>
> * Unlike `show-trailing-whitespace', spaces at the end of a line are
> shown even if the cursor is right after them. This means that just
> typing some text is flashing the highlights on and off (I'm sure
> that this would be extremely unpleasant if I wouldn't have chosen a
> very quiet color for that...).
>
> * In a similar way, if you type some stuff on a first line, then hit
> enter a few times, the whole empty part is highlighted (if empty
> line at the bob/eob are highlighted). This is similar because in
> this case it is also likely that more text will eventually be
> entered.
>
> * There is another problems with highlighting the initial/final
> segment of empty lines -- looks like it's the problem of using
> font-lock with a multi-line pattern, which means that it's not
> dealing with it gracefully (eg, adding a line will un-highlight only
> the line right next to it). Together with the last point, this
> means that if you do something like this (in a fresh buffer):
>
> foo RET RET RET RET bar RET
>
>
> you're left with the middle highlighted.
Thanks for your report,
Vinicius
next prev parent reply other threads:[~2009-09-14 1:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-12 0:16 bug#4177: 23.1; whitespace-mode and typing spaces Chong Yidong
2009-09-14 1:52 ` Vinicius Jose Latorre [this message]
2009-09-14 2:38 ` Eli Barzilay
2009-09-25 2:32 ` Vinicius Jose Latorre
-- strict thread matches above, loose matches on Subject: below --
2009-08-17 15:05 Eli Barzilay
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=4AADA1D4.5080203@ig.com.br \
--to=viniciusjl@ig.com.br \
--cc=4177@emacsbugs.donarmstrong.com \
--cc=cyd@stupidchicken.com \
--cc=eli@barzilay.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.