]> git.eshelyaron.com Git - emacs.git/commitdiff
(imap-point-at-eol): New, replacing gnus-point-at-eol.
authorDave Love <fx@gnu.org>
Wed, 8 Nov 2000 15:32:11 +0000 (15:32 +0000)
committerDave Love <fx@gnu.org>
Wed, 8 Nov 2000 15:32:11 +0000 (15:32 +0000)
lisp/gnus/imap.el

index 98a981d06074ecdf5ed94ce4c1f32df2b08ebe59..58eda992bf94e01a1532d3052e1266df43363cd1 100644 (file)
   (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 @@ Return nil if no complete line has arrived."
     (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)