summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustav Wikström <p950gsw@fspa.myntet.se>2020-11-25 10:11:28 +0100
committerGustav Wikström <p950gsw@fspa.myntet.se>2020-11-25 10:13:56 +0100
commit9a154910ed1dd0bf0407759dde70f41c9b03f0d6 (patch)
tree6dd6be3353168490a7c98499868520dd01c54d6c
parent15469774dd2063b79df66e61441008396a95a491 (diff)
downloadorg-mode-9a154910ed1dd0bf0407759dde70f41c9b03f0d6.tar.gz
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.
-rw-r--r--lisp/org.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 2476222..8d35539 100644
--- a/lisp/org.el
+++ b/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 ()