From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vinicius Jose Latorre Newsgroups: gmane.emacs.bugs Subject: bug#4177: 23.1; whitespace-mode and typing spaces Date: Sun, 13 Sep 2009 22:52:20 -0300 Message-ID: <4AADA1D4.5080203@ig.com.br> References: <87r5udqaof.fsf@stupidchicken.com> Reply-To: Vinicius Jose Latorre , 4177@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1252894043 28564 80.91.229.12 (14 Sep 2009 02:07:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Sep 2009 02:07:23 +0000 (UTC) Cc: Chong Yidong , 4177@emacsbugs.donarmstrong.com To: Eli Barzilay Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 14 04:07:15 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mn0yI-0005xW-9S for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Sep 2009 04:07:14 +0200 Original-Received: from localhost ([127.0.0.1]:55971 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mn0yH-0005iu-Po for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Sep 2009 22:07:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mn0yB-0005gR-H9 for bug-gnu-emacs@gnu.org; Sun, 13 Sep 2009 22:07:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mn0y6-0005e2-WA for bug-gnu-emacs@gnu.org; Sun, 13 Sep 2009 22:07:07 -0400 Original-Received: from [199.232.76.173] (port=51390 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mn0y6-0005dz-Qi for bug-gnu-emacs@gnu.org; Sun, 13 Sep 2009 22:07:02 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:37062) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mn0y6-0005nf-3u for bug-gnu-emacs@gnu.org; Sun, 13 Sep 2009 22:07:02 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8E26xk8030773; Sun, 13 Sep 2009 19:07:00 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8E206F9028729; Sun, 13 Sep 2009 19:00:06 -0700 Resent-Date: Sun, 13 Sep 2009 19:00:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Vinicius Jose Latorre Original-Sender: Vinicius =?UTF-8?Q?Jos=C3=A9?= Latorre Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Mon, 14 Sep 2009 02:00:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4177 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4177-submit@emacsbugs.donarmstrong.com id=B4177.125289314427602 (code B ref 4177); Mon, 14 Sep 2009 02:00:06 +0000 Original-Received: (at 4177) by emacsbugs.donarmstrong.com; 14 Sep 2009 01:52:24 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com [209.85.221.181]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8E1qMcs027410 for <4177@emacsbugs.donarmstrong.com>; Sun, 13 Sep 2009 18:52:24 -0700 Original-Received: by qyk11 with SMTP id 11so2163197qyk.1 for <4177@emacsbugs.donarmstrong.com>; Sun, 13 Sep 2009 18:52:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=7DODFPKcAKpbvDnwFaqgpBgLOqrBFhp9eGbSGsPTDgE=; b=RDOILkPvHnZjiNGtQsKMsFPprx2ZG7DWwho2sJ09xNrgrxcIqzaGR7UjBpYBwAXTH8 rZ6t3zJvQDJIlV8saEINlvXemmRpD6rqDSQGXUZ0EN8PWWy4xPuEzsfDZgzpnstT5Krg 3pGyeso1DAd4GtnjI6y0PJz3nC0KfabXP59Ks= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=NwYBhw2gVX9KqZ8GCgI7F3CMs6xWze/W3J5Kf/Ak8ol+SG9yXzCuYynBI2BvNm+Xb3 M26P1DWcC01un6VbQ3ulF+pfqfZ/bYjUON9UB53t17ajBlRWvNDT763An7sm4gGrCj4z FcBY5ySo0YrmeEbzeYV39QfP5mSEx2z2TMswA= Original-Received: by 10.224.32.194 with SMTP id e2mr4754706qad.33.1252893137475; Sun, 13 Sep 2009 18:52:17 -0700 (PDT) Original-Received: from ?192.168.0.101? ([201.82.137.215]) by mx.google.com with ESMTPS id 21sm1333954qyk.12.2009.09.13.18.52.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 13 Sep 2009 18:52:16 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.23) Gecko/20090823 SeaMonkey/1.1.18 In-Reply-To: <87r5udqaof.fsf@stupidchicken.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sun, 13 Sep 2009 22:07:07 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31075 Archived-At: 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