emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Problems with org-toggle-comment in or around inlinetasks
@ 2022-12-22 12:34 Alain.Cochard
  2022-12-25 12:53 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Alain.Cochard @ 2022-12-22 12:34 UTC (permalink / raw)
  To: emacs-orgmode

Hello.

I do

   emacs -Q -l ~/.emacs.git

where the .emacs.git file contains only

   (add-to-list 'load-path "~/Org/Coch-git/org-mode/lisp")
   (require 'org-inlinetask)

This gives

   Org mode version 9.6 (release_9.6-118-g04d2cc.dirty @
   /home/cochard/Org/Coch-git/org-mode/lisp/)
   GNU Emacs 27.2 (build 1, x86_64-redhat-linux-gnu, GTK+ Version
   3.24.30, cairo version 1.17.4) of 2021-08-07

Then I have the file

   * h
   *************** ilt
   foo
   *************** END


With the cursor on 'ilt' or on 'foo', a 1st 'C-c ;' correctly
introduces a 'COMMENT' keyword in front of 'ilt.  But then, a 2nd 'C-c
;' introduces a 2nd 'COMMENT', a 3rd one introduces a 3rd 'COMMENT',
etc.

The same occurs if the cursor is on the blank line after 'END',
whereas (if I understand correctly) it should modify the '* h'
headline.  If the line is not blank, subsequent uses of 'C-c ;' do
toggle on and off the 'COMMENT' keyword on that headline, as I expect.

With the cursor on the first 'END', subsequent uses of 'C-c ;' also
introduce subsequent 'COMMENT' keywords, but in front of that 'END'.

-- 
EOST (École et Observatoire des Sciences de la Terre) 
ITE (Institut Terre & Environnement) | alain.cochard@unistra.fr
5 rue René Descartes   [bureau 110]  | Phone: +33 (0)3 68 85 50 44 
F-67084 Strasbourg Cedex, France     | [ slot available for rent ]



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

* Re: Problems with org-toggle-comment in or around inlinetasks
  2022-12-22 12:34 Problems with org-toggle-comment in or around inlinetasks Alain.Cochard
@ 2022-12-25 12:53 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2022-12-25 12:53 UTC (permalink / raw)
  To: alain.cochard; +Cc: emacs-orgmode

Alain.Cochard@unistra.fr writes:

> Hello.
>
> I do
>
>    emacs -Q -l ~/.emacs.git
> ...

Thanks for reporting!
Fixed on bugfix.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=f13881006
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=718e19683

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


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

end of thread, other threads:[~2022-12-25 12:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-22 12:34 Problems with org-toggle-comment in or around inlinetasks Alain.Cochard
2022-12-25 12:53 ` Ihor Radchenko

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