* shr.el: Document the table-rendering algorithm.
[gnus] / lisp / ChangeLog
1 2010-10-05  Lars Magne Ingebrigtsen  <larsi@gnus.org>
2
3         * shr.el (shr-render-td): Allow blank/missing <TD>s.
4
5         * shr.el: Document the table-rendering algorithm.
6
7 2010-10-05  Katsumi Yamaoka  <yamaoka@jpl.org>
8
9         * dgnushack.el (dgnushack-compile): Exclude shr.el from being compiled
10         for Emacsen having no `libxml-parse-html-region' support.
11
12 2010-10-05  Lars Magne Ingebrigtsen  <larsi@gnus.org>
13
14         * gnus-html.el (gnus-html-schedule-image-fetching): Protect against
15         invalid URLs.
16
17         * shr.el (shr-tag-img): Shorten ALT texts and allow them to be
18         line-broken.
19         (shr-tag-img): Ignore image fetching errors.
20         (shr-overlays-in-region): Compute overlay positions correctly.
21
22         * mm-decode.el (mm-shr): Require shr.
23
24         * gnus-art.el (gnus-blocked-images): Move variable here.
25
26         * shr.el (shr-insert-table): Bind free variable.
27
28         * mm-decode.el (mm-shr): Bind shr-content-function.
29
30         * shr.el (shr-content-function): New variable.
31
32         * gnus-sum.el (gnus-article-sort-by-most-recent-date): New function,
33         added for symmetry.
34
35         * nnir.el (nnir-retrieve-headers): Don't bug out on invalid data.
36
37         * gnus-group.el (gnus-group-make-group): Doc fix.
38
39         * nnimap.el (nnimap-request-newgroups): Return success.
40
41         * shr.el (shr-find-elements): New function.
42         (shr-tag-table): Put all the images after the table.
43         (shr-tag-table): Really inhibit images inside the table.
44         (shr-collect-overlays): Copy over overlays from the TD elements to the
45         main document.
46
47         * mm-decode.el (mm-shr): Bind shr-blocked-images to
48         gnus-blocked-images.
49
50 2010-10-05  Julien Danjou  <julien@danjou.info>
51
52         * gnus-html.el (gnus-html-wash-images): Rescale image from cid too.
53         (gnus-html-maximum-image-size): Add this function.
54         (gnus-html-put-image): Use gnus-html-maximum-image-size.
55
56         * sieve-manage.el (sieve-manage-capability): Do not bug out when the
57         server-value of the capability is nil.
58
59 2010-10-05  Lars Magne Ingebrigtsen  <larsi@gnus.org>
60
61         * shr.el (shr-tag-em): Add <EM> tag.
62
63 2010-10-05  Florian Ragwitz  <rafl@debian.org>  (tiny change)
64
65         * sieve-manage.el (sieve-manage-default-stream): Make default stream
66         customizable.
67
68         * gnus-html.el (gnus-html-wash-tags): Decode URL entities to avoid
69         handing broken links to browse-url.
70
71 2010-10-05  Julien Danjou  <julien@danjou.info>
72
73         * gnus-util.el (gnus-emacs-completing-read)
74         (gnus-iswitchb-completing-read): Use autoload rather than require.
75
76 2010-10-05  Katsumi Yamaoka  <yamaoka@jpl.org>
77
78         * lpath.el: Fbind libxml-parse-html-region and shr-insert-document for
79         Emacs 22 and XEmacs; fbind help-function-arglist for XEmacs 21.4 and
80         SXEmacs; fbind ido-completing-read, and bind iswitchb-mode and
81         iswitchb-temp-buflist for XEmacs.
82
83         * gnus-util.el (gnus-completing-read-function): Exclude
84         gnus-icompleting-read and gnus-ido-completing-read from candidates for
85         XEmacs since iswitchb.el is very old and ido.el is unavailable in
86         XEmacs.
87
88         * gnus-registry.el (gnus-registry-install-nnregistry): Rewrite so as
89         not to use `delete-dups' that is unavailable in XEmacs 21.4.
90
91         * gnus-html.el: Don't require help-fns under XEmacs.
92         (gnus-html-schedule-image-fetching): Work for XEmacs.
93
94         * mm-decode.el (mm-shr): Decode contents by charset.
95
96 2010-10-04  Lars Magne Ingebrigtsen  <larsi@gnus.org>
97
98         * nnimap.el (nnimap-open-connection): Give an error if nnimap-stream is
99         unknown.
100
101         * shr.el (shr-tag-blockquote): Ensure paragraph after quote, too.
102         (shr-get-image-data): Ensure against the cache file missing.
103
104         * nnimap.el (nnimap-finish-retrieve-group-infos): Message while waiting
105         for data.
106
107         * spam-report.el (spam-report-url-ping-plain): Don't query about
108         killing the process.
109
110         * shr.el (shr-render-td): Protect against too-wide text.
111
112 2010-10-04  Julien Danjou  <julien@danjou.info>
113
114         * mml-smime.el (mml-smime-openssl-encrypt-query): Fix choices.
115         (mml-smime-openssl-sign-query): Fix gnus-completing-read call.
116
117         * gravatar.el (gravatar-retrieved): Kill buffer when gravatar has been
118         retrieved.
119
120 2010-10-04  Lars Magne Ingebrigtsen  <larsi@gnus.org>
121
122         * shr.el (browse-url): Required.
123         (shr-ensure-paragraph): Don't insert a new newline after empty-ish
124         lines.
125         (shr-show-alt-text, shr-browse-image): New commands.
126         (shr-browse-url, shr-copy-url): New commands.
127
128         * gnus-sum.el (gnus-widen-article-window): New variable.
129         (gnus-summary-select-article-buffer): Use it.
130
131         * message.el (message-idna-to-ascii-rhs-1): Don't bug out on addresses
132         without @ signs.
133
134 2010-10-04  Michael Welsh Duggan  <md5i@md5i.com>  (tiny change)
135
136         * nnir.el (nnir-run-imap): Remove spurious space in search string.
137
138 2010-10-04  Julien Danjou  <julien@danjou.info>
139
140         * gnus-util.el (gnus-emacs-completing-read): Mapcar collection to list,
141         for XEmacs.
142
143 2010-10-04  Lars Magne Ingebrigtsen  <larsi@gnus.org>
144
145         * gnus-salt.el: Remove all gnus-carpal stuff -- it's not useful.
146
147         * nnimap.el (nnimap-open-connection): Allow tls as a synonym for ssl.
148         (nnimap-close-server): Implement.
149
150         * dgnushack.el (iswitchb): Require to shut up the compiler.
151
152         * shr.el (shr-ensure-paragraph): Fix the non-empty line case.
153         (shr-insert): Tweak line breaking.
154         (shr-insert): Handle <pre> better.
155         (shr-tag-li): Get <li> indentation right.
156         (shr-tag-li): Get <li> indentation even righter.
157         (shr-tag-blockquote): Ensure paragraph start.
158         (shr-make-table): Tweak table generation.
159         (shr-make-table): Fix typo.
160
161         * shr.el: Implement table rendering.
162
163 2010-10-04  Julien Danjou  <julien@danjou.info>
164
165         * gnus-html.el (gnus-html-put-image): Fix resize image code.
166
167 2010-10-04  Lars Magne Ingebrigtsen  <larsi@gnus.org>
168
169         * shr.el (shr-insert): Use string anchors instead of line anchors.
170
171 2010-10-03  Lars Magne Ingebrigtsen  <larsi@gnus.org>
172
173         * shr.el: Add headings.
174         (shr-ensure-paragraph): Actually work.
175         (shr-tag-li): Make <ul> prettier.
176         (shr-insert): Get white space at the beginning/end of elements right.
177         (shr-tag-p): Collapse subsequent <p>s.
178         (shr-ensure-paragraph): Don't insert double line feeds after blank
179         lines.
180         (shr-insert): \t is also space.
181         (shr-tag-s): Fix "s" tag name function.
182         (shr-tag-s): Fix face prop name.
183
184 2010-10-03  Julien Danjou  <julien@danjou.info>
185
186         * gnus-html.el (gnus-html-put-image): Use gnus-rescale-image.
187
188         * mm-view.el (gnus-window-inside-pixel-edges): Add autoload for
189         gnus-window-inside-pixel-edges.
190
191         * gnus-ems.el (gnus-window-inside-pixel-edges): Move from gnus-html to
192         gnus-ems.
193
194         * mm-view.el (mm-inline-image-emacs): Support image resizing.
195
196         * gnus-util.el (gnus-rescale-image): Add generic gnus-rescale-image
197         function.
198
199         * mm-decode.el (mm-inline-large-images): Enhance defcustom and add
200         resize choice.
201
202 2010-10-03  Lars Magne Ingebrigtsen  <larsi@gnus.org>
203
204         * shr.el (shr-tag-p): Don't insert newlines on empty tags at the
205         beginning of the buffer.
206
207         * gnus-sum.el (gnus-summary-select-article-buffer): Really select the
208         article buffer again.
209
210         * shr.el (shr-tag-p): Don't insert newlines at the start of the
211         buffer.
212
213         * mm-decode.el (mm-shr): Narrow before inserting, so that shr can know
214         when it's at the start of the buffer.
215
216         * shr.el (shr-tag-blockquote): Convert name.
217         (shr-rescale-image): Use the right image-size variant.
218
219         * gnus-sum.el (gnus-summary-select-article-buffer): If the article
220         buffer isn't shown, then select the current article first instead of
221         bugging out.
222         (gnus-summary-select-article-buffer): Show both the article and summary
223         buffers again.
224
225         * shr.el (shr-fontize-cont): Protect against regions with no text.
226         Rename tag functions to shr-tag-* for enhanced security.
227         (shr-tag-ul, shr-tag-ol, shr-tag-li, shr-tag-br): New functions.
228
229 2010-10-03  Chong Yidong  <cyd@stupidchicken.com>
230
231         * shr.el (shr-insert):
232         * pop3.el (pop3-movemail):
233         * gnus-html.el (gnus-html-wash-tags): Don't use plusp, as cl may not be
234         loaded.
235
236 2010-10-03  Glenn Morris  <rgm@gnu.org>
237
238         * nnmairix.el (nnmairix-replace-illegal-chars): Drop Emacs 20 code.
239
240         * smime.el (smime-cert-by-ldap-1): Drop Emacs 21 code.
241
242         * gnus-art.el (gnus-next-page-map): Drop Emacs 20 compat cruft.
243
244         * gmm-utils.el (gmm-write-region): Drop Emacs 20 compat cruft.
245
246         * gnus-util.el (gnus-make-local-hook): Simplify.
247
248 2010-10-02  Julien Danjou  <julien@danjou.info>
249
250         * gnus-util.el (gnus-iswitchb-completing-read): New function.
251         (gnus-ido-completing-read): New function.
252         (gnus-emacs-completing-read): New function.
253         (gnus-completing-read): Use gnus-completing-read-function.
254         Add gnus-completing-read-function.
255
256 2010-10-02  Lars Magne Ingebrigtsen  <larsi@gnus.org>
257
258         * shr.el (shr-insert-document): Autoload.
259         (shr-img): Be silent.
260         (shr-insert): Add a newline after every picture before text.
261         (shr-add-font): Use overlays for combining faces.
262         (shr-insert): Pass upwards the text start point.
263
264         * mm-decode.el (mm-text-html-renderer): Default to shr.el rendering, if
265         possible.
266         (mm-shr): New function.
267
268 2010-10-02  Julien Danjou  <julien@danjou.info>
269
270         * gnus-gravatar.el (gnus-gravatar-insert): Adjust character where we
271         should go backward.
272
273 2010-10-02  Juanma Barranquero  <lekktu@gmail.com>
274
275         * shr.el (shr): Fix typo in provide call.
276
277 2010-10-02  Lars Magne Ingebrigtsen  <larsi@gnus.org>
278
279         * shr.el: New file.
280
281         * gnus-html.el (gnus-html-schedule-image-fetching): Be silent.
282
283         * gnus-topic.el (gnus-topic-move-group): Fix the syntax of the
284         completing read.
285
286 2010-10-01  Lars Magne Ingebrigtsen  <larsi@gnus.org>
287
288         * gnus-start.el (gnus-check-bogus-newsgroups): Say how many groups
289         we're being queried about.  Suggested by Dan Jacobson.
290
291         * nndoc.el (nndoc-type-alist): Do babyl before mime-parts.  Suggested
292         by Jason Eisner.
293
294         * gnus-async.el (gnus-async-delete-prefetched-entry): Remove from hash
295         table, too.  Suggested by Stefan Wiens.
296         (gnus-async-prefetched-article-entry): Use intern-soft to avoid growing
297         the table unnecessary.  Suggested by Stefan Wiens.
298
299         * gnus-sum.el (gnus-summary-clear-local-variables): This is probably no
300         longer needed, and probably doesn't work either, as pointed out by
301         Stefan Wiens.
302         (gnus-summary-exit): Remove call to the clearing function.
303         (gnus-summary-exit-no-update): Ditto.
304
305         * gnus-art.el (gnus-summary-save-in-file): Use with-current-buffer
306         instead of gnus-eval-in-buffer-window to avoid popping up frames.
307         Reported by Stefan Monnier.
308         (gnus-summary-save-in-rmail): Ditto.
309
310         * gnus-sum.el (gnus-summary-select-article-buffer): Show only the
311         article buffer, instead of both the article buffer and the summary
312         buffer.  Sort of suggested by Dan Jacobson.
313
314         * gnus-win.el (gnus-buffer-configuration): Add an only-article spec.
315
316         * nnmbox.el (nnmbox-read-mbox): Mark buffer for deletion on Gnus exit.
317         Suggested by Dan Jacobson.
318
319         * mm-encode.el (mm-content-transfer-encoding-defaults): Try to make the
320         documentation clearer.
321
322         * message.el (message-shorten-references): Comment on the number "21".
323         Suggested by Stefan Monnier.
324
325         * gnus-sum.el (gnus-summary-scroll-up): Add more documentation.
326         Suggested by Dan Jacobson.
327
328         * gnus.el (gnus-large-newsgroup): Mention
329         gnus-large-ephemeral-newsgroup.  Suggested by Dan Jacobson.
330
331         * gnus-msg.el (gnus-summary-resend-message): When resending, don't
332         externalize attachments.  Bug reported by Steve Wen.
333
334         * gnus.el (gnus-continuum-version): Make inactive, since it doesn't
335         really message anything to the user.
336
337         * nnmail.el (nnmail-article-group): Allow using the fancy split method
338         directly.
339
340         * nnimap.el (nnimap-request-group): Low higher than high to signal no
341         messages in empty groups.
342
343 2010-10-01  Ted Zlatanov  <tzz@lifelogs.com>
344
345         * nnimap.el (nnimap-request-group): Don't bug out when there's an empty
346         non-UIDNEXT group.
347
348 2010-10-01  Lars Magne Ingebrigtsen  <larsi@gnus.org>
349
350         * gnus-group.el (gnus-group-completing-read): Return the symbol name,
351         not the value from the collection.
352
353         * nnimap.el (nnimap-update-info): Ignore groups that have no UIDNEXT
354         values.  This sometimes happens on some groups that have no info.
355         (nnimap-request-newgroups): New function.
356
357 2010-10-01  Teodor Zlatanov  <tzz@lifelogs.com>
358
359         * gnus-registry.el (gnus-registry-install-nnregistry): Move the feature
360         check into `gnus-registry-initialize'.
361         (gnus-registry-initialize): Ditto.
362         Fix and extend header docs.
363
364 2010-10-01  Lars Magne Ingebrigtsen  <larsi@gnus.org>
365
366         * gnus-html.el (gnus-html-prefetch-images): Adjust regexp to avoid
367         regexp backtrace overflows.
368
369         * nnimap.el (nnimap-extend-tls-programs): Only extend those programs
370         for starttls that tls.el implements; i.e. openssl.
371
372         * tls.el (tls-starttls-switches): Give up on using starttls with
373         gnutls-cli.
374         (tls-program): Add --insecure to be consistent with the defaults from
375         openssl s_client.  Now all three commands are insecure.
376
377 2010-10-01  Katsumi Yamaoka  <yamaoka@jpl.org>
378
379         * lpath.el: Bind completion-styles-alist for XEmacs.
380
381         * gravatar.el: Don't load image.el that XEmacs doesn't provide.
382         (gravatar-create-image): New function that's an alias to
383         gnus-xmas-create-image, gnus-create-image, or create-image.
384         (gravatar-data->image): Use it.
385
386 2010-09-30  Teodor Zlatanov  <tzz@lifelogs.com>
387
388         * gnus-registry.el (gnus-registry-install-nnregistry): New function to
389         install the nnregistry refer method.
390         (gnus-registry-install-hooks): Use it.
391         (gnus-registry-unfollowed-groups): Add nnmairix to the default
392         unfollowed groups.
393