[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: line-line-move-visual: was line motion problem
From: |
T. V. Raman |
Subject: |
Re: line-line-move-visual: was line motion problem |
Date: |
Fri, 25 Jul 2008 06:41:13 -0700 |
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 <address@hidden> writes:
Dan> Stefan Monnier <address@hidden> 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: address@hidden
WWW: http://emacspeak.sf.net/raman/
AIM: emacspeak GTalk: address@hidden
PGP: http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman
IRC: irc://irc.freenode.net/#emacs
- Re: line-line-move-visual: was line motion problem, (continued)
- Re: line-line-move-visual: was line motion problem, Vinicius Jose Latorre, 2008/07/22
- Re: line-line-move-visual: was line motion problem, David Reitter, 2008/07/23
- Re: line-line-move-visual: was line motion problem, Vinicius Jose Latorre, 2008/07/23
- Message not available
- Re: line-line-move-visual: was line motion problem, Vinicius Jose Latorre, 2008/07/25
- RE: line-line-move-visual: was line motion problem, Drew Adams, 2008/07/25
- Re: line-line-move-visual: was line motion problem, Vinicius Jose Latorre, 2008/07/25
- RE: line-line-move-visual: was line motion problem, Drew Adams, 2008/07/25
- Re: line-line-move-visual: was line motion problem, Vinicius Jose Latorre, 2008/07/26
- Re: line-line-move-visual: was line motion problem, David Reitter, 2008/07/26
- Re: line-line-move-visual: was line motion problem, Vinicius Jose Latorre, 2008/07/26
- Re: line-line-move-visual: was line motion problem,
T. V. Raman <=
- Re: line-line-move-visual: was line motion problem, David Reitter, 2008/07/18
- Re: line-line-move-visual: was line motion problem, Jason Rumney, 2008/07/18
- Re: line-line-move-visual: was line motion problem, Chong Yidong, 2008/07/18
- Re: line-line-move-visual: was line motion problem, Stefan Monnier, 2008/07/18
- Re: line-line-move-visual: was line motion problem, Chong Yidong, 2008/07/19
- Re: line-line-move-visual: was line motion problem, Miles Bader, 2008/07/20
- Re: line-line-move-visual: was line motion problem, Chong Yidong, 2008/07/21
- Re: line-line-move-visual: was line motion problem, Chong Yidong, 2008/07/20
- Re: line-line-move-visual: was line motion problem, Juri Linkov, 2008/07/28
- Re: line-line-move-visual: was line motion problem, Miles Bader, 2008/07/28