summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2011-03-10 19:45:47 +0100
committerNicolas Goaziou <n.goaziou@gmail.com>2011-03-10 19:45:47 +0100
commitefa562c1ee7cd857d3cf8c3e47d44b9ae1bb25d4 (patch)
treea193e319de8ea427624a3ddb120daa6bcd8018b7
parenta0dead7f10f3736fafea80606d383bb5c99d0ed6 (diff)
downloadorg-mode-efa562c1ee7cd857d3cf8c3e47d44b9ae1bb25d4.tar.gz
Fix compatibility with emacsen < 23
* lisp/org.el (org-fill-paragraph): fill-forward-paragraph function has been introduced with emacs 23.1.
-rw-r--r--lisp/org.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/org.el b/lisp/org.el
index e120c5e..717b7d1 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -19185,13 +19185,13 @@ the functionality can be provided as a fall-back.")
;; a paragraph adjacent to a list: make sure this paragraph
;; doesn't get merged with the end of the list by narrowing
;; buffer first.
- ((save-excursion (fill-forward-paragraph -1)
+ ((save-excursion (forward-paragraph -1)
(setq itemp (org-in-item-p)))
(let ((struct (save-excursion (goto-char itemp)
(org-list-struct))))
(save-restriction
(narrow-to-region (org-list-get-bottom-point struct)
- (save-excursion (fill-forward-paragraph 1)
+ (save-excursion (forward-paragraph 1)
(point)))
(fill-paragraph justify) t)))
;; Else simply call `fill-paragraph'.