comparison lisp/textmodes/paragraphs.el @ 47750:75f4a9fc7b34

(forward-paragraph): Return the steps left.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 03 Oct 2002 23:00:19 +0000
parents cc3ba2d0d471
children 353dae5e0134
comparison
equal deleted inserted replaced
47749:4d7a3dd9a644 47750:75f4a9fc7b34
297 (not (get-text-property (1- start) 'hard))))) 297 (not (get-text-property (1- start) 'hard)))))
298 (forward-char 1)) 298 (forward-char 1))
299 (if (< (point) (point-max)) 299 (if (< (point) (point-max))
300 (goto-char start))) 300 (goto-char start)))
301 (setq arg (1- arg))) 301 (setq arg (1- arg)))
302 (constrain-to-field nil opoint t))) 302 (constrain-to-field nil opoint t)
303 ;; Return the number of steps that could not be done.
304 arg))
303 305
304 (defun backward-paragraph (&optional arg) 306 (defun backward-paragraph (&optional arg)
305 "Move backward to start of paragraph. 307 "Move backward to start of paragraph.
306 With argument ARG, do it ARG times; 308 With argument ARG, do it ARG times;
307 a negative argument ARG = -N means move forward N paragraphs. 309 a negative argument ARG = -N means move forward N paragraphs.