Commit graph

128 commits

Author SHA1 Message Date
Gnus developers
5d2ef6db45 Merge changes made in Gnus trunk.
gnus-html.el (gnus-html-put-image): Fix resize image code.
shr.el (shr-ensure-paragraph): Fix the non-empty line case.
2010-10-04 10:16:57 +00:00
Gnus developers
a41c2e6d33 Merge changes made in Gnus trunk.
shr.el: Rename the tag functions a bit, and add some new ones.
gnus-sum.el (gnus-summary-select-article-buffer): If the article buffer isn't shown, then select the current article first instead of bugging out.
gnus-sum.el (gnus-summary-select-article-buffer): Show both the article and summary buffers again.
shr.el (shr-tag-blockquote): Convert name.
shr.el (shr-rescale-image): Use the right image-size variant.
shr.el (shr-tag-p): Don't insert newlines at the start of the buffer.
shr.el: Implement indentation in blockquotes.
gnus-sum.el (gnus-summary-select-article-buffer): Really select the article buffer again.
shr.el (shr-ensure-paragraph): Don't insert newlines on empty tags at the beginning of the buffer.
gnus-ems.el, gnus-util.el, mm-decode.el, mm-view.el: Add resize for large images in mm.
gnus-html.el (gnus-html-put-image): Use gnus-rescale-image.
shr.el (shr-tag-p): Don't insert newlines on empty tags at the beginning of the buffer.
gnus-ems.el, gnus-html.el, gnus-util.el, mm-decode.el, mm-view.el: Support image resizing.
shr.el: Add headings.
shr.el (shr-ensure-paragraph): Actually work.
shr.el (shr-tag-li): Make <ul> prettier.
shr.el (shr-insert): Get white space at the beginning/end of elements right.
shr.el (shr-tag-li): Tweak <li> rendering.
shr.el (shr-tag-p): Collapse subsequent <p>s.
shr.el (shr-ensure-paragraph): Don't insert double line feeds after blank lines.
shr.el (shr-tag-h6): Add.
shr.el (shr-insert): \t is also space.
2010-10-04 00:17:16 +00:00
Chong Yidong
d99a45914d Avoid using plusp; cl may not be loaded.
* lisp/gnus/shr.el (shr-insert):
* lisp/gnus/pop3.el (pop3-movemail):
* lisp/gnus/gnus-html.el (gnus-html-wash-tags): Don't use plusp.
2010-10-03 15:54:31 -04:00
Gnus developers
870409d4fb Merge changes made in Gnus trunk.
shr.el: Start implementation.
shr.el: Continue implementation.
gnus-gravatar.el (gnus-gravatar-insert): Adjust character where we should go backward.
shr.el: Minimally useful state achieved.
mm-decode.el (mm-text-html-renderer): Switch to using shr.el for HTML rendering.
shr.el: (shr-insert): Add a newline after every picture before text.
gnus.texi (Splitting Mail): Really fix the @ref syntax.
shr.el (shr-add-font): Use overlays for combining faces.
shr.el (shr-add-font): Use overlays for combining faces.
shr.el (shr-insert): Pass upwards the text start point.
gnus-util.el: Reintroduce multiple completion functions.
2010-10-03 00:33:27 +00:00
Lars Magne Ingebrigtsen
367f7f81d1 Merge changes made in Gnus trunk.
gnus-topic.el (gnus-topic-move-group): Fix the syntax of the completing read.
gnus-html.el (gnus-html-schedule-image-fetching): Be silent.
shr.el: New file.
2010-10-02 10:30:06 +00:00
Lars Magne Ingebrigtsen
0a887f3950 gnus-html.el (gnus-html-prefetch-images): Adjust regexp to avoid regexp backtrace overflows. 2010-10-01 13:33:03 +00:00
Lars Magne Ingebrigtsen
967f57dcc8 Florian Ragwitz' stuff removed because of missing paperwork. 2010-10-01 11:15:10 +00:00
Gnus developers
062eae9968 gnus-html.el (gnus-html-wash-tags): Decode URL entities to avoid handing broken links to browse-url.
nnimap.el (nnimap-request-accept-article): Message the error on error.
2010-09-27 12:22:22 +00:00
Gnus developers
4478e07488 mail-source.el (mail-source-value): Revert previous patch.
gnus-picon.el: Inhibit showing picons for top level domains.
gnus-art.el (gnus-article-treat-body-boundary): Fix length computing.
gnus-news.texi: Mention nnimap-inbox.
nnimap.el (nnimap-request-expire-articles): Compress ranges before deletion.
nnimap.el (nnimap-retrieve-headers): Don't select the group, because that's already done by nnimap-possibly-change-group.
gnus-html.el (gnus-html-show-images): Fix gnus-html-display-image arguments.
gnus-html.el (gnus-html-wash-images): Fix spec computing to include start/end.
nnimap.el: Store the IMAP greeting, so that we can tell what kind of server we're talking to.
gnus.el (gnus): Give a final warning after startup.
gnus-ems.el (gnus-create-image): Ignore all image-creation errors.
nndraft.el (nndraft-request-expire-articles): Fetch the expiry target for the correct group.
nnmh.el (nnmh-request-expire-articles): Don't try to fetch the expiry target here, because we don't know the Gnus name of the group.
nnimap.el (nnimap-get-whole-article): Remove the data that may have arrived before the FETCH data.
gnus-agent.el (gnus-agent-retrieve-headers): Don't propagate `fetch-old'.
gnus-agent.el (gnus-agent-read-servers-validate): Change the level for the "Ignoring disappeared server" to something low.
nndoc.el (nndoc-request-list): Return success always.
2010-09-26 23:01:31 +00:00
Gnus developers
8ccbef23ea Merge changes made in Gnus trunk.
nnimap.el: Implement partial IMAP article fetch.
nnimap.el: Have nnimap not update the infos if it can't get info from the server.
Implement functions for showing the complete articles.
gnus-int.el (gnus-open-server): Don't query whether to go offline -- just do it.
gnus-art.el (gnus-mime-delete-part): Fix plural for "byte" when there isn't a single byte.
nndoc.el (nndoc-type-alist): Move mime-parts after mbox.  Suggested by Jay Berkenbilt.
mm-decode.el (mm-save-part): Allow saving to other directories the normal Emacs way.
gnus-html.el (gnus-html-rescale-image): Use our defalias gnus-window-inside-pixel-edges.
gnus-srvr.el (gnus-server-copy-server): Add documentation.
gnus.texi (Using IMAP): Document the new nnimap.
nnimap.el (nnimap-wait-for-response): Search further when we're not using streaming.
gnus-int.el (gnus-check-server): Say what the error was when opening failed.
nnheader.el (nnheader-get-report-string): New function.
gnus-int.el (gnus-check-server): Use report-string.
nnimap.el (nnimap-open-connection): Add more error reporting when nnimap fails early.
gnus-start.el (gnus-get-unread-articles): Don't try to open failed servers twice.
nnimap.el (nnimap-wait-for-response): Reversed logic in the nnimap-streaming test.
gnus-art.el: Removed CTAN button stuff, which I don't think is very relevant any more.
Remove NoCeM support, since nobody seems to use it any more.
Remove earcon and gnus-audio.
gnus.el (gnus): Silence gnus-load message.
gnus-group.el (gnus-read-ephemeral-bug-group): Add the bug email address to the To list for easier response.
gnus.texi (Connecting to an IMAP Server): Show how to use as primary method instead of secondary.
2010-09-26 04:03:19 +00:00
Katsumi Yamaoka
d3361e620a Merge changes made in Gnus trunk.
gnus-html.el (gnus-html-encode-url-chars): New function, that's an alias to browse-url-url-encode-chars if any.
nnir.el: Silence the byte compiler.
2010-09-24 00:38:10 +00:00
Gnus developers
b1ae92bae4 Merge changes made in Gnus trunk.
nnimap.el (nnimap-update-info): When UIDNEXT is present, use that for the active.
Split -request-update-info into -request-marks and -update-info.
nnimap.el (nnimap-transform-headers): Don't bug out on invalid BODYSTRUCTUREs.
nnimap.el (nnimap-transform-headers): Unfold quoted {42} headers.
nnir.el (nnir-run-imap): Fix up nnir to work with the new nnimap.
nnimap.el (nnimap-stream): Add starttls support.
gnus-int.el (gnus-request-update-info): Protect against backends not having the function.
gnus-html.el (gnus-html-rescale-image): Revert change that uses window-inside-pixel-edges.
gnus-start.el (gnus-fixup-nnimap-unread-after-getting-new-news): Remove.
nnimap.el (nnimap-retrieve-headers): Return 'headers.
gnus-sum.el (gnus-summary-local-variables): Prepare for list/range makeover.
gnus-start.el: Add new variable gnus-use-backend-marks, and start reading marks again.
2010-09-23 23:14:02 +00:00
Lars Magne Ingebrigtsen
239952b03e gnus-html.el: Embiggen pictures slightly. 2010-09-23 00:58:01 +00:00
Gnus developers
b069e5a697 Merge Changes made in Gnus trunk.
gnus-html.el (gnus-html-get-image-data): Search also for \r\n\r\n to get the start of data.
gnus-html.el: Use gnus-html-encode-url to encode URL.
gnus-sum.el (gnus-update-marks): Add sanity check to not delete marks outside the active range.
gnus.el: Try to keep the server/method cache unique.
gnus-html.el (gnus-html-rescale-image): Use window-inside-pixel-edges rather than window-pixel-edges.
gnus-html.el (gnus-html-put-image): Stop using markers.
gnus-html.el (gnus-html-image-fetched): Search also for \r\n\r\n to get the start of data.
nnimap.el: Expunge IMAP groups by default on article deletion.
gnus-int.el (gnus-request-expire-articles): Inhibit the daemon, since this command might take a while.
nnimap.el (nnimap-request-list): Set the current nnimap group to nil, since EXAMINE changes it on the server.
nnmail.el, nnimap.el: Allow nnimap to just delete 'junk messages when splitting.
nnimap.el (nnimap-parse-flags): Make IMAP flags parsing much faster by using `read'.
nnimap.el (nnimap-make-process-buffer): Record the server name.
gnus-html.el (gnus-html-image-fetched): Only cache if gnus-html-image-automatic-caching is set.
gnus-html.el (gnus-html-image-fetched): Check for errors.
gnus-start.el (gnus-read-active-for-groups): Only run -request-scan once per method on `g'.
nnimap.el (nnimap-request-expire-articles): If nnmail-expiry-wait is immediate, then expire all articles.
gnus-group.el (gnus-group-get-icon): Compute icon to return.
gnus-group.el (gnus-group-icon-list): Fix bad docstring information.
nnimap.el (nnimap-update-info): Fix up various off-by-one errors when syncing flags in nnimap.
time-date.el (date-to-time): Speed up date-to-time.
gnus-start.el (gnus-get-unread-articles): Don't have `gnus-get-unread-articles-in-group' update info.
gnus-group.el: Remove gnus-group-highlight-line from the default hook list.
gnus-group.el (gnus-group-highlight-line): Typo fix: beg, not start.
gnus-group.el (gnus-group-insert-group-line): Pass the real group name so that it gets the right data.
gnus-int.el (gnus-open-server): Add tracing for performance debugging.
nnimap.el (nnimap-parse-flags): Parse the data in any order.
nnimap.el (nnimap-update-info): Fix up code slightly.
2010-09-23 00:30:37 +00:00
Julien Danjou
b4e64499e2 gnus-html.el (gnus-html-wash-images): Use xml-substitute-special on images alt-text.
gnus-html.el (gnus-html-put-image): Put alt-text as help-echo.
2010-09-22 12:14:12 +00:00
Julien Danjou
2c8b2fc8d5 gnus-html.el: Make gnus-html use url-cache system.
gnus-html.el (gnus-html-image-map): Add v to browse-url on undisplayed image.
2010-09-21 11:48:40 +00:00
Katsumi Yamaoka
321fce9349 Make Gnus work for Emacs 22 and XEmacs. 2010-09-20 01:57:46 +00:00
Lars Magne Ingebrigtsen
bdaa75c74d Merge changes made in Gnus trunk.
mail-parse.el (mail-header-encode-parameter): Define as rfc2045-encode-string.
nnheader.el (nnheader-insert-nov): Protect against junk appearing in the extra mail headers.
gnus-html.el: Prefetch and html washing additions.
gnus-html.el (gnus-html-prefetch-images): Fix up the url-retrieve calling conventions so that prefetch doesn't bug out.
Pass proper format strings to gnus-message.
nnimap.el: Allow anonymous login.
nnimap.el (nnimap-transform-headers): The chars header is called Chars not Bytes.
nnimap.el (nnimap-wait-for-response): Don't infloop if the IMAP connection drops.
gnus-start.el (gnus-get-unread-articles): Call `gnus-open-server' on each method before trying to scan them etc.
gnus-sum.el (gnus-summary-update-mark): Replace subst-char-in-region by subst-char-in-region.
gnus.el (gnus-similar-server-opened): Refactor a bit and add comments.
gnus.el: Fix a speed regression based in methods that were similar weren't the same.
gnus.el (gnus): When using the development version of Gnus, load the gnus-load file.
nnimap.el (nnimap-open-connection):  When looking for credentials, also use the nnimap-server-port.
nnimap.el (nnimap-request-article): Return the group/article number, so that Gnus `^' works as expected.
nnimap.el (nnimap-find-wanted-parts-1): Return the MIME parts as IMAP wants them.
gnus-start.el (gnus-ignored-newsgroups): Remove [] from the list of bogus characters.
gnus-html.el (gnus-html-image-fetched): Protect against the data not arriving.
nnimap.el (nnimap-wait-for-connection): Avoid a race condition while waiting for the connection string.
gnus.texi (Required Back End Functions): Document INFO.
2010-09-20 00:36:54 +00:00
Lars Magne Ingebrigtsen
e8861cd2e4 Merge changes made in Gnus trunk.
nnimap.el (nnimap-finish-retrieve-group-infos): Return data in the nntp buffer so the agent can save it.
nnimap.el (nnimap-open-shell-stream): Bind `process-connection-type' to nil, so that CRLF doesn't get translated to \n; (nnimap-open-connection): Don't make 'shell commands only send \n.
nnimap.el (nnimap-request-group): Don't make `M-g' bug out on group with no marks.
gnus-agent.el (gnus-agent-load-alist): Nix out the alist if the file doesn't exist.
nnimap.el (nnimap-finish-retrieve-group-infos): Protect against groups that have no articles.
nnimap.el (nnimap-request-article): Check that we really got an article when we requested one.
gnus-html.el (gnus-html-schedule-image-fetching): Ignore all errors from url-retrieve, for instance about invalid URLs.
gnus-agent.el: Change default of gnus-agent-auto-agentize-methods to nil.
2010-09-19 10:45:51 +00:00
Lars Magne Ingebrigtsen
286c4fc2a9 Merge changes made in Gnus trunk.
nnimap.el (nnimap-request-group): Use the stored info for the dont-check case.
nnimap.el: Use deffoo instead of defun for interface functions.
gnus-int.el (gnus-request-group): Take an optional `info' parameter.
nnimap.el: Allow nnimap-request-group to do a complete marks sync on `M-g'.
nnimap.el: Get credentials for numerical equivalents of the port numbers.
gnus-html.el (gnus-html-wash-tags): Add support for i, b and u HTML tags.
nnimap.el (nnimap-update-info): Extend the info so that we can set the marks.
nnimap.el (nnimap-open-connection): Fix typo -- should be 'shell, not 'stream.
nnimap.el: Allow PREAUTH nnimap connections to log in without credentials.
nnimap.el (nnimap-update-info): Fix off-by-one error when concatenating ranges when doing a partial update.
gnus-html.el (gnus-html-schedule-image-fetching): Use `url' rather than curl to retrieve images.
nnimap.el (nnimap-update-info): When doing partial marks update, get the range update right.
nnimap.el (nnimap-wait-for-response): Be a bit more lax in finding the end of the command we're looking for.
nnimap.el: Allow sending \n instead of \r\n on 'shell streams.
gnus-html.el (gnus-html-schedule-image-fetching): Fetch all images in parallel.
2010-09-18 23:36:29 +00:00
Katsumi Yamaoka
f4530299d5 gnus-html.el: Replace process-kill-without-query by gnus-set-process-query-on-exit-flag. 2010-09-17 06:24:10 +00:00
Romain Francoise
eca7d7bfba gnus-html.el: Require gnus-art for `gnus-with-article-buffer'. 2010-09-17 05:38:38 +00:00
Lars Magne Ingebrigtsen
01e80360d0 Merge changes made in Gnus trunk.
imap.el: Revert back to version cb950ed8ff3e0f40dac437a51b269166f9ffb60d, since some of the changes seem problematic.

