瀏覽代碼

Remove duplicate function

Carsten Dominik 16 年之前
父節點
當前提交
3dcd1b1f78
共有 1 個文件被更改,包括 0 次插入22 次删除
  1. 0 22
      lisp/org.el

+ 0 - 22
lisp/org.el

@@ -16107,28 +16107,6 @@ This is like outline-next-sibling, but invisible headings are ok."
 	nil
       (point))))
 
-(defun org-end-of-subtree (&optional invisible-OK to-heading)
-  ;; This is an exact copy of the original function, but it uses
-  ;; `org-back-to-heading', to make it work also in invisible
-  ;; trees.  And is uses an invisible-OK argument.
-  ;; Under Emacs this is not needed, but the old outline.el needs this fix.
-  (org-back-to-heading invisible-OK)
-  (let ((first t)
-	(level (funcall outline-level)))
-    (while (and (not (eobp))
-		(or first (> (funcall outline-level) level)))
-      (setq first nil)
-      (outline-next-heading))
-    (unless to-heading
-      (if (memq (preceding-char) '(?\n ?\^M))
-	  (progn
-	    ;; Go to end of line before heading
-	    (forward-char -1)
-	    (if (memq (preceding-char) '(?\n ?\^M))
-		;; leave blank line before heading
-		(forward-char -1))))))
-  (point))
-
 (defun org-end-of-subtree (&optional invisible-OK to-heading)
   ;; This contains an exact copy of the original function, but it uses
   ;; `org-back-to-heading', to make it work also in invisible