From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "T. V. Raman" Newsgroups: gmane.emacs.devel Subject: Re: line-line-move-visual: was line motion problem Date: Fri, 25 Jul 2008 06:41:13 -0700 Message-ID: <18569.55289.494126.392482@gargle.gargle.HOWL> 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> Reply-To: raman@users.sf.net 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 1216993295 15078 80.91.229.12 (25 Jul 2008 13:41:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Jul 2008 13:41:35 +0000 (UTC) Cc: david.reitter@gmail.com, cyd@stupidchicken.com, emacs-devel@gnu.org, monnier@iro.umontreal.ca, raman@users.sourceforge.net, miles@gnu.org To: dann@ics.uci.edu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 25 15:42:22 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 1KMNYr-0003fk-6f for ged-emacs-devel@m.gmane.org; Fri, 25 Jul 2008 15:42:21 +0200 Original-Received: from localhost ([127.0.0.1]:44427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KMNXx-00082g-Is for ged-emacs-devel@m.gmane.org; Fri, 25 Jul 2008 09:41:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KMNXs-00081z-FC for emacs-devel@gnu.org; Fri, 25 Jul 2008 09:41:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KMNXr-00081P-8Q for emacs-devel@gnu.org; Fri, 25 Jul 2008 09:41:20 -0400 Original-Received: from [199.232.76.173] (port=60661 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KMNXr-000819-2L for emacs-devel@gnu.org; Fri, 25 Jul 2008 09:41:19 -0400 Original-Received: from qmta10.westchester.pa.mail.comcast.net ([76.96.62.17]:46025) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KMNXq-0007Rq-5y for emacs-devel@gnu.org; Fri, 25 Jul 2008 09:41:18 -0400 Original-Received: from OMTA01.westchester.pa.mail.comcast.net ([76.96.62.11]) by QMTA10.westchester.pa.mail.comcast.net with comcast id uBM61Z00A0EZKEL5ADgqim; Fri, 25 Jul 2008 13:40:50 +0000 Original-Received: from localhost ([71.202.191.236]) by OMTA01.westchester.pa.mail.comcast.net with comcast id uDhD1Z00G56Ur8v3MDhEid; Fri, 25 Jul 2008 13:41:15 +0000 X-Authority-Analysis: v=1.0 c=1 a=JFFE2i9Fl-cA:10 a=XPtRCxA_nRcA:10 a=2z1OXlWFAAAA:8 a=ZkMdcHXhXMKJAodLgVUA:9 a=kcZEyCc4xbHkDHekXocA:9 a=dshYeb4yTDSgvNWTrCHDICjqNwoA:4 a=5o1NfpFvE1MA:10 a=MSl-tDqOz04A:10 a=6YUFw8KurxMA:10 Original-Received: by localhost (Postfix, from userid 1000) id 82E1312A4101; Fri, 25 Jul 2008 06:41:13 -0700 (PDT) In-Reply-To: <200807181530.m6IFUHVp029662@sallyv1.ics.uci.edu> X-Mailer: VM alpha-479 under Emacs 23.0.60.1 (i686-pc-linux-gnu) x-attribution: tvr X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:101458 Archived-At: 1+ on whitespace.el -- it's what I depend on in general to clean up unnecessary whitespace in various portions of code I write. >>>>> "Dan" == Dan Nicolaescu writes: Dan> Stefan Monnier writes: >> >> I don't know how many people actually want them in >> visual-line-mode >> (I'd like a fringe item at a hard >> newline, but until this is >> implemented the next best >> thing is a display-table element for \n). >> >> > We could leave the continuation glyphs, but make them >> less conspicuous. >> >> For a mode that expects most lines to be wrapped, I see >> not point in leaving continuation marks. >> >> > To mark hard newlines, try the code below. I suggest to >> include this. >> >> > ;; 2230 = \x8B6 > (defvar show-newlines-newline-code >> (vector (make-glyph-code 2230 > blank-newline) 10)) >> >> [ Too long a line, huh? ] >> >> My font doesn't seem to know the char 2230, and >> UnicodeData.txt doesn't seem to know that char either. So >> we should probably use something else. >> >> > (if show-newlines-mode > (aset buffer-display-table 10 >> show-newlines-newline-code) > (aset buffer-display-table >> 10 nil))) >> >> Better write it as: >> >> (aset buffer-display-table 10 (if show-newlines-mode >> show-newlines-newline-code)) Dan> Dan> whitespace.el already has many many ways of dealing with Dan> whitespaces, wouldn't this mode be a better fit in Dan> whitespace.el? -- Best Regards, --raman Email: raman@users.sf.net WWW: http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: tv.raman.tv@gmail.com PGP: http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC: irc://irc.freenode.net/#emacs