[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: longlines-mode and visual-line-mode

Subject: Re: longlines-mode and visual-line-mode
Date: Tue, 2 Jun 2009 23:09:57 -0400

> Anyway, I believe the following is useful but still missing in v-l-m, a
> variable to control the width, i.e. if it is positive integer, it
> controls the length of the line, otherwise it is the distance from the
> window edge to the right-most char of the line.

Realized this evening where Mr. Yidong may be looking to -> grapheme-clusters.

Now that the underlying Emacs encoding is "..to Unicode and Beyond"
this would seem a likely approach esp. coupled with the users
language-environment settings.

Fancy that...

(defun my-grapheme-fuzz-factor-pref ()
  (if (and (member
            (cdr (assoc 'major-mode (buffer-local-variables)))
           (and (assoc 'syntax-table text-property-default-nonsticky)
           (cdr (assoc 'syntax-table text-property-default-nonsticky))))
  (setq right-most-grapheme-avoidance 3)))

  (set (make-local-variable 'grapheme-wrap-fuzz-factor) nil)))

  (add-hook 'buffer-grapheme-wrap-fuzziness-hook 'my-grapheme-fuzz-factor-pref)

Or, for the bidi bound - test for a front-skicky instead in
`my-grapheme-fuzz-factor-pref' and

  (setq left-most-grapheme-avoidance 3)  instead :)

reply via email to

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