# HG changeset patch # User Dave Love # Date 973697531 0 # Node ID be95f43e08dbca11f1281bff989d9f8be04bf72a # Parent 8a75bc99cf0b7fca8dcc75fda54cb01dbd2717b0 (imap-point-at-eol): New, replacing gnus-point-at-eol. diff -r 8a75bc99cf0b -r be95f43e08db lisp/gnus/imap.el --- a/lisp/gnus/imap.el Wed Nov 08 15:27:30 2000 +0000 +++ b/lisp/gnus/imap.el Wed Nov 08 15:32:11 2000 +0000 @@ -152,7 +152,15 @@ (autoload 'utf7-encode "utf7") (autoload 'utf7-decode "utf7") (autoload 'format-spec "format-spec") - (autoload 'format-spec-make "format-spec")) + (autoload 'format-spec-make "format-spec") + ;; Avoid use gnus-point-at-eol so we're independent of Gnus. These + ;; days we have point-at-eol anyhow. + (if (fboundp 'point-at-eol) + (defalias 'imap-point-at-eol 'point-at-eol) + (defun imap-point-at-eol () + (save-excursion + (end-of-line) + (point))))) ;; User variables. @@ -2217,7 +2225,7 @@ (assert (eq (char-after) ?\()) (while (and (not (eq (char-after) ?\))) (setq start (progn (imap-forward) (point))) - (> (skip-chars-forward "^ )" (gnus-point-at-eol)) 0)) + (> (skip-chars-forward "^ )" (imap-point-at-eol)) 0)) (push (buffer-substring start (point)) flag-list)) (assert (eq (char-after) ?\))) (imap-forward)