Fix up the w3m/curl dependencies.
mm-decode.el (mm-text-html-renderer): Don't have gnus-article-html depend on curl, which isn't essential.
gnus-html.el (gnus-html-schedule-image-fetching, gnus-html-prefetch-images): Check for curl before using it.
2010-09-14 23:14:44 +00:00
Lars Magne Ingebrigtsen
698ecd8250 gnus-html.el (gnus-html-wash-tags): Refactor out the image bit, and don't restrict end-tag searches to the end of the line. 2010-09-10 00:07:33 +00:00
Lars Magne Ingebrigtsen
9778a07a35 gnus-html (gnus-html-wash-tags): Search for images first, so that <a><img> works better; (gnus-html-displayed-image-map): Bind RET and TAB on images for better UX. 2010-09-09 00:08:06 +00:00
Lars Magne Ingebrigtsen
99fcd18012 gnus-html.el: Allow showing the ALT text of images and to browse the images themselves. 2010-09-08 23:59:52 +00:00
Katsumi Yamaoka
724d30bea0 gnus-html.el (gnus-html-schedule-image-fetching): Decode entities before feeding URLs to curl.
gnus-async.el (gnus-async-article-callback): Call `gnus-html-prefetch-images' unconditionally.
2010-09-08 23:51:10 +00:00
Katsumi Yamaoka
ecc74b38f3 gnus-html.el (gnus-html-wash-tags, gnus-html-put-image): Mark cid and internal images as deletable by `W D D'. 2010-09-07 06:23:16 +00:00
Lars Magne Ingebrigtsen
f9e506776a gnus-html.el (gnus-html-wash-tags): Limit end-tag matching to the current line to work around bugs in the output from w3m. 2010-09-07 00:08:33 +00:00
Lars Magne Ingebrigtsen
f39ccb2edd gnus-html.el (gnus-html-wash-tags): Remove <a name...> tags, which confuses the rest of the function. 2010-09-06 23:58:34 +00:00
Lars Magne Ingebrigtsen
29cd986b8b gnus-html.el (gnus-article-html): Allow calling without specifying the handle. In that case, dissect the buffer first. 2010-09-06 00:41:06 +00:00
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