the position of next `invisible' property change is not found.
+2001-01-18 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * inv-19.el (next-visible-point): Return the value of `point-max'
+ when the position of next `invisible' property change is not found.
+
2001-01-15 Yuuichi Teranishi <teranisi@gohome.org>
* poe-18.el (floor): Removed.
(get-text-property pos 'invisible))
(defun next-visible-point (pos)
- (save-excursion
- (goto-char (next-single-property-change pos 'invisible))
- (if (eq (following-char) ?\n)
- (forward-char))
- (point)))
+ (if (setq pos (next-single-property-change pos 'invisible))
+ (if (eq ?\n (char-after pos))
+ (1+ pos)
+ pos)
+ (point-max)))
;;; @ end