From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: word-wrap (visual-line) and indents Date: Tue, 25 May 2010 19:36:37 +0200 Message-ID: References: <9B319A0D-0385-48AD-BF12-884232B365C2@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1274809031 3551 80.91.229.12 (25 May 2010 17:37:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 25 May 2010 17:37:11 +0000 (UTC) Cc: Emacs-Devel devel To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 25 19:37:09 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1OGy3u-000219-EO for ged-emacs-devel@m.gmane.org; Tue, 25 May 2010 19:37:06 +0200 Original-Received: from localhost ([127.0.0.1]:41221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGy3t-0007Fq-V9 for ged-emacs-devel@m.gmane.org; Tue, 25 May 2010 13:37:05 -0400 Original-Received: from [140.186.70.92] (port=38314 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGy3n-0007Fk-Vd for emacs-devel@gnu.org; Tue, 25 May 2010 13:37:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OGy3m-0002NM-Om for emacs-devel@gnu.org; Tue, 25 May 2010 13:36:59 -0400 Original-Received: from mail-gw0-f41.google.com ([74.125.83.41]:53343) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGy3m-0002NF-Lp for emacs-devel@gnu.org; Tue, 25 May 2010 13:36:58 -0400 Original-Received: by gwb19 with SMTP id 19so1577269gwb.0 for ; Tue, 25 May 2010 10:36:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=HorsfNNlzxmSoBpDrllZ7VkqQpUyLzTf2k7+dB3W7SA=; b=mhV6q6c7jktrVSnbNd0ZCGfNqS0sQj0q8RzGxj3otE4zUQrAKyuNU3EAgE+gcnIDrN gckkarMLXmx2tChR/hS/rWTICZLGFoJft6cLBP10nweEJV/XLdJMRCqvHCzfvLqf1FxA /TMk+BSJNg8q/CFmkkhIK3niGRbKN44CcDgCM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=NVnn1+DMTke8/kdxrEonCyHxeiZt0iQ8Ladq//beUKgoTVr+gJvjvJqQHaJmp7QJbu lrChTWGASpwhOL4X/91FbwuK6xlk+CMPI1sp8fS5DbZquWua9Vy6A3SpU3PdSRjqDoCY xybfHu0Ibaa3BDCSViaqNLvsuLTJR0um9mcdY= Original-Received: by 10.100.245.4 with SMTP id s4mr9044247anh.224.1274809017792; Tue, 25 May 2010 10:36:57 -0700 (PDT) Original-Received: by 10.100.177.20 with HTTP; Tue, 25 May 2010 10:36:37 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.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:125260 Archived-At: On Tue, May 25, 2010 at 7:29 PM, David Reitter wr= ote: > On May 25, 2010, at 12:30 PM, Lennart Borgman wrote: > >> >> I have tried to implement this in `wrap-to-fill-column' (which is part >> of nXhtml currently). Can you test it and see how it fits > > Can you give me a pointer to this? > I have tried the master branch (24), in nxml-mode, and couldn't find a va= riable or function of this name. =C2=A0I don't seem to have a nxhtml-mode. = =C2=A0 Do you mean the latest release of nXhtml on ourcomments.org? Check out nXhtml from Launchpad and just add a line (load "nxhtml/autostart.el") Then you have the minor mode `wrap-to-fill-column-mode'. However it does not try to make use of fill-context-prefix yet. It has its own way to set things up. I hope we can change that later. > Maybe if you split it out, that'd be easiest, because then I could see ho= w this works in other modes. wrap-to-fill-column-mode does two things - Sets margin so that only fill-column columns is left for the text. - Sets 'wrap-prefix on the lines that it thinks should be indented. So I think for testing you can use it as it is.