diff options
| author | Michael Albinus | 2026-02-12 19:24:10 +0100 |
|---|---|---|
| committer | Michael Albinus | 2026-02-12 19:24:10 +0100 |
| commit | e0e0e95f5be6beb4e0a528e95ac466751b2f6a31 (patch) | |
| tree | 875c633a843db3d9befd3a478e6ca8b76d29e3b0 /doc | |
| parent | eece2377dd2e2113f97b27d4ca43f718e6e3e2a7 (diff) | |
| download | emacs-e0e0e95f5be6beb4e0a528e95ac466751b2f6a31.tar.gz emacs-e0e0e95f5be6beb4e0a528e95ac466751b2f6a31.zip | |
Tramp signals 'remote-file-error' consequently
* doc/misc/tramp.texi (External packages): Mention also special events.
Emphasise, that Tramp raises remote-file-error.
* etc/NEWS: Tramp signals 'remote-file-error' consequently.
Presentational fixes and improvements.
* lisp/net/tramp.el (tramp-skeleton-process-file)
(tramp-handle-make-symbolic-link, tramp-process-actions)
(tramp-wait-for-regexp, tramp-send-string):
* lisp/net/tramp-adb.el (tramp-adb-get-device)
(tramp-adb-send-command-and-check, tramp-adb-barf-unless-okay)
(tramp-adb-wait-for-output, tramp-adb-maybe-open-connection):
* lisp/net/tramp-archive.el (tramp-archive-handle-not-implemented):
* lisp/net/tramp-crypt.el (tramp-crypt-do-encrypt-or-decrypt-file-name)
(tramp-crypt-do-encrypt-or-decrypt-file):
* lisp/net/tramp-gvfs.el (tramp-gvfs-dbus-event-error)
(tramp-gvfs-maybe-open-connection):
* lisp/net/tramp-sh.el
(tramp-do-directory-files-and-attributes-with-perl)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-sh-handle-file-local-copy, tramp-sh-handle-write-region)
(tramp-bundle-read-file-names, tramp-maybe-send-script)
(tramp-find-file-exists-command, tramp-barf-if-no-shell-prompt)
(tramp-maybe-open-connection, tramp-wait-for-output)
(tramp-send-command-and-check, tramp-barf-unless-okay)
(tramp-send-command-and-read, tramp-get-ls-command):
* lisp/net/tramp-smb.el (tramp-smb-handle-file-attributes)
(tramp-smb-handle-make-symbolic-link)
(tramp-smb-maybe-open-connection, tramp-smb-call-winexe):
* lisp/net/tramp-sshfs.el (tramp-sshfs-maybe-open-connection):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-send-command-and-read):
Raise a `remote-file-error' in case of connection problems.
* lisp/net/tramp-rclone.el (tramp-rclone-maybe-open-connection): Improve
check for host.
* lisp/net/tramp-smb.el (tramp-smb-get-localname): Improve error message.
* lisp/net/tramp-sudoedit.el (tramp-default-host-alist):
Set a default for "sudoedit" method.
(tramp-sudoedit-maybe-open-connection): Check for proper host name.
(tramp-sudoedit-send-command): Do not expand ?h.
* lisp/net/tramp.el (tramp-compute-multi-hops): Check for cycle
proxy definition.
* test/lisp/net/tramp-archive-tests.el (tramp-archive-test20-file-modes)
(tramp-archive-test21-file-links): Check for `rmote-file-error'.
* test/lisp/net/tramp-tests.el (tramp-file-name-with-sudo): Declare.
(tramp--test-ignore-make-symbolic-link-error): Check for
`rmote-file-error'.
(tramp-test03-file-name-method-rules): Delete.
(tramp-test03-file-error): New test.
(tramp--test-supports-processes-p): Make it more rebust.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/misc/tramp.texi | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index c916588a060..73c3e1ed326 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi | |||
| @@ -6658,7 +6658,7 @@ root directory, it is most likely sufficient to make the | |||
| 6658 | @code{default-directory} of the process buffer as the root directory. | 6658 | @code{default-directory} of the process buffer as the root directory. |
| 6659 | 6659 | ||
| 6660 | 6660 | ||
| 6661 | @subsection Timers, process filters, process sentinels, redisplay | 6661 | @subsection Timers, process filters, process sentinels, special events, redisplay |
| 6662 | 6662 | ||
| 6663 | @vindex remote-file-error | 6663 | @vindex remote-file-error |
| 6664 | Timers run asynchronously at any time when Emacs is waiting for | 6664 | Timers run asynchronously at any time when Emacs is waiting for |
| @@ -6678,7 +6678,13 @@ wrapping the timer function body as follows: | |||
| 6678 | @end lisp | 6678 | @end lisp |
| 6679 | 6679 | ||
| 6680 | A similar problem could happen with process filters, process | 6680 | A similar problem could happen with process filters, process |
| 6681 | sentinels, and redisplay (updating the mode line). | 6681 | sentinels, special event handlers, and redisplay (updating the mode |
| 6682 | line). | ||
| 6683 | |||
| 6684 | @strong{Note} that @value{tramp} raises a @code{remote-file-error} | ||
| 6685 | error for any connection-related problem. You can protect against all | ||
| 6686 | such problems with the code snippet above (or with a | ||
| 6687 | @code{condition-case} form with a @code{remote-file-error} handler). | ||
| 6682 | 6688 | ||
| 6683 | 6689 | ||
| 6684 | @node Extension packages | 6690 | @node Extension packages |