From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: word-wrap (visual-line) and indents Date: Tue, 25 May 2010 11:37:31 -0400 Message-ID: <9B319A0D-0385-48AD-BF12-884232B365C2@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1274802062 5572 80.91.229.12 (25 May 2010 15:41:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 25 May 2010 15:41:02 +0000 (UTC) To: Emacs-Devel devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 25 17:41:01 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 1OGwFX-0001fW-ER for ged-emacs-devel@m.gmane.org; Tue, 25 May 2010 17:40:59 +0200 Original-Received: from localhost ([127.0.0.1]:60828 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGwFW-0003p4-UW for ged-emacs-devel@m.gmane.org; Tue, 25 May 2010 11:40:58 -0400 Original-Received: from [140.186.70.92] (port=57653 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGwCF-0001oR-Jn for emacs-devel@gnu.org; Tue, 25 May 2010 11:37:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OGwCE-0003fn-0P for emacs-devel@gnu.org; Tue, 25 May 2010 11:37:35 -0400 Original-Received: from mail-qy0-f187.google.com ([209.85.221.187]:58112) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGwCD-0003fe-UT for emacs-devel@gnu.org; Tue, 25 May 2010 11:37:33 -0400 Original-Received: by qyk17 with SMTP id 17so6543285qyk.12 for ; Tue, 25 May 2010 08:37:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:content-type :content-transfer-encoding:subject:date:message-id:to:mime-version :x-mailer; bh=A2jou3LFg7devXW3fZcfg/aIX915qTMXbGWm4WOM2mU=; b=PFE6BBiZkyiDdX44eeS5JVNCi+U7WrIfob2joJREeO8zeR6ZKc7rY6b3olLHZ7cVjY Wdf3UuoAyH6qhnyQhc23ZjYDKWWzE8b5nezVq6j8rbuyT2BGsLfMAvPDl+kr+TNxoj9Z mQxy/X/X1Ojz5zrYv8MzTp2+zhnn47uRrxMZs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=KnzZPLYG42QfbfSBhe8ksrJrVLZgPGyskSd/G/7hhduov6dlQkge1t9zdyob2NyEn9 /8mVKYb1JMeetTtQPzFe3Aa9E+spHWm3c/Z91hle3aDz+ORdmps9k06gSs4YLXDC7soN 5uBJiskvvPIpKmrDteJS9RqdcSpJlqQsJOACQ= Original-Received: by 10.224.43.16 with SMTP id u16mr3970958qae.115.1274801852892; Tue, 25 May 2010 08:37:32 -0700 (PDT) Original-Received: from [192.168.1.17] (pool-96-235-7-98.pitbpa.east.verizon.net [96.235.7.98]) by mx.google.com with ESMTPS id 22sm3365793qyk.6.2010.05.25.08.37.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 25 May 2010 08:37:32 -0700 (PDT) X-Mailer: Apple Mail (2.1078) 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:125252 Archived-At: Speaking of word-wrapping, I thought now would be a good time to bring = up the missing feature of per-line indentation when word wrapping. A recent conversation is quoted below, pointing out that word-wrap is = less than ideal when it comes to displaying e-mail (and the like). A similar example would be org-mode, where you would begin a (buffer) = line with "- " or " - " and where word-wrap would, ideally, recognize = such indentations. =20 A buffer-local variable indicating a regexp that matches indentation = prefixes would be ideal. (As a feature, I would even suggest that if = the regexp has a \\(group\\), the only the length of that group is taken = as the indentation length. To display the actual indentation, I think auto-fill-mode used the same = prefix string that was recognized. This was fine for e-mail quotes, but = always very annoying visually for lists with "- ". I can see that the = latter used to be necessary for org-mode, because buffer lines were = created when auto-filling, but the visual word-wrap doesn't have to = respect that. Indentation with spaces would be sufficient, given that e-mail quotes = can also be highlighted by color. However, if repeating the prefix is = desired, then one could make this configurable per buffer (either prefix = or spaces). On May 24, 2010, at 3:06 PM, Ralf Angeli wrote: >>> By the way, speaking of nuisances, the lines in your mails are too = long >>> which makes them hard to read. >>=20 >> What mail client do you use?=20 >> If in Emacs, try M-x visual-line-mode. Or set word-wrap to t. >=20 > Visual Line mode does not seem to be able to cope with prefixes like > quote markers. >=20 >> I can't predict how wide your window is today, so lines can't be = broken here.