<s expand to
#+BEGIN_SRC in org-mode, but today I updated my org to version 9.1.13, and
TAB not work this way any more.
I don't know where to start to figure this out, but I
C-h k TAB after
<s and the help message is like this:
runs the command org-cycle, which is an interactive autoloaded compiled Lisp function in `org.el'.
It is bound to
(org-cycle &optional ARG)
For more information check the manuals.
TAB-action and visibility cycling for Org mode.
This is the command invoked in Org mode by the ‘TAB’ key. Its main purpose is outline visibility cycling, but it also invokes other actions in special contexts.
When this function is called with a ‘C-u’ prefix, rotate the entire buffer through 3 states (global cycling) 1. OVERVIEW: Show only top-level headlines. 2. CONTENTS: Show all headlines of all levels, but no body text. 3. SHOW ALL: Show everything.
With a ‘C-u C-u’ prefix argument, switch to the startup visibility, determined by the variable ‘org-startup-folded’, and by any VISIBILITY properties in the buffer.
With a ‘C-u C-u C-u’ prefix argument, show the entire buffer, including any drawers.
When inside a table, re-align the table and move to the next field.
When point is at the beginning of a headline, rotate the subtree started by this line through 3 different states (local cycling) 1. FOLDED: Only the main headline is shown. 2. CHILDREN: The main headline and the direct children are shown. From this state, you can move to one of the children and zoom in further. 3. SUBTREE: Show the entire subtree, including body text. If there is no subtree, switch directly from CHILDREN to FOLDED.
When point is at the beginning of an empty headline and the variable ‘org-cycle-level-after-item/entry-creation’ is set, cycle the level of the headline by demoting and promoting it to likely levels. This speeds up creation document structure by pressing ‘TAB’ once or several times right after creating a new headline.
When there is a numeric prefix, go up to a heading with level ARG, do a ‘show-subtree’ and return to the previous cursor position. If ARG is negative, go up that many levels.
When point is not at the beginning of a headline, execute the global binding for ‘TAB’, which is re-indenting the line. See the option ‘org-cycle-emulate-tab’ for details.
As a special case, if point is at the beginning of the buffer and there is no headline in line 1, this function will act as if called with prefix arg (‘C-u TAB’, same as ‘S-TAB’) also when called without prefix arg, but only if the variable ‘org-cycle-global-at-bob’ is t.
Can you help me with where should I start to figure the problem out?
emacs -q, load (with
M-x load-fileor anything like that) just the new version of
org-modeand check if the problem persists. If that isn't the case, the problem is related to your config.
org-versionto check that you are actually using v9.1.3. If you are, then
<s Tabshould work. If you're running a more recent, developmental version of Org, expansion won't work because easy templates were removed in c04e357f3 (Replace easy templates with org-insert-structure-template, 2017-11-05).
org-tempo. (See also this message on the mailing list very briefly describing
org-tempoand the start of the long thread spanning several months where the changes were discussed.)