emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems with org-toggle-comment in or around inlinetasks


From: Alain . Cochard
Subject: Problems with org-toggle-comment in or around inlinetasks
Date: Thu, 22 Dec 2022 13:34:40 +0100

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 ]




reply via email to

[Prev in Thread] Current Thread [Next in Thread]