summaryrefslogtreecommitdiff
path: root/lisp/url/url-handlers.el
Commit message (Collapse)AuthorAge
* ; Add 2023 to copyright years.Eli Zaretskii2023-01-01
|
* Kill URL buffer in url-insert-file-contents-literallyLars Ingebrigtsen2022-10-02
| | | | | * lisp/url/url-handlers.el (url-insert-file-contents-literally): Kill the URL buffer after use.
* Fix coding system problems in gnus-read-ephemeral-bug-groupLars Ingebrigtsen2022-10-02
| | | | | | | | | * lisp/gnus/gnus-group.el (gnus-read-ephemeral-bug-group): Don't bind coding system variables, because that leads to loading other files (like cookie files) using that coding system (bug#58227). * lisp/url/url-handlers.el (url-insert-file-literally): New function. (url-insert): Allow forcing no-decode.
* Merge from origin/emacs-28Eli Zaretskii2022-01-01
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 836be7a112 ; * etc/refcards/ru-refcard.tex: Update Copyright year. 86cbc6ee4a * lisp/net/tramp-sh.el: Adapt copyright year ebe8772f65 ; Minor fixes related to copyright years 23c1ee6989 ; * test/manual/etags/ETAGS.good_N: Adjust to copyright ye... 8d3fc7ec89 * src/xfaces.c (face_for_font): Make 'hash' be uintptr_t. 19dcb237b5 ; Add 2022 to copyright years. # Conflicts: # etc/NEWS # etc/refcards/ru-refcard.tex # lib/cdefs.h # lisp/erc/erc-dcc.el # lisp/erc/erc-imenu.el # lisp/erc/erc-replace.el # lisp/image-dired.el # lisp/progmodes/xref.el # m4/alloca.m4 # m4/byteswap.m4 # m4/errno_h.m4 # m4/getopt.m4 # m4/gnulib-common.m4 # m4/inttypes.m4 # m4/stddef_h.m4 # m4/stdint.m4 # m4/sys_socket_h.m4
| * ; Add 2022 to copyright years.Eli Zaretskii2022-01-01
| |
* | * lisp/url/url-handlers.el (directory-files): Adapt ARGS list.Michael Albinus2021-12-25
|/
* ; Minor checkdoc fixes in url/*.elStefan Kangas2021-09-21
|
* Mention url-handler-mode in the Emacs manualLars Ingebrigtsen2021-08-12
| | | | | | | * doc/emacs/misc.texi (Browse-URL): Mention url-handler-mode (bug#30389). * lisp/url/url-handlers.el (url-handler-mode): Improve doc string.
* Update copyright year to 2021Paul Eggert2021-01-01
| | | | Run "TZ=UTC0 admin/update-copyright".
* Fix some over-wide docstringsStefan Kangas2020-12-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/cedet/semantic/analyze/refs.el (semantic-analyze-refs-proto) (semantic-analyze-refs-impl): * lisp/cedet/semantic/symref.el (semantic-symref-hit-to-tag-via-buffer): * lisp/emacs-lisp/chart.el (chart-axis-draw): * lisp/emacs-lisp/cl-macs.el (cl-defstruct, cl-loop): * lisp/emacs-lisp/eieio-core.el (eieio--add-new-slot): * lisp/eshell/em-unix.el (eshell/info): * lisp/gnus/deuglify.el (gnus-outlook-rearrange-article): * lisp/gnus/gnus-agent.el (gnus-agent-read-article-number): * lisp/gnus/gnus-util.el (gnus-put-overlay-excluding-newlines) (gnus-put-text-property-excluding-newlines): * lisp/gnus/message.el (message-sort-headers): * lisp/gnus/nntp.el (nntp-with-open-group) (nntp-with-open-group-function): * lisp/gnus/nnvirtual.el (nnvirtual-create-mapping): * lisp/mail/feedmail.el (feedmail-fiddle-list-of-fiddle-plexes) (feedmail-queue-reminder, feedmail-mail-send-hook-splitter): * lisp/net/dictionary.el (dictionary-do-matching): * lisp/obsolete/longlines.el (longlines-auto-wrap): * lisp/org/ob-sql.el (org-babel-sql-dbstring-vertica): * lisp/org/ol-bbdb.el (org-bbdb-date-list): * lisp/progmodes/cc-cmds.el (c-mark-function): * lisp/progmodes/cperl-mode.el (cperl-add-tags-recurse) (cperl-add-tags-recurse-noxs-fullpath) (cperl-add-tags-recurse-noxs): * lisp/progmodes/etags.el (tags-search): * lisp/progmodes/verilog-mode.el (verilog-delete-auto-buffer) (verilog-auto-re-search-do, verilog-expand-vector-internal): * lisp/textmodes/reftex-parse.el (reftex-init-section-numbers): * lisp/textmodes/reftex-toc.el (reftex-toc-load-all-files-for-promotion): * lisp/textmodes/sgml-mode.el (html-mode): * lisp/textmodes/table.el (table--transcoord-cache-to-table) (table--transcoord-table-to-cache, table--remove-eol-spaces) (table--region-in-cell-p, table-goto-bottom-right-corner) (table-split-cell-horizontally): * lisp/url/url-handlers.el (url-insert): * lisp/vc/ediff-util.el (ediff-inferior-compare-regions): Fix doc strings to not exceed 80-column limits. (Bug#44858)
* Remove some compat code from url-handlers.elLars Ingebrigtsen2020-08-12
| | | | | * lisp/url/url-handlers.el (url-insert-buffer-contents): Remove check for function that's always defined in Emacs.
* Update copyright year to 2020Paul Eggert2020-01-01
| | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
* Fix url-copy-file argument handlingBasil L. Contovounesios2019-05-23
| | | | | | | | | | | | | | | | | For discussion, see the following thread: https://lists.gnu.org/archive/html/emacs-devel/2019-05/msg00500.html * lisp/url/url-handlers.el: Update autoloaded docstrings. Quote function symbols as such. (url-handler-regexp): Make grouping construct shy. (url-file-handler, url-insert-buffer-contents) (url-handlers-create-wrapper, url-handlers-set-buffer-mode): Simplify. (url-file-handler-identity): Clarify calling convention. (file-name-absolute-p, url-file-local-copy): Mark ignored arguments as such. (url-handler-directory-file-name): Prefer string comparison over regexp match where either will do. (url-copy-file): Handle integer as third argument as per copy-file.
* * lisp/emacs-lisp/package.el: Fix decoding of downloaded filesStefan Monnier2019-05-18
| | | | | | | | | | | | | | | | | | | | | | | | | | This is a different fix for bug#34909, which should also fix bug#35739. Our downloading code used to automatically decode the result according to the usual heuristics for files. This caused problems when we later needed to save the data in a file that needed to be byte-for-byte equal to the original in order to pass the signature verification, especially because we didn't keep track of which coding-system was used to decode the data. (package--unless-error): New macro extracted from package--with-response-buffer-1, so that we can specify edebug and indent specs. (package--with-response-buffer-1): Use it. More importantly, change code so it runs `body` in a unibyte buffer with undecoded data. (package--download-one-archive): Don't encode with utf-8 since the data is not decoded yet. (describe-package-1): Explicitly decode the readem.txt files here. * lisp/url/url-handlers.el (url-insert-file-contents): Use it. (url-insert): Don't decode if buffer is unibyte. * lisp/url/url-http.el (url-http--insert-file-helper): New function, extracted from url-insert-file-contents.
* Merge from origin/emacs-26Glenn Morris2019-03-20
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 24b6e6e (origin/emacs-26) * etc/AUTHORS: Update. 2f22a17 * ; ChangeLog.3 update 0f523de Improve indexing of the user manual bd5795e Fix url-copy-file arglist eaa188a ; * admin/notes/bugtracker: Minor additions and updates. 5ed05fb Fix downloading updates for packages with non-ASCII descriptions e9f2d1f * etc/NEWS: Remove temporary markers. 24fc133 * doc/misc/cc-mode.texi (Config Basics): in @itemize, @asis -... 0f325d1 Don't clobber 'comint-input-autoexpand' in 'read-shell-command' bc75589 Document restrictions when setting window margins, fringes or... cc4cebf More improvements for 'read-buffer's doc string d026d9a * lisp/progmodes/cc-defs.el: Update c-version to 5.33.2 for E... 5dbf08b * src/minibuf.c (Fread_buffer): Minor doc fixes. (Bug#34749) # Conflicts: # etc/NEWS # lisp/url/url-handlers.el
| * Fix url-copy-file arglistBasil L. Contovounesios2019-03-19
| | | | | | | | | | | | * lisp/url/url-handlers.el: Silence byte-compiler. (url-copy-file): Add 6th argument following change to copy-file in 2012-12-16T19:22:27+01:00!romain@orebokech.com. (bug#4410)
* | Merge from origin/emacs-26Paul Eggert2018-12-31
|\| | | | | | | | | | | 2fcf2df Fix copyright years by hand 26bed8b Update copyright year to 2019 2814292 Fix value of default frame height. (Bug#33921)
| * Update copyright year to 2019Paul Eggert2019-01-01
| | | | | | | | Run 'TZ=UTC0 admin/update-copyright $(git ls-files)'.
* | Optionally add argument description in minor mode DOC (bug#10754)John Shahid2018-07-01
| | | | | | | | | | | | | | | | | | | | | | Add a paragraph to minor mode's docstring documenting the mode's ARG usage if the supplied docstring doesn't already contain the word "ARG". * easy-mmode.el (easy-mmode--arg-docstring): New const. (easy-mmode--arg-docstring): New function. (define-minor-mode): Use them. Remove argument documentation from all minor modes.
* | * lisp/url/url-handlers.el: No need for subr-x at run-time.Glenn Morris2018-03-18
| |
* | * lisp/url/url-handlers.el: Require subr-x.Nicolas Petton2018-03-18
| |
* | Add URL handler for file-name-directory (Bug#30444)Nicolas Petton2018-03-18
| | | | | | | | | | | | | | | | * lisp/url/url-handlers.el (url-handler-file-name-directory): New function which handles special cases for `file-name-directory' and URLs. * test/lisp/url/url-handlers-test.el: New file. Add tests for `url-handler-file-name-directory'.
* | * lisp/url/url-handlers.el (mm-charset-to-coding-system): Declare.Glenn Morris2018-02-28
|/
* Update copyright year to 2018Paul Eggert2018-01-01
| | | | Run admin/update-copyright.
* Prefer HTTPS to FTP and HTTP in documentationPaul Eggert2017-09-13
| | | | | | | | | | | | | Most of this change is to boilerplate commentary such as license URLs. This change was prompted by ftp://ftp.gnu.org's going-away party, planned for November. Change these FTP URLs to https://ftp.gnu.org instead. Make similar changes for URLs to other organizations moving away from FTP. Also, change HTTP to HTTPS for URLs to gnu.org and fsf.org when this works, as this will further help defend against man-in-the-middle attacks (for this part I omitted the MS-DOS and MS-Windows sources and the test tarballs to keep the workload down). HTTPS is not fully working to lists.gnu.org so I left those URLs alone for now.
* Merge from origin/emacs-25Paul Eggert2017-01-01
|\ | | | | | | | | 2e2a806 Fix copyright years by hand 5badc81 Update copyright year to 2017
| * Update copyright year to 2017Paul Eggert2016-12-31
| | | | | | | | Run admin/update-copyright.
* | New error file-missingPaul Eggert2016-10-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a recently-introduced bug in delete-directory, where the code assumes the C locale when determining whether a file-error corresponds to a missing file (Bug#24714). * doc/lispref/errors.texi (Standard Errors): * doc/lispref/files.texi (Changing Files): * etc/NEWS: Document this. * doc/lispref/loading.texi (How Programs Do Loading): Say "a file-error" rather than "the error file-error" since it might be a file-missing now. * lisp/emacs-lisp/bytecomp.el (byte-compile-file): * lisp/epa-file.el (epa-file--find-file-not-found-function): (epa-file-insert-file-contents, epa-file-write-region): * lisp/ffap.el (find-file-at-point, dired-at-point): * lisp/jka-compr.el (jka-compr-insert-file-contents) (jka-compr-insert-file-contents): * lisp/net/ange-ftp.el (ange-ftp-barf-if-not-directory) (ange-ftp-insert-file-contents, ange-ftp-copy-file-internal): * lisp/progmodes/etags.el (visit-tags-table): * lisp/url/url-handlers.el (url-copy-file): * src/fileio.c (report_file_errno): Signal file-missing if appropriate. * lisp/epa-file.el (epa-file-insert-file-contents): * lisp/jka-compr.el (jka-compr-insert-file-contents): Don't assume file-error is a leaf in the error hierarchy. * lisp/files.el (files--force): * lisp/gnus/nnmaildir.el (nnmaildir--enoent-p): * lisp/jka-compr.el (jka-compr-insert-file-contents): Use file-missing to detect whether the file is missing. * lisp/url/url-handlers.el (url-copy-file): Signal file-already-exists if appropriate. * src/fileio.c (syms_of_fileio): Define file-missing. 2016-10-18 Paul Eggert <eggert@cs.ucla.edu>
* | Merge from origin/emacs-25John Wiegley2016-01-11
|\| | | | | | | | | | | ef33bc7 Spelling and grammar fixes 9c3dbab Fix copyright years by hand 0e96320 Update copyright year to 2016
| * Update copyright year to 2016Paul Eggert2016-01-01
| | | | | | | | Run admin/update-copyright.
* | Merge emacs-25 into master (using imerge)John Wiegley2015-12-29
|\|
| * Autoload url-insert-buffer-contentsSamer Masterson2015-12-25
| | | | | | | | | | | | | | | | | | * 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)
| * Allow 'browse-url-emacs' visit non-existent URLsEli Zaretskii2015-12-19
| | | | | | | | | | | | * 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)
| * Backport: * lisp/emacs-lisp/package.el: Fix a decoding issue.Artur Malabarba2015-11-15
| | | | | | | | | | | | | | | | | | | | | | * 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.
* | Let url use default file modes when copying filesLars Ingebrigtsen2015-12-25
| | | | | | | | | | * lisp/url/url-handlers.el (url-copy-file): Use default file modes when copying files (bug#11400).
* | Autoload url-insert-buffer-contentsSamer Masterson2015-12-25
| | | | | | | | | | * lisp/url/url-handlers.el: Add autoload cookie so that `package-list-packages' doesn't bug out (bug#21927) (tiny change)
* | * lisp/emacs-lisp/package.el: Fix a decoding issueArtur Malabarba2015-11-15
|/ | | | | | | | | | | (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-29
| | | | | | | | | | | | | | * 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).
* Backslash cleanup in Elisp source filesPaul Eggert2015-09-17
| | | | | | | | | | | 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.
* * lisp/url/url-handlers.el (url-file-name-completion)Glenn Morris2015-05-11
| | | | (url-file-name-all-completions): Silence compiler.
* (url-insert-file-contents): Set buffer-file-coding-systemStefan Monnier2015-03-15
| | | | | | | | 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.
* Update copyright year to 2015Paul Eggert2015-01-01
| | | | Run admin/update-copyright.
* Rename 24.5 to 25.1Stefan Monnier2014-09-29
| | | | Except where we expect to backport the corresponding change.
* Remove remaining mentions of VMS as a hostReuben Thomas2014-08-07
| | | | | | | | | | | | | | | | | * notes/exit-value: Remove specific discussion of VMS. * doc/emacs/programs.texi (Program Modes): Don't advertise VMS DCL support any more. * doc/misc/ediff.texi (Merging and diff3): Don't mention lack of support for VMS diff, we no longer support VMS. * lisp/progmodes/ada-mode.el: * lisp/net/tramp.el (tramp-handle-file-symlink-p): * lisp/net/tramp-ftp.el (tramp-ftp-file-name-handler): Remove a comment about VMS, which we no longer support. * lisp/progmodes/ada-xref.el (ada-xref-current): Remove mention of VMS, and fix a FIXME, using convert-standard-filename in place of removed ada-convert-file-name. * lisp/url/url-handlers.el: Remove a comment about VMS, which we no longer support.
* Merge from emacs-24; up to 2014-06-11T19:33:14Z!rgm@gnu.orgGlenn Morris2014-06-25
|\
| * Fix last changeLeo Liu2014-06-26
| |
| * * lisp/url/url-handlers.el (url-http-parse-response): Remove unused autoload.Leo Liu2014-06-26
| | | | | | | | | | | | | | | | | | (url-insert-file-contents): Condition on url-http-response-status for the HTTP/S specific part. * lisp/url/url-http.el (url-http-end-of-headers): Remove duplicate defvar. Fixes: debbugs:17549
* | Merge from emacs-24; up to 2014-05-12T06:15:47Z!rgm@gnu.orgGlenn Morris2014-05-11
|\|
| * * url-handlers.el (url-file-handler-load-in-progress): New defvar.Michael Albinus2014-05-09
| | | | | | | | (url-file-handler): Use it, in order to avoid recursive load.
* | Pass some protocols to Tramp, like ssh and friends.Michael Albinus2014-04-01
|/ | | | | | | | * url-tramp.el: New file. * url-handlers.el (url-handler-regexp): Add ssh, scp, rsync and telnet. Add :version. (url-file-handler): Call `url-tramp-file-handler' if appropriate.