From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: MON KEY Newsgroups: gmane.emacs.devel Subject: Re: longlines-mode and visual-line-mode Date: Tue, 2 Jun 2009 23:09:57 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1243998617 14227 80.91.229.12 (3 Jun 2009 03:10:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Jun 2009 03:10:17 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 03 05:10:12 2009 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 1MBgrk-00020F-9k for ged-emacs-devel@m.gmane.org; Wed, 03 Jun 2009 05:10:12 +0200 Original-Received: from localhost ([127.0.0.1]:42059 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBgrj-0003cu-Ki for ged-emacs-devel@m.gmane.org; Tue, 02 Jun 2009 23:10:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MBgrc-0003b0-Kv for emacs-devel@gnu.org; Tue, 02 Jun 2009 23:10:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MBgrX-0003VP-Fd for emacs-devel@gnu.org; Tue, 02 Jun 2009 23:10:03 -0400 Original-Received: from [199.232.76.173] (port=40300 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBgrX-0003VD-9Z for emacs-devel@gnu.org; Tue, 02 Jun 2009 23:09:59 -0400 Original-Received: from mail-gx0-f174.google.com ([209.85.217.174]:40972) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MBgrW-0004x6-UW for emacs-devel@gnu.org; Tue, 02 Jun 2009 23:09:59 -0400 Original-Received: by gxk22 with SMTP id 22so157415gxk.18 for ; Tue, 02 Jun 2009 20:09:57 -0700 (PDT) Original-Received: by 10.151.137.2 with SMTP id p2mr33910ybn.155.1243998597503; Tue, 02 Jun 2009 20:09:57 -0700 (PDT) X-Google-Sender-Auth: cbca9f8a0713773a X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:111302 Archived-At: > 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))) '(language-o-choice-mode language-o-plenty-mode emacs-rdf-graph-navigator-mode)) (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 :)