summaryrefslogtreecommitdiff
path: root/lisp/net
Commit message (Collapse)AuthorAgeFilesLines
...
* * lisp/net/ange-ftp.el (ange-ftp-skip-msgs): Further support ftp-ssl.Michael Albinus2017-08-161-1/+7
|
* * lisp/net/ange-ftp.el (ange-ftp-skip-msgs): Support ftp-ssl.Michael Albinus2017-08-141-0/+1
|
* Be consistent in spelling 'ok-if-already-exists'.Paul Eggert2017-08-131-5/+5
|
* Remove feeds with dead uris from newsticker--raw-url-list-defaultsUlf Jasper2017-08-131-7/+1
| | | | | * lisp/net/newst-backend.el (newsticker--raw-url-list-defaults): Remove feeds with dead uris.
* Fix uri of Emacs WikiUlf Jasper2017-08-131-1/+1
| | | | | * lisp/net/newst-backend.el (newsticker--raw-url-list-defaults): Fix uri of Emacs Wiki. (Bug#27981)
* ; Do not mention ange-ftp-lovers ML in ange-ftp.el (Bug#28075)Michael Albinus2017-08-131-27/+2
|
* Implement EXCL of write-region for TrampMichael Albinus2017-08-125-54/+47
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/ange-ftp.el (ange-ftp-write-region): * lisp/net/tramp-adb.el (tramp-adb-handle-write-region) * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-write-region): * lisp/net/tramp-sh.el (tramp-sh-handle-write-region) * lisp/net/tramp-smb.el (tramp-smb-handle-write-region): Implement MUSTBENEW. * lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file) * lisp/net/tramp-sh.el (tramp-sh-handle-make-symbolic-link) (tramp-sh-handle-add-name-to-file) (tramp-do-copy-or-rename-file) * lisp/net/tramp-smb.el (tramp-smb-handle-make-symbolic-link): Adapt error message for `file-already-exists'. * src/lisp.h: * src/eval.c (call8): New function. * src/fileio.c (write_region): Pass also lockname and mustbenew to the file name handler. * test/lisp/net/tramp-tests.el (tramp-test10-write-region): Add tests for MUSTBENEW.
* Do some cleanup in mailcap.elMark Oteiza2017-08-071-45/+25
| | | | | | | | | | * lisp/net/mailcap.el: Use lexical-binding. (mailcap--set-user-mime-data, mailcap-possible-viewers): Use pcase destructuring. (mailcap-mime-data): Remove some entries for ancient functions. (mailcap-parse-mailcaps, mailcap-mime-info): Nix single-branch ifs. (mailcap-parse-mimetype-file): Just use append. (mailcap-command-p): Remove unused function.
* Ensure that we parse images right in shr.elGrégoire Jadi2017-07-241-0/+1
| | | | | | * lisp/net/shr.el (shr-image-fetched): Go back to the beginning of the buffer before trying to parse the image fetched.
* Fix image/svg+xml display in shrLars Ingebrigtsen2017-07-231-1/+1
| | | | | | * lisp/net/shr.el (shr-put-image): Display svg images as svg (bug#27799). I suspect the previous change was checked in by accident in conjuction with some other svg changes.
* Stylistic changes in tramp-cache.elMichael Albinus2017-07-201-4/+4
| | | | | | * test/lisp/net/tramp-cache.el (tramp-get-file-property) (tramp-set-file-property): Use `bound-and-true-p'. Add counter variables to `tramp-cache-unload-hook'.
* Make tramp unloading handle debug counter variablesGlenn Morris2017-07-201-2/+10
| | | | | * lisp/net/tramp-cache.el (tramp-get-file-property) (tramp-set-file-property): Add counter variables to tramp-unload-hook.
* Use `with-demoted-errors' in TrampMichael Albinus2017-07-102-2/+17
| | | | | | * lisp/net/tramp.el (tramp-with-demoted-errors): New defmacro. * lisp/net/tramp-sh.el (tramp-sh-handle-vc-registered): Use it.
* Add Quick Start Guide to Tramp manualMichael Albinus2017-07-101-3/+3
| | | | | | | | | * doc/misc/tramp.texi: Use consequently "@value{tramp}" and "MS Windows". (Quick Start Guide): New node. * doc/misc/trampver.texi: * lisp/net/trampver.el: Change version to "2.3.3-pre".
* Suppress timers in TrampMichael Albinus2017-07-051-3/+1
| | | | | | | | | * lisp/net/tramp.el (tramp-file-name-handler): Don't trigger timers. * test/lisp/net/tramp-tests.el (tramp-test36-asynchronous-requests): Trigger timers. (tramp-test37-recursive-load, tramp-test38-remote-load-path): Set `default-directory' to a trustworthy value.
* Split shr-copy-url dwim behavior into separate functions (Bug#26826)Noam Postavsky2017-07-021-35/+51
| | | | | | | | | | * lisp/net/shr.el (shr-url-at-point, shr-probe-url) (shr-probe-and-copy-url, shr-maybe-probe-and-copy-url): New functions, split out from `shr-copy-url'. (shr-copy-url): Only copy the url, don't fetch it. (shr-map): Bind 'w' and 'u' to `shr-maybe-probe-and-copy-url', which has the same behavior as the old `shr-copy-url'. * etc/NEWS: Announce changes.
* Make eww-search-words prompt for query if nothing selectedAlex Branham2017-07-021-4/+12
| | | | | | | | * lisp/net/eww.el (eww-search-words): Make eww-search-words prompt the user for a search query if the region is inactive or if the region is just whitespace. Copyright-paperwork-exempt: yes
* Release Tramp 2.3.2Michael Albinus2017-06-301-3/+3
| | | | | | | | | | | * doc/misc/tramp.texi (Android shell setup): Show default file name. Structure section. * doc/misc/trampver.texi: * lisp/net/trampver.el: Change version to "2.3.2". * test/lisp/net/tramp-tests.el (tramp-test-temporary-file-directory): Offer home directory for mock method if it doesn't exist.
* Improve timer handling when Tramp accepts outputMichael Albinus2017-06-293-62/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-compat.el: Avoid compiler warning. * lisp/net/tramp-sh.el (tramp-sh-file-name-handler): Remove lock machinery. * lisp/net/tramp.el (tramp-locked, tramp-locker): Move up. (tramp-file-name-handler): Add lock machinery from `tramp-sh-file-name-handler'. Allow timers to run. (tramp-accept-process-output): Remove nasty workaround. Suppress timers. * test/lisp/net/tramp-tests.el (shell-command-sentinel): Suppress run in tests. (tramp--instrument-test-case-p): New defvar. (tramp--instrument-test-case): Use it in order to allow nested calls. (tramp--test-message, tramp--test-backtrace): New defsubst, will be used for occasional test instrumentation. (tramp-test00-availability, tramp-test31-vc-registered): Use them. (tramp-test28-shell-command) (tramp--test-shell-command-to-string-asynchronously): Suppress nasty messages. Don't overwrite sentinel. (tramp-test36-asynchronous-requests): Rewrite major parts. Expect :passed.
* Fix Android 6/7 problems in TrampMichael Albinus2017-06-251-21/+28
| | | | | | | | * lisp/net/tramp-adb.el (tramp-adb-ls-toolbox-regexp): Fix link part. (tramp-adb-handle-directory-files-and-attributes) (tramp-adb-handle-file-name-all-completions): Insert "." and ".." only when needed. (tramp-adb-get-ls-command): Force one column output for toybox.
* * lisp/net/html2text.el: Move to obsolete/.Stefan Monnier2017-06-241-461/+0
|
* * lisp/net/shr.el (shr-fill-text): Actually fill the text. (Bug#27399)Glenn Morris2017-06-221-0/+1
|
* Fix load-path issue when it contains remote directoriesMichael Albinus2017-06-161-1/+26
| | | | | | | | | | * lisp/net/tramp.el (tramp-file-name-handler): Use `autoloadp'. (tramp-use-absolute-autoload-file-names): New defun. Call it after loading tramp.el. * test/lisp/net/tramp-tests.el (tramp-test38-remote-load-path): New test. (tramp-test39-unload): Rename.
* Fix Bug#27315Michael Albinus2017-06-143-14/+15
| | | | | | | | | | | | | | | * lisp/net/tramp-cache.el (tramp-cache-read-persistent-data): New defvar. (top): Use it. * lisp/net/tramp.el (tramp-handle-file-name-case-insensitive-p): Check for connected, not for connectable. (Bug#27315) (tramp-process-actions): * lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection): Use `tramp-cache-read-persistent-data'. * test/lisp/net/tramp-tests.el (top): Set also `tramp-cache-read-persistent-data'.
* lisp/net/soap-client.el: Bump version to 3.1.3Thomas Fitzsimmons2017-06-131-2/+2
| | | | | * lisp/net/soap-client.el: Bump version to 3.1.3. (soap-name-p): Fix checkdoc issue.
* Fix an HTTP encoding error in soap-client.elAlex Harsanyi2017-06-131-2/+5
| | | | | * lisp/net/soap-client.el (soap-invoke-internal): Make SOAPAction header a UTF-8 encoded string.
* * lisp/net/tramp-sh.el (tramp-set-file-uid-gid): Do not handle locally on w32.Michael Albinus2017-06-131-4/+4
|
* ; Instrument `tramp-handle-file-name-case-insensitive-p' for debuggingMichael Albinus2017-06-121-0/+1
|
* Handle port and domain in Tramp's password cacheMichael Albinus2017-06-124-17/+48
| | | | | | | | | | | | | * doc/misc/tramp.texi (Password handling): Explain port and domain handling in authinfo. * lisp/net/tramp.el (tramp-process-actions, tramp-clear-passwd): * lisp/net/tramp-gvfs.el (tramp-gvfs-handler-askpassword): * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band) (tramp-maybe-open-connection): * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory) (tramp-smb-handle-file-acl, tramp-smb-handle-set-file-acl) (tramp-smb-maybe-open-connection): Handle also domain and port.
* Merge from origin/emacs-25Glenn Morris2017-06-111-1/+21
|\ | | | | | | | | | | eaa00584ceb Improve documentation of 'gnutls-verify-error' 908498cc01b ; etc/PROBLEMS: Describe GTK-related crashes on elementar... 741daec617e ; Describe the problem with ksh when resizing shell window
| * Improve documentation of 'gnutls-verify-error'Eli Zaretskii2017-05-091-1/+21
| | | | | | | | | | * lisp/net/gnutls.el (gnutls-verify-error): Improve and expand doc string. (Bug#26845)
* | Some further improvements for tramp-gvfs.elMichael Albinus2017-06-111-34/+51
| | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-expand-file-name) (tramp-gvfs-get-file-attributes) (tramp-gvfs-maybe-open-connection): Handle davs? properly. (tramp-gvfs-handler-askquestion): Improve `yes-or-no-p' prompt. Show question also in batch mode. Cache result. * test/lisp/net/tramp-tests.el (tramp-test24-file-name-completion): Support completion for host names and ports.
* | Fix domain port and handling in tramp-gvfs.elMichael Albinus2017-06-102-58/+54
| | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-gvfs.el (tramp-gvfs-dbus-byte-array-to-string): Return nil if BYTE-ARRAY is nil. (tramp-gvfs-url-file-name, tramp-gvfs-handler-mounted-unmounted) (tramp-gvfs-connection-mounted-p, tramp-gvfs-mount-spec): Fix domain and port handling. * lisp/net/tramp.el (tramp-handle-file-name-case-insensitive-p): Ignore errors.
* | * lisp/net/tramp-sh.el (tramp-maybe-open-connection): Fix port handling.Michael Albinus2017-06-071-7/+1
| |
* | Fix error in Tramp rsync methodMichael Albinus2017-06-051-1/+1
| | | | | | | | | | * lisp/net/tramp-sh.el (tramp-methods) <rsync>: Add "-c" argument. Otherwise, `tramp-test10-write-region' could fail.
* | Some tweaks, almost all for Tramp adb methodMichael Albinus2017-05-284-67/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-adb.el (tramp-adb-parse-device-names): Use `make-tramp-file-name'. (tramp-adb-get-device): Use `tramp-file-name-port-or-default'. (tramp-adb-maybe-open-connection): Set "prompt" property. (tramp-adb-wait-for-output): Use it. * lisp/net/tramp-cache.el (tramp-cache-print): Use `elt'. (tramp-dump-connection-properties): Check also that there are properties to be saved. Don't save "started" property of "ftp" method. * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-expand-file-name): Use `make-tramp-file-name'. * lisp/net/tramp.el (tramp-remote-file-name-spec-regexp): Host could be empty. (tramp-file-name-port-or-default): New defun. (tramp-dissect-file-name): Simplify `make-tramp-file-name' call. (tramp-handle-file-name-case-insensitive-p): Use a progress reporter. (tramp-call-process, tramp-call-process-region): Use `make-tramp-file-name'. * test/lisp/net/tramp-tests.el (tramp-test03-file-name-defaults): Revert change from 2017-05-24. (tramp-test05-expand-file-name-relative): Let it also pass for "adb" method.
* | Fix Tramp for Android 7Jürgen Hötzel2017-05-281-7/+11
| | | | | | | | | | | | | | | | | | | | * tramp-adb.el (tramp-adb-ls-toolbox-regexp): Username part of prompt is empty on Android 7. (tramp-adb-ls-toolbox-regexp): Ignore addition links column on Android 7. (tramp-adb-get-ls-command): Dont use --color=none when using toybox (Android 7). It's not possible to disable coloring explicitly for toybox ls.
* | Remove Emacs 23 compat code from TrampMichael Albinus2017-05-268-288/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Remote processes): Don't mention Emacs 24 explicitely. (Frequently Asked Questions): Remove Emacs 23 from compatibility list. * lisp/net/tramp.el: * lisp/net/tramp-adb.el: * lisp/net/tramp-cache.el: * lisp/net/tramp-gvfs.el: * lisp/net/tramp-sh.el: * lisp/net/tramp-smb.el: Replace compat function calls. * lisp/net/tramp-compat.el (remote-file-name-inhibit-cache) (tramp-compat-condition-case-unless-debug) (tramp-compat-copy-file, tramp-compat-copy-directory) (tramp-compat-delete-file, tramp-compat-delete-directory) (tramp-compat-process-live-p): Remove them. * lisp/net/trampver.el: Make version check fit for Emacs 24.
* | lisp/net/soap-client.el: Bump version to 3.1.2Thomas Fitzsimmons2017-05-251-1/+1
| | | | | | | | * lisp/net/soap-client.el: Bump version to 3.1.2.
* | Fix soap-inspect.el doc stringsThomas Fitzsimmons2017-05-251-4/+4
| | | | | | | | | | | | * lisp/net/soap-inspect.el (soap-inspect-xs-attribute): Fix doc string. (soap-inspect-xs-attribute-group): Likewise.
* | Fix two soap-client.el byte compilation warningsThomas Fitzsimmons2017-05-251-2/+2
| | | | | | | | | | | | | | * lisp/net/soap-client.el (url-http-response-status): Add defvar. (soap-fetch-xml-from-url): Remove special declaration of url-http-response-status. (soap-invoke-internal): Likewise.
* | lisp/net/soap-client.el: Require cl-lib version 0.6.1Thomas Fitzsimmons2017-05-251-1/+1
| | | | | | | | * lisp/net/soap-client.el: Require cl-lib version 0.6.1.
* | lisp/net/soap-client.el: Shorten some long linesThomas Fitzsimmons2017-05-251-4/+4
| | | | | | | | | | | | | | | | * lisp/net/soap-client.el (soap-encode-xs-element): Remove unnecessary progn. (soap-xs-add-union): Wrap long line. Co-authored-by: Stefan Monnier <monnier@iro.umontreal.ca>
* | Remove cl dependency in soap-client.el and soap-inspect.elAlex Harsanyi2017-05-252-203/+201
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/soap-inspect.el: Replace cl library with cl-lib, case with cl-case, destructuring-bind with cl-destructuring-bind and loop with cl-loop. * lisp/net/soap-client.el: Replace cl library with cl-lib, defstruct with cl-defstruct, assert with cl-assert, case with cl-case, ecase with cl-ecase, loop with cl-loop and destructuring-bind with cl-destructuring-bind. Co-authored-by: Stefan Monnier <monnier@iro.umontreal.ca>
* | Switch Tramp to cl-libMichael Albinus2017-05-256-43/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-compat.el (cl-lib): Require it rather than cl. * lisp/net/tramp-ftp.el: Don't require cl. * lisp/net/tramp-gvfs.el: Don't require cl. (tramp-gvfs-handler-mounted-unmounted) (tramp-gvfs-connection-mounted-p): Use `cl-*' macros. * lisp/net/tramp-sh.el: Don't require cl. (tramp-set-file-uid-gid): Use `shell-quote-argument'. (tramp-sh-gvfs-monitor-dir-process-filter) (tramp-sh-inotifywait-process-filter): Use `cl-*' macros. * lisp/net/tramp-smb.el: Don't require cl. (tramp-smb-read-file-entry): Use `cl-*' macros. * lisp/net/tramp.el (cl-lib): Require it rather than cl. (tramp-parse-file, tramp-parse-shostkeys-sknownhosts) (tramp-parse-passwd, tramp-parse-etc-group) (tramp-parse-putty): Use `cl-*' macros.
* | Fix Tramp for python.elMichael Albinus2017-05-241-1/+1
| | | | | | | | | | * lisp/net/tramp.el (tramp-get-connection-process): Check, that VEC is a `tramp-file-name' structure.
* | Introduce a defstruct `tramp-file-name' as central data structure.Michael Albinus2017-05-248-281/+301
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This solves also Bug#27009. * lisp/net/tramp.el (tramp-current-domain) (tramp-current-port): New defvars. (tramp-file-name): New defstruct. (tramp-file-name-user-domain, tramp-file-name-host-port) (tramp-file-name-equal-p): New defuns. (tramp-file-name-p, tramp-file-name-method) (tramp-file-name-user, tramp-file-name-host) (tramp-file-name-localname, tramp-file-name-hop) (tramp-file-name-real-user, tramp-file-name-domain) (tramp-file-name-real-host, tramp-file-name-port): Remove defuns. They are provided by the defstruct, or not needed anymore. (tramp-dissect-file-name, tramp-buffer-name) (tramp-make-tramp-file-name, tramp-get-buffer) (tramp-set-connection-local-variables) (tramp-debug-buffer-name, tramp-message) (tramp-error-with-buffer, with-parsed-tramp-file-name) (tramp-completion-dissect-file-name1) (tramp-handle-file-name-as-directory) (tramp-handle-file-name-directory) (tramp-handle-file-remote-p, tramp-handle-file-symlink-p) (tramp-handle-find-backup-file-name) (tramp-handle-insert-file-contents, tramp-process-actions) (tramp-check-cached-permissions, tramp-local-host-p) (tramp-get-remote-tmpdir, tramp-call-process) (tramp-call-process-region, tramp-read-passwd) (tramp-clear-passwd): * lisp/net/tramp-adb.el (tramp-adb-parse-device-names) (tramp-adb-handle-expand-file-name) (tramp-adb-handle-file-truename, tramp-adb-handle-copy-file) (tramp-adb-handle-process-file) (tramp-adb-maybe-open-connection): * lisp/net/tramp-cache.el (tramp-get-hash-table) (tramp-get-file-property, tramp-set-file-property) (tramp-flush-file-property, tramp-flush-directory-property) (tramp-get-connection-property) (tramp-set-connection-property, tramp-connection-property-p) (tramp-flush-connection-property, tramp-cache-print) (tramp-list-connections, tramp-dump-connection-properties) (tramp-parse-connection-properties): * lisp/net/tramp-cmds.el (tramp-cleanup-connection): * lisp/net/tramp-ftp.el (tramp-ftp-file-name-handler): * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-expand-file-name) (tramp-gvfs-url-file-name, tramp-gvfs-handler-askpassword) (tramp-gvfs-handler-mounted-unmounted) (tramp-gvfs-mount-spec, tramp-gvfs-get-remote-uid) (tramp-gvfs-get-remote-gid) (tramp-gvfs-maybe-open-connection): * lisp/net/tramp-sh.el (tramp-sh-handle-file-truename) (tramp-do-copy-or-rename-file-out-of-band) (tramp-sh-handle-expand-file-name) (tramp-sh-handle-start-file-process) (tramp-sh-handle-process-file, tramp-compute-multi-hops) (tramp-maybe-open-connection) (tramp-make-copy-program-file-name, tramp-get-remote-path) (tramp-get-inline-coding): * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory) (tramp-smb-handle-expand-file-name) (tramp-smb-handle-file-acl, tramp-smb-handle-process-file) (tramp-smb-handle-set-file-acl) (tramp-smb-maybe-open-connection): Adapt according to defstruct.
* | * lisp/net/shr.el: Use cl-lib instead of cl.Stefan Monnier2017-05-231-14/+15
| |
* | Add test for Bug#27009 in tramp-tests.elMichael Albinus2017-05-232-2/+4
| | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-sh.el (tramp-compute-multi-hops): Check `tramp-file-name-real-host' for being a local host. * lisp/net/tramp.el (tramp-postfix-host-regexp): Fix docstring. * test/lisp/net/tramp-tests.el (tramp-test-temporary-file-directory): Declare default host for mock method. (tramp-test29-environment-variables-and-port-numbers): New test.
* | ; * lisp/net/tls.el (tls-program): Tweak :version.Glenn Morris2017-05-221-1/+1
| | | | | | | | ; To be reset if no 25.3 happens.