aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2005-10-01 04:00:50 +0000
committerStefan Monnier2005-10-01 04:00:50 +0000
commitc615a00cdaae92bb335275e74c0a7f57cf077322 (patch)
treed367cdd865d8ee552a1752a70ba6d62c21f4cb37
parentff48d32d0c187d3412f441b06c493e1d4c349ebf (diff)
downloademacs-c615a00cdaae92bb335275e74c0a7f57cf077322.tar.gz
emacs-c615a00cdaae92bb335275e74c0a7f57cf077322.zip
(mm-inline-media-tests): Check presence of the diff-mode
function rather than the diff-mode.el package. (mm-display-external): Use with-current-buffer. (mm-viewer-completion-map, mm-viewer-completion-map): Move initialization inside declaration.
-rw-r--r--lisp/gnus/ChangeLog27
-rw-r--r--lisp/gnus/mm-decode.el22
2 files changed, 29 insertions, 20 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 36963b5ce24..ebe75811cb0 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,11 @@
12005-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * mm-decode.el (mm-inline-media-tests): Check presence of the diff-mode
4 function rather than the diff-mode.el package.
5 (mm-display-external): Use with-current-buffer.
6 (mm-viewer-completion-map, mm-viewer-completion-map):
7 Move initialization inside declaration.
8
12005-09-28 Reiner Steib <Reiner.Steib@gmx.de> 92005-09-28 Reiner Steib <Reiner.Steib@gmx.de>
2 10
3 * message.el: Remove useless autoloads. 11 * message.el: Remove useless autoloads.
@@ -16,10 +24,9 @@
16 * mm-uu.el (mm-uu-emacs-sources-regexp): Make variable 24 * mm-uu.el (mm-uu-emacs-sources-regexp): Make variable
17 customizable. Change default value. 25 customizable. Change default value.
18 (mm-uu-diff-groups-regexp): Change default value. 26 (mm-uu-diff-groups-regexp): Change default value.
19 (mm-uu-type-alist): Added doc string. 27 (mm-uu-type-alist): Add doc string.
20 (mm-uu-configure): Added doc string. Make it interactive. 28 (mm-uu-configure): Add doc string. Make it interactive.
21 (mm-uu-diff-groups-regexp): Fix missing quotes from previous 29 (mm-uu-diff-groups-regexp): Fix missing quotes from previous commit.
22 commit.
23 30
242005-09-27 Simon Josefsson <jas@extundo.com> 312005-09-27 Simon Josefsson <jas@extundo.com>
25 32
@@ -75,8 +82,8 @@
75 82
762005-09-22 Reiner Steib <Reiner.Steib@gmx.de> 832005-09-22 Reiner Steib <Reiner.Steib@gmx.de>
77 84
78 * spam-report.el (spam-report-url-ping-plain): Use 85 * spam-report.el (spam-report-url-ping-plain):
79 gnus-extended-version as User-Agent. 86 Use gnus-extended-version as User-Agent.
80 87
81 * gnus-agent.el (gnus-agent-synchronize-flags): Explain why the 88 * gnus-agent.el (gnus-agent-synchronize-flags): Explain why the
82 default value is nil. 89 default value is nil.
@@ -92,7 +99,7 @@
92 99
93 * mm-url.el (mm-url-decode-entities): Fix regexp. 100 * mm-url.el (mm-url-decode-entities): Fix regexp.
94 101
952005-09-18 D Goel <deego@gnufans.org> 1022005-09-18 Deepak Goel <deego@gnufans.org>
96 103
97 * sieve.el (sieve-help): Fix `message' call: first arg should be a 104 * sieve.el (sieve-help): Fix `message' call: first arg should be a
98 format spec. 105 format spec.
@@ -125,9 +132,9 @@
1252005-09-07 Reiner Steib <Reiner.Steib@gmx.de> 1322005-09-07 Reiner Steib <Reiner.Steib@gmx.de>
126 133
127 * spam-report.el (spam-report-gmane): Make it work without 134 * spam-report.el (spam-report-gmane): Make it work without
128 X-Report-Spam header. Gmane now only provides Archived-At. This 135 X-Report-Spam header. Gmane now only provides Archived-At.
129 is only used if `spam-report-gmane-use-article-number' is nil. 136 This is only used if `spam-report-gmane-use-article-number' is nil.
130 (spam-report-gmane-spam-header): Removed. Not used anymore. 137 (spam-report-gmane-spam-header): Remove. Not used anymore.
131 138
132 * nnweb.el (nnweb-google-wash-article): Print a message if article 139 * nnweb.el (nnweb-google-wash-article): Print a message if article
133 is not available. 140 is not available.
diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el
index 76a66268586..9d0bbdfeb63 100644
--- a/lisp/gnus/mm-decode.el
+++ b/lisp/gnus/mm-decode.el
@@ -222,7 +222,12 @@ before the external MIME handler is invoked."
222 ("text/richtext" mm-inline-text identity) 222 ("text/richtext" mm-inline-text identity)
223 ("text/x-patch" mm-display-patch-inline 223 ("text/x-patch" mm-display-patch-inline
224 (lambda (handle) 224 (lambda (handle)
225 (locate-library "diff-mode"))) 225 ;; If the diff-mode.el package is installed, the function is
226 ;; autoloaded. Checking (locate-library "diff-mode") would be trying
227 ;; to cater to broken installations. OTOH checking the function
228 ;; makes it possible to install another package which provides an
229 ;; alternative implementation of diff-mode. --Stef
230 (fboundp 'diff-mode)))
226 ("application/emacs-lisp" mm-display-elisp-inline identity) 231 ("application/emacs-lisp" mm-display-elisp-inline identity)
227 ("application/x-emacs-lisp" mm-display-elisp-inline identity) 232 ("application/x-emacs-lisp" mm-display-elisp-inline identity)
228 ("text/html" 233 ("text/html"
@@ -451,21 +456,19 @@ If not set, `default-directory' will be used."
451(defvar mm-viewer-completion-map 456(defvar mm-viewer-completion-map
452 (let ((map (make-sparse-keymap 'mm-viewer-completion-map))) 457 (let ((map (make-sparse-keymap 'mm-viewer-completion-map)))
453 (set-keymap-parent map minibuffer-local-completion-map) 458 (set-keymap-parent map minibuffer-local-completion-map)
459 ;; Should we bind other key to minibuffer-complete-word?
460 (define-key map " " 'self-insert-command)
454 map) 461 map)
455 "Keymap for input viewer with completion.") 462 "Keymap for input viewer with completion.")
456 463
457;; Should we bind other key to minibuffer-complete-word?
458(define-key mm-viewer-completion-map " " 'self-insert-command)
459
460(defvar mm-viewer-completion-map 464(defvar mm-viewer-completion-map
461 (let ((map (make-sparse-keymap 'mm-viewer-completion-map))) 465 (let ((map (make-sparse-keymap 'mm-viewer-completion-map)))
462 (set-keymap-parent map minibuffer-local-completion-map) 466 (set-keymap-parent map minibuffer-local-completion-map)
467 ;; Should we bind other key to minibuffer-complete-word?
468 (define-key map " " 'self-insert-command)
463 map) 469 map)
464 "Keymap for input viewer with completion.") 470 "Keymap for input viewer with completion.")
465 471
466;; Should we bind other key to minibuffer-complete-word?
467(define-key mm-viewer-completion-map " " 'self-insert-command)
468
469;;; The functions. 472;;; The functions.
470 473
471(defun mm-alist-to-plist (alist) 474(defun mm-alist-to-plist (alist)
@@ -564,7 +567,7 @@ Postpone undisplaying of viewers for types in
564 ;; what really needs to be done here is a way to link a 567 ;; what really needs to be done here is a way to link a
565 ;; MIME handle back to it's parent MIME handle (in a multilevel 568 ;; MIME handle back to it's parent MIME handle (in a multilevel
566 ;; MIME article). That would probably require changing 569 ;; MIME article). That would probably require changing
567 ;; the mm-handle API so we simply store the multipart buffert 570 ;; the mm-handle API so we simply store the multipart buffer
568 ;; name as a text property of the "multipart/whatever" string. 571 ;; name as a text property of the "multipart/whatever" string.
569 (add-text-properties 0 (length (car ctl)) 572 (add-text-properties 0 (length (car ctl))
570 (list 'buffer (mm-copy-to-buffer) 573 (list 'buffer (mm-copy-to-buffer)
@@ -807,8 +810,7 @@ external if displayed external."
807 (mm-mailcap-command 810 (mm-mailcap-command
808 method file (mm-handle-type handle))) 811 method file (mm-handle-type handle)))
809 (if (buffer-live-p buffer) 812 (if (buffer-live-p buffer)
810 (save-excursion 813 (with-current-buffer buffer
811 (set-buffer buffer)
812 (buffer-string)))) 814 (buffer-string))))
813 (progn 815 (progn
814 (ignore-errors (delete-file file)) 816 (ignore-errors (delete-file file))