1. 13 Feb, 2015 1 commit
  2. 11 Feb, 2015 3 commits
  3. 10 Feb, 2015 5 commits
    • Lars Magne Ingebrigtsen's avatar
      Fix up :align-to background colours · f6d781c2
      Lars Magne Ingebrigtsen authored
      (shr-insert-table): Only copy the background, not underline and
      the like.
      (shr-face-background): New function.
    • Lars Magne Ingebrigtsen's avatar
      shr cleanup and background color fix · d5111d52
      Lars Magne Ingebrigtsen authored
      (shr-table-widths): Off-by-one error in width computation.
      (shr-expand-newlines): Remove dead code.
      (shr-insert-table): Extend background colors to the end of the column.
    • Lars Magne Ingebrigtsen's avatar
    • Lars Magne Ingebrigtsen's avatar
      Fix <h1> and <tt> rendering · 6a319400
      Lars Magne Ingebrigtsen authored
      (shr-tag-h1): Don't use variable-pitch fonts on fontless rendering.
      (shr-tag-tt): New function.
    • Lars Magne Ingebrigtsen's avatar
      Allow using variable-width fonts in eww · 656caef3
      Lars Magne Ingebrigtsen authored
      * lisp/gnus/mm-decode.el (mm-shr): Only pass the fill column when not using
      fonts, because limiting the width to what's appropriate for followups
      doesn't really help when not using proportional fonts.
      * lisp/net/shr.el (shr-use-fonts): New variable.
      (shr-fill-text): Rename from "fold".
      (shr-pixel-column, shr-pixel-region, shr-string-pixel-width): New
      (shr-insert): Just insert, don't fill the text.  Filling is now
      done afterwards per display unit.
      (shr-fill-lines, shr-fill-line): New functions to fill text on a
      per-unit base.
      (shr-find-fill-point): Take a "beginning" parameter.
      (shr-indent): Indent using the :width display parameter when using
      (shr-parse-style): Ignore "inherit" values, since we already do that.
      (shr-tag-img): Remove the insertion states.
      (shr-tag-blockquote): New-style filling.
      (shr-tag-dd): Ditto.
      (shr-tag-li): Ditto.
      (shr-mark-fill): New function to mark lines that need filling.
      (shr-tag-h1): Use a larger font.
      (shr-tag-table-1): Get the natural and suggested widths in one
      (shr-tag-table): Create the "fixed" version of the table only once
      so that we can cache data in the table.
      (shr-insert-table): Get colspan calculations right by having
      zero-width columns after colspan ones.
      (shr-expand-alignments): New function to make :align-to specs work
      right when rendered in one buffer and displayed in another one.
      (shr-insert-table-ruler): Use :align-to to get the widths right.
      (shr-make-table): Cache more.
      (shr-make-table-1): Use the new <td> data layout.
      (shr-pixel-buffer-width): New function.
      (shr-render-td): Add a caching layer.
      (shr-dom-max-natural-width): New function.
  4. 26 Jan, 2015 3 commits
  5. 10 Jan, 2015 2 commits
  6. 01 Jan, 2015 2 commits
  7. 29 Dec, 2014 1 commit
    • Lars Ingebrigtsen's avatar
      Make eww rendering default to `window-width' again · c5a81fdb
      Lars Ingebrigtsen authored
      * lisp/gnus/mm-decode.el (mm-shr): Bind `shr-width' to `fill-column'
      so that lines don't get overlong when responding.
      * lisp/net/eww.el (eww-mode): Truncate overlong lines for prettier
      display when resizing.
      * lisp/net/shr.el (shr-width): Default to using the window width when
  8. 28 Dec, 2014 1 commit
  9. 15 Dec, 2014 1 commit
  10. 13 Dec, 2014 3 commits
  11. 10 Dec, 2014 1 commit
  12. 09 Dec, 2014 1 commit
  13. 05 Dec, 2014 1 commit
    • Stefan Monnier's avatar
      * lisp: Prefer inlinable functions to macros. · be307485
      Stefan Monnier authored
      * lisp/fringe.el (fringe-bitmap-p): Make it a plain function.
      * lisp/tooltip.el (tooltip-region-active-p): Remove.
      * lisp/net/shr.el (shr-char-breakable-p, shr-char-kinsoku-bol-p)
      (shr-char-kinsoku-eol-p, shr-char-nospace-p): Use define-inline.
      * lisp/url/url-future.el (url-future-done-p, url-future-completed-p)
      (url-future-errored-p, url-future-cancelled-p):
      * lisp/url/url-dav.el (url-dav-http-success-p): Use define-inline.
      * lisp/vc/ediff-init.el (ediff-odd-p): Remove.
      (ediff-background-face): Use cl-oddp instead.
      (ediff-buffer-live-p): Make it a defsubst.
  14. 04 Dec, 2014 1 commit
  15. 01 Dec, 2014 1 commit
  16. 26 Nov, 2014 2 commits
  17. 16 Nov, 2014 1 commit
  18. 13 Nov, 2014 4 commits
  19. 03 Nov, 2014 5 commits
  20. 18 Sep, 2014 1 commit
    • Ivan Kanis's avatar
      Allow users to specify `shr-width' · 212b4d63
      Ivan Kanis authored
      * net/shr.el, net/eww.el: Don't override `shr-width', but
      introduce a new variable `shr-internal-width'.  This allows users
      to specify a width themselves.