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: Indentation and visual-line-mode Date: Fri, 25 Nov 2011 10:34:25 +0100 Message-ID: <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 1322213678 23929 80.91.229.12 (25 Nov 2011 09:34:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 25 Nov 2011 09:34:38 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 25 10:34:34 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 1RTsB0-0004z5-8t for ged-emacs-devel@m.gmane.org; Fri, 25 Nov 2011 10:34:34 +0100 Original-Received: from localhost ([::1]:40385 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTsAz-0000oP-J0 for ged-emacs-devel@m.gmane.org; Fri, 25 Nov 2011 04:34:33 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:37904) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTsAw-0000oJ-NY for emacs-devel@gnu.org; Fri, 25 Nov 2011 04:34:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RTsAv-00028T-I4 for emacs-devel@gnu.org; Fri, 25 Nov 2011 04:34:30 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:51804) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTsAv-00028G-Cf for emacs-devel@gnu.org; Fri, 25 Nov 2011 04:34:29 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id ED668D2502 for ; Fri, 25 Nov 2011 10:34:27 +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 UNAJEdSSMo4Q for ; Fri, 25 Nov 2011 10:34:27 +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 48BD2D2500 for ; Fri, 25 Nov 2011 10:34:27 +0100 (CET) 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:146210 Archived-At: Hi all, in some document that's written by me and others, the convention is that every paragraph is written on one line, probably because the others don't use emacs and their editors have no equivalent of `M-q'. Anyway, when editing such files, I enable visual-line-mode to make my editing more convenient. However, there's one thing I'm missing. If a line is visually wrapped around, it always starts at column zero, even if the logical line is indented. For example, if the window was 25 columns wide, I get --8<---------------cut here---------------start------------->8--- \begin{itemize} \item Foo bar baz foo bar baz foo \item Bar baz foo bar baz \end{itemize} --8<---------------cut here---------------end--------------->8--- which looks pretty weird. Is there some option that allows the wrapped lines to be visually indented relative to the current logical line? --8<---------------cut here---------------start------------->8--- \begin{itemize} \item Foo bar baz foo bar baz foo \item Bar baz foo bar baz \end{itemize} --8<---------------cut here---------------end--------------->8--- 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? 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