|
|
|
@ -1032,7 +1032,8 @@ |
|
|
|
#+begin_src emacs-lisp |
|
|
|
#+begin_src emacs-lisp |
|
|
|
(defun org-smart-line-beginning () |
|
|
|
(defun org-smart-line-beginning () |
|
|
|
(interactive) |
|
|
|
(interactive) |
|
|
|
(when (invisible-p (point)) |
|
|
|
(when (or (invisible-p (point)) |
|
|
|
|
|
|
|
(invisible-p (- (point) 1))) |
|
|
|
;; assume that we are in a folded headline; move back to heading |
|
|
|
;; assume that we are in a folded headline; move back to heading |
|
|
|
;; otherwise we will be trapped in the invisible region |
|
|
|
;; otherwise we will be trapped in the invisible region |
|
|
|
(org-back-to-heading)) |
|
|
|
(org-back-to-heading)) |
|
|
|
|