aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorDave Love <[email protected]>2000-11-08 15:32:11 +0000
committerDave Love <[email protected]>2000-11-08 15:32:11 +0000
commit2d5fdf6346143dbfbd21e8c3d2f3f3595855b8ec (patch)
treeced4674a284495ba11215fbd40aa20376c2d716d /lisp
parent05c2a83cfd5a696aca4d16170e484b95556b241b (diff)
(imap-point-at-eol): New, replacing gnus-point-at-eol.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/gnus/imap.el12
1 files changed, 10 insertions, 2 deletions
diff --git a/lisp/gnus/imap.el b/lisp/gnus/imap.el
index 98a981d060..58eda992bf 100644
--- a/lisp/gnus/imap.el
+++ b/lisp/gnus/imap.el
@@ -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 @@ 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)