emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Strange behavior with auto-fill
@ 2014-02-02 10:28 Leo Alekseyev
  2014-02-02 21:47 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Leo Alekseyev @ 2014-02-02 10:28 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 771 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1057 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Strange behavior with auto-fill
  2014-02-02 10:28 Strange behavior with auto-fill Leo Alekseyev
@ 2014-02-02 21:47 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2014-02-02 21:47 UTC (permalink / raw)
  To: Leo Alekseyev; +Cc: emacs-orgmode

Hello,

Leo Alekseyev <dnquark@gmail.com> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-02 21:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-02 10:28 Strange behavior with auto-fill Leo Alekseyev
2014-02-02 21:47 ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).