aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/net (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ldap-search-internal cleanupFilipp Gunbin2022-04-141-4/+2
| | | | | | | * lisp/net/ldap.el (ldap-ldapsearch-args): Change -LL to -LLL to suppress ldif version output. (ldap-search-internal): Remove skipping of version output. Remove redundand ws skipping.
* Fix eudc-get-attribute-listFilipp Gunbin2022-04-143-18/+36
| | | | | | | | | | | * lisp/net/eudc-vars.el (eudc-ldap-no-wildcard-attributes): New defcustom. * doc/misc/eudc.texi (LDAP Configuration): Mention it. * lisp/net/eudcb-ldap.el (eudc-ldap-format-query-as-rfc1558): Use it. (eudc-ldap-get-field-list): Set scope and sizelimit, instead of overriding the whole ldap-host-parameters-alist. * lisp/net/ldap.el (ldap-search-internal): Allow "size limit exceeded" exit code. Allow empty attribute values.
* Adapt macOS defaults in Tramp's process-attributes implementationMichael Albinus2022-04-121-21/+14
| | | | | | | | | | | | * doc/misc/tramp.texi (Remote processes): Mention tramp-connection-local-darwin-ps-* constants. * lisp/net/tramp-integration.el (tramp-connection-local-darwin-ps-variables): Fix docstring. (top): Simplify setting local profiles. * test/lisp/net/tramp-tests.el (tramp-test31-list-system-processes) (tramp-test31-process-attributes): New tests.
* process-attributes-ps-args / process-attributes-ps-format for DarwinFilipp Gunbin2022-04-121-0/+94
| | | | | | | | | * lisp/net/tramp-integration.el (tramp-darwin-process-attributes-ps-args) (tramp-darwin-process-attributes-ps-format) (tramp-connection-local-darwin-ps-variables): New defconsts. Add them to connection-local variables. Preset default "ps" profile for Darwin.
* * lisp/net/tramp-integration.el: Don't require files-x.Michael Albinus2022-04-071-1/+0
|
* Make file-name-split returns driver name as well in WindowsKien Nguyen2022-04-061-3/+12
| | | | | | | * lisp/files.el (file-name-split): Returns driver name as well in Windows. * lisp/net/browse-url.el (browse-url-file-url): Don't hexify colon character in file path for Windows (bug#54721).
* Revert unneeded change in tramp-integration.elMichael Albinus2022-04-061-8/+4
| | | | | * lisp/net/tramp-integration.el: Apply `connection-local-set-profiles' w/o retrieving old values.
* Handle remote system processesMichael Albinus2022-04-0511-6/+334
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/files.texi (Magic File Names): Add list-system-processes and process-attributes. * doc/lispref/processes.texi (System Processes): Document changes in list-system-processes and process-attributes. * doc/misc/tramp.texi (Customizing Completion): Use @ftable. (Remote processes): Document changes in list-system-processes and process-attributes. * etc/NEWS: Document changes in proced, list-system-processes and process-attributes. * lisp/proced.el (proced-show-remote-processes): New defcustom. (proced-remote-directory): Remove. (proced-filter-alist): Use it. (proced-user-name): New defun. (proced-available): Set it to t. (proced-mode): Adapt docstring. (proced): Adapt docstring. Acknowledge prefix argument. (proced-format): Change initialization of `standard-attributes'. (proced-send-signal, proced-renice): Adapt docstring. Remove special handling of prefix argument. * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist): * lisp/net/tramp-archive.el (tramp-archive-file-name-handler-alist): * lisp/net/tramp-crypt.el (tramp-crypt-file-name-handler-alist): * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): * lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist): * lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist): * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist): * lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler-alist): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler-alist): Add 'list-system-processes' and `process-attributes'. * lisp/net/tramp-integration.el (files-x): Require `files-x'. (tramp-bsd-process-attributes-ps-args) (tramp-bsd-process-attributes-ps-format) (tramp-connection-local-bsd-ps-variables) (tramp-busybox-process-attributes-ps-args) (tramp-busybox-process-attributes-ps-format) (tramp-connection-local-busybox-ps-variables): * lisp/net/tramp-adb.el (tramp-adb-connection-local-default-ps-variables): New defconsts. Add them to connection-local variables. * lisp/net/tramp.el (tramp-file-name-for-operation): Add 'list-system-processes' and `process-attributes'. (tramp-process-attributes-ps-args) (tramp-process-attributes-ps-format): New defconsts. (tramp-ps-time, tramp-get-process-attributes) (tramp-handle-list-system-processes) (tramp-handle-process-attributes): New defuns. * src/process.c (Flist_system_processes, Fprocess_attributes): Support remote system processes. (Qlist_system_processes, Qprocess_attributes): Declare symbols.
* Don't touch WAYLAND_DISPLAY in browse-urlPo Lu2022-04-031-1/+5
| | | | | * lisp/net/browse-url.el (browse-url): Don't touch WAYLAND_DISPLAY. (bug#53969)
* Extend signal-process and proced.elMichael Albinus2022-03-301-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/processes.texi (Signals to Processes): Document changes in signal-process. * etc/NEWS: Mention changes in proced.el and signal-process. * lisp/proced.el (proced-signal-function): Declare it obsolete. (proced-remote-directory): New user option. (proced-mode): Adapt docstring. (proced-send-signal, proced-renice): Handle interactive prefix argument. * lisp/net/tramp.el (tramp-signal-process): New defun. Add it to `signal-process-functions'. * src/process.c (Finternal_default_signal_process): New defun, providing the hitherto existing implementation of Fsignal_process. (Fsignal_process): Loop through Vsignal_process_functions. (Vsignal_process_functions): New defvar. (Qinternal_default_signal_process, Qsignal_process_functions): Declare symbols. (Sinternal_default_signal_process): Declare subroutine. * test/lisp/net/tramp-tests.el (tramp-test31-signal-process): New test.
* Handle process property `remote-command' in TrampMichael Albinus2022-03-294-3/+21
| | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Remote processes): New subsection "Process properties of asynchronous remote processes". * lisp/net/tramp.el (tramp-handle-make-process): * lisp/net/tramp-adb.el (tramp-adb-handle-make-process): * lisp/net/tramp-smb.el (tramp-smb-handle-start-file-process): * lisp/net/tramp-sh.el (tramp-sh-handle-make-process) Set `remote-command' process property. (tramp-scp-direct-remote-copying): Rename connection property. * test/lisp/net/tramp-tests.el (tramp-test29-start-file-process) (tramp-test30-make-process, tramp-test31-interrupt-process) (tramp--test-async-shell-command): Check process property `remote-command'.
* Fix eww bookmark writingThomas Fitzsimmons2022-03-291-1/+3
| | | | | * lisp/net/eww.el (eww-write-bookmarks): Ensure that the complete bookmarks are written (bug#54612).
* Do not register Tramp file name handlers twiceMichael Albinus2022-03-282-5/+8
| | | | | | * lisp/net/tramp.el (tramp-register-autoload-file-name-handlers): * lisp/net/tramp-archive.el (tramp-register-archive-file-name-handler): Check, whether the real file name handler is already registered.
* Don't let Tramp block dired (Bug#54542)Michael Albinus2022-03-261-0/+1
| | | | | | | | * lisp/dired.el (dired-find-buffer-nocreate): Avoid avoid hangs in remote buffers with a blocked connection. (Bug#54542) * lisp/net/tramp-sh.el (tramp-maybe-open-connection): Extend suppression rules.
* Adapt Tramp to dired--insert-disk-space assumptionsMichael Albinus2022-03-242-2/+6
| | | | | | | * lisp/net/tramp-sh.el (tramp-sh-handle-insert-directory): * lisp/net/tramp-smb.el (tramp-smb-handle-insert-directory): Do not modify disk space information when `dired--insert-disk-space' is available. (Bug#54512)
* Support changing remoteness of DIR in rgrep and lgrepMichael Albinus2022-03-231-2/+10
| | | | | | | | | * lisp/net/tramp-sh.el (tramp-get-remote-dev-tty): New defun. (tramp-sh-handle-make-process): Use it. * lisp/progmodes/grep.el: Prefer #' to quote named functions. (lgrep, rgrep): Recompute grep defaults when the remoteness of DIR changes.
* Enable Better Alignment of EUDC Inline Expansion With RFC5322Alexander Adolf2022-03-222-42/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The format of EUDC inline expansion results is formatted according to the variable eudc-inline-expansion-format, which previously defaulted to '("%s %s <%s>" firstname name email). Since email address specifications need to comply with RFC 5322 in order to be useful in messages, there was little headroom for users to change this format anyway. Plus, if an EUDC back-end returned an empty first and last name, the result was the email address in angle brackets. Whilst this was standard with RFC 822, it is marked as obsolete syntax by its successor RFC 5322. Also, the first and last name part was never enclosed in double quotes, potentially producing invalid address specifications, which may be rejected by a receiving MTA. This commit updates the variable eudc-inline-expansion-format, so that it can, in addition to the current ("format" attributes) list, now alternatively be set to nil, or a formatting function. In both cases the resulting email address is formatted using the new function eudc-rfc5322-make-address, whose results fully comply with RFC 5322. If the value is nil (the new default value), eudc-rfc5322-make-address will be called to produce any of the default formats ADDRESS FIRST <ADDRESS> LAST <ADDRESS> FIRST LAST <ADDRESS> depending on whether a first and/or last name are returned by the query, or not. If the value is a formatting function, that will be called to allow the user to supply content for the phrase and comment parts of the address (cf. RFC 5322). Thus one can produce any of the formats: ADDRESS PHRASE <ADDRESS> ADDRESS (COMMENT) PHRASE <ADDRESS> (COMMENT) This can for example be used to get "last, first <address>" instead of the default "first last <address>". In any case when using nil, or the formatting function, the phrase part of the result will be enclosed in double quotes if needed, and the comment part will be omitted if it contains characters not allowed by RFC 5322. When eudc-inline-expansion-format remains set to a list as previously, the old behaviour is fully retained.
* Add a new face shr-codeLars Ingebrigtsen2022-03-211-1/+5
| | | | | * lisp/net/shr.el (shr-code): New face (bug#54480). (shr-tag-code): Use it.
* Fix wrong password stored in TrampManuel Giraud2022-03-201-2/+3
| | | | | * lisp/net/tramp.el (tramp-process-actions): Unset `tramp-password-save-function'.
* Enable Tramp reloadingMichael Albinus2022-03-171-1/+4
| | | | | | | | * lisp/net/tramp.el (tramp-file-name): Add ;;;###tramp-autoload cookie. (Bug#50869) * test/lisp/net/tramp-tests.el (tramp-test47-unload): Do not skip. Test reload.
* Do not cache directories with Tramp sshfsMichael Albinus2022-03-171-0/+1
| | | | | * lisp/net/tramp-sshfs.el (tramp-methods) <sshfs>: Add "-o dir_cache=no" to `tramp-mount-args'. (Bug#54126)
* * lisp/net/tramp-sh.el (tramp-find-file-exists-command): Fix comment.Manuel Giraud2022-03-161-6/+7
|
* EUDC: Fix a bug and some docstringsThomas Fitzsimmons2022-03-141-18/+21
| | | | | | | | | * lisp/net/eudc.el (eudc-register-protocol): Add doc string. (eudc-expand-inline): Add TRY-ALL-SERVERS to docstring. (eudc-query-with-words): Fix early-return bug reported by Alexander Adolf. (eudc-menu): Add doc string. (eudc-install-menu): Likewise.
* * lisp/net/ange-ftp.el (ange-ftp-ls): Make a loop when sanitizing LSARGS.Michael Albinus2022-03-131-1/+1
|
* EUDC: Support querying all serversThomas Fitzsimmons2022-03-111-45/+61
| | | | | | | | | | | | | | | | | * lisp/net/eudc.el (eudc-expand-try-all): New command. (eudc-expand-inline): Add `try-all-servers' optional argument. Update `eudc-query-with-words' call. (eudc-query-with-words): Add `try-all-servers' optional argument. Move response formatting into main query loop. Query next server if `try-all-servers' is non-nil. (eudc-tail-menu): Add "Expand Inline Query Trying All Servers" menu item. * doc/misc/eudc.texi (Installation): Recommend eudc-expand-try-all. (Emacs-only Configuration): Likewise. (Inline Query Expansion, Inline Query Expansion): Likewise. Document `eudc-expand-try-all'. * etc/NEWS (EUDC): Describe new 'eudc-expand-try-all' command.
* EUDC: Update save-query-as-kill name and docstringThomas Fitzsimmons2022-03-112-10/+16
| | | | | | | | | | | | | * lisp/net/eudc-vars.el (eudc-server): Fix quoting for checkdoc. (eudc-expansion-save-query-as-kill): Rename from `eudc-expansion-overwrites-query'. Define obsolete variable alias. Update comment and documentation. * lisp/net/eudc.el (eudc-expand-inline): Rename `replace' argument to `save-query-as-kill'. Update argument documentation. * doc/misc/eudc.texi (Inline Query Expansion): Rename `eudc-expand-inline' argument. * etc/NEWS (EUDC): Document `eudc-expansion-overwrites-query' rename to `eudc-expansion-save-query-as-kill'.
* Handle Wayland displays correctly in browse-urlPo Lu2022-03-111-1/+7
| | | | | | * lisp/net/browse-url.el (browse-url-process-environment): Use WAYLAND_DISPLAY as the display environment variable on PGTK. (bug#54333)
* Support remote home directories via connection propertyMichael Albinus2022-03-101-0/+11
| | | | | | | | | | * doc/misc/tramp.texi (Home directories): New section. (Top, Usage): Add it to the menue. (Predefined connection information): Mention "~". (Multi-hops, File name syntax): Fix typos. * lisp/net/tramp.el (tramp-handle-expand-file-name): Check for remote home directory. (Bug#53847)
* Implement abbreviate-file-name in Tramp for Google driveMichael Albinus2022-03-081-4/+14
| | | | | * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-get-home-directory): Implement for Google drive.
* Handle bug#54294 in TrampMichael Albinus2022-03-081-3/+3
| | | | | * lisp/net/tramp.el (tramp-handle-file-locked-p, tramp-handle-lock-file): Use `tramp-system-name'. (Bug#54294)
* Rework `abbreviate-file-name' in TrampMichael Albinus2022-03-0712-80/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist): * lisp/net/tramp-archive.el (tramp-archive-file-name-handler-alist): * lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist): * lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler-alist): Add 'tramp-get-home-directory'. * lisp/net/tramp-compat.el (tramp-file-name-handler): Declare. (tramp-compat-exec-path): Use it. * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Add 'tramp-get-home-directory'. (tramp-gvfs-handle-expand-file-name): Rewrite tilde handling. (tramp-gvfs-handle-get-home-directory): New defun. * lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist): Add 'tramp-get-home-directory'. (tramp-sh-handle-get-home-directory): New defun. (tramp-sh-handle-expand-file-name): Rewrite tilde handling. * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist): Add 'tramp-get-home-directory'. (tramp-smb-handle-expand-file-name): Rewrite tilde handling. (tramp-smb-handle-get-home-directory): New defun. * lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler-alist): Add 'tramp-get-home-directory'. (tramp-sudoedit-handle-expand-file-name): Rewrite tilde handling. (tramp-sudoedit-handle-get-home-directory): New defun. * lisp/net/tramp.el (tramp-file-name-for-operation): Add `tramp-get-home-directory'. (tramp-get-home-directory): New defun. (tramp-handle-abbreviate-file-name): Use it. (tramp-set-file-uid-gid, tramp-get-remote-uid) (tramp-get-remote-gid): Use `tramp-file-name-handler'. (tramp-get-remote-null-device): Do not check for null VEC, it doesn't happen anymore. * test/lisp/net/tramp-tests.el (tramp-test05-expand-file-name-relative): Reorder checks. (tramp-test07-abbreviate-file-name): (tramp--test-ange-ftp-p): Adapt tests.
* Merge from origin/emacs-28Stefan Kangas2022-03-071-1/+4
|\ | | | | | | | | | | 73f28fbde8 Add a comment for previous browse-url-of-dired-file change 9b74e84857 Restore documented Emacs 27.2 behaviour of browse-url-of-d... cd77fd3b85 Update to Org 9.5.2-24-g668205
| * Add a comment for previous browse-url-of-dired-file changeLars Ingebrigtsen2022-03-071-1/+3
| | | | | | | | | | * lisp/net/browse-url.el (browse-url-of-dired-file): Add a comment for previous change.
| * Restore documented Emacs 27.2 behaviour of browse-url-of-dired-fileLars Ingebrigtsen2022-03-071-1/+2
| | | | | | | | | | | | * lisp/net/browse-url.el (browse-url-of-dired-file): Restore the documented behaviour -- open a web browser instead of passing to the various handlers.
* | Fix typo in previous browse-url-file-url changeLars Ingebrigtsen2022-03-071-1/+1
| | | | | | | | | | * lisp/net/browse-url.el (browse-url-file-url): Fix typo in previous change.
* | Fix `W' in Dired with non-ASCII file namesLars Ingebrigtsen2022-03-071-11/+26
| | | | | | | | | | | | | | | | | | * lisp/net/browse-url.el (browse-url--file-name-coding-system): Factor out into own function. (browse-url-file-url): Property encode non-ASCII characters so that external browsers can understand them. (browse-url-emacs): Make `W' in Dired work with non-ASCII file names (bug#54271).
* | Merge from origin/emacs-28Stefan Kangas2022-02-271-28/+25
|\ \ | |/ | | | | | | a50f8dec09 Follow OpenSSH changes in Tramp e86eae21a9 Document better how to reset attributes of faces for new f...
| * Follow OpenSSH changes in TrampMichael Albinus2022-02-261-28/+25
| | | | | | | | | | * lisp/net/tramp-sh.el (tramp-ssh-controlmaster-options): Reimplement. OpenSSH has changed its diagnostics messages.
* | Merge from origin/emacs-28Stefan Kangas2022-02-261-1/+1
|\ \ | |/ | | | | ded89ed3fa * lisp/net/tramp-sh.el (tramp-ssh-controlmaster-options): ...
| * * lisp/net/tramp-sh.el (tramp-ssh-controlmaster-options): Adapt test.Michael Albinus2022-02-251-1/+1
| |
* | Fix symlinks in tramp-sshfs.el (Bug#54130)Michael Albinus2022-02-241-2/+7
| | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-sshfs.el (tramp-methods) <sshfs>: Add "-o transform_symlinks" to `tramp-mount-args'. (tramp-sshfs-file-name-handler-alist): Use `tramp-sshfs-handle-file-writable-p'. (tramp-sshfs-handle-file-writable-p): New defun. (Bug#54130) * test/lisp/net/tramp-tests.el (tramp-test18-file-attributes) (tramp-test20-file-modes): Adapt tests.
* | Fix compilation warning introduced by previous shr.el changeLars Ingebrigtsen2022-02-201-0/+1
| | | | | | | | * lisp/net/shr.el (url-file): Fix compilation warning.
* | Make eww work better on Tramp HTMLLars Ingebrigtsen2022-02-202-12/+12
| | | | | | | | | | | | | | | | | | | | | | * lisp/net/eww.el (eww-open-file): Use it. (eww-browse-url): Ditto. * lisp/net/shr.el (shr-expand-url): Allow loading relative Tramp files if we're reading from a file:// document. * lisp/url/url-file.el (url-allow-non-local-files): New user option (bug#40425).
* | Make `g' work in eww buffers displaying Tramp filesLars Ingebrigtsen2022-02-201-11/+21
| | | | | | | | | | | | * lisp/net/eww.el (eww--file-buffer): Refactored out. (eww-open-file): From here. (eww-reload): Make reloading work in Tramp files.
* | * lisp/net/tramp.el (tramp-read-passwd): Adapt for empty user names.Michael Albinus2022-02-201-51/+43
| |
* | Revert "; * rcirc.el (rcirc-print): Prefer sleep-for over sit-for"Philip Kaludercic2022-02-191-1/+1
| |
* | ; * rcirc.el (rcirc-print): Prefer sleep-for over sit-forPhilip Kaludercic2022-02-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Compare (benchmark-run 100000 (sit-for 0)) ;; => (2.600030102 12 1.523461324000003) with (benchmark-run 100000 (sleep-for 0)) ;; (0.015882939 0 0.0)
* | Adapt Tramp password prompts for sudo-like methodsMichael Albinus2022-02-193-13/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Password handling): Explain entries for doas, sudo and sudoedit. * etc/NEWS (Tramp): Document changed password prompts. * lisp/net/tramp-sh.el (tramp-methods) <sudo, doas>: Add `tramp-password-previous-hop'. (tramp-maybe-open-connection): Modify `previous-hop' if needed. * lisp/net/tramp-sudoedit.el (tramp-methods) <sudoedit>: Add `tramp-password-previous-hop'. (tramp-sudoedit-null-hop): New defconst. (tramp-sudoedit-send-command): Use it. * lisp/net/tramp.el (tramp-methods): Adapt docstring. (tramp-null-hop): New defconst. (tramp-get-remote-null-device): Use it.
* | Extend bookmark menu with with handler type columnMatthias Meulien2022-02-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/bookmark.el (bookmark-bmenu--revert): Extend table entries with handler type. (bookmark-bmenu-mode): Add handler type column. * lisp/doc-view.el (doc-view-bookmark-jump): Set bookmark handler type. * lisp/help-mode.el (help-bookmark-jump): Set bookmark handler type. * lisp/image-dired.el (image-dired-bookmark-jump): Set bookmark handler type. * lisp/info.el (Info-bookmark-jump): Set bookmark handler type. * lisp/net/eww.el (eww-bookmark-jump): Set bookmark handler type. * lisp/vc/vc-dir.el (vc-dir-bookmark-jump): Set bookmark handler type. * lisp/woman.el (woman-bookmark-jump): Set bookmark handler type.
* | Fix problem with "~" in TrampMichael Albinus2022-02-171-4/+1
| | | | | | | | | | * lisp/net/tramp.el (tramp-handle-substitute-in-file-name): Remove special handling of "~" in localname. (Bug#53053)