Mercurial > hg > xemacs-beta
diff lisp/paragraphs.el @ 4103:b4f4e0cc90f1
[xemacs-hg @ 2007-08-07 23:08:47 by aidan]
Eliminate byte compiler warnings, give nicer errors in the absence of packages.
author | aidan |
---|---|
date | Tue, 07 Aug 2007 23:09:22 +0000 |
parents | 1b8351656013 |
children | 7d06a8bf47d2 f62141fe007d |
line wrap: on
line diff
--- a/lisp/paragraphs.el Tue Aug 07 21:51:12 2007 +0000 +++ b/lisp/paragraphs.el Tue Aug 07 23:09:22 2007 +0000 @@ -240,13 +240,13 @@ ;; Search back for line that starts or separates paragraphs. (if (if fill-prefix-regexp ;; There is a fill prefix; it overrides parstart. - (let (multiple-lines) + (let nil ; (multiple-lines) (while (and (progn (beginning-of-line) (not (bobp))) (progn (move-to-left-margin) (not (looking-at parsep))) (looking-at fill-prefix-regexp)) - (unless (= (point) start) - (setq multiple-lines t)) + ; (unless (= (point) start) + ; (setq multiple-lines t)) (forward-line -1)) (move-to-left-margin) ;; This deleted code caused a long hanging-indent line @@ -319,7 +319,11 @@ (forward-char 1)) (if (< (point) (point-max)) (goto-char start)))) - (constrain-to-field nil opoint t) + (if-fboundp #'constrain-to-field + (constrain-to-field nil opoint t) + (error + 'void-function + "constrain-to-field not available; is xemacs-base installed?")) ;; Return the number of steps that could not be done. arg)) @@ -434,7 +438,11 @@ (skip-chars-backward " \t\n") (goto-char par-end))) (setq arg (1- arg))) - (constrain-to-field nil opoint t))) + (if-fboundp #'constrain-to-field + (constrain-to-field nil opoint t) + (error + 'void-function + "constrain-to-field not available; is xemacs-base installed?")))) (defun backward-sentence (&optional arg) "Move backward to start of sentence. With arg, do it arg times.