aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2020-10-28 02:07:05 +0100
committerStefan Kangas2020-10-28 02:07:05 +0100
commit86cfabc0c1547418cd99057058ad4de7bb2f08ef (patch)
treea87f13731ff3c5df0a7a41a8d8e7fc68999bfcfb
parent12505df89f64c4a0fc77f6deebf513eb41bc1106 (diff)
downloademacs-86cfabc0c1547418cd99057058ad4de7bb2f08ef.tar.gz
emacs-86cfabc0c1547418cd99057058ad4de7bb2f08ef.zip
Remove some compat code from feedmail.el
* lisp/mail/feedmail.el (feedmail-message-action-help-blat) (feedmail-run-the-queue, feedmail-queue-send-edit-prompt-inner) (feedmail-send-it-immediately): Remove compat code for XEmacs, Emacs 19 and 20.
-rw-r--r--lisp/mail/feedmail.el43
1 files changed, 12 insertions, 31 deletions
diff --git a/lisp/mail/feedmail.el b/lisp/mail/feedmail.el
index 0d7193c1be0..98782efb4b6 100644
--- a/lisp/mail/feedmail.el
+++ b/lisp/mail/feedmail.el
@@ -1911,7 +1911,7 @@ see the variable feedmail-prompt-before-queue-user-alist.
1911 (and (stringp feedmail-prompt-before-queue-help-supplement) 1911 (and (stringp feedmail-prompt-before-queue-help-supplement)
1912 (princ feedmail-prompt-before-queue-help-supplement)) 1912 (princ feedmail-prompt-before-queue-help-supplement))
1913 (with-current-buffer standard-output 1913 (with-current-buffer standard-output
1914 (if (fboundp 'help-mode) (help-mode))))) 1914 (help-mode))))
1915 1915
1916 1916
1917(defun feedmail-message-action-scroll-up () 1917(defun feedmail-message-action-scroll-up ()
@@ -1972,13 +1972,9 @@ backup file names and the like)."
1972 (list-of-possible-fqms)) 1972 (list-of-possible-fqms))
1973 (if (and (> q-cnt 0) feedmail-queue-runner-confirm-global) 1973 (if (and (> q-cnt 0) feedmail-queue-runner-confirm-global)
1974 (setq do-the-run 1974 (setq do-the-run
1975 (if (fboundp 'y-or-n-p-with-timeout) 1975 (y-or-n-p-with-timeout (format "FQM: Draft: %dm+%d, Queue: %dm+%d; run the queue? "
1976 (y-or-n-p-with-timeout (format "FQM: Draft: %dm+%d, Queue: %dm+%d; run the queue? " 1976 d-cnt d-oth q-cnt q-oth)
1977 d-cnt d-oth q-cnt q-oth) 1977 5 nil)))
1978 5 nil)
1979 (y-or-n-p (format "FQM: Draft: %dm+%d, Queue: %dm+%d; run the queue? "
1980 d-cnt d-oth q-cnt q-oth))
1981 )))
1982 (if (not do-the-run) 1978 (if (not do-the-run)
1983 (setq messages-skipped q-cnt) 1979 (setq messages-skipped q-cnt)
1984 (save-window-excursion 1980 (save-window-excursion
@@ -1997,15 +1993,10 @@ backup file names and the like)."
1997 (if (and already-buffer (buffer-modified-p already-buffer)) 1993 (if (and already-buffer (buffer-modified-p already-buffer))
1998 (save-window-excursion 1994 (save-window-excursion
1999 (display-buffer (set-buffer already-buffer)) 1995 (display-buffer (set-buffer already-buffer))
2000 (if (fboundp 'y-or-n-p-with-timeout) 1996 ;; make a guess that the user just forgot to save
2001 ;; make a guess that the user just forgot to save 1997 (if (y-or-n-p-with-timeout (format "FQM: Visiting %s; save before send? " blobby) 10 t)
2002 (if (y-or-n-p-with-timeout (format "FQM: Visiting %s; save before send? " blobby) 10 t) 1998 (save-buffer))))
2003 (save-buffer)) 1999 (set-buffer blobby-buffer)
2004 (if (y-or-n-p (format "FQM: Visiting %s; save before send? " blobby))
2005 (save-buffer))
2006 )))
2007
2008 (set-buffer blobby-buffer)
2009 (setq buffer-offer-save nil) 2000 (setq buffer-offer-save nil)
2010 (buffer-disable-undo blobby-buffer) 2001 (buffer-disable-undo blobby-buffer)
2011 (insert-file-contents-literally maybe-file) 2002 (insert-file-contents-literally maybe-file)
@@ -2158,17 +2149,8 @@ you can set `feedmail-queue-reminder-alist' to nil."
2158 (setq answer (cons '^ helper)) 2149 (setq answer (cons '^ helper))
2159 (if (or (eq user-sez ?\C-m) (eq user-sez ?\C-j) (eq user-sez ?y)) 2150 (if (or (eq user-sez ?\C-m) (eq user-sez ?\C-j) (eq user-sez ?y))
2160 (setq user-sez d-char)) 2151 (setq user-sez d-char))
2161 ;; these char-to-int things are because of some 2152 (setq answer (or (assoc user-sez user-alist)
2162 ;; incomprehensible difference between the two in 2153 (assoc user-sez standard-alist)))
2163 ;; byte-compiled stuff between Emacs and XEmacs
2164 ;; (well, I'm sure someone could comprehend it,
2165 ;; but I say 'uncle')
2166 (setq answer (or (assoc user-sez user-alist)
2167 (and (fboundp 'char-to-int)
2168 (assoc (char-to-int user-sez) user-alist))
2169 (assoc user-sez standard-alist)
2170 (and (fboundp 'char-to-int)
2171 (assoc (char-to-int user-sez) standard-alist))))
2172 (if (or (null answer) (null (cdr answer))) 2154 (if (or (null answer) (null (cdr answer)))
2173 (progn 2155 (progn
2174 (beep) 2156 (beep)
@@ -2414,7 +2396,7 @@ mapped to mostly alphanumerics for safety."
2414 ;; mail-aliases nil = mail-abbrevs.el 2396 ;; mail-aliases nil = mail-abbrevs.el
2415 (feedmail-say-debug "expanding mail aliases") 2397 (feedmail-say-debug "expanding mail aliases")
2416 (if (or feedmail-force-expand-mail-aliases 2398 (if (or feedmail-force-expand-mail-aliases
2417 (and (fboundp 'expand-mail-aliases) mail-aliases)) 2399 mail-aliases)
2418 (expand-mail-aliases (point-min) eoh-marker)) 2400 (expand-mail-aliases (point-min) eoh-marker))
2419 2401
2420 ;; Make it pretty. 2402 ;; Make it pretty.
@@ -3130,8 +3112,7 @@ been weeded out."
3130 ;; won't delete the newly created frame upon exit! 3112 ;; won't delete the newly created frame upon exit!
3131 (save-window-excursion 3113 (save-window-excursion
3132 (switch-to-buffer buffer) 3114 (switch-to-buffer buffer)
3133 (if (and (fboundp 'y-or-n-p-with-timeout) 3115 (if (numberp feedmail-confirm-outgoing-timeout)
3134 (numberp feedmail-confirm-outgoing-timeout))
3135 (y-or-n-p-with-timeout 3116 (y-or-n-p-with-timeout
3136 "FQM: Send this email? " 3117 "FQM: Send this email? "
3137 (abs feedmail-confirm-outgoing-timeout) 3118 (abs feedmail-confirm-outgoing-timeout)