[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] make org-comment-dwim comment headings if on a heading
From: |
Alex Branham |
Subject: |
Re: [O] [PATCH] make org-comment-dwim comment headings if on a heading |
Date: |
Sun, 26 Nov 2017 21:07:32 -0600 |
User-agent: |
mu4e 0.9.18; emacs 25.3.1 |
Thanks. I've been trying to do that and ran into an issue that you can
hopefully help me understand.
I've attached the updated patch (with a test), but the test fails because
calling M-x comment-dwim in an org buffer on a heading results in the old
behavior of comment-dwim rather than the new behavior. Calling M-x
org-comment-dwim directly works as I expect (and M-; works like this too). Do
you have any idea what might be going on? I thought they would behave the same
since comment-dwim is mapped to org-comment-dwim, but that doesn't seem to be
the case...
Thanks,
Alex
On Wed 22 Nov 2017 at 23:17, Nicolas Goaziou <address@hidden> wrote:
> Hello,
>
> Alex Branham <address@hidden> writes:
>
>> This patch changes the behavior of `org-comment-dwim' so that if point
>> is on a heading, it will toggle the heading.
>
> Thank you.
>
> Could you add a test to test-org/comment-dwim from "test-org.el"?
>
> Regards,
0001-Make-org-comment-dwim-check-if-on-a-heading.patch
Description: Text Data