From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: word-wrap "indentation" Date: Thu, 26 Jun 2008 15:40:33 +0900 Message-ID: Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: ger.gmane.org 1214462458 2805 80.91.229.12 (26 Jun 2008 06:40:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Jun 2008 06:40:58 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 26 08:41:43 2008 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 1KBlAs-00019U-61 for ged-emacs-devel@m.gmane.org; Thu, 26 Jun 2008 08:41:42 +0200 Original-Received: from localhost ([127.0.0.1]:58000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KBlA2-00072U-Ia for ged-emacs-devel@m.gmane.org; Thu, 26 Jun 2008 02:40:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KBl9x-000720-8o for emacs-devel@gnu.org; Thu, 26 Jun 2008 02:40:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KBl9v-0006zh-C5 for emacs-devel@gnu.org; Thu, 26 Jun 2008 02:40:44 -0400 Original-Received: from [199.232.76.173] (port=48225 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KBl9v-0006zO-5C for emacs-devel@gnu.org; Thu, 26 Jun 2008 02:40:43 -0400 Original-Received: from tyo202.gate.nec.co.jp ([202.32.8.206]:57307) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KBl9r-00065Q-Bx; Thu, 26 Jun 2008 02:40:40 -0400 Original-Received: from relay31.aps.necel.com ([10.29.19.54]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id m5Q6ePXH029506; Thu, 26 Jun 2008 15:40:34 +0900 (JST) Original-Received: from relay31.aps.necel.com ([10.29.19.16] [10.29.19.16]) by relay31.aps.necel.com with ESMTP; Thu, 26 Jun 2008 15:40:34 +0900 Original-Received: from dhapc248.dev.necel.com ([10.114.112.215] [10.114.112.215]) by relay31.aps.necel.com with ESMTP; Thu, 26 Jun 2008 15:40:34 +0900 Original-Received: by dhapc248.dev.necel.com (Postfix, from userid 31295) id D4E2851; Thu, 26 Jun 2008 15:40:33 +0900 (JST) System-Type: i686-pc-linux-gnu Blat: Foop Original-Lines: 39 X-detected-kernel: by monty-python.gnu.org: Solaris 8 (1) 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:99954 Archived-At: I'm trying to use the new word-wrap feature to get dynamic wrapping in rcirc buffers (since the wrapped portions are read-only the lack of "visual" line movement isn't such a big deal). just doing: (set (make-local-variable 'rcirc-fill-flag) nil) (push '(continuation) fringe-indicator-alist) (setq word-wrap t) gets decent results, but I'd really like to get something more similar to rcirc's normal (static) filling, which looks like: 13:44 Wyzard: In the case of nVidia, yes 13:44 Wyzard: If you had, say, a Matrox card, you'd be using Mesa's libGL, which would talk to the Matrox DRM module in the kernel, to tell the hardware to draw stuff 13:44 enouf: i mean, it makes/uses/loads it's own built kernel module, as you mentioned, which is binary blob related So obviously what's needed is someway to tell the display word-wrapping a string to insert after each wrap-point. To exactly emulate rcirc's static filling, this would need to be a text-property or something, but it seems useful to support a buffer-wide variable as well. Possible names for this variable/property could be "wrap-indent" or "after-wrap-wring" (it seems useful to allow either a string or an integer number of columns to me...). Any comments? Anyone already hacking on this sort of thing, or should I give it a go? -Miles -- Guilt, n. The condition of one who is known to have committed an indiscretion, as distinguished from the state of him who has covered his tracks.