Selaa lähdekoodia

Merge branch 'maint'

Bastien Guerry 11 vuotta sitten
vanhempi
commit
9a4cc3a21e
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3 2
      lisp/org.el

+ 3 - 2
lisp/org.el

@@ -5451,8 +5451,9 @@ The following commands are available:
   ;; Initialize cache.
   (org-element-cache-reset)
   ;; Beginning/end of defun
-  (org-set-local 'beginning-of-defun-function 'org-backward-element)
-  (org-set-local 'end-of-defun-function 'org-forward-element)
+  (org-set-local 'beginning-of-defun-function 'org-back-to-heading)
+  (org-set-local 'end-of-defun-function
+		 (lambda () (interactive) (org-end-of-subtree nil t)))
   ;; Next error for sparse trees
   (org-set-local 'next-error-function 'org-occur-next-match)
   ;; Make sure dependence stuff works reliably, even for users who set it