diff options
| author | Joakim Verona | 2013-08-13 22:26:49 +0200 |
|---|---|---|
| committer | Joakim Verona | 2013-08-13 22:26:49 +0200 |
| commit | f2e32ba803f53e08cc65f75d51a4a8c3e01357b3 (patch) | |
| tree | 0153f18db8433eed5cb8b159171da2887d9331e3 /lisp | |
| parent | 527a4d099e6ad4a5615c28c3071757ad3a0dbf9a (diff) | |
| parent | a5bd5abb645ea5c0e5bb45425128166af44dc237 (diff) | |
| download | emacs-f2e32ba803f53e08cc65f75d51a4a8c3e01357b3.tar.gz emacs-f2e32ba803f53e08cc65f75d51a4a8c3e01357b3.zip | |
merge from trunk
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/image.el | 4 | ||||
| -rw-r--r-- | lisp/net/shr.el | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lisp/image.el b/lisp/image.el index de69490f5b6..d213c5d6d79 100644 --- a/lisp/image.el +++ b/lisp/image.el | |||
| @@ -99,11 +99,11 @@ AUTODETECT can be | |||
| 99 | - maybe auto-detect only if the image type is available | 99 | - maybe auto-detect only if the image type is available |
| 100 | (see `image-type-available-p').") | 100 | (see `image-type-available-p').") |
| 101 | 101 | ||
| 102 | (defvar image-content-type-suffixes | 102 | (defvar image-format-suffixes |
| 103 | '((image/x-icon "ico")) | 103 | '((image/x-icon "ico")) |
| 104 | "Alist of MIME Content-Type headers to file name suffixes. | 104 | "Alist of MIME Content-Type headers to file name suffixes. |
| 105 | This is used as a hint by the ImageMagick library when detecting | 105 | This is used as a hint by the ImageMagick library when detecting |
| 106 | image types. If `create-image' is called with a :content-type | 106 | image types. If `create-image' is called with a :format |
| 107 | matching found in this alist, the ImageMagick library will be | 107 | matching found in this alist, the ImageMagick library will be |
| 108 | told that the data would have this suffix if saved to a file.") | 108 | told that the data would have this suffix if saved to a file.") |
| 109 | 109 | ||
diff --git a/lisp/net/shr.el b/lisp/net/shr.el index ed47c502e11..3283712bf0a 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el | |||
| @@ -747,7 +747,7 @@ element is the data blob and the second element is the content-type." | |||
| 747 | (image (cond | 747 | (image (cond |
| 748 | ((eq size 'original) | 748 | ((eq size 'original) |
| 749 | (create-image data nil t :ascent 100 | 749 | (create-image data nil t :ascent 100 |
| 750 | :content-type content-type)) | 750 | :format content-type)) |
| 751 | ((eq size 'full) | 751 | ((eq size 'full) |
| 752 | (ignore-errors | 752 | (ignore-errors |
| 753 | (shr-rescale-image data t content-type))) | 753 | (shr-rescale-image data t content-type))) |
| @@ -791,7 +791,7 @@ If FORCE, rescale the image anyway." | |||
| 791 | (- (nth 2 edges) (nth 0 edges)))) | 791 | (- (nth 2 edges) (nth 0 edges)))) |
| 792 | :max-height (truncate (* shr-max-image-proportion | 792 | :max-height (truncate (* shr-max-image-proportion |
| 793 | (- (nth 3 edges) (nth 1 edges)))) | 793 | (- (nth 3 edges) (nth 1 edges)))) |
| 794 | :content-type content-type)))) | 794 | :format content-type)))) |
| 795 | 795 | ||
| 796 | ;; url-cache-extract autoloads url-cache. | 796 | ;; url-cache-extract autoloads url-cache. |
| 797 | (declare-function url-cache-create-filename "url-cache" (url)) | 797 | (declare-function url-cache-create-filename "url-cache" (url)) |