Commit graph

255 commits

Author SHA1 Message Date
Lars Ingebrigtsen
395f2ad689 Don't use image-map if it isn't defined
* lisp/net/shr.el (shr-image-map): Only use image-map as a
parent if it's defined (bug#22614).
2016-02-11 14:51:49 +11:00
Wolfgang Jenkner
e0775d7f7f * lisp/net/shr.el (image-map): Defvar it. (Bug#22614) 2016-02-10 16:34:12 +01:00
Lars Ingebrigtsen
211cdd3ff2 Allow accessing the image commands via shr
* lisp/gnus/mm-decode.el (mm-convert-shr-links): Allow
accessing the image commands.

* lisp/net/shr.el (shr-image-map): New map used for images.
(shr-urlify): Don't overwrite image maps when applying URL maps.
2016-02-10 12:56:21 +11:00
Paul Eggert
8456ba1d49 - 2016-02-09 14:26:40 -08:00
Lars Ingebrigtsen
a3bf4a387f Make backgrounds extend to the end of the lines in shr
* lisp/net/shr.el (shr-face-background): Faces can also be on
the form `(:background "#fff)' (bug#22547).
2016-02-09 14:45:22 +11:00
Adam Sjøgren
c4dce0494a lisp/net/shr.el (shr-tag-del, shr-tag-ins): New functions.
* lisp/net/shr.el (shr-tag-del, shr-tag-ins): New functions.
2016-02-07 13:11:57 +11:00
John Wiegley
0608bf1c3d Merge from origin/emacs-25
ee73997 Make erc work better when encountering unknown prefix chars
b99141d Make erc completion case-insensitive again
66c4620 Make complection in erc use consistent casing
8c562b2 Make /QUIT in erc more robust
d93d2c5 Make tracking faces in Emacs work more reliably
af6ab7e Make shr not bug out on images on non-graphical displays
3311f40 Fix bookmark display widths
d90ab1e Fix typo in eww-make-unique-file-name
7f81825 Make it possible to TAB to input fields
a43a1dc Insert complete alt texts when images are disabled
56ed4e1 Allow eww text fields to grow
66b315c Make erc work when subword-mode is switched on
255b68f Fix IMAP doc example
91557f5 Quoting fixes in doc strings and diagnostics
2c0dc9f Fix warning message in hack-local-variables
504696d Etags: yet another improvement in Ruby tags
8784ebf Fix x-popup-menu on TTYs without a mouse
8b87ecb * lisp/emacs-lisp/map.el: Improvements to the docstring of the
        pcase macro
6191003 Use pop-to-buffer-same-window in eww
fe321fd * autogen.sh: Revert all recent changes.
74ebd4a * make-dist: Updates related to nt/.
737193a * make-dist: Add modules/.
3696bf2 * make-dist: Update for super-special file that can't live in etc/.
a4278e2 Fix failure to compile ns-win.el in parallel builds
860da4d Fix names of tags generated for Ruby accessors
f6213ce Fix file-name recognition in 'etags'
e42e662 Change Ruby file names and extensions recognized by 'etags'
58bfb6a More improvements for Ruby support in 'etags'
c04e911 Add --git-config option to autogen.sh
5713466 Fix editing undo changes in eww fields
51362d6 Allow the user more control of popping up the eww window
ee0fbd8 Make eww-browse-url with new-window parameter work again
9c3142d Clean up eww code slightly
cb035f3 Don't insert nil faces in shr
4c3fae3 ; * lisp/progmodes/prolog.el: Remove some obsolete commentary.
93f2153 Improve the custom type of some user options.
9f60d7e Mark some risky calendar variables.
1d07dcd Highlight two additional SCSS keywords
ee8b466 Recommend enabling integrity-checking in git
e639e10 Some corrections in Elisp manual
d766ca8 Chatter when autogen.sh changes Git configuration
3b734e1 * org/org-compat.el (org-font-lock-ensure): Fix bogus test (bug#22399)
43cb9f8 Omit unnecessary history from Lisp intro
2fbd1da * etc/HISTORY: Add some more history, plus git tags.
c90e1b4 Improve elisp “Security Considerations” doc
cedd7ca autogen.sh now arranges for git to check hashes
86ce76b ; Fix ChangeLog.2 commit ID.
7b1d2b1 Fix (c & 040) typo in emergency escapes
a8273da Fix display of overlay strings with 'display' and 'box' property
fc48106 Fix imap-starttls-open
cdecbed Fix return value of imap-starttls-open
20c7e34 ; * etc/NEWS: Fix renamed command name
98bdbdb Correct reference to DARWIN_OS preprocessor symbol
b250d29 Spelling fix
b920a0e Spelling fixes
93b144b Pacify GCC on C library without glibc API
2016-02-03 23:56:08 -08:00
Lars Ingebrigtsen
af6ab7efc7 Make shr not bug out on images on non-graphical displays
* lisp/net/shr.el (shr-put-image): Don't bug out on alt-less
images on non-graphical displays (bug#22327).
2016-02-04 16:44:06 +11:00
Lars Ingebrigtsen
a43a1dcc3d Insert complete alt texts when images are disabled
* lisp/net/shr.el (shr-tag-img): When images are disabled, insert
the complete alt/title string (bug#22293).
2016-02-04 15:35:20 +11:00
Lars Ingebrigtsen
cb035f348e Don't insert nil faces in shr
* shr.el (shr-insert-table): Don't add nil faces, because that
will show up in *Messages* as "Invalid face reference: nil [32
times]".
2016-02-02 05:16:34 +01:00
Paul Eggert
99fa8c3dbf - 2016-01-30 13:56:23 -08:00
Paul Eggert
82b089783e - 2016-01-30 11:27:34 -08:00
Lars Ingebrigtsen
05f1f0dbb8 Build fix for shr.el
* shr.el (seq): Require.
2016-01-30 08:54:31 +01:00
Lars Magne Ingebrigtsen
116caedbe0 * shr.el (shr-table-body): Allow tables to have text children. 2016-01-19 14:16:34 +01:00
John Wiegley
1b76d91683 - 2016-01-18 22:59:51 -08:00
Lars Magne Ingebrigtsen
2f838b7689 Fix shr table rendering of nested tables
* shr.el (shr-table-body): Don't include all tbodies in nested
tables in the levels above.
2016-01-18 20:37:44 +01:00
John Wiegley
a8dd976aa5 Merge from origin/emacs-25
9fb185a shr-tag-video bug fix
6300655 Minor fixes in tramp-tests.el
50575b1 Ensure redisplay when 'truncate-lines' is set
0d9e80d Fix a doc string of 'transient-mark-mode'
0000ae5 MS-Windows followup to latest gnulib update
4bc5e02 Spelling fix
f1093f7 Do secure signed Bcc handling
2016-01-11 22:48:10 -08:00
John Wiegley
1dd4f26ab6 Merge from origin/emacs-25
ef33bc7 Spelling and grammar fixes
9c3dbab Fix copyright years by hand
0e96320 Update copyright year to 2016
2016-01-11 22:48:07 -08:00
John Wiegley
8d7128c46d Merge from origin/emacs-25
9ee6ecb lisp/emacs-lisp/chart.el (chart-new-buffer): Move to silence byte compiler.
526d80c Port chart.el methods to cl-generic.
410bb69 Add nt/INSTALL.W64 build instructions
8f5b524 Add new input method 'programmer-dvorak'
6d11f6e Allow to invoke original M-TAB binding in 'flyspell-prog-mode'
bb83bb1 Fix EWW rendering of long RTL lines
b1a8509 fix  bug#21054
ce5ad12 Clean up cairo printing code
2016-01-11 22:48:07 -08:00
Lars Magne Ingebrigtsen
9fb185aff7 shr-tag-video bug fix
* shr.el (shr-tag-video): Protect against the `poster' being
empty.
2016-01-04 23:03:30 +01:00
Paul Eggert
0e963201d0 Update copyright year to 2016
Run admin/update-copyright.
2016-01-01 01:34:24 -08:00
Eli Zaretskii
bb83bb11f9 Fix EWW rendering of long RTL lines
* lisp/net/shr.el (shr-insert-document): Undo any previous hscroll
of the selected window before filling its lines.  (Bug#22250)
2015-12-31 17:18:25 +02:00
John Wiegley
9f2f14a072 Merge emacs-25 into master (using imerge) 2015-12-29 21:40:28 -08:00
Eli Zaretskii
88e2de2381 Fix filling text with bidirectional characters in shr.el
* lisp/net/shr.el (shr-insert-document): Bind
bidi-display-reordering to nil while filling lines.  This is
required for when a line includes characters whose bidi
directionality is opposite to the base paragraph direction,
because columns are counted in the logical order.  (Bug#22250)
2015-12-29 18:49:57 +02:00
Lars Ingebrigtsen
9982c01d1a shr link traversal fixup
* shr.el (shr-next-link): Don't bug out on adjacent links.

Backport:

(cherry picked from commit 1efc5f8b09)
2015-12-28 21:58:46 +01:00
Lars Ingebrigtsen
1efc5f8b09 shr link traversal fixup
* shr.el (shr-next-link): Don't bug out on adjacent links.
2015-12-28 21:55:18 +01:00
Lars Ingebrigtsen
531b28b4d9 * shr.el (shr-descend): Allow using lambdas in external functions. 2015-12-27 07:18:29 +01:00
Lars Ingebrigtsen
6d124eef1c Allow toggling colors in eww
* doc/misc/eww.texi (Basics): Mention "C".

* lisp/net/eww.el (eww-toggle-colors): New command and keystroke.

* lisp/net/shr.el (shr-use-colors): New variable.
(shr-colorize-region): Use it.
2015-12-25 18:50:43 +01:00
Lars Ingebrigtsen
1a99bd69ea Default web pages to right-to-left
* eww.el (eww-mode): Most web pages are left-to-right, so make
that the default (bug#19801).

* shr.el (shr-tag-html): Respect "dir" attributes
(left-to-right, right-to-left).

Backport:

(cherry picked from commit 9e089ec8a3)
2015-12-25 17:05:00 +01:00
Lars Ingebrigtsen
5b2401d38f Stop rendering HTML before specdlr exhaustion
Fixes: 22117

* shr.el (shr-descend): Stop rendering before we run out of
specpdl room (bug#22117).

Backport:

(cherry picked from commit 248da292fe)
2015-12-25 17:03:34 +01:00
Lars Ingebrigtsen
ec2a509cfb Use cl-reduce, not reduce.
Backport:

(cherry picked from commit fe4606f93b)
2015-12-25 17:03:18 +01:00
Lars Ingebrigtsen
96ac31425d Allow several <tbody> tags in shr
* shr.el (shr-table-body): New function to find the real body
of a table.
(shr-tag-table): Use it to render several <tbody> tags in a
table (bug#22170).

Backport:

(cherry picked from commit cdaf33029d)
2015-12-25 17:03:06 +01:00
Lars Ingebrigtsen
6ef896cc78 Ignore invalid SVG images
* shr.el (shr-tag-svg): Ignore SVG images that have no width
or height, because these can't be displayed by ImageMagick,
anyway.

Backport:

(cherry picked from commit 821107d53c)
2015-12-25 17:01:27 +01:00
Lars Ingebrigtsen
cc3de97ad3 shr table rendering fix
* shr.el (shr-tag-table): Allow rendering body-less tables
that have headers.

Backport:

(cherry picked from commit b05471e42c)
2015-12-25 16:59:49 +01:00
Lars Ingebrigtsen
9e089ec8a3 Default web pages to right-to-left
* eww.el (eww-mode): Most web pages are left-to-right, so make
that the default (bug#19801).

* shr.el (shr-tag-html): Respect "dir" attributes
(left-to-right, right-to-left).
2015-12-25 07:45:27 +01:00
Lars Ingebrigtsen
248da292fe Stop rendering HTML before specdlr exhaustion
Fixes: 22117

* shr.el (shr-descend): Stop rendering before we run out of
specpdl room (bug#22117).
2015-12-25 06:19:34 +01:00
Lars Ingebrigtsen
fe4606f93b Use cl-reduce, not reduce. 2015-12-25 06:04:01 +01:00
Lars Ingebrigtsen
cdaf33029d Allow several <tbody> tags in shr
* shr.el (shr-table-body): New function to find the real body
of a table.
(shr-tag-table): Use it to render several <tbody> tags in a
table (bug#22170).
2015-12-25 06:01:19 +01:00
Lars Ingebrigtsen
45ebbc0301 Allow overriding shr functions from eww
* eww.el (eww-display-html): Allow overriding elements in
`shr-external-rendering-functions'.
2015-12-24 17:34:31 +01:00
Lars Ingebrigtsen
821107d53c Ignore invalid SVG images
* shr.el (shr-tag-svg): Ignore SVG images that have no width
or height, because these can't be displayed by ImageMagick,
anyway.
2015-12-24 14:40:16 +01:00
Lars Ingebrigtsen
b05471e42c shr table rendering fix
* shr.el (shr-tag-table): Allow rendering body-less tables
that have headers.
2015-12-24 14:00:38 +01:00
Eli Zaretskii
e0d2dc5fd7 Fix last change in shr.el
* lisp/net/shr.el (shr--have-one-fringe-p): Rename from
have-fringes-p.  All callers changed.  Doc fix.  (Bug#21895)

Backport.
2015-11-13 21:58:24 +02:00
Eli Zaretskii
35f5afbca1 Fix last change in shr.el
* lisp/net/shr.el (shr--have-one-fringe-p): Rename from
have-fringes-p.  All callers changed.  Doc fix.  (Bug#21895)
2015-11-13 11:23:35 +02:00
Eric Hanchrow
9463abf4cc shr: don't invoke unbound function (Bug#21895)
* lisp/net/shr.el (have-fringes-p): New function.
  (shr-insert-document, shr-fill-text): Use it.
2015-11-12 17:38:06 -08:00
Paul Eggert
943f7f902e Spelling fixes
* configure.ac (bitmapdir): Fix misspelling of bmd_acc.
* test/automated/coding-tests.el (ert-test-coding-bogus-coding-systems):
Fix misspelling of nonexistent file name.
2015-10-14 14:46:50 -07:00
Eli Zaretskii
45d0b3dd11 shr: fix too long lines in rendered buffers (Bug#21012)
Co-authored-by: Michael Heerdegen <michael_heerdegen@web.de>
* lisp/net/shr.el (shr-insert-document, shr-fill-text):
Correct calculation of available width.
(shr-find-fill-point): Don't overflow window edge if shr-kinsoku-shorten
is nil.
2015-10-04 09:35:25 +02:00
Katsumi Yamaoka
8b95ee49bc * net/shr.el (shr-colorize-region): Allow 88-color tty to use colors.
Suggested by Eli Zaretskii.
2015-09-29 06:30:48 +00:00
Katsumi Yamaoka
888d644f0b * net/shr.el (shr-colorize-region):
Don't do it on a system not supporting 256 above colors (bug#21557).
2015-09-29 02:01:50 +00:00
Dmitry Gutov
166a6556d0 ; Remove extraneous "coding: utf-8" specifications in Elisp files 2015-09-29 01:39:46 +03:00
Glenn Morris
5b0af214c8 Quieten compilation, eg in --without-x builds.
* lisp/dired-aux.el (lpr-printer-switch):
* lisp/frame.el (tool-bar-height):
* lisp/linum.el (font-info):
* lisp/window.el (font-info, overflow-newline-into-fringe)
(tool-bar-height):
* lisp/emacs-lisp/package-x.el (tar-data-buffer):
* lisp/gnus/gnus-util.el (iswitchb-mode):
* lisp/mail/rmailmm.el (libxml-parse-html-region):
* lisp/net/nsm.el (gnutls-peer-status)
(gnutls-peer-status-warning-describe):
* lisp/net/shr.el (libxml-parse-xml-region):
* lisp/url/url-http.el (gnutls-peer-status): Declare.
2015-05-08 20:13:47 -04:00