From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Auto-fill-mode with code sections Date: Sat, 05 May 2012 08:17:07 +0200 Message-ID: <87y5p6sljd.fsf@altern.org> References: <21A5E1E970CD46459ECBE86D6CC4B28C66C1C273@spexch01.WindLogics.local> <87y5p77lo4.fsf@gmx.com> <87bom36zk1.fsf@tajo.ucsd.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQgka-0002TY-Al for emacs-orgmode@gnu.org; Sat, 05 May 2012 11:18:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SQgkY-0000wZ-JH for emacs-orgmode@gnu.org; Sat, 05 May 2012 11:18:23 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:38062) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQgkY-0000wE-Ao for emacs-orgmode@gnu.org; Sat, 05 May 2012 11:18:22 -0400 Received: by wibhm17 with SMTP id hm17so1890855wib.0 for ; Sat, 05 May 2012 08:18:20 -0700 (PDT) In-Reply-To: <87bom36zk1.fsf@tajo.ucsd.edu> (cberry@tajo.ucsd.edu's message of "Fri, 04 May 2012 21:07:26 -0700") 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: cberry@tajo.ucsd.edu Cc: emacs-orgmode@gnu.org Hi Charles, cberry@tajo.ucsd.edu writes: > It fills normal text, but leaves src blocks alone. > > Maybe add something to one of the org-mode hooks ? `org-auto-fill-function' already exists in the code, adding a new function with the same name would confuse things. I patched the current `org-auto-fill-function' so that, when ̀org-src-prevent-auto-filling' is non-nil, no auto-fill happens in src blocks. The new option defaults to nil so that people are not surprised when ̀auto-fill-mode' is enable and does not happen *everywhere* in Org buffers. Thanks to Ken Williams for the request and to you for your suggestion! -- Bastien