Fix motion bug in org-forward-same-level

This commit is contained in:
Carsten Dominik 2009-11-27 14:37:00 +01:00
parent 364054fa77
commit 069ebce286
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2009-11-27 Carsten Dominik <carsten.dominik@gmail.com>
* org.el (org-forward-same-level): Stop at headings that start
with an invisible character.
* org-clock.el (org-clock-in): Do not restart the clock in the
same entry where it is running now.

View File

@ -17576,7 +17576,7 @@ Stop at the first and last subheadings of a superior heading."
(setq l (- (match-end 0) (match-beginning 0) 1))
(= l level)
(not invisible-ok)
(org-invisible-p))
(progn (backward-char 1) (org-invisible-p)))
(if (< l level) (setq arg 1)))
(setq arg (1- arg)))
(beginning-of-line 1)))