* smime.el (smime-point-at-eol): New alias.
(smime-buffer-as-string-region): Use it.
+2000-11-30 Simon Josefsson <sj@extundo.com>
+
+ * smime.el (smime-point-at-eol): New alias.
+ (smime-buffer-as-string-region): Use it.
+
2000-11-29 21:00:00 ShengHuo ZHU <zsh@cs.rochester.edu>
* nndraft.el (nndraft-request-restore-buffer): Remove Date field.
(insert-buffer-substring buffer)
t)))
+(defalias 'smime-point-at-eol
+ (if (fboundp 'point-at-eol)
+ 'point-at-eol
+ 'line-end-position))
+
(defun smime-buffer-as-string-region (b e)
"Return each line in region between B and E as a list of strings."
(save-excursion
(goto-char b)
(let (res)
(while (< (point) e)
- (push (buffer-substring (point) (point-at-eol)) res)
+ (push (buffer-substring (point) (smime-point-at-eol)) res)
(forward-line))
res)))