From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Prevent auto-fill-mode from filling Property values in drawers Date: Sat, 03 Feb 2018 15:29:33 +0100 Message-ID: <87shaiuoxe.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35277) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehyp2-0002UM-FI for emacs-orgmode@gnu.org; Sat, 03 Feb 2018 09:29:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ehyoy-0003x4-AU for emacs-orgmode@gnu.org; Sat, 03 Feb 2018 09:29:40 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:54578) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ehyoy-0003vj-4P for emacs-orgmode@gnu.org; Sat, 03 Feb 2018 09:29:36 -0500 In-Reply-To: (Kaushal Modi's message of "Sat, 03 Feb 2018 14:16:02 +0000") 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" To: Kaushal Modi Cc: emacs-org list Hello, Kaushal Modi writes: > Hello, > > I am bumping this thread, as it very likely could have been missed. > > If fixing that was already on the radar, sorry for the bump. > > On Tue, Jan 30, 2018, 11:50 AM Kaushal Modi wrote: > >> Hello, >> >> I have noticed that auto-filling working on long (going past fill-column) >> values in property drawers. >> >> Here's a MWE: >> >> ===== >> #+TITLE: Test case showing auto-filling happening in Property drawers too >> * Heading >> :PROPERTIES: >> :DESCRIPTION: This is a very long description that will auto fill at the >> =fill-column=. But this is inside a property drawer, so the auto-filling >> should be disabled. >> :END: >> * COMMENT Local Variables >> # Local Variables: >> # fill-column: 70 >> # eval: (auto-fill-mode 1) >> # End: >> ===== >> >> The value of that DESCRIPTION property is in a single line (I believe some >> email clients auto-fill the text). Basically this is what it should look >> like in emacs -Q after M-x toggle-truncate-lines: >> >> [image: image.png] >> >> Now if you hit return at the end of that long description, auto-fill kicks >> in and turns that into this invalid drawer: >> >> ===== >> #+TITLE: Test case showing auto-filling happening in Property drawers too >> * Heading >> :PROPERTIES: >> :DESCRIPTION: This is a very long description that will auto fill at >> the =fill-column=. But this is inside a property drawer, so the >> auto-filling should be disabled. >> >> :END: >> * COMMENT Local Variables >> # Local Variables: >> # fill-column: 70 >> # eval: (auto-fill-mode 1) >> # End: >> ===== >> >> This looks like a bug. Can the auto-filling be disabled in property >> drawers? It is already the case. See `org-adaptive-fill-function': it returns nil when at a node property. I cannot reproduce your ECM. Regards, -- Nicolas Goaziou