ソースを参照

fix cycling when providing numeric argument to org-shifttab

* lisp/org.el (org-shifttab): Make sure to run the org-cycle-hook
also when providing numeric arguments.
Gustav Wikström 4 年 前
コミット
9a154910ed
1 ファイル変更2 行追加1 行削除
  1. 2 1
      lisp/org.el

+ 2 - 1
lisp/org.el

@@ -16882,7 +16882,8 @@ When ARG is a numeric prefix, show contents of this level."
       (message "Content view to level: %d" arg)
       (org-content (prefix-numeric-value arg2))
       (org-cycle-show-empty-lines t)
-      (setq org-cycle-global-status 'overview)))
+      (setq org-cycle-global-status 'overview)
+      (run-hook-with-args 'org-cycle-hook 'overview)))
    (t (call-interactively 'org-global-cycle))))
 
 (defun org-shiftmetaleft ()