Commit graph

97 commits

Author SHA1 Message Date
Lars Magne Ingebrigtsen
f790bb74d8 (gnus-html-show-images): If there are no images to show, then say so instead of bugging out. 2010-09-04 15:28:57 +00:00
Lars Magne Ingebrigtsen
c25d60ab3b (gnus-article-copy-string): Say what data we copied; (gnus-html-wash-tags): Remove even more white space around <pre_int>; (gnus-agent-load-alist): Check whether the agentview files exist before trying to read them. 2010-09-04 15:24:35 +00:00
Katsumi Yamaoka
74d8321d0e Fix previous merge from Gnus trunk. 2010-09-04 00:50:02 +00:00
Lars Magne Ingebrigtsen
8fab3e398d gnus-html.el: Remove more white space before <pre_int> image spacers; Decode entities at the end. So that entities inside the tags don't mess up the rest of the "parsing". 2010-09-04 00:36:13 +00:00
Lars Magne Ingebrigtsen
25f28806d2 gnus-html.el: Add the new command gnus-html-show-images. 2010-09-04 00:30:49 +00:00
Lars Magne Ingebrigtsen
28e44fbf62 gnus-html.el: Fix up the logic that marks resized images for buffer deletion; Have the image insertion work even if the missing image is in an <a>. 2010-09-04 00:26:18 +00:00
Lars Magne Ingebrigtsen
10e91ca982 gnus-agent.el: Change the default so that nnimap methods aren't agentized by default. There's apparently many problems related to agent/imap behaviour; gnus-art.el: Don't reuse the 'gnus-data text property, but use a new property. This avoids stomping over other functions that use this for other things; gnus-html.el: Add a new `i' command to insert images. 2010-09-04 00:21:34 +00:00
Lars Magne Ingebrigtsen
7426b4f7d0 gnus-html: Comment fix.; gnus-art.el: Provide an u' command on urls and the like that copies the string over to the kill ring; Also have the u' command work for HTML links. 2010-09-04 00:12:44 +00:00
Katsumi Yamaoka
59f65f5c42 gnus-html.el (gnus-html-put-image): make avoidance of displaying small images work for XEmacs. 2010-09-03 06:10:04 +00:00
Katsumi Yamaoka
7313797194 Make gnus-html work for XEmacs. 2010-09-03 02:29:03 +00:00
Lars Magne Ingebrigtsen
5d97d03205 message.el (message-generate-hashcash): Change default to 'opportunistic if hashcash is installed; gnus-html.el (gnus-html-put-image): Only call image-size once, since it's somewhat time-consuming on remote X servers. 2010-09-03 00:55:58 +00:00
Lars Magne Ingebrigtsen
2e23878e5a gnus-html-rescale-image: Fix up typo in rescaling. 2010-09-02 14:10:03 +00:00
Katsumi Yamaoka
f68a93a990 gnus-html-put-image, gnus-html-rescale-image: Pass `file' argument. 2010-09-02 05:03:06 +00:00
Katsumi Yamaoka
60893e6f01 gnus-article-html: Make work buffer multibyte for decoded contents. 2010-09-02 03:47:31 +00:00
Lars Magne Ingebrigtsen
ae682ff5ae gnus-html.el (gnus-html-rescale-image): Yet another try at getting the image sizing right. 2010-09-02 01:46:34 +00:00
Lars Magne Ingebrigtsen
c9fc72fa5a Delete all trailing white space. 2010-09-02 01:42:32 +00:00
Lars Magne Ingebrigtsen
36a806f357 gnus-html.el (gnus-html-wash-tags): Remove all <pre_int> place holders. 2010-09-02 01:33:31 +00:00
Lars Magne Ingebrigtsen
a93b858c98 gnus-html.el (gnus-html-wash-tags): Don't show images that are really small. They're probably tracking images; nntp.el (nntp-request-set-mark): Refuse to do marks if nntp-marks-file-name is nil. 2010-09-02 01:29:42 +00:00
Lars Magne Ingebrigtsen
846daf20c2 gnus-html.el (gnus-html-rescale-image): The rescaling logic scaled down too much; nndoc.el (nndoc-type-alist): Added a new type for Google digests. 2010-09-02 01:24:21 +00:00
Teodor Zlatanov
2aafbe5a81 gnus-html.el: prefix log messages with function name 2010-09-02 01:18:45 +00:00
Lars Magne Ingebrigtsen
9a4b54dbe6 gnus-html.el (gnus-html-wash-tags): Check the value ofgnus-blocked-images in the summary buffer. 2010-09-02 01:14:38 +00:00
Teodor Zlatanov
9a047bac91 gnus-html.el: Doc fix for gnus-html-image-url-blocked-p. 2010-09-02 01:10:25 +00:00
Lars Magne Ingebrigtsen
5b77fa4d82 gnus-html.el (gnus-html-image-url-blocked-p): Say in the message what the regexp really is. 2010-09-02 01:06:36 +00:00
Lars Magne Ingebrigtsen
c6c815761c gnus-html.el (gnus-html-wash-tags): "A" is also used for links, just like "a", it seems like; (gnus-html-image-url-blocked-p): Take a parameter for blocked-images since it needs to be picked from the correct buffer. 2010-09-02 01:02:03 +00:00
Teodor Zlatanov
d743e0d118 gnus-html.el: add and use gnus-html-image-url-blocked-p 2010-09-02 00:17:40 +00:00
Lars Magne Ingebrigtsen
e5e2587e9e gnus-html.el: We can't rescale if we don't have the article buffer in a window. 2010-09-02 00:13:51 +00:00
Lars Magne Ingebrigtsen
1ee093a370 gnus-html.el: Try to get the rescaling logic right for images that are just wide and not tall. 2010-09-02 00:08:22 +00:00
Lars Magne Ingebrigtsen
075843d346 gnus.el, gnus-html.el: Use the deleted text as the image alt text. 2010-09-02 00:03:57 +00:00
Lars Magne Ingebrigtsen
7d7520b969 gnus-html.el: Rescale images in article buffers for Emacs versions that support this. This is currently only Emacs 24 compiled with imagemagick support. 2010-09-01 23:53:57 +00:00
Teodor Zlatanov
6ca07e4960 gnus-html.el: Add extra logging. 2010-09-01 23:46:59 +00:00
Lars Magne Ingebrigtsen
fe01e1a3a0 gnus-html.el: Delete the IMG_ALT region. 2010-09-01 23:40:39 +00:00
Katsumi Yamaoka
da43765da1 gnus-article-html: Decode contents by charset. 2010-09-01 06:04:49 +00:00
Katsumi Yamaoka
b0e3031077 gnus-html.el, message.el: Add custom version to new variables; gnus-sum.el: Bump custom version of gnus-auto-expirable-marks. 2010-09-01 04:44:25 +00:00
Katsumi Yamaoka
cd110b2b0c gnus-html-curl-sentinel: Replace process-get with gnus-process-get. 2010-09-01 04:28:56 +00:00
Katsumi Yamaoka
0a46a12f7a Fix previous merge from Gnus trunk. 2010-09-01 00:18:24 +00:00
Katsumi Yamaoka
51dee5ef43 gnus-html.el: Introduce a new variable, gnus-blocked-images, and use that instead of the w3m variable; by Lars Magne Ingebrigtsen <larsi@gnus.org>. 2010-08-31 23:38:57 +00:00
Katsumi Yamaoka
2cdd366f84 gnus-ems.el: Provide compatibility functions for gnus-set-process-plist by Katsumi Yamaoka <yamaoka@jpl.org>; gnus-html.el: Use gnus-process-plist and friends for compatibility; gnus-cite.el: New function to guess whether a long line is natural text or not; message.el: Implement message-prune-recipient-rules; by Lars Magne Ingebrigtsen <larsi@gnus.org>. 2010-08-31 23:26:23 +00:00
Stefan Monnier
2d217ead4c * lisp/gnus/gnus-html.el: Require pkgs that define macros used in this file.
(gnus-article-mouse-face): Declare to silence byte-compiler.
(gnus-html-curl-sentinel): Use with-current-buffer, inhibit-read-only, and
process-get.
(gnus-html-put-image): Use plist-get to avoid getf.
(gnus-html-prefetch-images): Use with-current-buffer.
2010-08-31 21:47:35 +02:00
Katsumi Yamaoka
ad1421332b Clarify the code a bit by renaming the variable with the url to `url'; Support cid: URLs/images; by Lars Magne Ingebrigtsen <larsi@gnus.org>. 2010-08-31 13:28:02 +00:00
Katsumi Yamaoka
14721afcd6 gnus-html.el: require mm-url; by Lars Magne Ingebrigtsen <larsi@gnus.org>. 2010-08-31 01:15:32 +00:00
Katsumi Yamaoka
0c32d78212 Fix previous merge from Gnus trunk. 2010-08-31 00:51:08 +00:00
Katsumi Yamaoka
379dde032c Tell w3m that the input is UTF-8; This seems to fix problems with some German web feeds; by Lars Magne Ingebrigtsen <larsi@gnus.org>. 2010-08-31 00:23:25 +00:00
Katsumi Yamaoka
fb16bb4689 Use gnus-create-image to be XEmacs-compatible; Don't do images on non-graphic displays; by Lars Magne Ingebrigtsen <larsi@gnus.org>. 2010-08-31 00:07:40 +00:00
Katsumi Yamaoka
a3e01263b1 Use insert-image instead of put-image when putting images into a buffer; This makes all the Gnus image-inserting functions work, I think; by Lars Magne Ingebrigtsen <larsi@gnus.org>. 2010-08-30 23:35:19 +00:00
Katsumi Yamaoka
929989ffac Make html image insertion probably work for XEmacs, too by Lars Magne Ingebrigtsen <larsi@gnus.org>. 2010-08-30 23:29:56 +00:00
Katsumi Yamaoka
b1992461d7 Misc Gnus fixes by Lars Magne Ingebrigtsen <larsi@gnus.org>.
2010-08-29  Adam Sjøgren  <asjo@koldfront.dk>
 * gnus-html.el (gnus-html-put-image): Use XEmacs-compatible image
 functions.

2010-08-29  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 * gnus-art.el (gnus-article-add-button): Take an optional parameter to
 say what the mouseover text should be.

 * gnus-html.el (gnus-html-prefetch-images): Use the summary-local
 version of the mm-w3m-safe-url-regexp variable to only download images
 in the groups where we want that to happen.

 * gnus-sum.el (gnus-summary-stop-at-end-of-message): New variable.

 * gnus-art.el (gnus-article-beginning-of-window): Make into defun for
 easier debugging.
 (gnus-article-beginning-of-window): Add kludge to allow spacing past
 big pictures in the article buffer.

 * mm-decode.el (mm-text-html-renderer): Default the html renderer to
 gnus-article-html.
 (mm-text-html-renderer): gnus-article-html needs curl in addition to
 w3m.
2010-08-30 06:17:45 +00:00
Katsumi Yamaoka
655efd7175 Add a new super-simple HTML renderer based on w3m -halfdump by Lars Magne Ingebrigtsen <larsi@gnus.org>.
* gnus-html.el: Start a new super-simple HTML renderer based on w3m.
2010-08-30 06:13:50 +00:00