Bastien writes: > Christopher Schmidt writes: >> ( In the long term this should be fixed properly. Considering that >> point is already on an actual headline, Org just needs to add or >> remove a star. This should not be too hard with >> org-heading-regexp. ) > > Beware that there are *many* commands conditionally called by > org-metaright, org-metaleft, etc.: org-do-demote, org-do-promote and > the like. > > It would be too much to make all these commands take the value of > `orgstruct-heading-prefix-regexp' into account, even if we end up > using a macro `org-with-heading-prefix-regexp' and calling these > commands from within the macro. Perhaps accepting some limitations > will be the right thing, not sure. That is not necessary. The hijacking command already makes sure org-heading-regexp takes orgstruct-heading-prefix-regexp into account. Nonetheless It is still a lot of work. Alan, here is patch for master that should solve the issue. It disables org-{pr,de}mote and org-{,shift}meta{left,right} in orgstruct-mode iff orgstruct-heading-prefix-regexp is non-nil. Could you please give it a try and tell us what you think?