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: Re: line/wrap-prefix patch Date: Thu, 03 Jul 2008 13:19:10 +0900 Message-ID: References: <61zlp3k2xx.fsf@fencepost.gnu.org> <87abh1i6xm.fsf@escher.local.home> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1215058776 16160 80.91.229.12 (3 Jul 2008 04:19:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Jul 2008 04:19:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 03 06:20:21 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 1KEGIu-0000ZG-9a for ged-emacs-devel@m.gmane.org; Thu, 03 Jul 2008 06:20:20 +0200 Original-Received: from localhost ([127.0.0.1]:56890 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEGI3-0006xd-Ez for ged-emacs-devel@m.gmane.org; Thu, 03 Jul 2008 00:19:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KEGHz-0006xY-IR for emacs-devel@gnu.org; Thu, 03 Jul 2008 00:19:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KEGHx-0006xM-4m for emacs-devel@gnu.org; Thu, 03 Jul 2008 00:19:22 -0400 Original-Received: from [199.232.76.173] (port=49925 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEGHx-0006xG-21 for emacs-devel@gnu.org; Thu, 03 Jul 2008 00:19:21 -0400 Original-Received: from tyo201.gate.nec.co.jp ([202.32.8.193]:54680) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KEGHu-00071G-9B; Thu, 03 Jul 2008 00:19:18 -0400 Original-Received: from relay31.aps.necel.com ([10.29.19.54]) by tyo201.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id m634JBvc005494; Thu, 3 Jul 2008 13:19:11 +0900 (JST) Original-Received: from relay11.aps.necel.com ([10.29.19.20] [10.29.19.20]) by relay31.aps.necel.com with ESMTP; Thu, 3 Jul 2008 13:19:11 +0900 Original-Received: from dhapc248.dev.necel.com ([10.114.112.215] [10.114.112.215]) by relay11.aps.necel.com with ESMTP; Thu, 3 Jul 2008 13:19:11 +0900 Original-Received: by dhapc248.dev.necel.com (Postfix, from userid 31295) id 44345438; Thu, 3 Jul 2008 13:19:11 +0900 (JST) System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <87abh1i6xm.fsf@escher.local.home> (Stephen Berman's message of "Wed, 02 Jul 2008 00:19:17 +0200") Original-Lines: 25 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:100290 Archived-At: Stephen Berman writes: > My final comment concerns adaptive filling. In my modification of > longlines.el long lines are appropriately wrapped at different levels of > indentation, resulting in displays like this: .. > With your patch, doing (setq wrap-prefix > (fill-context-prefix (line-beginning-position) (line-end-position))) > results in a display like this: ... > It would be nice to get the appropriate indentation. To get varying prefixes, you can use the `wrap-prefix' text property. To do so automatically and dynamically would be interesting, but is obviously more work. I wonder what ways of specifying the prefix would be practical (e.g., a text-property covering the "header" text at the beginning of the physical line, which would be replaced by spaces to get the wrap prefix, or a regexp used to match the header)? -Miles -- x y Z!