org.el: Warn the user when buffer is (un)narrowed to subtree
* lisp/org.el (org-toggle-narrow-to-subtree): Warn the user when buffer is (un)narrowed to subtree.
This commit is contained in:
parent
5d932fe045
commit
0ff2867aa1
|
@ -7780,8 +7780,9 @@ If yes, remember the marker and the distance to BEG."
|
||||||
"Narrow to the subtree at point or widen a narrowed buffer."
|
"Narrow to the subtree at point or widen a narrowed buffer."
|
||||||
(interactive)
|
(interactive)
|
||||||
(if (buffer-narrowed-p)
|
(if (buffer-narrowed-p)
|
||||||
(widen)
|
(progn (widen) (message "Buffer widen"))
|
||||||
(org-narrow-to-subtree)))
|
(org-narrow-to-subtree)
|
||||||
|
(message "Buffer narrowed to current subtree")))
|
||||||
|
|
||||||
(defun org-narrow-to-block ()
|
(defun org-narrow-to-block ()
|
||||||
"Narrow buffer to the current block."
|
"Narrow buffer to the current block."
|
||||||
|
|
Loading…
Reference in New Issue