Просмотр исходного кода

Bugfix: honor `org-blank-before-new-entry' correctly in various contexts.

* org.el (org-back-over-empty-lines): Bugfix.  Honor
`org-blank-before-new-entry' correctly in various contexts.
Jason Dunsmore 15 лет назад
Родитель
Сommit
85f03c0859
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      lisp/org.el

+ 4 - 4
lisp/org.el

@@ -18773,10 +18773,10 @@ Taken from `count' in cl-seq.el with all keyword arguments removed."
   "Move backwards over whitespace, to the beginning of the first empty line.
   "Move backwards over whitespace, to the beginning of the first empty line.
 Returns the number of empty lines passed."
 Returns the number of empty lines passed."
   (let ((pos (point)))
   (let ((pos (point)))
-    (skip-chars-backward " \t\n\r")
-    ;; (if (cdr (assoc 'heading org-blank-before-new-entry))
-    ;;    (skip-chars-backward " \t\n\r")
-    ;;   (forward-line -1))
+    ;;(skip-chars-backward " \t\n\r")
+    (if (cdr (assoc 'heading org-blank-before-new-entry))
+       (skip-chars-backward " \t\n\r")
+      (forward-line -1))
     (beginning-of-line 2)
     (beginning-of-line 2)
     (goto-char (min (point) pos))
     (goto-char (min (point) pos))
     (count-lines (point) pos)))
     (count-lines (point) pos)))