diff options
author | Bastien Guerry <bzg@altern.org> | 2012-08-22 19:02:39 +0200 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2012-08-22 19:02:39 +0200 |
commit | 841d949d9c59bb165076f0f5890d97214e513528 (patch) | |
tree | 5c45c03d3388121eb385b37074d7a727c6ecdca5 | |
parent | 436c2a0794cb719834bce82c4194bd0a544a401e (diff) | |
download | org-mode-841d949d9c59bb165076f0f5890d97214e513528.tar.gz |
org.el: Delete `org-beginning-of-defun' and `org-end-of-defun'
* org.el (org-beginning-of-defun, org-end-of-defun): Delete.
(org-mode): Set `beginning-of-defun-function' and
`end-of-defun-function' directly.
-rw-r--r-- | lisp/org.el | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lisp/org.el b/lisp/org.el index 1e2947e..306adf3 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5096,8 +5096,8 @@ The following commands are available: (org-set-local 'comment-region-function 'org-comment-or-uncomment-region) (org-set-local 'uncomment-region-function 'org-comment-or-uncomment-region) ;; Beginning/end of defun - (org-set-local 'beginning-of-defun-function 'org-beginning-of-defun) - (org-set-local 'end-of-defun-function 'org-end-of-defun) + (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 @@ -21552,13 +21552,6 @@ This version does not only check the character property, but also (error (error "Before first headline at position %d in buffer %s" (point) (current-buffer))))) -(defun org-beginning-of-defun () - "Go to the beginning of the subtree, i.e. back to the heading." - (org-back-to-heading)) -(defun org-end-of-defun () - "Go to the end of the subtree." - (org-end-of-subtree nil t)) - (defun org-before-first-heading-p () "Before first heading?" (save-excursion |