Daiki Ueno [Tue, 2 Jul 2013 02:15:15 +0000 (11:15 +0900)]
mml2015: make key image extraction robuster
* mml2015.el (mml2015-epg-key-image): Use 'gnus-create-image' instead
of 'create-image' for XEmacs compatibility; check errors when decoding
image. Reported by Uwe Brauer.
Paul Eggert [Sun, 30 Jun 2013 23:37:25 +0000 (23:37 +0000)]
lisp/ChangeLog (2013-06-17) : Spelling fix
Katsumi Yamaoka [Fri, 28 Jun 2013 08:01:06 +0000 (08:01 +0000)]
gnus-art.el (gnus-article-extend-url-button): Make it work again with gnus-button-push revised at 2011-01-19
Lars Magne Ingebrigtsen [Sun, 23 Jun 2013 18:15:22 +0000 (20:15 +0200)]
* eww.el, shr.el, shr-color.el: Removed from the Gnus repository.
They now live in the lisp/net Emacs 24 repository.
Lars Magne Ingebrigtsen [Fri, 21 Jun 2013 06:55:48 +0000 (08:55 +0200)]
* eww.el (eww-update-header-line-format): Quote % characters.
Katsumi Yamaoka [Thu, 20 Jun 2013 00:22:12 +0000 (00:22 +0000)]
configure.in: Work for term-mode running in Emacs
Juanma Barranquero [Wed, 19 Jun 2013 22:48:25 +0000 (22:48 +0000)]
texi/ChangeLog: Fix typo
Katsumi Yamaoka [Wed, 19 Jun 2013 22:31:24 +0000 (22:31 +0000)]
lisp/ChangeLog: Fix typo
Katsumi Yamaoka [Wed, 19 Jun 2013 22:29:11 +0000 (22:29 +0000)]
lisp/ChangeLog: Fix typo
Juanma Barranquero [Wed, 19 Jun 2013 22:20:01 +0000 (22:20 +0000)]
lisp/ChangeLog: Fix typos
Lars Magne Ingebrigtsen [Wed, 19 Jun 2013 21:37:35 +0000 (23:37 +0200)]
* eww.el (eww-process-text-input): Display passwords as asterisks.
Lars Magne Ingebrigtsen [Wed, 19 Jun 2013 21:01:09 +0000 (23:01 +0200)]
Protect against invalid column-spans.
Tom Tromey [Wed, 19 Jun 2013 19:30:04 +0000 (21:30 +0200)]
Improve prev/next link handling
* net/eww.el (eww-top-url): Remove.
(eww-home-url, eww-start-url, eww-contents-url): New defvars.
(eww-render): Set new variables. Don't set eww-top-url.
(eww-handle-link): Handle "prev", "home", and "contents".
Downcase the rel text.
(eww-top-url): Choose best top URL.
Lars Magne Ingebrigtsen [Wed, 19 Jun 2013 19:11:51 +0000 (21:11 +0200)]
(eww-tag-textarea): Implement <textarea>.
Lars Magne Ingebrigtsen [Wed, 19 Jun 2013 18:49:43 +0000 (20:49 +0200)]
(eww-toggle-checkbox): Implement radio/checkboxes.
Lars Magne Ingebrigtsen [Wed, 19 Jun 2013 18:27:25 +0000 (20:27 +0200)]
(eww-change-select): Implement changing the select value.
Lars Magne Ingebrigtsen [Wed, 19 Jun 2013 17:34:59 +0000 (19:34 +0200)]
(eww-select-display): Display the correct selected item.
Lars Magne Ingebrigtsen [Wed, 19 Jun 2013 17:09:13 +0000 (19:09 +0200)]
(eww-submit): Rewrite to use the new-style form methods.
Lars Magne Ingebrigtsen [Wed, 19 Jun 2013 16:31:54 +0000 (18:31 +0200)]
Allow editing text input fields again
(eww-process-text-input): New function to make text input field editing
work.
Lars Magne Ingebrigtsen [Wed, 19 Jun 2013 15:38:24 +0000 (17:38 +0200)]
(eww-self-insert): Implement entering commands in text fields.
Lars Magne Ingebrigtsen [Wed, 19 Jun 2013 15:12:16 +0000 (17:12 +0200)]
Don't use widgets in eww
* eww.el: Rewrite to implement form elements "by hand" instead of
relying in widget.el. Using widget.el leads to too many
user interface inconsistencies.
Lars Magne Ingebrigtsen [Wed, 19 Jun 2013 14:03:52 +0000 (16:03 +0200)]
Make links not shadow local commands
* shr.el (shr-map): Bind [down-mouse-1] to browse URLs.
* shr.el (shr-urlify): Use `keymap' instead of `local-map' so that we
don't shadow mode-specific bindings.
Lars Magne Ingebrigtsen [Wed, 19 Jun 2013 13:55:35 +0000 (15:55 +0200)]
Merge branch 'master' of https://git.gnus.org/gnus
Glenn Morris [Wed, 19 Jun 2013 09:57:26 +0000 (09:57 +0000)]
gnus-group.el (gnus-mark-article-as-read): Fix declaration
Lars Magne Ingebrigtsen [Wed, 19 Jun 2013 07:31:57 +0000 (09:31 +0200)]
(eww-browse-url): Don't push stuff onto history if there's nothing to push.
Lars Magne Ingebrigtsen [Wed, 19 Jun 2013 07:04:17 +0000 (09:04 +0200)]
* shr.el (shr-map): Bind [down-mouse-1] to browse URLs.
Ted Zlatanov [Tue, 18 Jun 2013 18:54:56 +0000 (14:54 -0400)]
* auth-source.el (auth-source-netrc-parse-entries): Remove debugging.
Lars Magne Ingebrigtsen [Tue, 18 Jun 2013 16:17:57 +0000 (18:17 +0200)]
Allow not inserting horizontal space into a table
(shr-insert-table-ruler): Respect the nil value.
Lars Magne Ingebrigtsen [Tue, 18 Jun 2013 15:32:59 +0000 (17:32 +0200)]
* shr.el (shr-make-table-1): Implement <td rowspan>.
Tom Tromey [Tue, 18 Jun 2013 15:13:58 +0000 (17:13 +0200)]
Implement <link> and <a rel> prev/next (etc.) motions
* eww.el (eww-next-url, eww-previous-url, eww-up-url, eww-top-url):
New defvars.
(eww-open-file): New defun.
(eww-render): Initialize new variables.
(eww-display-html): Handle "link" and "a".
(eww-handle-link, eww-tag-link, eww-tag-a): New defuns.
(eww-mode-map): Move "p" to "l". Bind "p", "n", "t", and "u".
(eww-back-url): Rename from eww-previous-url.
(eww-next-url, eww-previous-url, eww-up-url, eww-top-url): New
defuns.
Lars Magne Ingebrigtsen [Tue, 18 Jun 2013 15:00:54 +0000 (17:00 +0200)]
Use one less than `window-width' as the width
(shr-insert-document): Use one less than window width if `shr-width' is
nil, since otherwise things may get one character too wide.
Lars Magne Ingebrigtsen [Tue, 18 Jun 2013 14:56:16 +0000 (16:56 +0200)]
(shr-make-table-1): Implement <td colspan=> support.
Lars Magne Ingebrigtsen [Tue, 18 Jun 2013 11:15:32 +0000 (13:15 +0200)]
Add support for <dl>, <dt> and <dd>.
(shr-tag-dl, shr-tag-dt, shr-tag-dd): Add support for <dl>, <dt> and
<dd>.
Lars Magne Ingebrigtsen [Tue, 18 Jun 2013 10:08:14 +0000 (12:08 +0200)]
Don't colourise images from tables
* shr.el (shr-tag-table): Insert the images after the table, so that
they're not covered by the table coulorisation, which often looked
awkward.
Katsumi Yamaoka [Tue, 18 Jun 2013 09:27:19 +0000 (09:27 +0000)]
eww.el (eww-detect-charset): Improve regexp; move backward
Glenn Morris [Tue, 18 Jun 2013 08:51:57 +0000 (08:51 +0000)]
Merge changes made in Emacs trunk
mm-decode.el (widget-convert-button): Autoload.
sieve-manage.el (mm-enable-multibyte): Autoload.
shr.el (libxml-parse-html-region): Declare.
(shr-render-buffer): Explicit error if no libxml2 support.
Ted Zlatanov [Mon, 17 Jun 2013 23:24:59 +0000 (19:24 -0400)]
When a data token is "machine", abort parsing the current line.
Lars Magne Ingebrigtsen [Mon, 17 Jun 2013 22:46:18 +0000 (00:46 +0200)]
(eww-tag-input): Support <input type=image>.
Lars Magne Ingebrigtsen [Mon, 17 Jun 2013 21:59:46 +0000 (23:59 +0200)]
(eww-convert-widgets): Fix last patch.
Lars Magne Ingebrigtsen [Mon, 17 Jun 2013 21:49:24 +0000 (23:49 +0200)]
* eww.el (eww-tag-select): Don't render totally empty <select> forms.
Lars Magne Ingebrigtsen [Mon, 17 Jun 2013 21:48:00 +0000 (23:48 +0200)]
Make input fields on their own lines work
(shr-ensure-paragraph): Don't delete empty lines that have text
properties, because these may be input fields.
Lars Magne Ingebrigtsen [Mon, 17 Jun 2013 21:02:26 +0000 (23:02 +0200)]
(shr-tag-base): Protect against base specs that are degenerate.
Lars Magne Ingebrigtsen [Mon, 17 Jun 2013 20:29:01 +0000 (22:29 +0200)]
* shr.el (shr-insert-table): Respect border-collapse: collapse.
Lars Magne Ingebrigtsen [Mon, 17 Jun 2013 20:02:15 +0000 (22:02 +0200)]
Fix syntax error
Lars Magne Ingebrigtsen [Mon, 17 Jun 2013 19:59:50 +0000 (21:59 +0200)]
Make it possible to TAB to the form elements again
* eww.el (eww-convert-widgets): Put `help-echo' on input fields so that
we can navigate to them.
(shr-tag-span): Don't respect the <title>, because that overwrites the
help-echo from links inside the spans.
(shr-next-link): Use `help-echo' for navigation, so that we can
navigate to form elements, too.
Lars Magne Ingebrigtsen [Mon, 17 Jun 2013 19:42:29 +0000 (21:42 +0200)]
Make shr table rendering somewhat faster
(shr-inhibit-decoration): New variable.
(shr-add-font): Use it to inhibit text property decorations while doing
preliminary table renderings. This speeds up typical Wikipedia page
renderings by 15%.
Lars Magne Ingebrigtsen [Mon, 17 Jun 2013 15:08:11 +0000 (17:08 +0200)]
* shr.el (shr-colorize-region): Put the colours over the entire region.
Lars Magne Ingebrigtsen [Mon, 17 Jun 2013 11:07:46 +0000 (13:07 +0200)]
Make buttons prettier
* eww.el (eww-button): New face.
(eww-convert-widgets): Use it to make submit buttons more button-like.
Lars Magne Ingebrigtsen [Mon, 17 Jun 2013 10:41:44 +0000 (12:41 +0200)]
(mm-convert-shr-links): Override the shr local map, so that Gnus commands work.
Lars Magne Ingebrigtsen [Mon, 17 Jun 2013 10:20:30 +0000 (12:20 +0200)]
* shr.el (shr-render-td): Support horizontal alignment.
Lars Magne Ingebrigtsen [Mon, 17 Jun 2013 10:07:08 +0000 (12:07 +0200)]
Make eww use `add-face-text-property', too.
(shr-make-overlay): Obsolete function.
* eww.el (eww-put-color): Removed.
(eww-colorize-region): Use `add-face-text-property'.
Lars Magne Ingebrigtsen [Mon, 17 Jun 2013 09:55:17 +0000 (11:55 +0200)]
Get correct presedence for font data
* shr.el (shr-add-font): Append face data, so that we get the correct
presedence: The innermost value (which is applied first) wins.
Katsumi Yamaoka [Mon, 17 Jun 2013 09:36:16 +0000 (09:36 +0000)]
mm-decode.el (shr-map): Silence the byte compiler
Stefan Monnier [Mon, 17 Jun 2013 09:16:36 +0000 (09:16 +0000)]
sieve.el (sieve-edit-script): Avoid beginning-of-buffer
shr.el (browse-url): Require `url'
eww.el (url): Require format-spec
Lars Magne Ingebrigtsen [Mon, 17 Jun 2013 09:04:25 +0000 (11:04 +0200)]
Convert shr.el from using overlays into using text properties
* eww.el (eww-mode-map): Use `shr-next-link' (etc) instead of the
widget commands, since we're no longer using widgets for links.
* mm-decode.el (mm-convert-shr-links): New function to convert
new-style shr URL links into widgets.
(mm-shr): Use it.
* shr.el (shr-next-link): New command.
(shr-previous-link): New command.
(shr-urlify): Don't use `widget-convert', because that's slow.
(shr-put-color-1): Use `add-face-text-property' instead of overlays,
because collecting the overlays and reapplying them when generating
tables is slow.
(shr-insert-table): Ditto.
Lars Magne Ingebrigtsen [Sun, 16 Jun 2013 22:20:51 +0000 (00:20 +0200)]
Don't add User-Agent.
(eww-browse-url): Don't add a User-Agent header (twice), because that
makes Bing refuse connection.
Lars Magne Ingebrigtsen [Sun, 16 Jun 2013 20:14:22 +0000 (22:14 +0200)]
* eww.el (eww-display-html): Default to using the entire window width.
Lars Magne Ingebrigtsen [Sun, 16 Jun 2013 19:42:07 +0000 (21:42 +0200)]
Speed up table rendering at bit
* shr.el (shr-make-table): Cache the table rendering at the table
level, and not the <td> level. This is a bit faster.
Lars Magne Ingebrigtsen [Sun, 16 Jun 2013 18:14:40 +0000 (20:14 +0200)]
Support #anchors
* eww.el (eww-render): Go to the correct ID when given URLs ending with
#id.
(shr-descend): Allow marking elements that have certain IDs.
Lars Magne Ingebrigtsen [Sun, 16 Jun 2013 18:00:17 +0000 (20:00 +0200)]
(shr-descend): Respect display: none.
Lars Magne Ingebrigtsen [Sun, 16 Jun 2013 17:41:20 +0000 (19:41 +0200)]
(shr-parse-base): Chop off the anchor before using.
Lars Magne Ingebrigtsen [Sun, 16 Jun 2013 17:33:47 +0000 (19:33 +0200)]
(shr-expand-url): Respect #anchor links.
Lars Magne Ingebrigtsen [Sun, 16 Jun 2013 17:29:29 +0000 (19:29 +0200)]
Make <li> rendering more compact
* shr.el (shr-tag-li): Don't require a new paragraph, since other
browsers don't.
Lars Magne Ingebrigtsen [Sun, 16 Jun 2013 15:49:06 +0000 (17:49 +0200)]
Don't bug out on zero-length links
* eww.el (eww-tag-textarea): Use `text' instead of `editable-field'.
* shr.el (shr-expand-url): Don't bug out on zero-length links.
Lars Magne Ingebrigtsen [Sun, 16 Jun 2013 15:42:37 +0000 (17:42 +0200)]
* eww.el (eww-tag-textarea): Support <textarea>.
Rüdiger Sonderfeld [Sun, 16 Jun 2013 15:30:45 +0000 (17:30 +0200)]
* shr.el (shr-dom-to-xml): Fixed function call.
Rüdiger Sonderfeld [Sun, 16 Jun 2013 14:23:23 +0000 (16:23 +0200)]
Put the <title> into a page header
* eww.el (eww): New group.
(eww-header-line-format): New custom variable.
(eww-current-title): New variable.
(eww-display-html): Update header and handle title tag.
(eww-update-header-line-format): New function.
(eww-tag-title): New function.
Rüdiger Sonderfeld [Sun, 16 Jun 2013 14:19:38 +0000 (16:19 +0200)]
Allow customizing the <li> "bullet"
(shr-bullet): New custom variable.
(shr-tag-li): Support custom bullet in unordered lists.
Rüdiger Sonderfeld [Sun, 16 Jun 2013 14:18:02 +0000 (16:18 +0200)]
Add support for SVG images
* shr.el (shr-dom-to-xml): (shr-dom-to-xml): New function.
(shr-tag-svg): Add support for the SVG tag.
Lars Magne Ingebrigtsen [Sun, 16 Jun 2013 14:03:31 +0000 (16:03 +0200)]
Get the base URL right when being redirected
(eww-render): When being redirected, use the redirect URL as the new
base URL.
* shr.el (shr-expand-url): Respect // URLs.
Lars Magne Ingebrigtsen [Sun, 16 Jun 2013 13:39:38 +0000 (15:39 +0200)]
Make <body> background colour rendering prettier.
* eww.el (eww-tag-body): Override the shr body rendering so that we can
put a background colour onto the entire buffer.
Lars Magne Ingebrigtsen [Sun, 16 Jun 2013 13:20:21 +0000 (15:20 +0200)]
* shr.el (shr-parse-base): Fix parsing error.
Lars Magne Ingebrigtsen [Sun, 16 Jun 2013 12:14:34 +0000 (14:14 +0200)]
Expand relative URLs more correctly by using `url-generic-parse-url'
* eww.el (eww-submit): Pass the base in to `shr-expand-url'.
* shr.el (shr-parse-base): New function.
(shr-expand-url): Use it to expand relative URLs reliably.
Ted Zlatanov [Sat, 15 Jun 2013 08:03:04 +0000 (04:03 -0400)]
auth-source netrc backend: Support single-quoted strings, multiline entries.
Lars Magne Ingebrigtsen [Fri, 14 Jun 2013 10:58:57 +0000 (12:58 +0200)]
eww submit button logic
* eww.el (eww-submit): Get submit button logic right when hitting RET
on non-submit buttons.
* shr.el: Remove shr-preliminary-table-render, since that can't really
be used for anything in practice.
Katsumi Yamaoka [Fri, 14 Jun 2013 09:37:41 +0000 (09:37 +0000)]
lisp/ChangeLog: Add an entry for the recent change in sieve.el
Glenn Morris [Fri, 14 Jun 2013 09:33:32 +0000 (09:33 +0000)]
mml2015.el (mml2015-maximum-key-image-dimension): Add :version
Julien Danjou [Fri, 14 Jun 2013 07:28:20 +0000 (09:28 +0200)]
Merge remote-tracking branch 'tarleb/sieve'
Signed-off-by: Julien Danjou <julien@danjou.info>
Conflicts:
lisp/ChangeLog
David Edmondson [Thu, 13 Jun 2013 09:47:51 +0000 (10:47 +0100)]
mml2015.el: Limit the size of key images inserted into articles
* Add `mml2015-maximum-key-image-dimension', which specifies a limit
on the width or height of any key images that are inserted into the
article buffer.
Lars Magne Ingebrigtsen [Thu, 13 Jun 2013 23:19:51 +0000 (01:19 +0200)]
* eww.el (eww-submit): Compute the submission URL correctly.
Stefan Monnier [Thu, 13 Jun 2013 22:13:12 +0000 (22:13 +0000)]
sieve-manage.el (sieve-manage-open-server): Don't quote lambda; Use plist-get rather than CL's getf
(sieve-manage-parse-capability): Avoid CL's remove-if
Albert Krewinkel [Thu, 13 Jun 2013 16:02:13 +0000 (18:02 +0200)]
sieve.texi: Update documentation to reflect recent changes
Albert Krewinkel [Thu, 13 Jun 2013 16:09:50 +0000 (18:09 +0200)]
sieve.el: Bind Q / q to quit and bury Manage Sieve, respectively
Lars Magne Ingebrigtsen [Thu, 13 Jun 2013 13:15:44 +0000 (15:15 +0200)]
(shr-expand-url): Expansion should chop off the bits after the last slash
Lars Magne Ingebrigtsen [Thu, 13 Jun 2013 12:44:38 +0000 (14:44 +0200)]
* eww.el (eww-tag-select): Use the first value as the default value.
Rüdiger Sonderfeld [Thu, 13 Jun 2013 05:42:37 +0000 (07:42 +0200)]
Make file:// links work
(eww-parse-headers): Parse headers from beginning of buffer so that
file:// links work.
Rüdiger Sonderfeld [Thu, 13 Jun 2013 05:41:06 +0000 (07:41 +0200)]
(eww-mode): Use `define-derived-mode'.
Rüdiger Sonderfeld [Thu, 13 Jun 2013 05:39:34 +0000 (07:39 +0200)]
* eww.el (eww): Prepend urls with if scheme is missing.
Katsumi Yamaoka [Thu, 13 Jun 2013 05:38:23 +0000 (07:38 +0200)]
* eww.el (eww-detect-charset): Detect charset from the <meta> tag.
Lars Magne Ingebrigtsen [Wed, 12 Jun 2013 20:57:34 +0000 (22:57 +0200)]
Ignore <svg>
* shr.el (shr-tag-svg): Ignore SVG elements, because we don't know how
to handle them at all.
Lars Magne Ingebrigtsen [Tue, 11 Jun 2013 16:23:57 +0000 (18:23 +0200)]
(eww-tag-select): Implement <select>.
Lars Magne Ingebrigtsen [Tue, 11 Jun 2013 16:09:32 +0000 (18:09 +0200)]
* eww.el (eww-convert-widgets): Make widgets from non-tabular layouts work, too.
Lars Magne Ingebrigtsen [Tue, 11 Jun 2013 15:44:44 +0000 (17:44 +0200)]
Allow toggling checkboxes.
Albert Krewinkel [Wed, 5 Jun 2013 16:47:34 +0000 (18:47 +0200)]
sievel-manage.el: fully support STARTTLS, fix bit rot
* Make sieve-manage-open work with STARTTLS: shorten stream managing
functions by using open-protocol-stream to do most of the work. Has
the nice benefit of enabling STARTTLS.
* Remove unneeded functions and options: the following functions and
options are neither in the API, nor called by any other function, so
they are deleted:
- sieve-manage-network-p
- sieve-manage-network-open
- sieve-manage-starttls-p
- sieve-manage-starttls-open
- sieve-manage-forward
- sieve-manage-streams
- sieve-manage-stream-alist
The options could not be applied in a meaningful way anymore; they
didn't happen to have much effect before.
* Cosmetic changes and code clean-up
* Enable Multibyte for SieveManage buffers: The parser won't properly
handle umlauts and line endings unless multibyte is turned on in the
process buffer.
* Wait for capabilities after STARTTLS: following RFC5804, the server
sends new capabilities after successfully establishing a TLS
connection with the client. The client should update the cached list
of capabilities, but we just ignore the answer for now.
Signed-off-by: Julien Danjou <julien@danjou.info>
Lars Magne Ingebrigtsen [Tue, 11 Jun 2013 02:20:24 +0000 (04:20 +0200)]
(eww-submit): Support POST.
Lars Magne Ingebrigtsen [Tue, 11 Jun 2013 02:08:29 +0000 (04:08 +0200)]
* eww.el (eww-tag-input): Support password fields.
Lars Magne Ingebrigtsen [Mon, 10 Jun 2013 22:16:08 +0000 (00:16 +0200)]
* eww.el (eww-tag-form): Protect against degenerate forms.
Lars Magne Ingebrigtsen [Mon, 10 Jun 2013 21:49:06 +0000 (23:49 +0200)]
(shr-expand-url): Expand URLs that start with a slash correctly.
Lars Magne Ingebrigtsen [Mon, 10 Jun 2013 21:36:05 +0000 (23:36 +0200)]
* eww.el (eww-submit): Get submit button logic right.
Lars Magne Ingebrigtsen [Mon, 10 Jun 2013 21:07:24 +0000 (23:07 +0200)]
Handle hidden form elements
(eww-submit): Handle hidden elements.
* shr.el (shr-final-table-render): New variable to signal when we're
doing the final table rendering so that we can collect more data at
that point.