aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-03-03 01:57:04 +0000
committerRichard M. Stallman1998-03-03 01:57:04 +0000
commita4929bfa20b0fabc9a9c66f607731a3d3aba911b (patch)
tree45192c8680ade9c8dbd761fa92b4a4c3848f6e97
parentf43cc7292dda756a138f011a13cb924446b95a3d (diff)
downloademacs-a4929bfa20b0fabc9a9c66f607731a3d3aba911b.tar.gz
emacs-a4929bfa20b0fabc9a9c66f607731a3d3aba911b.zip
(gulp-send-requests): Call sort properly.
When showing the message, put point at beginning of buffer.
-rw-r--r--lisp/emacs-lisp/gulp.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/gulp.el b/lisp/emacs-lisp/gulp.el
index f4149adc3e2..e84c1056296 100644
--- a/lisp/emacs-lisp/gulp.el
+++ b/lisp/emacs-lisp/gulp.el
@@ -83,9 +83,9 @@ is left in the `*gulp*' buffer at the end."
83 (buffer-undo-list t) 83 (buffer-undo-list t)
84 mail-setup-hook msg node) 84 mail-setup-hook msg node)
85 (setq m-p-alist 85 (setq m-p-alist
86 (sort (function (lambda (a b) 86 (sort m-p-alist
87 (string< (car (car a)) (car (car b))))) 87 (function (lambda (a b)
88 m-p-alist)) 88 (string< (car a) (car b))))))
89 (while (setq node (car m-p-alist)) 89 (while (setq node (car m-p-alist))
90 (setq msg (gulp-create-message (cdr node) time)) 90 (setq msg (gulp-create-message (cdr node) time))
91 (setq mail-setup-hook 91 (setq mail-setup-hook
@@ -95,6 +95,7 @@ is left in the `*gulp*' buffer at the end."
95 (goto-char (point-max)) 95 (goto-char (point-max))
96 (insert msg))) 96 (insert msg)))
97 (mail nil (car node)) 97 (mail nil (car node))
98 (goto-char (point-min))
98 (if (y-or-n-p "Send? ") (mail-send) 99 (if (y-or-n-p "Send? ") (mail-send)
99 (kill-this-buffer) 100 (kill-this-buffer)
100 (set-buffer gulp-tmp-buffer) 101 (set-buffer gulp-tmp-buffer)