From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: M-right does not demote some subheadings in a region Date: Sun, 19 Jan 2014 16:51:05 +0100 Message-ID: <87k3dw9dhy.fsf@bzg.ath.cx> References: <87ppntrylv.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4ueb-0001ob-NK for emacs-orgmode@gnu.org; Sun, 19 Jan 2014 10:51:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W4ueS-0002mx-UG for emacs-orgmode@gnu.org; Sun, 19 Jan 2014 10:51:17 -0500 Received: from mail-wg0-x22d.google.com ([2a00:1450:400c:c00::22d]:46692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4ueS-0002mp-Ms for emacs-orgmode@gnu.org; Sun, 19 Jan 2014 10:51:08 -0500 Received: by mail-wg0-f45.google.com with SMTP id n12so6147129wgh.12 for ; Sun, 19 Jan 2014 07:51:07 -0800 (PST) In-Reply-To: (Samuel Wales's message of "Fri, 17 Jan 2014 16:36:10 -0700") 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: Samuel Wales Cc: Emacs-orgmode list , Susan Cragin Hi Samuel, Samuel Wales writes: > It seems to work. Thank you, Bastien. > > I wasn't sure if this was the same bug as Susan's, but it seems to > be. Yes it is. > Why does folding affect semantics? Folding affects any function that has to deal with the visibility state of the text. When promoting or demoting a (set of) subtree, tags get re-aligned automatically. Re-aligning tags possibly manipulates invisible text (for example when the headline contains a bracket link), so that's where the bug came from: after aligning the tags, the point was not left where it should be, and some subtrees where skipped instead of being promoted/demoted. -- Bastien