[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: |
Dan Nicolaescu |
Subject: |
Re: line-line-move-visual: was line motion problem |
Date: |
Fri, 18 Jul 2008 08:30:17 -0700 |
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))
whitespace.el already has many many ways of dealing with whitespaces,
wouldn't this mode be a better fit in whitespace.el?
- line-line-move-visual: was line motion problem, T. V. Raman, 2008/07/16
- Re: line-line-move-visual: was line motion problem, Stefan Monnier, 2008/07/16
- Re: line-line-move-visual: was line motion problem, David Reitter, 2008/07/16
- Re: line-line-move-visual: was line motion problem, Chong Yidong, 2008/07/16
- Re: line-line-move-visual: was line motion problem, Chong Yidong, 2008/07/16
- Re: line-line-move-visual: was line motion problem, Chong Yidong, 2008/07/17
- Re: line-line-move-visual: was line motion problem, Miles Bader, 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, David Reitter, 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,
Dan Nicolaescu <=
- Re: line-line-move-visual: was line motion problem, Stefan Monnier, 2008/07/18
- Re: line-line-move-visual: was line motion problem, Miles Bader, 2008/07/18
- Re: line-line-move-visual: was line motion problem, David Reitter, 2008/07/21
- Re: line-line-move-visual: was line motion problem, Chong Yidong, 2008/07/21
- Re: line-line-move-visual: was line motion problem, David Reitter, 2008/07/21
- Re: line-line-move-visual: was line motion problem, Miles Bader, 2008/07/21
- Re: line-line-move-visual: was line motion problem, Stefan Monnier, 2008/07/21
- Re: line-line-move-visual: was line motion problem, Miles Bader, 2008/07/21
- Re: line-line-move-visual: was line motion problem, Dan Nicolaescu, 2008/07/21
- Re: line-line-move-visual: was line motion problem, David Reitter, 2008/07/21