From: Eli Barzilay <eli@barzilay.org>
To: Vinicius Jose Latorre <viniciusjl@ig.com.br>
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:38:37 -0400 [thread overview]
Message-ID: <19117.44205.19977.946303@winooski.ccs.neu.edu> (raw)
In-Reply-To: <4AADA1D4.5080203@ig.com.br>
On Sep 13, Vinicius Jose Latorre wrote:
> Hi Eli,
>
> All problems you had pointed out are due to the way whitespace uses
> font-lock.
Yes, I did say that it looks like problems that result of using
font-lock with a multi-line pattern. I know that they're not working
great. But it might be easy to resolve this by manually triggering a
re-fontification of the affected area -- for example, when you type
some non-whitespace, and you know that the current point is inside an
area of whitespace at the beginning of the buffer, then you re-fontify
from the point until the next non-whitespace character.
> I'll try to modified the font-lock programming using some functions
> (plus regular expressions) instead of only regular expressions.
... But what I described might be difficult, and it sounds like a bad
hack. It's of course better if you know of a way to persuade
font-lock to work a little better.
(The highlights of whitespace at the buffer edges is the thing that
bugs me most about this. There's also the problem of typing space at
the end of the line with the cursor following it -- the space
highlight being bogus because I'm going to type more stuff now.)
> BTW, you said you are using quiet colors, could you send me back
> these colors?
Well, it's just some shades of gray, that are not noisy enough to make
me twitch. The thing is that I want to know about bad spaces and
tabs, but I do have to go through files that have lots of them and
often files that I cannot modify. So the more festive colors are fine
if I only ever edit my code...
Below are my colors -- it's using my own syntax for determining
background colors but it should be obvious. The first value is what I
use normally since my Emacs is white-on-black, the second is for uses
with the usual black-on-white.
(trailing-whitespace */gray20 */gray80)
(whitespace-line */gray20 */gray80)
(whitespace-empty */gray20 */gray80)
(whitespace-trailing */gray20 */gray80)
(whitespace-space */gray20 */gray80)
(whitespace-hspace */gray20 */gray80)
(whitespace-tab */gray20 */gray80)
(whitespace-indentation */h220 */hdd0)
(whitespace-space-after-tab */h220 */hdd0)
(whitespace-space-before-tab */h440 */hbb0)
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://barzilay.org/ Maze is Life!
next prev parent reply other threads:[~2009-09-14 2:38 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
2009-09-14 2:38 ` Eli Barzilay [this message]
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=19117.44205.19977.946303@winooski.ccs.neu.edu \
--to=eli@barzilay.org \
--cc=4177@emacsbugs.donarmstrong.com \
--cc=cyd@stupidchicken.com \
--cc=viniciusjl@ig.com.br \
/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.