From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vikas Rawal Subject: Re: Trouble with autofill mode Date: Tue, 4 Aug 2015 06:34:07 +0530 Message-ID: <1302C604-839A-467A-A734-E49F1C440E66@agrarianresearch.org> References: <3F46BC12-38CA-47D9-8300-ED3D3B036E8A@agrarianresearch.org> Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51342) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMQeQ-0005Kj-7j for emacs-orgmode@gnu.org; Mon, 03 Aug 2015 21:04:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMQeN-00074B-1R for emacs-orgmode@gnu.org; Mon, 03 Aug 2015 21:04:18 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:35182) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMQeM-000745-Si for emacs-orgmode@gnu.org; Mon, 03 Aug 2015 21:04:14 -0400 Received: by pasy3 with SMTP id y3so26545121pas.2 for ; Mon, 03 Aug 2015 18:04:14 -0700 (PDT) In-Reply-To: <3F46BC12-38CA-47D9-8300-ED3D3B036E8A@agrarianresearch.org> 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: Vicente Vera Cc: org-mode mailing list >>=20 >> Hello, >> This StackExchange question might help you out: >> = https://emacs.stackexchange.com/questions/12392/prevent-fill-paragraph-fro= m-breaking-latex-citations-in-org-mode >> (Only if I got your question right...) >=20 > Thanks very much. This should work. Let me try to modify it to my use = case. >=20 > Much appreciated. >=20 This is turning out to be non-trivial for my limited knowledge of regex. = We need a regex that would return true for all white spaces between = "\index{" and =E2=80=9C}" in a string like \index{this is an index} and then some text \index(and then another = index} And then add-hook it to 'fill-nobreak-predicate. Various things that I have tried since yesterday did not get me = anywhere. Vikas=