summaryrefslogtreecommitdiff
path: root/lisp/url
Commit message (Collapse)AuthorAgeFilesLines
* Fix: (void-variable url-http-response-status)Tao Fang2016-04-261-2/+2
| | | | | | | * lisp/url/url-http.el (url-https-proxy-after-change-function): Display the error message before doing the callback to avoid a void variable situation (bug#23290).
* `url-retrieve-synchronously' now takes an optional timeout parameterLars Magne Ingebrigtsen2016-04-261-4/+14
| | | | | | | * doc/misc/url.texi (Retrieving URLs): Document optional parameters. * lisp/url/url.el (url-retrieve-synchronously): Allow passing in a timeout parameter (bug#22940).
* Compute User-Agent dynamically in url-httpClément Pit--Claudel2016-04-242-17/+45
| | | | | | | | | | | * url-http.el (url-http-user-agent-string): Compute User-Agent string dynamically. (url-http--user-agent-default-string): New function. * url-vars.el (url-privacy-level): Allow `emacs' in list of information not to send. (url-user-agent): Add nil and `default' options; do not pre-compute value.
* Allow URL using HTTPS proxies using CONNECTTao Fang2016-04-041-15/+95
| | | | | | | | | * lisp/url/url-http.el (url-http-find-free-connection): Allow using proxies (bug#11788). (url-http-end-of-document-sentinel): Ditto. (url-http): The protocol may change from http to https and vice versa. (url-https-proxy-connect): Allow using CONNECT proxies for https.
* Allow binding `url-mime-accept-string'Lars Ingebrigtsen2016-03-011-0/+3
| | | | | * lisp/url/url-http.el (url-http): Allow binding `url-mime-accept-string' (bug#22855).
* Allow deleting all non-matching cookiesLars Ingebrigtsen2016-02-231-4/+9
| | | | | * lisp/url/url-cookie.el (url-cookie-delete-cookies): Allow keeping matching cookies (bug#22720).
* Fix merge conflicts in network-stream-tests.elLars Ingebrigtsen2016-02-221-2/+2
|\
| * Remove debuggingLars Ingebrigtsen2016-02-161-1/+0
| |
| * Do most of the coding system setup earlierLars Ingebrigtsen2016-02-161-1/+2
| | | | | | | | | | | | * src/process.c (Fmake_network_process): Set the read/write coding systems here, so that special bindings work. (Fmake_network_process): Complete the coding system setup here.
| * Use :nowait t in url-gwLars Ingebrigtsen2016-02-151-4/+3
| | | | | | | | | | * lisp/url/url-gw.el (url-open-stream): Just use :nowait t, since we're not differentiating.
| * Make url.el use async DNSLars Ingebrigtsen2016-02-051-2/+3
| | | | | | | | | | | | | | * lisp/url/url-gw.el (url-open-stream): Use non-blocking DNS. * src/process.c (syms_of_process): Add a `dns' subfeature for make-network-process.
| * Rework the mechanisms for async GnuTLS connectionsLars Ingebrigtsen2016-01-311-11/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/gnutls.el (open-gnutls-stream): Compute the gnutls-boot parameters and pass them to the process object. (gnutls-negotiate): New parameter :return-keywords that won't connect to anything, just compute the keywords. * lisp/url/url-http.el (url-http): Revert async TLS sentinel hack, which is no longer necessary. * src/gnutls.c (Fgnutls_asynchronous_parameters): Rename from gnutls-mark-process. * src/process.c (connect_network_socket): If we're connecting to an asynchronous TLS socket, complete the GnuTLS boot sequence here. * src/process.h: New parameter gnutls_async_parameters.
| * Implement asynchronous GnuTLS connectionsLars Ingebrigtsen2016-01-311-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/emacs-gnutls.texi (Help For Developers): Mention the nowait parameter. * lisp/net/gnutls.el (open-gnutls-stream): Allow asynchronous connections with the new nowait parameter. * lisp/net/network-stream.el (network-stream-open-tls): Pass on :nowait to open-gnutls-stream. * lisp/url/url-http.el (url-http): Don't overwrite the sentinel created by open-gnutls-stream. * src/gnutls.c (Fgnutls_mark_process): New function. * src/process.c (send_process): Don't write to GnuTLS sockets that haven't been initialised yed. * src/process.h: New slot gnutls_wait_p.
* | Add a function to delete URL cookiesLars Ingebrigtsen2016-02-211-0/+13
| | | | | | | | | | | | | | * doc/misc/url.texi (Cookies): Document url-cookie-delete-cookies. * lisp/url/url-cookie.el (url-cookie-delete-cookies): New function.
* | Ensure progress when fetching from the queueLars Ingebrigtsen2016-02-081-2/+16
| | | | | | | | | | * lisp/url/url-queue.el (url-queue-check-progress): Ensure that we have progress when fetching queued requests (bug#22576).
* | Do not ignore redirections of 301, 302 and 307 status codesNicolas Petton2016-02-041-9/+1
|/ | | | | | | | | The current version of HTTP/1.1 (RFC 7231) no longer requires confirmation on 301, 302 or 307 status codes, therefore we do not have to ignore redirects for other requests than GET and HEAD. * lisp/url/url-http.el (url-http-parse-headers): Do not ignore 301, 302 and 307 redirects for other requests than GET and HEAD.
* -John Wiegley2016-01-181-2/+2
|\
| * Fix some custom types.Glenn Morris2016-01-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | * lisp/gnus/gnus-fun.el (gnus-x-face-omit-files, gnus-face-omit-files): * lisp/gnus/gnus.el (gnus-valid-select-methods): * lisp/mail/rmail.el (rmail-get-coding-function): * lisp/net/newst-treeview.el (newsticker-groups-filename): * lisp/progmodes/hideif.el (hide-ifdef-exclude-define-regexp): * lisp/textmodes/tildify.el (tildify-space-predicates): * lisp/url/url-tramp.el (url-tramp-protocols): Fix custom types.
* | Merge from origin/emacs-25John Wiegley2016-01-1134-34/+34
|\ \ | |/ | | | | | | | | ef33bc7 Spelling and grammar fixes 9c3dbab Fix copyright years by hand 0e96320 Update copyright year to 2016
| * Update copyright year to 2016Paul Eggert2016-01-0134-34/+34
| | | | | | | | Run admin/update-copyright.
* | Merge emacs-25 into master (using imerge)John Wiegley2015-12-295-20/+28
|\ \ | |/
| * Fix URL auth error messageJose A. Ortega Ruiz2015-12-291-1/+1
| | | | | | | | | | | | | | * lisp/url/url-http.el (url-http-handle-authentication): Make the error message more correct (bug#20069). Copyright-paperwork-exempt: yes
| * Make chunked encoding trailer detection more compliantJames Stout2015-12-281-1/+1
| | | | | | | | | | | | | | | | * lisp/url/url-http.el (url-http-chunked-encoding-after-change-function): Make trailer detection more compliant (bug#16345). Copyright-paperwork-exempt: yes
| * Make relative URL parsing and resolution consistent with RFC 3986 (bug#22044)Alain Schneble2015-12-262-48/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. Backport: (cherry picked from commit b792ecea1715e080ad8e232d3d154b8a25d2edfb)
| * Document 'url-user-agent'.Eli Zaretskii2015-12-262-11/+12
| | | | | | | | | | | | | | | | | | * lisp/url/url-http.el (url-user-agent): Move from here... * lisp/url/url-vars.el (url-user-agent): ...to here. This is to keep all the URL defcustoms in one place, and also have it defined whenever the URL library is loaded. * doc/misc/url.texi (Customization): Document 'url-user-agent'.
| * Allow http://user:pass@foo/ URLs againLars Ingebrigtsen2015-12-251-0/+3
| | | | | | | | | | | | | | | | | | * lisp/url/url-auth.el (url-basic-auth): Allow explicit user/passwords in URLs (bug#19046). Backport: (cherry picked from commit b563715a2db265517d5a77f165a42afa1e233fdd)
| * Autoload url-insert-buffer-contentsSamer Masterson2015-12-251-0/+1
| | | | | | | | | | | | | | | | | | * lisp/url/url-handlers.el: Add autoload cookie so that `package-list-packages' doesn't bug out (bug#21927) (tiny change) Backport: (cherry picked from commit 7a7b5b492ff9929eecd90c4564db6fbf3b192323)
| * Don't store cookies with empty namesLars Ingebrigtsen2015-12-251-35/+36
| | | | | | | | | | | | | | | | | | * lisp/url/url-cookie.el (url-cookie-store): Refuse to store cookies with empty names (bug#21936). Backport: (cherry picked from commit 9f0fd7cb1aec3eb9e2e0f7b8854c30870286d96c)
| * Allow 'browse-url-emacs' visit non-existent URLsEli Zaretskii2015-12-191-2/+9
| | | | | | | | | | | | * lisp/url/url-handlers.el (url-insert-file-contents): Don't signal an error if VISIT is non-nil, to more faithfully emulate the behavior of 'insert-file-contents'. (Bug#22160)
| * Fix docstring quoting problems with ‘ '’Paul Eggert2015-11-173-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | Problem reported by Artur Malabarba in: http://lists.gnu.org/archive/html/emacs-devel/2015-11/msg01513.html Most of these fixes are to documentation; many involve fixing longstanding quoting glitches that are independent of the recent substitute-command-keys changes. The changes to code are: * lisp/cedet/mode-local.el (mode-local-augment-function-help) (describe-mode-local-overload): Substitute docstrings before displaying them. * lisp/emacs-lisp/cl-macs.el (cl--transform-lambda): Quote the generated docstring for later substitution.
| * Backport: * lisp/emacs-lisp/package.el: Fix a decoding issue.Artur Malabarba2015-11-151-18/+24
| | | | | | | | | | | | | | | | | | | | | | * lisp/url/url-handlers.el (url-insert-file-contents): Move some code to `url-insert-buffer-contents'. (url-insert-buffer-contents): New function (package--with-response-buffer): Use `url-insert-buffer-contents'. The previous code had some issues with decoding. Refactoring that function allows us to use the decoding from url-handlers while still treating both sync and async requests the same.
* | IDNA-related fixes for the URL libraryLars Ingebrigtsen2015-12-292-3/+5
| | | | | | | | | | | | | | | | | | * lisp/url/url-http.el (url-http-create-request): IDNA-encode the Host: header. * lisp/url/url-util.el (url-encode-url): Don't hex-encode domain names, but leave them as UTF-8, so that they can be IDNA-encoded later when contacting the host.
* | Make relative URL parsing and resolution consistent with RFC 3986 (bug#22044)Alain Schneble2015-12-262-48/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | Let url use default file modes when copying filesLars Ingebrigtsen2015-12-251-1/+2
| | | | | | | | | | * lisp/url/url-handlers.el (url-copy-file): Use default file modes when copying files (bug#11400).
* | Doc fix for url-httpDevon Sean McCullough2015-12-251-6/+9
| | | | | | | | | | * lisp/url/url-http.el (url-http): Document better return values (bug#13187) (tiny change)
* | Allow http://user:pass@foo/ URLs againLars Ingebrigtsen2015-12-251-0/+3
| | | | | | | | | | * lisp/url/url-auth.el (url-basic-auth): Allow explicit user/passwords in URLs (bug#19046).
* | Autoload url-insert-buffer-contentsSamer Masterson2015-12-251-0/+1
| | | | | | | | | | * lisp/url/url-handlers.el: Add autoload cookie so that `package-list-packages' doesn't bug out (bug#21927) (tiny change)
* | Don't store cookies with empty namesLars Ingebrigtsen2015-12-251-35/+36
| | | | | | | | | | * lisp/url/url-cookie.el (url-cookie-store): Refuse to store cookies with empty names (bug#21936).
* | * lisp/emacs-lisp/package.el: Fix a decoding issueArtur Malabarba2015-11-151-18/+24
|/ | | | | | | | | | | (package--with-response-buffer): Use `url-insert-buffer-contents'. The previous code had some issues with decoding. Refactoring that function allows us to use the decoding from url-handlers while still treating both sync and async requests the same. * lisp/url/url-handlers.el (url-insert-file-contents): Move some code to `url-insert-buffer-contents'. (url-insert-buffer-contents): New function
* Don't require default-directory to end with a slashDmitry Gutov2015-10-291-1/+1
| | | | | | | | | | | | | | * doc/lispref/files.texi (Magic File Names): Document the change in unhandled-file-name-directory. * lisp/url/url-handlers.el (url-handler-unhandled-file-name-directory): Update accordingly. * src/buffer.c (default-directory): Update the docsting. * src/fileio.c (unhandled-file-name-directory): Default to calling `file-name-as-directory' (http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg02294.html).
* Do not include authorization header in an HTTP redirectThomas Fitzsimmons2015-09-231-1/+7
| | | | | | * lisp/url/url-http.el (url-http-parse-headers): Do not automatically include Authorization header in redirect. (Bug#21350)
* Backslash cleanup in Elisp source filesPaul Eggert2015-09-174-6/+6
| | | | | | | | | | | This patch should not change behavior. It typically omits backslashes where they are redundant (e.g., in the string literal "^\$"). In a few places, insert backslashes where they make regular expressions clearer: e.g., replace "^\*" (equivalent to "^*") with "^\\*", which has the same effect as a regular expression. Also, use ‘\ %’ instead of ‘\%’ when avoiding confusion with SCCS IDs, and similarly use ‘\ $’ instead of ‘\$’ when avoiding confusion with RCS IDs, as that makes it clearer that the backslash is intended.
* Fix some more docstring etc. quoting problemsPaul Eggert2015-09-032-4/+4
| | | | | | | | | | | | | | | | | | | Mostly these fixes prevent the transliteration of apostrophes that should stay apostrophes. Also, prefer curved quotes in Bahá’í proper names, as that’s the preferred Bahá’í style and these names are chock-full of non-ASCII characters anyway. * lisp/emacs-lisp/eieio-core.el (eieio-defclass-autoload) (eieio-defclass-internal): * lisp/emacs-lisp/eieio.el (defclass): * lisp/hi-lock.el (hi-lock-mode): Don’t transliterate Lisp apostrophes when generating a doc string or diagnostic. * lisp/international/mule-diag.el (list-coding-systems-1): * lisp/international/ogonek.el (ogonek-jak, ogonek-how): * lisp/mail/sendmail.el (sendmail-query-user-about-smtp): * lisp/vc/ediff-mult.el (ediff-redraw-registry-buffer): * lisp/vc/ediff-ptch.el (ediff-fixup-patch-map): Substitute quotes before putting them in the help buffer.
* Quoting fixes in lisp mail, mh-e, net, urlPaul Eggert2015-08-311-5/+5
| | | | | | | | | | | | | | * lisp/mail/emacsbug.el (report-emacs-bug) (report-emacs-bug-hook): Use straight quotes in outgoing email, * lisp/mail/feedmail.el (feedmail-message-action-help-blat): * lisp/mail/rmail.el (rmail-unknown-mail-followup-to): * lisp/mail/rmailout.el (rmail-output-read-file-name): * lisp/net/imap.el (imap-interactive-login): * lisp/net/tls.el (open-tls-stream): * lisp/url/url-auth.el (url-register-auth-scheme): Respect ‘text-quoting-style’ in diagnostics. * lisp/mh-e/mh-e.el (mh-sortm-args): Quote docstring example using text quotes, not as a Lisp quote.
* Don't quote symbols 'like-this' in docstrings etc.Paul Eggert2015-08-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * admin/unidata/uvs.el (uvs-insert-fields-as-bytes): * lisp/allout-widgets.el (allout-widgets-count-buttons-in-region): * lisp/allout.el (allout-add-resumptions, allout-mode): * lisp/calculator.el (calculator-operators): * lisp/cedet/data-debug.el (dd-propertize): * lisp/cedet/ede/proj-prog.el (ede-proj-target-makefile-program): * lisp/cedet/semantic/analyze/debug.el: (semantic-analyzer-debug-global-miss-text): * lisp/cedet/semantic/lex-spp.el: (semantic-lex-spp-replace-or-symbol-or-keyword): * lisp/cedet/semantic/symref.el: (semantic-symref-cleanup-recent-buffers-fcn): * lisp/cedet/semantic/tag.el (semantic-tag-class): * lisp/cedet/srecode/el.el (srecode-semantic-handle-:el-custom): * lisp/gnus/nnmairix.el (nnmairix-propagate-marks-upon-close): * lisp/gnus/pop3.el (pop3-authentication-scheme): * lisp/help-fns.el (describe-function-orig-buffer): * lisp/imenu.el (imenu--history-list): * lisp/mail/feedmail.el (feedmail-confirm-outgoing) (feedmail-display-full-frame, feedmail-deduce-bcc-where) (feedmail-queue-default-file-slug) (feedmail-queue-buffer-file-name): * lisp/net/mairix.el (mairix-searches-mode-map): * lisp/net/newst-backend.el (newsticker-retrieval-method) (newsticker-auto-mark-filter-list): * lisp/obsolete/vi.el (vi-mode): * lisp/progmodes/cc-engine.el (c-literal-type): * lisp/progmodes/cpp.el (cpp-face): * lisp/progmodes/ebrowse.el (ebrowse-electric-list-looper): * lisp/progmodes/elisp-mode.el (elisp--xref-make-xref): * lisp/progmodes/pascal.el (pascal-auto-lineup): * lisp/progmodes/prog-mode.el (prog-widen): * lisp/progmodes/verilog-mode.el (verilog-regexp-words) (verilog-auto-lineup, verilog-auto-reset-widths) (verilog-auto-arg-format, verilog-auto-inst-template-numbers): * lisp/textmodes/flyspell.el (flyspell-maybe-correct-transposition) (flyspell-maybe-correct-doubling): * lisp/textmodes/table.el (table-justify, table-justify-cell) (table-justify-row, table-justify-column, table-insert-sequence) (table--justify-cell-contents): * lisp/url/url-auth.el (url-get-authentication): * lisp/window.el (display-buffer-record-window): * lisp/xml.el (xml-parse-file, xml-parse-region): * src/gfilenotify.c (Fgfile_add_watch): Don't quote symbols with apostrophes in doc strings. Use asymmetric quotes instead. * lisp/cedet/semantic/complete.el (semantic-displayor-show-request): Likewise for symbol in diagnostic. * lisp/image.el (image-extension-data): * lisp/register.el (frame-configuration-to-register): * src/buffer.c (syms_of_buffer): Remove bogus apostrophes after symbols. * lisp/thumbs.el (thumbs-conversion-program): Quote Lisp string values using double-quotes, not apostrophes.
* * lisp/url/url-handlers.el (url-file-name-completion)Glenn Morris2015-05-111-2/+2
| | | | (url-file-name-all-completions): Silence compiler.
* Quieten compilation, eg in --without-x builds.Glenn Morris2015-05-081-0/+2
| | | | | | | | | | | | | | | * 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.
* Rename ChangeLogs for gitlog-to-changelogPaul Eggert2015-04-071-0/+0
| | | | | | | | | | | | | This patch was implemented via the following shell commands: find * -name ChangeLog | sed 's,.*,git mv & &.1, s, lisp/ChangeLog\.1$, lisp/ChangeLog.17, s, lisp/erc/ChangeLog\.1$, lisp/erc/ChangeLog.09, s, lisp/gnus/ChangeLog\.1$, lisp/gnus/ChangeLog.3, s, lisp/mh-e/ChangeLog\.1$, lisp/mh-e/ChangeLog.2, s, src/ChangeLog\.1$, src/ChangeLog.13,' | sh git commit -am"[this commit message]"
* (url-insert-file-contents): Set buffer-file-coding-systemStefan Monnier2015-03-152-5/+16
| | | | | | | | Fixes: debbugs:20010 * lisp/url/url-handlers.el (url-insert-file-contents): Call after-insert-file-set-coding like insert-file-contents, to set buffer-file-coding-system.
* # ChangeLog fixGlenn Morris2015-02-201-0/+5
|