1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-11 05:51:21 -08:00
Commit graph

123515 commits

Author SHA1 Message Date
Alain Schneble
b792ecea17 Make relative URL parsing and resolution consistent with RFC 3986 (bug#22044)
* test/lisp/url/url-parse-tests.el: Add tests covering url-generic-parse-url.
* test/lisp/url/url-expand-tests.el: Add tests covering url-expand-file-name.
* lisp/url/url-parse.el (url-generic-parse-url): Keep empty fragment
information in URL-struct.
* lisp/url/url-parse.el (url-path-and-query): Do not artificially turn empty
path and query into nil path and query, respectively.
* lisp/url/url-expand.el (url-expander-remove-relative-links): Do not turn
empty path into an absolute ("/") path.
* lisp/url/url-expand.el (url-expand-file-name): Properly resolve
fragment-only URIs. Do not just return them unchanged.
* lisp/url/url-expand.el (url-default-expander): An empty path in the relative
reference URI should not drop the last segment.
2015-12-26 00:50:25 +01:00
Alain Schneble
1dee11d874 Make relative URL parsing and resolution consistent with RFC 3986 (bug#22044)
* test/lisp/url/url-parse-tests.el: Add tests covering url-generic-parse-url.
* test/lisp/url/url-expand-tests.el: Add tests covering url-expand-file-name.
* lisp/url/url-parse.el (url-generic-parse-url): Keep empty fragment
information in URL-struct.
* lisp/url/url-parse.el (url-path-and-query): Do not artificially turn empty
path and query into nil path and query, respectively.
* lisp/url/url-expand.el (url-expander-remove-relative-links): Do not turn
empty path into an absolute ("/") path.
* lisp/url/url-expand.el (url-expand-file-name): Properly resolve
fragment-only URIs. Do not just return them unchanged.
* lisp/url/url-expand.el (url-default-expander): An empty path in the relative
reference URI should not drop the last segment.
2015-12-26 00:50:13 +01:00
Lars Ingebrigtsen
0697719d73 Let url use default file modes when copying files
* lisp/url/url-handlers.el (url-copy-file): Use default file
modes when copying files (bug#11400).
2015-12-25 22:36:32 +01:00
Devon Sean McCullough
344303c8d9 Doc fix for url-http
* lisp/url/url-http.el (url-http): Document better return values
  (bug#13187) (tiny change)
2015-12-25 22:21:22 +01:00
Lars Ingebrigtsen
608b15d59d * eww.el (eww-display-html): Support <button> tags (bug#20485). 2015-12-25 21:44:57 +01:00
Lars Ingebrigtsen
a68633e774 Made ffap-url-p a defun instead of a defsubst
* lisp/ffap.el (ffap-url-p): Change from defsusbt to defun,
since there doesn't seem to be much of a reason for it to be a
defsubst (bug#18203).
2015-12-25 20:43:36 +01:00
Lars Ingebrigtsen
65c64058b8 Add a command to view files in the browser to dired
* lisp/dired.el (dired-mode-map): Add the `W' command
(bug#18810).
2015-12-25 20:36:54 +01:00
Lars Ingebrigtsen
b563715a2d Allow http://user:pass@foo/ URLs again
* lisp/url/url-auth.el (url-basic-auth): Allow explicit
user/passwords in URLs (bug#19046).
2015-12-25 20:21:46 +01:00
Lars Ingebrigtsen
596338b3b9 * eww.el (eww-mode-map): Fix command name of eww-toggle-colors. 2015-12-25 19:08:03 +01:00
Samer Masterson
7a7b5b492f Autoload url-insert-buffer-contents
* lisp/url/url-handlers.el: Add autoload cookie so that
`package-list-packages' doesn't bug out (bug#21927) (tiny change)
2015-12-25 19:04:55 +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
bdaff9c813 Follow meta refresh tags in eww
* eww.el (eww-tag-meta): Follow meta refresh tags (bug#22234).
2015-12-25 18:18:42 +01:00
Lars Ingebrigtsen
a8627008ab More eww file name coding fixes
* eww.el (eww-decode-url-file-name): Use the base coding
system to check for encodability.
2015-12-25 08:31:10 +01:00
Lars Ingebrigtsen
2a0f18d9b6 Always save eww history
* eww.el (eww-setup-buffer): Always save history, even when
called from outside the eww buffer (bug#19638).
2015-12-25 07:56:08 +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
5e56f60695 Make toggling checkboxes work again
* eww.el (eww-update-field): Make toggling checkboxes work
again (bug#21881).
2015-12-25 06:47:28 +01:00
Lars Ingebrigtsen
9f0fd7cb1a Don't store cookies with empty names
* lisp/url/url-cookie.el (url-cookie-store): Refuse to store
cookies with empty names (bug#21936).
2015-12-25 06:33:25 +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
edfdd0a6cb Make prettier unique file names in eww
(eww-make-unique-file-name): Make unique file names by making
files like foo(2).jpg instead of foo(1)(2).jpg.
2015-12-24 22:47:58 +01:00
Lars Ingebrigtsen
af22a010d8 Decode hex-encoded URLs before using them as file names
* eww.el (eww-decode-url-file-name): New function.
(eww-download-callback): Use it to decode file names before
saving them.
2015-12-24 22:21:24 +01:00
Ashish SHUKLA
60c0f1a18a Add FreeBSD cert bundle
* doc/misc/emacs-gnutls.texi (Help For Users): Document
FreeBSD bundle.

* lisp/net/gnutls.el (gnutls-trustfiles): Add FreeBSD cert bundle.
2015-12-24 18:54:41 +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
Sam Steingold
1dcf9a5d2a clipboard should still work even if interprogram-* is disabled
(clipboard-yank): When `interprogram-cut-function' is nil,
bind it to `gui-selection-value' - the default value.
(clipboard-kill-region, clipboard-kill-ring-save): When
`interprogram-paste-function' is nil, bind it to `gui-select-text' -
the default value.
2015-12-22 12:02:30 -05:00
Glenn Morris
1868954320 ; Auto-commit of ChangeLog files. 2015-12-20 06:24:07 -05:00
Phillip Lord
138480a97b Fix bootstrap issue with dired-loaddefs
* lisp/dired.el: Autoloads for secondary files loaded optionally.
2015-12-18 21:19:35 +00:00
Phillip Lord
2f55a230d7 dired generate autoloads to non-versioned file.
* lisp/dired.el: Remove autoloads.
* lisp/Makefile.in: Add dired to autogenel.
* lisp/dired-aux.el,lisp/dired-x.el: Update file local.
* test/lisp/dired-tests.el: Add new test.
2015-12-17 20:42:16 +00:00
Phillip Lord
ee85661174 eieio generate autoloads to non-versioned file.
* lisp/Makefile.in: eieio-loaddefs add to autogenel.
* lisp/emacs-lisp/eieio.el,lisp/emacs-lisp/eieio-core.el:
  Remove autoloads.
* lisp/emacs-lisp/eieio-compat.el,lisp/emacs-lisp/eieio-custom.el,
  lisp/emacs-lisp/eieio-opt.el: Update file local.
* test/lisp/emacs-lisp/eieio-tests/eieio-tests.el: New test.
2015-12-17 20:42:15 +00:00
Phillip Lord
459cf7cb92 htmlfontify generate autoload to non-versioned file.
* lisp/Makefile.in: Add htmlfontity-loaddefs to autogenel.
* lisp/hfy-cmap.el: Update file local.
* lisp/htmlfontify.el: Remove autoloads, add require.
* test/lisp/htmlfontify-tests.el: Test autoload functionality.
2015-12-17 20:42:15 +00:00
Phillip Lord
a014779ffa ibuffer generate autoloads to non-versioned file.
* lisp/Makefile.in: Add ibuffer-loaddefs to autogenel.
* lisp/ibuf-ext.el: Update file local.
* lisp/ibuffer.el: Remove autoloads and add a require.
* test/lisp/ibuffer-tests.el: Test that autoload is working.
2015-12-17 20:42:15 +00:00
Phillip Lord
ef69697161 rmail generate autoloads to non-versioned file.
* lisp/Makefile.in: Add rmail-loaddefs.el to autogenel.
* lisp/mail/rmail.el: Remove autoloads, add require.
* lisp/mail/rmailedit.el,lisp/mail/rmailkwd.el,
  lisp/mail/rmailmm.el,lisp/mail/rmailmsc.el,
  lisp/mail/rmailsort.el,lisp/mail/rmailsum.el,
  lisp/mail/undigest.el: Update file-local.
* test/lisp/mail/rmail-tests.el:
2015-12-17 20:42:15 +00:00
Phillip Lord
88492253bf Add autoload-force target.
* lisp/Makefile.in (autoload-force): New target.
2015-12-17 20:42:15 +00:00
Phillip Lord
0eb57910ab ps-print generate autoloads to non versioned file.
* lisp/Makefile.in: Add ps-print-loaddefs.el to autogen list.
* lisp/ps-print.el: Remove autoloads.
* lisp/ps-mule.el: Update file-local.
* test/lisp/ps-print-tests.el: Test autoload functionality.
2015-12-17 20:42:15 +00:00
Phillip Lord
a2e6ed34b6 reftex generate autoloads to non versioned file.
* lisp/Makefile.in: Add reftex-loaddefs to autogen files
* lisp/textmodes/reftex.el: Remove autoloads.
* lisp/textmodes/reftex-auc.el,lisp/textmodes/reftex-cite.el,
  lisp/textmodes/reftex-dcr.el,lisp/textmodes/reftex-global.el,
  lisp/textmodes/reftex-index.el,lisp/textmodes/reftex-parse.el,
  lisp/textmodes/reftex-ref.el,lisp/textmodes/reftex-sel.el,
  lisp/textmodes/reftex-toc.el: Update autoload file-local.
* test/lisp/textmodes/reftex-tests.el: Add test of an autoloaded
  function.
2015-12-17 20:42:14 +00:00
Glenn Morris
23b5c22703 ; Auto-commit of ChangeLog files. 2015-12-13 06:25:35 -05:00
Stefan Monnier
6148555ee5 * lisp/calculator.el (calculator-define-key): Undo last change
Make map argument mandatory instead (bug#22106).
(calculator-add-operators): Pass the argument that's not optional any more.
2015-12-07 09:09:13 -05:00
Glenn Morris
8f725564b6 ; Auto-commit of ChangeLog files. 2015-12-06 06:32:23 -05:00
Glenn Morris
ffefb6e899 * Makefile.in: Avoid duplication.
(have-tests): New rule.
(check, check-maybe): Use it.
2015-12-03 19:57:11 -05:00
Phillip Lord
354a1fc38d make check unconditional, check-maybe top-level.
* Makefile.in: Add check-maybe target.
 * test/Makefile.in: Restore unconditional behaviour to make check.
2015-12-02 21:28:56 +00:00
Phillip Lord
5874cd46e9 Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs 2015-12-02 12:05:09 +00:00
Phillip Lord
3ab26227cf Tests now support out-of-source-build.
* tests/Makefile.in,test/make-test-deps.emacs-lisp: Remove assumptions
   about current working directory.
2015-12-01 23:23:12 +00:00
Glenn Morris
098738ff1a ; * test/make-test-deps.emacs-lisp: Standardize license notice. 2015-12-01 15:55:51 -05:00
Artur Malabarba
bd6695f3f5 * lisp/emacs-lisp/let-alist.el: Now an Elpa :core package 2015-12-01 13:56:30 +00:00
Glenn Morris
cb0aa29a9b ; Auto-commit of loaddefs files. 2015-12-01 06:18:24 -05:00
Phillip Lord
1c25d3712e Improve documentation and clean up.
* test/Makefile.in: Improve documentation, use EMACS variable
   correctly, and clean up makefile rules.
2015-11-30 21:32:31 +00:00
Phillip Lord
f9ebad588a Update file headers for name change.
* (test/src/decompress-tests.el, test/src/alloc-tests.el): Update headers.
2015-11-30 21:32:31 +00:00
Phillip Lord
063985518f Test files renamed to new scheme.
* (finalizer-tests.el): Now renamed alloc-tests.el
 * (zlib-tests.el): Now renamed decompress-tests.el.
2015-11-30 21:32:31 +00:00