[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Prevent auto-fill-mode from filling Property values in drawers
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Prevent auto-fill-mode from filling Property values in drawers |
Date: |
Sun, 04 Feb 2018 23:16:47 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Kaushal Modi <address@hidden> writes:
> Of course. But "the right thing" would be to prevent call to auto filling
> within `org-return` (somehow? I haven't yet dug deeper into that) if point
> is in a property drawer.
`org-return' doesn't call any auto fill function.
> If you want to add a new property, use C-c C-x p, or, if you insist on
>> typing it manually, use C-q <RET> instead.
>>
>
> C-c C-x p is a bit unnatural and also longer to type than RET,
Yet, it doesn't break properties drawers.
> especially
> if the point is already inside the property drawer. Yes, if my point is
> inside the subtree, and I think of adding a property, C-c C-x p is great!
>
> C-q RET is a good tip, but again, RET would be better.
Actually, that would be C-q C-j, not C-q <RET>
> I'll try hacking something around this, tweaking org-return should work
> using a simple advice. Would a patch be welcome for this?
I don't think tweaking `org-return' is a good solution. This is not the
only way to break a line (e.g. "C-q C-j", or "C-M-o"), so it would not
be a panacea.
You may want to use fill-nobreak-predicate variable instead, e.g. with
`org-at-property-p'.
- Re: [O] Prevent auto-fill-mode from filling Property values in drawers, (continued)
- Re: [O] Prevent auto-fill-mode from filling Property values in drawers, Nicolas Goaziou, 2018/02/03
- Re: [O] Prevent auto-fill-mode from filling Property values in drawers, Kaushal Modi, 2018/02/03
- Re: [O] Prevent auto-fill-mode from filling Property values in drawers, Nicolas Goaziou, 2018/02/03
- Re: [O] Prevent auto-fill-mode from filling Property values in drawers, Kaushal Modi, 2018/02/03
- Re: [O] Prevent auto-fill-mode from filling Property values in drawers, Nicolas Goaziou, 2018/02/03
- Re: [O] Prevent auto-fill-mode from filling Property values in drawers, Nick Dokos, 2018/02/03
- Re: [O] Prevent auto-fill-mode from filling Property values in drawers, Kaushal Modi, 2018/02/03
- Re: [O] Prevent auto-fill-mode from filling Property values in drawers, Nick Dokos, 2018/02/03
- Re: [O] Prevent auto-fill-mode from filling Property values in drawers, Nicolas Goaziou, 2018/02/03
- Re: [O] Prevent auto-fill-mode from filling Property values in drawers, Kaushal Modi, 2018/02/04
- Re: [O] Prevent auto-fill-mode from filling Property values in drawers,
Nicolas Goaziou <=
- Re: [O] Prevent auto-fill-mode from filling Property values in drawers, Kaushal Modi, 2018/02/05
- Re: [O] Prevent auto-fill-mode from filling Property values in drawers, Nicolas Goaziou, 2018/02/11
- Re: [O] Prevent auto-fill-mode from filling Property values in drawers, Kaushal Modi, 2018/02/11
- Re: [O] Prevent auto-fill-mode from filling Property values in drawers, Nicolas Goaziou, 2018/02/11
- Re: [O] Prevent auto-fill-mode from filling Property values in drawers, Kaushal Modi, 2018/02/11
- Re: [O] Prevent auto-fill-mode from filling Property values in drawers, Nicolas Goaziou, 2018/02/11
- Re: [O] Prevent auto-fill-mode from filling Property values in drawers, Kaushal Modi, 2018/02/11
- Re: [O] Prevent auto-fill-mode from filling Property values in drawers, Nicolas Goaziou, 2018/02/11
- Re: [O] Prevent auto-fill-mode from filling Property values in drawers, Kaushal Modi, 2018/02/11