aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2007-06-06 02:19:13 +0000
committerMiles Bader2007-06-06 02:19:13 +0000
commit29ec0239fd440dcc19b216fc63efdf3b050793d4 (patch)
tree8ba27bd0992d47fefdbd54e687b6ec11005c46e9
parent3a1c1b157102420cd871e9c9ada10d17fa0b4589 (diff)
downloademacs-29ec0239fd440dcc19b216fc63efdf3b050793d4.tar.gz
emacs-29ec0239fd440dcc19b216fc63efdf3b050793d4.zip
Merge from gnus--rel--5.10
Patches applied: * gnus--rel--5.10 (patch 226) - Update from CVS 2007-06-04 Katsumi Yamaoka <yamaoka@jpl.org> * lisp/gnus/gnus-art.el (gnus-mime-view-part-externally) (gnus-mime-view-part-internally): Fix predicate function passed to completing-read. * lisp/gnus/mm-decode.el (mm-image-fit-p): Return t if argument is not an image; return t if image size is just the same as window size. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-786
-rw-r--r--lisp/gnus/ChangeLog9
-rw-r--r--lisp/gnus/gnus-art.el4
-rw-r--r--lisp/gnus/mm-decode.el25
3 files changed, 24 insertions, 14 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 631869e4f34..93c860812c5 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,12 @@
12007-06-04 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * gnus-art.el (gnus-mime-view-part-externally)
4 (gnus-mime-view-part-internally): Fix predicate function passed to
5 completing-read.
6
7 * mm-decode.el (mm-image-fit-p): Return t if argument is not an image;
8 return t if image size is just the same as window size.
9
12007-05-28 Katsumi Yamaoka <yamaoka@jpl.org> 102007-05-28 Katsumi Yamaoka <yamaoka@jpl.org>
2 11
3 * message.el (message-pop-to-buffer): Add switch-function argument. 12 * message.el (message-pop-to-buffer): Add switch-function argument.
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 013bf48110d..24273abb376 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -4674,7 +4674,7 @@ specified charset."
4674 (mm-enable-external t)) 4674 (mm-enable-external t))
4675 (if (not (stringp method)) 4675 (if (not (stringp method))
4676 (gnus-mime-view-part-as-type 4676 (gnus-mime-view-part-as-type
4677 nil (lambda (type) (stringp (mailcap-mime-info type)))) 4677 nil (lambda (types) (stringp (mailcap-mime-info (car types)))))
4678 (when handle 4678 (when handle
4679 (if (mm-handle-undisplayer handle) 4679 (if (mm-handle-undisplayer handle)
4680 (mm-remove-part handle) 4680 (mm-remove-part handle)
@@ -4695,7 +4695,7 @@ If no internal viewer is available, use an external viewer."
4695 (inhibit-read-only t)) 4695 (inhibit-read-only t))
4696 (if (not (mm-inlinable-p handle)) 4696 (if (not (mm-inlinable-p handle))
4697 (gnus-mime-view-part-as-type 4697 (gnus-mime-view-part-as-type
4698 nil (lambda (type) (mm-inlinable-p handle type))) 4698 nil (lambda (types) (mm-inlinable-p handle (car types))))
4699 (when handle 4699 (when handle
4700 (if (mm-handle-undisplayer handle) 4700 (if (mm-handle-undisplayer handle)
4701 (mm-remove-part handle) 4701 (mm-remove-part handle)
diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el
index 6d52d8b2f16..028855ab341 100644
--- a/lisp/gnus/mm-decode.el
+++ b/lisp/gnus/mm-decode.el
@@ -1371,18 +1371,19 @@ be determined."
1371(defun mm-image-fit-p (handle) 1371(defun mm-image-fit-p (handle)
1372 "Say whether the image in HANDLE will fit the current window." 1372 "Say whether the image in HANDLE will fit the current window."
1373 (let ((image (mm-get-image handle))) 1373 (let ((image (mm-get-image handle)))
1374 (if (fboundp 'glyph-width) 1374 (or (not image)
1375 ;; XEmacs' glyphs can actually tell us about their width, so 1375 (if (fboundp 'glyph-width)
1376 ;; lets be nice and smart about them. 1376 ;; XEmacs' glyphs can actually tell us about their width, so
1377 (or mm-inline-large-images 1377 ;; lets be nice and smart about them.
1378 (and (< (glyph-width image) (window-pixel-width)) 1378 (or mm-inline-large-images
1379 (< (glyph-height image) (window-pixel-height)))) 1379 (and (<= (glyph-width image) (window-pixel-width))
1380 (let* ((size (image-size image)) 1380 (<= (glyph-height image) (window-pixel-height))))
1381 (w (car size)) 1381 (let* ((size (image-size image))
1382 (h (cdr size))) 1382 (w (car size))
1383 (or mm-inline-large-images 1383 (h (cdr size)))
1384 (and (< h (1- (window-height))) ; Don't include mode line. 1384 (or mm-inline-large-images
1385 (< w (window-width)))))))) 1385 (and (<= h (1- (window-height))) ; Don't include mode line.
1386 (<= w (window-width)))))))))
1386 1387
1387(defun mm-valid-image-format-p (format) 1388(defun mm-valid-image-format-p (format)
1388 "Say whether FORMAT can be displayed natively by Emacs." 1389 "Say whether FORMAT can be displayed natively by Emacs."