emacs-devel
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]