emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Nick Dokos <ndokos@gmail.com>, Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: Prevent auto-fill-mode from filling Property values in drawers
Date: Sat, 03 Feb 2018 17:41:31 +0000	[thread overview]
Message-ID: <CAFyQvY2du0B+aTY=tauy=WZSNR=jmt35gfJmWXu7qnJ1_nAS1Q@mail.gmail.com> (raw)
In-Reply-To: <87372i82p5.fsf@alphaville.usersys.redhat.com>


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

On Sat, Feb 3, 2018 at 11:22 AM Nick Dokos <ndokos@gmail.com> wrote:

>
> FWIW, I tried it too both with emacs -Q and in my normal working emacs: I
> cannot reproduce it.
>

Hello Nick, Nicolas,

Thank you for trying out the MWE. I don't know what we could be doing
differently.

So here's a recorded screencast ( https://i.imgur.com/8u8KhAy.gifv ) to get
rid of any miscommunication.

Please follow this exact steps (just to reiterate, I am relying on
auto-fill-mode to not trigger when RET is pressed.. I am not using M-q
anywhere):

1. Download the attached Org file (property-auto-fill.org).
2. emacs -Q property-auto-fill.org
3. Navigate to the Heading, hit TAB, then to the PROPERTY drawer, hit TAB.
4. Go to the end of the DESCRIPTION property, hit RET.
5. Doesn't that property auto-fill for you? As you see in the screencast,
the auto-filling happens for me.

Here's the C-h l log as you see in the linked screencast:

 C-n [next-line]
 C-n [next-line]
 C-a [org-beginning-of-line]
 C-p [previous-line]
 C-a [org-beginning-of-line]
 <tab> [org-cycle]
 C-n [next-line]
 <tab> [org-cycle]
 C-n [next-line]
 C-e [org-end-of-line]
 <return> [org-return]
 C-h l [view-lossage]

And finally the emacs and Org versions in that emacs -Q session:

- GNU Emacs 26.0.91 (build 4, x86_64-pc-linux-gnu, GTK+ Version 2.24.23) of
2018-01-31 built using repository revision
http://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-26&id=56c37bbdb60f201791b57a3af2f47b7517de810c
- 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/)
-- 

Kaushal Modi

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

[-- Attachment #2: property-auto-fill.org --]
[-- Type: application/octet-stream, Size: 366 bytes --]

#+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:

  reply	other threads:[~2018-02-03 17:41 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFyQvY2du0B+aTY=tauy=WZSNR=jmt35gfJmWXu7qnJ1_nAS1Q@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    --cc=ndokos@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).