From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ingo Lohmar Subject: Bug: org-indent-mode incomplete refresh after org-toggle-heading [8.3.2 (8.3.2-51-g713fe8-elpaplus @ /home/il/.emacs.d/elpa/org-plus-contrib-20151221/)] Date: Fri, 01 Jan 2016 22:56:08 +0100 Message-ID: <87lh89rmkn.fsf@acer.localhost.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aF7gE-0005oI-Tb for emacs-orgmode@gnu.org; Fri, 01 Jan 2016 16:56:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aF7gB-0008ED-NU for emacs-orgmode@gnu.org; Fri, 01 Jan 2016 16:56:14 -0500 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:34847) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aF7gB-0008E6-Gt for emacs-orgmode@gnu.org; Fri, 01 Jan 2016 16:56:11 -0500 Received: by mail-wm0-x22b.google.com with SMTP id f206so88670788wmf.0 for ; Fri, 01 Jan 2016 13:56:11 -0800 (PST) Received: from localhost (xdsl-87-78-139-39.netcologne.de. [87.78.139.39]) by smtp.gmail.com with ESMTPSA id di6sm12651084wjb.12.2016.01.01.13.56.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Jan 2016 13:56:09 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. ------------------------------------------------------------------------ emacs -nw -q testfile, M-x org-mode M-x org-indent-mode Enter following plain list: - item1 - item1.1 - item2 Move to first line ("item1") and C-c * to org-toggle-heading. "item1" becomes a heading (ok), "item1.1" gets line/wrap prefix for indentation (ok), but "item2" is not affected at all. I believe the last list item should get the prefixes as well, as it belongs to the same subtree. The same thing happens in a large tree structure (ie, it does not depend on the first or the only heading being inserted). Debugging the after-change function was sketchy (sometimes it was applied in a narrowed buffer of zero length etc), but it seems that org-indent-refresh-maybe does *not* realize it has affected a headline and should work with the whole subtree. Emacs : GNU Emacs 25.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.5) of 2015-12-11 Package: Org-mode version 8.3.2 (8.3.2-51-g713fe8-elpaplus @ /home/il/.emacs.d/elpa/org-plus-contrib-20151221/)