emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Prevent auto-fill-mode from filling Property values in drawers
@ 2018-01-30 16:50 Kaushal Modi
  2018-02-03 14:16 ` Kaushal Modi
  0 siblings, 1 reply; 22+ messages in thread
From: Kaushal Modi @ 2018-01-30 16:50 UTC (permalink / raw)
  To: emacs-org list


[-- Attachment #1.1: Type: text/plain, Size: 1692 bytes --]

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?

I can recreate this issue on both:
- Org stable (9.1.6 that's on emacs-26 branch) :: Org version: Org mode
version 9.1.6 (release_9.1.6-50-g96b33f @
/home/kmodi/usr_local/apps/6/emacs/emacs-26/share/emacs/26.0.91/lisp/org/)
- Org master ::Org mode version 9.1.6 (release_9.1.6-395-g8ecc4c @
/home/kmodi/usr_local/apps/6/emacs/emacs-26/share/emacs/site-lisp/org/)

Thanks.
-- 

Kaushal Modi

[-- Attachment #1.2: Type: text/html, Size: 2144 bytes --]

[-- Attachment #2: image.png --]
[-- Type: image/png, Size: 29850 bytes --]

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

end of thread, other threads:[~2018-02-11 20:34 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-30 16:50 Prevent auto-fill-mode from filling Property values in drawers Kaushal Modi
2018-02-03 14:16 ` Kaushal Modi
2018-02-03 14:29   ` Nicolas Goaziou
2018-02-03 14:33     ` Kaushal Modi
2018-02-03 14:40       ` Nicolas Goaziou
2018-02-03 14:55         ` Kaushal Modi
2018-02-03 16:16           ` Nicolas Goaziou
2018-02-03 16:20           ` Nick Dokos
2018-02-03 17:41             ` Kaushal Modi
2018-02-03 18:11               ` Nick Dokos
2018-02-03 22:16               ` Nicolas Goaziou
2018-02-04 15:52                 ` Kaushal Modi
2018-02-04 22:16                   ` Nicolas Goaziou
2018-02-05 21:59                     ` Kaushal Modi
2018-02-11 13:12                       ` Nicolas Goaziou
2018-02-11 13:24                         ` Kaushal Modi
2018-02-11 15:54                           ` Nicolas Goaziou
2018-02-11 20:13                             ` Kaushal Modi
2018-02-11 20:22                               ` Nicolas Goaziou
2018-02-11 20:29                                 ` Kaushal Modi
2018-02-11 20:33                                   ` Nicolas Goaziou
2018-02-11 20:23                               ` Kaushal Modi

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).