Ver Fonte

Merge branch 'master' of orgmode.org:org-mode

David Arroyo Menendez há 11 anos atrás
pai
commit
903bf2b12c
2 ficheiros alterados com 4 adições e 3 exclusões
  1. 1 1
      lisp/org-agenda.el
  2. 3 2
      lisp/org.el

+ 1 - 1
lisp/org-agenda.el

@@ -651,7 +651,7 @@ of custom agenda commands."
   :group 'org-agenda)
 (defgroup org-agenda-search-view nil
   "Options concerning the general tags/property/todo match agenda view."
-  :tag "Org Agenda Match View"
+  :tag "Org Agenda Search View"
   :group 'org-agenda)
 
 (defvar org-agenda-archives-mode nil

+ 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