From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: line-line-move-visual: was line motion problem Date: Mon, 21 Jul 2008 21:31:14 -0400 Message-ID: <873am2902l.fsf@stupidchicken.com> References: <18557.63556.231489.523637@gargle.gargle.HOWL> <5F62534C-D5CE-4364-8F73-E1AE0D61B4E2@gmail.com> <87abghlqs2.fsf@stupidchicken.com> <87hcap3ct7.fsf@stupidchicken.com> <87mykg84aj.fsf@stupidchicken.com> <200807181530.m6IFUHVp029662@sallyv1.ics.uci.edu> <06ED973A-F762-4586-9913-37B3622C8644@gmail.com> <48851632.5030302@ig.com.br> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1216690223 15405 80.91.229.12 (22 Jul 2008 01:30:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Jul 2008 01:30:23 +0000 (UTC) Cc: David Reitter , raman@users.sourceforge.net, Dan Nicolaescu , Stefan Monnier , emacs-devel@gnu.org, Miles Bader To: Vinicius Jose Latorre Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 22 03:31:10 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KL6ia-0000gf-9D for ged-emacs-devel@m.gmane.org; Tue, 22 Jul 2008 03:31:08 +0200 Original-Received: from localhost ([127.0.0.1]:53241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KL6hh-0006SA-03 for ged-emacs-devel@m.gmane.org; Mon, 21 Jul 2008 21:30:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KL6hb-0006Oh-Id for emacs-devel@gnu.org; Mon, 21 Jul 2008 21:30:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KL6hZ-0006MZ-1V for emacs-devel@gnu.org; Mon, 21 Jul 2008 21:30:06 -0400 Original-Received: from [199.232.76.173] (port=40832 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KL6hY-0006MP-T1 for emacs-devel@gnu.org; Mon, 21 Jul 2008 21:30:04 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]:55270 helo=cyd) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KL6hU-0001fZ-Mu; Mon, 21 Jul 2008 21:30:00 -0400 Original-Received: by cyd (Postfix, from userid 1000) id 03EC257E32A; Mon, 21 Jul 2008 21:31:14 -0400 (EDT) In-Reply-To: <48851632.5030302@ig.com.br> (Vinicius Jose Latorre's message of "Mon, 21 Jul 2008 20:05:22 -0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:101147 Archived-At: Vinicius Jose Latorre writes: > Second, there is already whitespace-newline which is the face used to > visualize newlines. > > If it is necessary to have specific functions to display newlines, it > should be something like this: > > (defun whitespace-newline () > (let ((whitespace-style '(newline-mark newline))) > (whitespace-mode 1))) > > (defun global-whitespace-newline () > (let ((whitespace-style '(newline-mark newline))) > (global-whitespace-mode 1))) Aha. This certainly looks like a much better solution (it will have to be rewritten properly using define-minor-mode, though). Thanks.