f7ae63f4944026c857f5f52168d4f03de933896c
[gnus] / lisp / ChangeLog
1 2013-06-19  Lars Magne Ingebrigtsen  <larsi@gnus.org>
2
3         * eww.el (eww-process-text-input): Display passwords as asterisks.
4
5         * shr.el (shr-make-table-1): Protect against invalid column-spans.
6
7 2013-06-19  Tom Tromey  <tromey@redhat.com>
8
9         * net/eww.el (eww-top-url): Remove.
10         (eww-home-url, eww-start-url, eww-contents-url): New defvars.
11         (eww-render): Set new variables.  Don't set eww-top-url.
12         (eww-handle-link): Handle "prev", "home", and "contents".
13         Downcase the rel text.
14         (eww-top-url): Choose best top URL.
15
16 2013-06-19  Lars Magne Ingebrigtsen  <larsi@gnus.org>
17
18         * eww.el: Rewrite to implement form elements "by hand" instead of
19         relying in widget.el.  Using widget.el leads to too many
20         user interface inconsistencies.
21         (eww-self-insert): Implement entering commands in text fields.
22         (eww-process-text-input): New function to make text input field editing
23         work.
24         (eww-submit): Rewrite to use the new-style form methods.
25         (eww-select-display): Display the correct selected item.
26         (eww-change-select): Implement changing the select value.
27         (eww-toggle-checkbox): Implement radio/checkboxes.
28         (eww-update-field): Fix compilation error.
29         (eww-tag-textarea): Implement <textarea>.
30
31         * shr.el (shr-urlify): Use `keymap' instead of `local-map' so that we
32         don't shadow mode-specific bindings.
33
34         * eww.el (eww-browse-url): Don't push stuff onto history if there's
35         nothing to push.
36
37         * shr.el (shr-map): Bind [down-mouse-1] to browse URLs.
38
39 2013-06-19  Glenn Morris  <rgm@gnu.org>
40
41         * gnus-group.el (gnus-mark-article-as-read): Fix declaration.
42
43 2013-06-18  Teodor Zlatanov  <tzz@lifelogs.com>
44
45         * auth-source.el (auth-source-netrc-parse-entries): Remove debugging.
46
47 2013-06-18  Lars Magne Ingebrigtsen  <larsi@gnus.org>
48
49         * shr.el (shr-make-table-1): Implement <td rowspan>.
50         (shr-table-horizontal-line): Allow nil as a value, and change the
51         default.
52         (shr-insert-table-ruler): Respect the nil value.
53
54 2013-06-18  Tom Tromey  <tromey@barimba>
55
56         * eww.el (eww-next-url, eww-previous-url, eww-up-url, eww-top-url):
57         New defvars.
58         (eww-open-file): New defun.
59         (eww-render): Initialize new variables.
60         (eww-display-html): Handle "link" and "a".
61         (eww-handle-link, eww-tag-link, eww-tag-a): New defuns.
62         (eww-mode-map): Move "p" to "l".  Bind "p", "n", "t", and "u".
63         (eww-back-url): Rename from eww-previous-url.
64         (eww-next-url, eww-previous-url, eww-up-url, eww-top-url): New
65         defuns.
66
67 2013-06-18  Lars Magne Ingebrigtsen  <larsi@gnus.org>
68
69         * shr.el (shr-tag-table): Insert the images after the table, so that
70         they're not covered by the table colourisation, which often looked
71         awkward.
72         (shr-tag-dl, shr-tag-dt, shr-tag-dd): Add support for <dl>, <dt> and
73         <dd>.
74         (shr-make-table-1): Implement <td colspan=> support.
75         (shr-insert-document): Use one less than window width if `shr-width' is
76         nil, since otherwise things may get one character too wide.
77
78 2013-06-18  Katsumi Yamaoka  <yamaoka@jpl.org>
79
80         * eww.el (eww-detect-charset): Improve regexp; move backward.
81
82 2013-06-18  Glenn Morris  <rgm@gnu.org>
83
84         * mm-decode.el (widget-convert-button): Autoload.
85
86         * sieve-manage.el (mm-enable-multibyte): Autoload.
87
88         * shr.el (libxml-parse-html-region): Declare.
89         (shr-render-buffer): Explicit error if no libxml2 support.
90
91 2013-06-17  Teodor Zlatanov  <tzz@lifelogs.com>
92
93         * auth-source.el (auth-source-current-line): New function.
94         (auth-source-netrc-parse-entries): When a data token is "machine",
95         assume we're in the wrong place and abort parsing the current line.
96
97 2013-06-17  Lars Magne Ingebrigtsen  <larsi@gnus.org>
98
99         * eww.el (eww-tag-select): Don't render totally empty <select> forms.
100         (eww-convert-widgets): Don't bug out if the first widget starts at the
101         beginning of the buffer.
102         (eww-convert-widgets): Fix last patch.
103         (eww-tag-input): Support <input type=image>.
104
105         * shr.el (shr-insert-table): Respect border-collapse: collapse.
106         (shr-tag-base): Protect against base specs that are degenerate.
107         (shr-ensure-paragraph): Don't delete empty lines that have text
108         properties, because these may be input fields.
109
110         * eww.el (eww-convert-widgets): Put `help-echo' on input fields so that
111         we can navigate to them.
112
113         * shr.el (shr-colorize-region): Put the colours over the entire region.
114         (shr-inhibit-decoration): New variable.
115         (shr-add-font): Use it to inhibit text property decorations while doing
116         preliminary table renderings.  This speeds up typical Wikipedia page
117         renderings by 15%.
118         (shr-tag-span): Don't respect the <title>, because that overwrites the
119         help-echo from links inside the spans.
120         (shr-next-link): Use `help-echo' for navigation, so that we can
121         navigate to form elements, too.
122
123         * eww.el (eww-button): New face.
124         (eww-convert-widgets): Use it to make submit buttons more button-like.
125
126         * mm-decode.el (mm-convert-shr-links): Override the shr local map, so
127         that Gnus commands work.
128
129         * shr.el (shr-render-td): Support horizontal alignment.
130
131         * eww.el (eww-put-color): Removed.
132         (eww-colorize-region): Use `add-face-text-property'.
133
134         * shr.el (shr-add-font): Append face data, so that we get the correct
135         presedence: The innermost value (which is applied first) wins.
136         (shr-make-overlay): Obsolete function.
137
138         * mm-decode.el (mm-convert-shr-links): New function to convert
139         new-style shr URL links into widgets.
140         (mm-shr): Use it.
141
142         * eww.el (eww-mode-map): Use `shr-next-link' (etc) instead of the
143         widget commands, since we're no longer using widgets for links.
144
145         * shr.el (shr-next-link): New command.
146         (shr-previous-link): New command.
147         (shr-urlify): Don't use `widget-convert', because that's slow.
148         (shr-put-color-1): Use `add-face-text-property' instead of overlays,
149         because collecting the overlays and reapplying them when generating
150         tables is slow.
151         (shr-insert-table): Ditto.
152
153 2013-06-17  Stefan Monnier  <monnier@iro.umontreal.ca>
154
155         * sieve.el (sieve-edit-script): Avoid beginning-of-buffer.
156         * shr.el (browse-url): Require `url'.
157         * eww.el (url): Require format-spec.
158
159 2013-06-16  Lars Magne Ingebrigtsen  <larsi@gnus.org>
160
161         * eww.el (eww-display-html): Default to using the entire window width.
162         (eww-browse-url): Don't add a User-Agent header (twice), because that
163         makes Bing refuse connection.
164
165         * shr.el (shr-make-table): Cache the table rendering at the table
166         level, and not the <td> level.  This is a bit faster.
167
168         * eww.el (eww-render): Go to the correct ID when given URLs ending with
169         #id.
170
171         * shr.el (shr-tag-li): Don't require a new paragraph, since other
172         browsers don't.
173         (shr-expand-url): Respect #anchor links.
174         (shr-parse-base): Chop off the anchor before using.
175         (shr-descend): Respect display: none.
176         (shr-descend): Allow marking elements that have certain IDs.
177
178         * eww.el (eww-tag-textarea): Use `text' instead of `editable-field'.
179
180         * shr.el (shr-expand-url): Don't bug out on zero-length links.
181
182         * eww.el (eww-tag-textarea): Support <textarea>.
183
184 2013-06-16  Rüdiger Sonderfeld  <ruediger@c-plusplus.de>
185
186         * shr.el (shr-dom-to-xml): Fixed function call.
187
188         * eww.el (eww): New group.
189         (eww-header-line-format): New custom variable.
190         (eww-current-title): New variable.
191         (eww-display-html): Update header and handle title tag.
192         (eww-update-header-line-format): New function.
193         (eww-tag-title): New function.
194
195         * shr.el (shr-dom-to-xml): (shr-dom-to-xml): New function.
196         (shr-tag-svg): Add support for the SVG tag.
197         (shr-bullet): New custom variable.
198         (shr-tag-li): Support custom bullet in unordered lists.
199
200 2013-06-16  Lars Magne Ingebrigtsen  <larsi@gnus.org>
201
202         * shr.el (shr-expand-url): Respect // URLs.
203
204         * eww.el (eww-tag-body): Override the shr body rendering so that we can
205         put a background colour onto the entire buffer.
206         (eww-render): When being redirected, use the redirect URL as the new
207         base URL.
208
209         * shr.el (shr-parse-base): Fix parsing error.
210
211         * eww.el (eww-submit): Pass the base in to `shr-expand-url'.
212
213         * shr.el (shr-parse-base): New function.
214         (shr-expand-url): Use it to expand relative URLs reliably.
215
216 2013-06-15  Teodor Zlatanov  <tzz@lifelogs.com>
217
218         * auth-source.el (auth-source-search-collection): Fix docstring.
219         (auth-source-netrc-parse): Refactor and improve netrc parser to support
220         single-quoted strings and multiline entries.
221         (auth-source-netrc-parse-next-interesting)
222         (auth-source-netrc-parse-one, auth-source-netrc-parse-entries): New
223         functions to support parser.
224
225 2013-06-14  Lars Magne Ingebrigtsen  <larsi@gnus.org>
226
227         * eww.el (eww-submit): Get submit button logic right when hitting RET
228         on non-submit buttons.
229
230         * shr.el: Remove shr-preliminary-table-render, since that can't really
231         be used for anything in practice.
232
233 2013-06-13  Albert Krewinkel  <tarleb@moltkeplatz.de>
234
235         * sieve.el: Rebind q to (sieve-bury-buffer), bind Q to
236         (sieve-manage-quit).
237
238 2013-06-14  Glenn Morris  <rgm@gnu.org>
239
240         * mml2015.el (mml2015-maximum-key-image-dimension): Add :version.
241
242 2013-06-14  David Edmondson  <dme@dme.org>  (tiny change)
243
244         * mml2015.el (mml2015-maximum-key-image-dimension): New user option to
245         control the maximum size of photo ID image.
246         (mml2015-epg-key-image-to-string): Respect it.
247
248 2013-06-13  Lars Magne Ingebrigtsen  <larsi@gnus.org>
249
250         * shr.el (shr-tag-table-1): Mark the preliminary table renderings
251         instead of the final one so that we can more easily distinguish them.
252
253         * eww.el (eww-submit): Compute the submission URL correctly.
254
255 2013-06-13  Stefan Monnier  <monnier@iro.umontreal.ca>
256
257         * sieve-manage.el (sieve-manage-open-server): Don't quote lambda.
258         Use plist-get rather than CL's getf.
259         (sieve-manage-parse-capability): Avoid CL's remove-if.
260
261 2013-06-13  Albert Krewinkel  <tarleb@moltkeplatz.de>
262
263         * sieve.el: Rebind q to (sieve-bury-buffer), bind Q to
264         (sieve-manage-quit).
265
266 2013-06-13  Lars Magne Ingebrigtsen  <larsi@gnus.org>
267
268         * shr.el (shr-expand-url): Expansion should chop off the bits after the
269         last slash.
270
271         * eww.el (eww-tag-select): Use the first value as the default value.
272
273 2013-06-13  Rüdiger Sonderfeld  <ruediger@c-plusplus.de>
274
275         * eww.el (eww): Prepend urls with http:// if scheme is missing.
276         (eww-mode): Use `define-derived-mode'.
277         (eww-parse-headers): Parse headers from beginning of buffer so that
278         file:// links work.
279
280 2013-06-13  Katsumi Yamaoka  <yamaoka@jpl.org>
281
282         * eww.el (eww-detect-charset): Detect charset from the <meta> tag.
283
284 2013-06-12  Lars Magne Ingebrigtsen  <larsi@gnus.org>
285
286         * shr.el (shr-tag-svg): Ignore SVG elements, because we don't know how
287         to handle them at all.
288
289 2013-06-11  Lars Magne Ingebrigtsen  <larsi@gnus.org>
290
291         * eww.el (eww-convert-widgets): Make widgets from non-tabular layouts
292         work, too.
293         (eww-tag-select): Implement <select>.
294
295 2013-06-10  Albert Krewinkel  <krewinkel@moltkeplatz.de>
296
297         * sieve-manage.el (sieve-manage-open): work with STARTTLS: shorten
298         stream managing functions by using open-protocol-stream to do most of
299         the work. Has the nice benefit of enabling STARTTLS.
300         Wait for capabilities after STARTTLS: following RFC5804, the server
301         sends new capabilities after successfully establishing a TLS connection
302         with the client. The client should update the cached list of
303         capabilities, but we just ignore the answer for now.
304         (sieve-manage-network-p, sieve-manage-network-open)
305         (sieve-manage-starttls-p, sieve-manage-starttls-open)
306         (sieve-manage-forward, sieve-manage-streams)
307         (sieve-manage-stream-alist): Remove unneeded functions neither in the
308         API, nor called by any other function.
309         Enable Multibyte for SieveManage buffers: The parser won't properly
310         handle umlauts and line endings unless multibyte is turned on in the
311         process buffer.
312
313 2013-06-11  Lars Magne Ingebrigtsen  <larsi@gnus.org>
314
315         * eww.el (eww-tag-input): Support password fields.
316         (eww-submit): Support POST.
317
318 2013-06-10  Lars Magne Ingebrigtsen  <larsi@gnus.org>
319
320         * eww.el (eww-tag-form): Protect against degenerate forms.
321
322         * shr.el (shr-expand-url): Expand URLs that start with a slash
323         correctly.
324
325         * eww.el (eww-submit): Get submit button logic right.
326
327         * shr.el (shr-final-table-render): New variable to signal when we're
328         doing the final table rendering so that we can collect more data at
329         that point.
330
331         * eww.el (eww-submit): Make form submission work.
332         (eww-tag-input): Implement submit buttons.
333         (eww-click-radio): Implement radio and checkboxes.
334         (eww-submit): Handle hidden elements.
335
336         * shr.el (shr-descend): Allow other packages to override (or provide)
337         rendering of elements.
338         (shr-expand-url): Strip query strings from URLs before expanding them.
339
340         * eww.el: Don't require cl-lib.
341         (eww-tag-form): Start form support.
342
343         * dgnushack.el (dgnushack-compile): Ignore eww on XEmacs.
344
345         * eww.el: Start writing a new, tiny web browser.
346         (eww-previous-url): New command.
347         (eww-quit): New command.
348
349 2013-06-10  Albert Krewinkel  <krewinkel@moltkeplatz.de>
350
351         * sieve.el: Put point at beginning of buffer when viewing a script.
352         (sieve-open-server): respect the PORT parameter. Show the correct port
353         number in sieve-buffer's header. Fixed code to also work with a string
354         as port specifier. Properly close the connection on pressing 'q'. Make
355         sieve-manage-quit close the connection and process buffer. Also, remove
356         duplicate keybinding for 'q'.
357
358 2013-06-10  Roy Hashimoto  <roy.hashimoto@gmail.com>  (tiny change)
359
360         * mm-view.el (mm-pkcs7-signed-magic): Allow newline in the regexp and
361         make it easier to read.
362         (mm-pkcs7-enveloped-magic): Ditto.
363
364 2013-06-06  Teodor Zlatanov  <tzz@lifelogs.com>
365
366         * gnus-ems.el (gnus-image-type-available-p): Test `display-images-p'
367         before `image-type-available-p' to avoid loading the image libraries
368         needlessly.
369
370 2013-06-05  David Engster  <deng@randomsample.de>
371
372         * gnus-sum.el (gnus-update-marks): Do not remove empty 'unexist'
373         ranges, since `nnimap-retrieve-group-data-early' also uses it as a flag
374         to see whether the group was synced before.
375
376 2013-06-05  Teodor Zlatanov  <tzz@lifelogs.com>
377
378         * tls.el (open-tls-stream): Remove unneeded buffer contents up to point
379         when opening the connection.
380         Suggested by João Távora <joaotavora@gmail.com> in
381         <http://lists.gnu.org/archive/html/emacs-devel/2013-05/msg00464.html>.
382
383 2013-06-04  Katsumi Yamaoka  <yamaoka@jpl.org>
384
385         * gnus-art.el (article-date-ut, article-update-date-lapsed): Don't
386         assume Date header begins with "Date", that may be customized into
387         something like "X-Sent" using gnus-article-time-format.
388         (article-transform-date): Allow multi-line Date header.
389
390 2013-06-02  David Engster  <deng@randomsample.de>
391
392         * registry.el (initialize-instance, registry-lookup)
393         (registry-lookup-breaks-before-lexbind, registry-lookup-secondary)
394         (registry-lookup-secondary-value, registry-search, registry-delete)
395         (registry-insert, registry-reindex, registry-size, registry-prune): Do
396         not wrap methods in `eval-and-compile'.  This breaks due to latest
397         changes in EIEIO (introduction of eieio-core.el).
398
399 2013-05-30  Glenn Morris  <rgm@gnu.org>
400
401         * nnmail.el (nnmail-fancy-expiry-target):
402         Also bind mail-dont-reply-to-names.
403
404         * spam-stat.el (spam-stat-save):
405         No need to tweak font-lock in temp buffers.
406
407         * shr.el (shr-put-image): Silence compiler.
408
409 2013-05-29  Glenn Morris  <rgm@gnu.org>
410
411         * gnus-ems.el (set-process-plist): Every supported Emacs has this.
412
413         * gnus-group.el (gnus-sequence-of-unread-articles)
414         (gnus-summary-add-mark, gnus-mark-article-as-read)
415         (gnus-group-make-articles-read): Declare.
416
417         * gnus-sum.el (gnus-parameter-list-identifier)
418         (gnus-article-stop-animations, gnus-stop-downloads)
419         (gnus-article-only-boring-p, article-goto-body)
420         (gnus-flush-original-article-buffer, article-narrow-to-head)
421         (gnus-article-hidden-text-p, gnus-delete-wash-type)
422         (gnus-summary-save-in-pipe, gnus-article-show-summary): Declare.
423
424         * gnus.el: No need to eval-and-compile autoloads.
425
426         * gravatar.el (help-function-arglist): Autoload.
427
428         * nnimap.el (gnus-refer-thread-use-nnir): Declare.
429
430         * nnmail.el (nnmail-fancy-expiry-target): Maybe use mail-dont-reply-to.
431
432         * spam.el: No need to load spam-report when compiling.
433         No need to eval-and-compile autoloads.
434         (spam-report-resend-to): Declare.
435         (spam-report-resend-register-routine): Require 'spam-report.
436
437 2013-05-24  Julien Danjou  <julien@danjou.info>
438
439         * sieve.el (sieve-setup-buffer): Fix default port value in sieve buffer
440         setup.
441
442 2013-05-23  Glenn Morris  <rgm@gnu.org>
443
444         * gnus-util.el (rmail-swap-buffers-maybe)
445         (rmail-maybe-set-message-counters, rmail-count-new-messages)
446         (rmail-summary-exists, rmail-show-message, rmail-summary-displayed)
447         (rmail-pop-to-buffer, rmail-maybe-display-summary): Declare.
448
449         * mm-decode.el: No need to load term when compiling.
450         (term-mode, term-char-mode): Declare.
451
452         * mm-util.el: No need to load jka-compr when compiling.
453         (jka-compr-acceptable-retval-list, jka-compr-make-temp-name): Declare.
454
455         * nnmaildir.el: Require is automatically eval-and-compile.
456         (nnmail): Require at run-time too.
457
458         * registry.el (registry-size): Move definition before use.
459
460 2013-05-22  Daiki Ueno  <ueno@gnu.org>
461
462         * mml2015.el (mml2015-epg-sign): Make sure to insert newline after the
463         signed data to conform the standard.  (Bug#14232)
464
465 2013-05-20  Adam Sjøgren  <asjo@koldfront.dk>
466
467         * gnus-spec.el (gnus-parse-complex-format): Use unicode escape for left
468         double angle quotation mark.
469
470 2013-05-20  Glenn Morris  <rgm@gnu.org>
471
472         * format-spec.el (format-spec): Allow spec chars with nil.  (Bug#14420)
473
474 2013-05-19  Adam Sjøgren  <asjo@koldfront.dk>
475
476         * message.el (message-insert-formatted-citation-line): handle finding
477         first/lastname when more than 2 names appear.
478
479 2013-05-19  Adam Sjøgren  <asjo@koldfront.dk>
480
481         * shr.el (shr-tag-span): New function.
482
483 2013-05-18  Glenn Morris  <rgm@gnu.org>
484
485         * message.el (message-mode): Use message-mode-abbrev-table,
486         with text-mode-abbrev-table as parent.  (Bug#14413)
487
488 2013-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
489
490         * message.el (message-expand-group): Decode group names.
491
492 2013-05-16  Julien Danjou  <julien@danjou.info>
493
494         * gnus-notifications.el (gnus-notifications-notify): Use photo-file as
495         app-icon.
496
497 2013-05-15  Glenn Morris  <rgm@gnu.org>
498
499         * shr-color.el (shr-color-visible-luminance-min)
500         (shr-color-visible-distance-min): Use shr-color group.
501
502 2013-05-11  Glenn Morris  <rgm@gnu.org>
503
504         * gnus-vm.el: Make it loadable without VM.
505         (gnus-vm-make-folder, gnus-summary-save-in-vm): Require 'vm.
506         (vm-forward-message, vm-reply, vm-mail): Remove unused autoloads.