From mboxrd@z Thu Jan 1 00:00:00 1970 From: XeCycle Subject: Re: Smarter fill-paragraph behaviour in #+XXX: comments Date: Fri, 20 Jul 2012 15:11:13 +0800 Message-ID: <87k3xy6h66.fsf@xc.laptop> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55732) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ss7RG-0001qS-GH for emacs-orgmode@gnu.org; Fri, 20 Jul 2012 03:15:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ss7RF-0001u5-IM for emacs-orgmode@gnu.org; Fri, 20 Jul 2012 03:15:50 -0400 Received: from plane.gmane.org ([80.91.229.3]:46854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ss7RF-0001tt-B4 for emacs-orgmode@gnu.org; Fri, 20 Jul 2012 03:15:49 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ss7RC-00008p-LH for emacs-orgmode@gnu.org; Fri, 20 Jul 2012 09:15:46 +0200 Received: from 202.120.55.140 ([202.120.55.140]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 Jul 2012 09:15:46 +0200 Received: from XeCycle by 202.120.55.140 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 Jul 2012 09:15:46 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Paul Sexton writes: > I became annoyed at how, when pressing M-Q (fill-paragraph) while in a=20 > block like this: > > #+CAPTION: This is a really long caption that I need > #+CAPTION: to describe my table in excruciating and unnecessary detail > > Org takes no account of the #+ directives and simply smooshes all the=20 > lines together like this: > > > #+CAPTION: This is a really long caption that I need +CAPTION: to describ= e my > #table in excruciating and unnecessary detail > > > So I wrote the following function. I have it bound to M-q in > org-mode. Instead of doing these, you can try setting adaptive-fill-regexp and adaptive-fill-first-line-regexp. =2D-=20 Carl Lei (XeCycle) Department of Physics, Shanghai Jiao Tong University OpenPGP public key: 7795E591 Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQEcBAEBAgAGBQJQCQSTAAoJEI1xjsR3leWRRfUH/1cwUsbEo+fdCOYMdx9PAafW 8NFQYnPCcPTP/OVTmdRC4Hc7fQ/iKcxaSmStjCV/mwMScsk/K5+j8xdFRFgirjQe IB0Tv1BNu4Tkpl5jOyl6d0NPU/ptyScxLkT560FVhoeTa5lmpE8Iax8itScTnilm 36jaH5paxMvZK8nk22XfphvrYgiT5pHs2/VypX/kVFiGkzmjUiArpSYM1TblUtu8 6dpx+dqDfRfgoDml3ATq4miUdFbxPHrom6cc6tjMNco/dTLwQX5WfHd9dl5CDZRQ +bdc31mzDwKGRymfMp+g2MAnF55jaz674zt1QFtwaCICny66ndu9soqLHakVgmg= =E8y1 -----END PGP SIGNATURE----- --=-=-=--