From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Indentation and visual-line-mode Date: Fri, 25 Nov 2011 15:36:38 +0100 Message-ID: <87lir4xo95.fsf@tsdh.uni-koblenz.de> References: <878vn44kbi.fsf@tsdh.uni-koblenz.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1322231811 25696 80.91.229.12 (25 Nov 2011 14:36:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 25 Nov 2011 14:36:51 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lennart Borgman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 25 15:36:46 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 1RTwtR-0001Tx-Uc for ged-emacs-devel@m.gmane.org; Fri, 25 Nov 2011 15:36:46 +0100 Original-Received: from localhost ([::1]:33528 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTwtR-0001e1-Gp for ged-emacs-devel@m.gmane.org; Fri, 25 Nov 2011 09:36:45 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:44802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTwtP-0001dw-8W for emacs-devel@gnu.org; Fri, 25 Nov 2011 09:36:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RTwtO-0003Fa-36 for emacs-devel@gnu.org; Fri, 25 Nov 2011 09:36:43 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:60476) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTwtN-0003FD-Ny for emacs-devel@gnu.org; Fri, 25 Nov 2011 09:36:42 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 63E311A4131; Fri, 25 Nov 2011 15:36:40 +0100 (CET) X-Virus-Scanned: amavisd-new at uni-koblenz.de Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ODRV7m4ckR5P; Fri, 25 Nov 2011 15:36:39 +0100 (CET) X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org Original-Received: from tsdh.uni-koblenz.de (tsdh.uni-koblenz.de [141.26.67.142]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id AC9A61A411C; Fri, 25 Nov 2011 15:36:39 +0100 (CET) In-Reply-To: (Lennart Borgman's message of "Fri, 25 Nov 2011 14:49:34 +0100") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.91 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 141.26.64.15 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:146228 Archived-At: 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. I'm not too tempted to install nXhtml mode just for that single feature, when Stephen's snippet works just fine. > I have attached an image of how it can look in org-mode. There 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"? Bye, Tassilo -- (What the world needs (I think) is not (a Lisp (with fewer parentheses)) but (an English (with more.))) Brian Hayes, http://tinyurl.com/3y9l2kf