From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Alekseyev Subject: Strange behavior with auto-fill Date: Sun, 2 Feb 2014 02:28:50 -0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c329a2b1e6a104f169e029 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9uIe-0006Ie-4a for emacs-orgmode@gnu.org; Sun, 02 Feb 2014 05:29:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W9uIZ-0004xn-LG for emacs-orgmode@gnu.org; Sun, 02 Feb 2014 05:29:16 -0500 Received: from mail-oa0-x22a.google.com ([2607:f8b0:4003:c02::22a]:36970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9uIZ-0004xh-Fu for emacs-orgmode@gnu.org; Sun, 02 Feb 2014 05:29:11 -0500 Received: by mail-oa0-f42.google.com with SMTP id i7so7082257oag.1 for ; Sun, 02 Feb 2014 02:29:10 -0800 (PST) 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 --001a11c329a2b1e6a104f169e029 Content-Type: text/plain; charset=ISO-8859-1 I've been observing a very annoying behavior with auto fill; it persist in the latest org from git, as well as the version shipped with Emacs 24.3 for OS X. Consider starting a clean Emacs session with emacs -Q. Start a new file, foo.org. Do M-x org-mode and M-x auto-fill-mode. Now enter the following 3 lines: --- --- --- (yes, that's a bunch of dashes). Now try putting a long line in between the second and third set of dashes, and wait for auto-fill to wrap the line. Here is what I observe: --- --- This is a long line designed to exhibit a bug in auto-fill. It's ---almost as if auto-fill thinks the dashes are a comment symbol. --- Notice how after wrapping the line acquired a leading "---"! Why does this happen, and how can it be turned off? --Leo --001a11c329a2b1e6a104f169e029 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I've been observing a very annoying behavior with auto= fill; it persist in the latest org from git, as well as the version shippe= d with Emacs 24.3 for OS X.

Consider starting a clean Em= acs session with emacs -Q. =A0Start a new file, = foo.org. =A0Do M-x org-mode and M-x auto-fill-mode. =A0Now enter the fo= llowing 3 lines:
---
---
---

(yes, that= 9;s a bunch of dashes). =A0Now try putting a long line in between the secon= d and third set of dashes, and wait for auto-fill to wrap the line. =A0Here= is what I observe:

---
---
This is a long line de= signed to exhibit a bug in auto-fill. =A0It's
---almost as if= auto-fill thinks the dashes are a comment symbol.
---

Notice how after wrapping the line acquired a leading &= quot;---"! =A0Why does this happen, and how can it be turned off?

--Leo
--001a11c329a2b1e6a104f169e029-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Strange behavior with auto-fill Date: Sun, 02 Feb 2014 22:47:29 +0100 Message-ID: <87lhxt426m.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WA4sn-0006vu-QL for emacs-orgmode@gnu.org; Sun, 02 Feb 2014 16:47:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WA4sf-0007Hg-DC for emacs-orgmode@gnu.org; Sun, 02 Feb 2014 16:47:17 -0500 Received: from mail-we0-x234.google.com ([2a00:1450:400c:c03::234]:56618) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WA4sf-0007Hc-6v for emacs-orgmode@gnu.org; Sun, 02 Feb 2014 16:47:09 -0500 Received: by mail-we0-f180.google.com with SMTP id u57so1461830wes.25 for ; Sun, 02 Feb 2014 13:47:08 -0800 (PST) In-Reply-To: (Leo Alekseyev's message of "Sun, 2 Feb 2014 02:28:50 -0800") 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: Leo Alekseyev Cc: emacs-orgmode@gnu.org Hello, Leo Alekseyev writes: > I've been observing a very annoying behavior with auto fill; it persist in > the latest org from git, as well as the version shipped with Emacs 24.3 for > OS X. It is a feature. See `adaptive-fill-regexp'. You can set it to nil. Note that it will also happen in some other modes (e.g. Text mode). Regards, -- Nicolas Goaziou