diff options
| author | Dave Love | 2000-11-08 15:32:11 +0000 |
|---|---|---|
| committer | Dave Love | 2000-11-08 15:32:11 +0000 |
| commit | 2d5fdf6346143dbfbd21e8c3d2f3f3595855b8ec (patch) | |
| tree | ced4674a284495ba11215fbd40aa20376c2d716d | |
| parent | 05c2a83cfd5a696aca4d16170e484b95556b241b (diff) | |
| download | emacs-2d5fdf6346143dbfbd21e8c3d2f3f3595855b8ec.tar.gz emacs-2d5fdf6346143dbfbd21e8c3d2f3f3595855b8ec.zip | |
(imap-point-at-eol): New, replacing gnus-point-at-eol.
| -rw-r--r-- | lisp/gnus/imap.el | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lisp/gnus/imap.el b/lisp/gnus/imap.el index 98a981d0607..58eda992bf9 100644 --- a/lisp/gnus/imap.el +++ b/lisp/gnus/imap.el | |||
| @@ -152,7 +152,15 @@ | |||
| 152 | (autoload 'utf7-encode "utf7") | 152 | (autoload 'utf7-encode "utf7") |
| 153 | (autoload 'utf7-decode "utf7") | 153 | (autoload 'utf7-decode "utf7") |
| 154 | (autoload 'format-spec "format-spec") | 154 | (autoload 'format-spec "format-spec") |
| 155 | (autoload 'format-spec-make "format-spec")) | 155 | (autoload 'format-spec-make "format-spec") |
| 156 | ;; Avoid use gnus-point-at-eol so we're independent of Gnus. These | ||
| 157 | ;; days we have point-at-eol anyhow. | ||
| 158 | (if (fboundp 'point-at-eol) | ||
| 159 | (defalias 'imap-point-at-eol 'point-at-eol) | ||
| 160 | (defun imap-point-at-eol () | ||
| 161 | (save-excursion | ||
| 162 | (end-of-line) | ||
| 163 | (point))))) | ||
| 156 | 164 | ||
| 157 | ;; User variables. | 165 | ;; User variables. |
| 158 | 166 | ||
| @@ -2217,7 +2225,7 @@ Return nil if no complete line has arrived." | |||
| 2217 | (assert (eq (char-after) ?\()) | 2225 | (assert (eq (char-after) ?\()) |
| 2218 | (while (and (not (eq (char-after) ?\))) | 2226 | (while (and (not (eq (char-after) ?\))) |
| 2219 | (setq start (progn (imap-forward) (point))) | 2227 | (setq start (progn (imap-forward) (point))) |
| 2220 | (> (skip-chars-forward "^ )" (gnus-point-at-eol)) 0)) | 2228 | (> (skip-chars-forward "^ )" (imap-point-at-eol)) 0)) |
| 2221 | (push (buffer-substring start (point)) flag-list)) | 2229 | (push (buffer-substring start (point)) flag-list)) |
| 2222 | (assert (eq (char-after) ?\))) | 2230 | (assert (eq (char-after) ?\))) |
| 2223 | (imap-forward) | 2231 | (imap-forward) |