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: Indentation and visual-line-mode Date: Fri, 25 Nov 2011 15:47:25 +0100 Message-ID: References: <878vn44kbi.fsf@tsdh.uni-koblenz.de> <87lir4xo95.fsf@tsdh.uni-koblenz.de> 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 1322232478 30451 80.91.229.12 (25 Nov 2011 14:47:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 25 Nov 2011 14:47:58 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 25 15:47:54 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RTx4C-0006Li-Ff for ged-emacs-devel@m.gmane.org; Fri, 25 Nov 2011 15:47:52 +0100 Original-Received: from localhost ([::1]:41630 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTx4B-0000ru-Uk for ged-emacs-devel@m.gmane.org; Fri, 25 Nov 2011 09:47:51 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:54542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTx48-0000rc-A9 for emacs-devel@gnu.org; Fri, 25 Nov 2011 09:47:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RTx47-0006Cr-A6 for emacs-devel@gnu.org; Fri, 25 Nov 2011 09:47:48 -0500 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:37519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTx47-0006Ck-4g for emacs-devel@gnu.org; Fri, 25 Nov 2011 09:47:47 -0500 Original-Received: by faas10 with SMTP id s10so4249595faa.0 for ; Fri, 25 Nov 2011 06:47:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=g25z+iCeA31Hs2Cve1MxN6ab2vSn5aDqRmosVmIyrPE=; b=Ah8+8fRl3iTwDEzrt3XLKI2ufn3I5dQc9Pvjy+6F1gnkJi60soj9cR8k5CLG1PL+aV nzVA+oPwv6QO2VXVmnGZdP4wiMeGZvvqkB0cKbg40mdr2CMGTwYc7IffZveSpq7g+1AU BPDgEmmlw2YHtwjY/kSkTkDgeoCIgeKMFGCb4= Original-Received: by 10.152.109.198 with SMTP id hu6mr20720130lab.11.1322232466093; Fri, 25 Nov 2011 06:47:46 -0800 (PST) Original-Received: by 10.152.38.198 with HTTP; Fri, 25 Nov 2011 06:47:25 -0800 (PST) In-Reply-To: <87lir4xo95.fsf@tsdh.uni-koblenz.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146229 Archived-At: On Fri, Nov 25, 2011 at 15:36, Tassilo Horn wrote: > Lennart Borgman writes: > > Hi Lennart, > >>> Checking the docs, I think something like that can be achieved using >>> the variables or text properties `line-prefix' and `wrap-prefix', but >>> what is a stretch-glyph? >> >> I think I have told here that there is and have been for several years >> a minor mode in nXhtml that does this: wrap-to-fill-column-mode. > > Hm, I've just downloaded wrap-to-fill.el, but it depends on mumamo and > possibly other files. It does not depend on mumamo.el. I just forgot to remove the (eval-when-compile (require 'mumamo)) line. > I'm not too tempted to install nXhtml mode just > for that single feature, when Stephen's snippet works just fine. They do not do the same thing. >> I have attached an image of how it can look in org-mode. =C2=A0There are >> two lines in this image, one in org-mode itself and one in a comment >> in org-mode. Both are wrapped the way you want it. > > Oh, are the second and third # in the comment artifical, i.e., logically > it's only "# one comment starter followed by a very long line"? Yes.