From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Barzilay Newsgroups: gmane.emacs.bugs Subject: bug#4177: 23.1; whitespace-mode and typing spaces Date: Mon, 17 Aug 2009 11:05:49 -0400 Message-ID: <19081.29133.813431.847848@winooski.ccs.neu.edu> Reply-To: Eli Barzilay , 4177@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1250522855 21087 80.91.229.12 (17 Aug 2009 15:27:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Aug 2009 15:27:35 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 17 17:27:28 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 1Md47L-0000cz-QH for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Aug 2009 17:27:28 +0200 Original-Received: from localhost ([127.0.0.1]:45773 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Md47L-0005dO-4B for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Aug 2009 11:27:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Md46u-0005TX-PL for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2009 11:27:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Md46p-0005Rb-2z for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2009 11:26:59 -0400 Original-Received: from [199.232.76.173] (port=51182 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Md46n-0005RQ-Up for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2009 11:26:54 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:45542) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Md46n-0002gE-7C for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2009 11:26:53 -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 n7HFQoAZ002995; Mon, 17 Aug 2009 08:26:51 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n7HFA40C032670; Mon, 17 Aug 2009 08:10:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Eli Barzilay Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 17 Aug 2009 15:10:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4177 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125052156032120 (code B ref -1); Mon, 17 Aug 2009 15:10:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 17 Aug 2009 15:06:00 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7HF5wIA032117 for ; Mon, 17 Aug 2009 08:06:00 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Md3mY-0003Ar-A8 for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2009 11:05:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Md3mT-00038x-G1 for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2009 11:05:57 -0400 Original-Received: from [199.232.76.173] (port=52738 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Md3mT-00038r-Dw for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2009 11:05:53 -0400 Original-Received: from winooski.ccs.neu.edu ([129.10.115.117]:60210 helo=barzilay.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Md3mS-0006wU-Ta for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2009 11:05:53 -0400 Original-Received: from eli by barzilay.org with local (Exim 4.66) (envelope-from ) id 1Md3mP-0001tG-Qe for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2009 11:05:49 -0400 X-Mailer: VM 7.19 under Emacs 22.1.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 17 Aug 2009 11:26:59 -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:30310 Archived-At: `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. In GNU Emacs 23.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.10.14) of 2009-08-01 on winooski.ccs.neu.edu Windowing system distributor `The X.Org Foundation', version 11.0.10300000 configured using `configure '--prefix=/home/eli/bin/local/emacs-dir'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: POSIX value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US value of $XMODIFIERS: nil locale-coding-system: iso-latin-1-unix default-enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: shell-dirtrack-mode: t whitespace-mode: t cua-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t temp-buffer-resize-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-\ ; ~ o l d 2 e x e d i i n c e d i C-s t u r n - o n C-h f s h o w - t r a i C-g C-h v s h o w - t r C-s C-w C-w C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s SPC * g z z C-s w h i c h SPC s C-s p o i n t C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s M-x Recent messages: Type "q" to quit, to scroll help. uncompressing frame.el.gz...done Mark saved where search started Grep finished with no matches found Using truncated lines. End of buffer Mark set [3 times] uncompressing whitespace.el.gz...done Mark set Mark saved where search started [3 times]