1. 17 Jun, 2013 5 commits
    • Lars Magne Ingebrigtsen's avatar
    • Lars Magne Ingebrigtsen's avatar
      lisp/gnus/{eww,shr}.el: Merge changes made in Gnus master · be2aa135
      Lars Magne Ingebrigtsen authored
      lisp/gnus/eww.el (eww-tag-select): Don't render totally empty <select> forms.
      (eww-convert-widgets): Don't bug out if the first widget starts at the beginning of the buffer.
      (eww-convert-widgets): Fix last patch.
      
      lisp/gnus/shr.el (shr-insert-table): Respect border-collapse: collapse.
      (shr-tag-base): Protect against base specs that are degenerate.
      (shr-ensure-paragraph): Don't delete empty lines that have text properties, because these may be input fields.
      
      lisp/gnus/eww.el (eww-convert-widgets): Put `help-echo' on input fields so that we can navigate to them.
      
      lisp/gnus/shr.el (shr-colorize-region): Put the colours over the entire region.
      (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%.
      (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.
      
      lisp/gnus/eww.el (eww-button): New face.
      (eww-convert-widgets): Use it to make submit buttons more button-like.
      be2aa135
    • Lars Magne Ingebrigtsen's avatar
      lisp/gnus/mm-decode.el (mm-convert-shr-links): Override the shr local map, so... · 544d4594
      Lars Magne Ingebrigtsen authored
      lisp/gnus/mm-decode.el (mm-convert-shr-links): Override the shr local map, so that Gnus commands work
      
      lisp/gnus/shr.el (shr-render-td): Support horizontal alignment
      
      Make eww use `add-face-text-property', too
      lisp/gnus/shr.el (shr-make-overlay): Obsolete function
      lisp/gnus/eww.el (eww-put-color): Removed
      (eww-colorize-region): Use `add-face-text-property'
      
      Get correct presedence for font data
      lisp/gnus/shr.el (shr-add-font): Append face data, so that we get the correct presedence: The innermost value (which is applied first) wins
      544d4594
    • Lars Magne Ingebrigtsen's avatar
      Convert shr.el from using overlays into using text properties · 7304e4dd
      Lars Magne Ingebrigtsen authored
      * 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.
      7304e4dd
    • Stefan Monnier's avatar
      * lisp/gnus/sieve.el (sieve-edit-script): Avoid beginning-of-buffer. · 7545bd25
      Stefan Monnier authored
      * lisp/gnus/shr.el (browse-url): Require `url'.
      * lisp/gnus/eww.el (url): Require format-spec.
      7545bd25
  2. 16 Jun, 2013 2 commits
    • Lars Magne Ingebrigtsen's avatar
      lisp/gnus/eww.el (eww-browse-url): Don't add a User-Agent (twice), because... · 5c3087e9
      Lars Magne Ingebrigtsen authored
      lisp/gnus/eww.el (eww-browse-url): Don't add a User-Agent (twice), because that makes Bing refuse connection
      5c3087e9
    • Gnus developers's avatar
      2013-06-16 Lars Magne Ingebrigtsen <larsi@gnus.org> · c74cb344
      Gnus developers authored
      * eww.el (eww-display-html): Default to using the entire window width.
      * shr.el (shr-make-table): Cache the table rendering at the table level, and not the <td> level. This is a bit faster.
      * eww.el (eww-render): Go to the correct ID when given URLs ending with #id.
      * shr.el (shr-tag-li): Don't require a new paragraph, since other browsers don't.
      (shr-expand-url): Respect #anchor links.
      (shr-parse-base): Chop off the anchor before using.
      (shr-descend): Respect display: none.
      (shr-descend): Allow marking elements that have certain IDs.
      * eww.el (eww-tag-textarea): Use `text' instead of `editable-field'.
      * shr.el (shr-expand-url): Don't bug out on zero-length links.
      * eww.el (eww-tag-textarea): Support <textarea>.
      
      2013-06-16 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
      * shr.el (shr-dom-to-xml): Fixed function call.
      * 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.
      * shr.el (shr-dom-to-xml): (shr-dom-to-xml): New function.
      (shr-tag-svg): Add support for the SVG tag.
      (shr-bullet): New custom variable.
      (shr-tag-li): Support custom bullet in unordered lists.
      2013-06-16 Lars Magne Ingebrigtsen <larsi@gnus.org>
      * shr.el (shr-expand-url): Respect // URLs.
      * eww.el (eww-tag-body): Override the shr body rendering so that we can
      put a background colour onto the entire buffer.
      (eww-render): When being redirected, use the redirect URL as the new
      base URL.
      * shr.el (shr-parse-base): Fix parsing error.
      * 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.
      c74cb344
  3. 14 Jun, 2013 3 commits
  4. 13 Jun, 2013 2 commits
  5. 12 Jun, 2013 1 commit
  6. 11 Jun, 2013 1 commit
  7. 10 Jun, 2013 4 commits