aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/net (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use the new error API functionsfeature/error-APIStefan Monnier2 days4-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/epa-file.el (epa-file--find-file-not-found-function): Use `error-slot-value` and `error-data`. (epa-file-insert-file-contents): Use `error-has-type-p`, `error-slot-value`, and `error-data`. * lisp/jka-compr.el (jka-compr-insert-file-contents): Use `error-has-type-p` and `error-slot-value` as well as new re-signaling form of `signal`. * lisp/simple.el (minibuffer-error-function): Use `error-has-type-p`. * lisp/startup.el (startup--load-user-init-file): Use `error-message-string`. (command-line): Use `error-has-type-p` and `error-message-string`. * lisp/type-break.el (type-break-demo-life): Use `error-message-string`. * lisp/emacs-lisp/bytecomp.el (batch-byte-compile-file): Use `error-message-string` and `error-has-type-p`. * lisp/emacs-lisp/edebug.el (edebug-safe-eval, edebug-report-error) (edebug-eval-expression): * lisp/emacs-lisp/debug.el (debugger-eval-expression): Use `error-message-string`. * lisp/emacs-lisp/ert.el (ert--should-error-handle-error): Use `error-has-type-p` and `error-type`. * lisp/net/sasl.el (sasl-error): Use `define-error`. * lisp/net/tramp-compat.el (tramp-error-type-p): New function. (tramp-permission-denied, tramp-compat-permission-denied): Use it. * lisp/progmodes/elisp-mode.el (elisp-completion-at-point): Use `error-type-p`.
* Implement connection-local `command-line-max-length'Michael Albinus10 days2-9/+28
| | | | | | | | | | * lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell): Set connection-local value of `command-line-max-length'. * lisp/net/tramp.el (tramp-get-connection-local-criteria): New defsubst. (tramp-set-connection-local-variables): Use it. (tramp-set-connection-local-variables-for-buffer): Use `connection-local-criteria-for-default-directory'.
* Fix use of older OpenSSH version in TrampMichael Albinus2026-02-222-20/+40
| | | | | | | | | | | | * lisp/net/tramp-sh.el (tramp-methods) <scp, scpx, rsync, ssh, sshx>: Adapt `tramp-login-args' argument. (Bug#80464) (tramp-ssh-setenv-term): New defvar. (tramp-ssh-setenv-term): New defun. (tramp-do-copy-or-rename-file-out-of-band) (tramp-maybe-open-connection): Use it. * lisp/net/tramp.el (tramp-methods, tramp-signal-hook-function): Extend docstring.
* * lisp/net/tramp.el (tramp-signal-hook-function): Extend docstring.Michael Albinus2026-02-221-3/+4
|
* browse-url-firefox-program: Add support for more Firefox variants.Gabriel Santos2026-02-211-1/+6
| | | | | | * lisp/net/browse-url.el (browse-url-firefox-program): Add support for Floorp, LibreWolf and Zen Browser. (Bug#80398) * etc/NEWS: Announce the change.
* * lisp/net/goto-addr.el (goto-address-fontify): Fix unbalanced parens.Juri Linkov2026-02-181-2/+5
| | | | | | Use 'bounds-of-thing-at-point' that relies on 'thing-at-point--bounds-of-well-formed-url' to get well-formed url with balanced parens (bug#80429).
* Escape attribute values and string DOMs when inserting themVisuwesh2026-02-141-2/+4
| | | | | | | * lisp/net/shr.el (shr-dom-print): Escape these strings, as done in `dom-print', to prevent producing an erroneous XML document. * test/lisp/net/shr-tests.el (dom-print-escape): Add new test (Bug#80383).
* Tramp signals 'remote-file-error' consequentlyMichael Albinus2026-02-1210-107/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Avoid errors in shr.el due to fractional colspan attributeArto Jantunen2026-02-121-1/+1
| | | | | | | | Apparently some people believe that a colspan can be fractional, and produce HTML with such. Make it possible for SHR to render such HTML by truncating colspan. * lisp/net/shr.el (shr-make-table-1): Ensure 'colspan' is a fixnum. (Bug#80354)
* Fix parsing of Title field in Newsticker List bufferRahul Martim Juliato2026-02-121-6/+7
| | | | | | | * lisp/net/newst-backend.el (newsticker--parse-text-container): Only "xhtml" type contains inline XML nodes that need to be run through 'newsticker--unxml' to serialize back to a string. (Bug#80317)
* Support D-Bus file descriptor manipulationMichael Albinus2026-02-071-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/dbus.texi (Synchronous Methods): Adapt `dbus-call-method'. (Asynchronous Methods): Adapt `dbus-call-method-asynchronously'. (File Descriptors): New chapter, replaces Inhibitor Locks. * etc/NEWS: Replace "New D-Bus functions to support systemd inhibitor locks" by "Support D-Bus file descriptor manipulation". Presentational fixes and improvements. * lisp/net/dbus.el (dbus-call-method) (dbus-call-method-asynchronously): Adapt docstring. (dbus-list-hash-table): Return (nreverse result). (dbus-monitor-goto-serial): Declare `completion'. * src/dbusbind.c (Fdbus_message_internal, xd_read_message_1): Handle `:keep-fd'. (xd_registered_inhibitor_locks, Fdbus_make_inhibitor_lock) (Fdbus_close_inhibitor_lock, Fdbus_registered_inhibitor_locks): Delete. (xd_registered_fds): New variable. (Fdbus__fd_open, Fdbus__fd_close, Fdbus__registered_fds): New DEFUNs. (Bug#79963) (syms_of_dbusbind_for_pdumper): Initialize `xd_registered_fds'. (syms_of_dbusbind): Remove subroutines `Sdbus_make_inhibitor_lock', `Sdbus_close_inhibitor_lock' and `Sdbus_registered_inhibitor_locks'. Remove symbol `Qdbus_call_method'. Declare subroutines `Sdbus__fd_open', `Sdbus__fd_close' and `Sdbus__registered_fds'. Declare symbol `QCkeep_fd'. staticpro `xd_registered_fds'. * test/lisp/net/dbus-tests.el (dbus-test10-inhibitor-locks): Delete. (dbus-test10-keep-fd, dbus-test10-open-close-fd): New tests.
* Organize tramp-adb-handle-make-process a little bit betterMichael Albinus2026-01-271-1/+1
| | | | | * lisp/net/tramp-adb.el (tramp-adb-handle-make-process): Call `tramp-taint-remote-process-buffer' where it belongs to.
* Support `undo'ing user input after messages are receivedF. Moukayed2026-01-251-6/+43
| | | | | | | * lisp/net/rcirc.el (rcirc-update-prompt): Don't track undo info. (rcirc-send-input): Clear undo list after message is sent. (rcirc-update-undo-list): Add new function (copied from erc.el). (rcirc-print): Update (shift) undo list instead of clearing it.
* ; Tramp code cleanupMichael Albinus2026-01-243-12/+7
| | | | | | | | | * lisp/net/tramp-cache.el (tramp-cache-unload-hook): * lisp/net/tramp-cmds.el (tramp-enable-method, tramp-bug): * lisp/net/tramp-compat.el: * test/lisp/net/tramp-tests.el (tramp-test26-interactive-file-name-completion): Simplify retrieving proper function symbols.
* ; * lisp/net/browse-url.el (browse-url-with-browser-kind): Fix call.Daniel Mendler2026-01-201-1/+1
|
* Extend Tramp tracesMichael Albinus2026-01-201-2/+4
| | | | | * lisp/net/tramp-message.el (tramp-debug-message): Change selection for `trace-function-background'.
* Call browser functions via `browse-url'Daniel Mendler2026-01-203-13/+22
| | | | | | | | | | | | This is in order to apply `browse-url-transform-alist'. * lisp/net/browse-url.el (browse-url-with-browser-kind) (browse-url-button-open, browse-url-button-open-url): * lisp/net/shr.el (shr-browse-url): * lisp/net/eww.el (eww-browse-with-external-browser): * lisp/gnus/gnus-sum.el (gnus-summary-browse-url): * lisp/emacs-lisp/package.el (package-browse-url): Let-bind `browse-url-browser-function' and call `browse-url'.
* ; Minor Tramp cleanupMichael Albinus2026-01-195-50/+39
| | | | | | | | | | | | | | | | | * lisp/net/tramp-adb.el: * lisp/net/tramp-androidsu.el: * lisp/net/tramp-integration.el: * lisp/net/tramp-smb.el: Do not delay `connection-local-set-profiles' until after loading `shell'. * lisp/net/tramp-integration.el: Add the local profile for all hosts listed in `tramp-local-host-names'. * lisp/net/tramp.el (tramp-local-host-names): New defvar. (tramp-local-host-regexp): Use it. * test/lisp/net/tramp-tests.el (tramp-test03-file-name-defaults): Adapt test.
* Remove rcirc-set-{en,de}code-coding-system aliasesPhilip Kaludercic2026-01-171-10/+0
| | | | | | | | | These were in the wrong order anyway, so they never had any effect. * lisp/net/rcirc.el (rcirc-set-decode-coding-system) (rcirc-set-encode-coding-system): Remove obsoletion aliases. (Bug#80145)
* ; Remove redundant cl-lib runtime dependencies across lisp/USAMI Kenta2026-01-173-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/editorconfig-tools.el: * lisp/emacs-lisp/shorthands.el: * lisp/info-xref.el: * lisp/international/quail.el: * lisp/international/rfc1843.el: * lisp/mail/ietf-drums.el: * lisp/mail/rfc2047.el: * lisp/mail/yenc.el: * lisp/net/pop3.el: * lisp/net/sasl-scram-sha256.el: * lisp/net/shr-color.el: * lisp/progmodes/grep.el: * lisp/scroll-bar.el: * lisp/textmodes/emacs-news-mode.el: * lisp/textmodes/reftex-auc.el: * lisp/textmodes/reftex-dcr.el: * lisp/textmodes/reftex-global.el: * lisp/textmodes/reftex-sel.el: * lisp/url/url-dav.el: * lisp/vc/vc-src.el: * lisp/xwidget.el: * lisp/yank-media.el: Remove redundant (require 'cl-lib). (Bug#80129)
* ; * lisp/net/sieve-mode.el (sieve-indent-offset)pinmacs2026-01-101-1/+8
| | | | | | Use the new 'sieve-indent-offset' customizable variable. Copyright-paperwork-exempt: yes
* External Tramp methods can be used in multi-hopsMichael Albinus2026-01-064-78/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (External methods): Mention, how external methods are used for multi-hops. (Ad-hoc multi-hops): Change requirement of method. * doc/misc/trampver.texi: * lisp/net/trampver.el: Change version to "2.8.2-pre". * etc/NEWS: External Tramp methods can be used in multi-hops. Presentational fixes and improvements. * lisp/net/tramp-sh.el (tramp-sh-handle-copy-directory): Check for `tramp-method-out-of-band-p' explicitly. Don't flush directory properties. (tramp-method-out-of-band-p): There shouldn't be a multi-hop. * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory): Don't flush directory properties. * lisp/net/tramp.el (tramp-methods): Adapt docstring. (tramp-barf-if-file-missing) (with-parsed-tramp-file-name): Adapt debug spec. (tramp-skeleton-copy-directory): Flush directory properties. (tramp-add-hops): Check for `tramp-login-args' property.
* Mitigate uutils coreutils problems in TrampMichael Albinus2026-01-031-7/+11
| | | | | | * lisp/net/tramp-sh.el (tramp-get-ls-command): Prefer gnuls over ls. (tramp-get-remote-readlink): Prefer gnureadlink over readlink. (Bug#79956, Bug#80075)
* Fix Tramp completion for default method "-"Michael Albinus2026-01-021-8/+1
| | | | | | * lisp/net/tramp.el (tramp-completion-handle-file-name-all-completions): Keep `tramp-default-method{-alist}' in order to get completion functions for `tramp-default-method-marker'.
* ; Add 2026 to copyright years.Sean Whitton2026-01-0182-82/+82
|
* Sync with Tramp 2.8.1Michael Albinus2025-12-311-3/+3
| | | | | * doc/misc/trampver.texi: * lisp/net/trampver.el (tramp-version): Adapt Tramp versions.
* December 2025 spelling fixesPaul Eggert2025-12-264-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of the fixes are to continue to use American rather than British spelling. * doc/misc/modus-themes.org (my-modus-themes-engraved-faces): Fix misspelled ‘:foreground’s. * etc/themes/modus-themes.el (modus-themes-faces): Fix misspelled ‘modus-themes-bold’. * lisp/emacs-lisp/rx.el (rx--normalize-char-pattern): Rename from rx--normalise-char-pattern. (rx--optimize-or-args): Rename from rx--optimise-or-args. * lisp/frame.el (frame--special-parameters): Fix misspelled "right-divider-width". * lisp/net/tramp.el (tramp-fingerprint-prompt-regexp): Use American spelling “centered”, to match current libfprintf. * lisp/org/org-fold-core.el (org-fold-core--optimize-for-huge-buffers): Rename from org-fold-core--optimise-for-huge-buffers. (org-fold-core-update-optimization): Rename from org-fold-core-update-optimisation, leaving an alias behind. (org-fold-core-remove-optimization): Rename from org-fold-core-remove-optimisation, leaving an alias behind. * lisp/org/org.el (org-advertized-archive-subtree): This alias is now obsolete. * lisp/play/zone.el (zone-ignored-buffers): Fix misspelling of ‘zone--buffer-encrypted-p’. * lisp/progmodes/csharp-mode.el (csharp-ts-mode-faces): Fix misspelling of ‘csharp’ group. * lisp/vc/vc.el (vc-clonable-backends-custom-type): Rename from vc-cloneable-backends-custom-type, leaving an alias behind. * test/lisp/emacs-lisp/bytecomp-tests.el: (bytecomp-tests--warn-arity-non-compiled-callee): Rename from bytecomp-tests--warn-arity-noncompiled-callee. (bytecomp-test-defface-spec): Reword a deliberate misspelling of “default” that is so common I don’t want it to pollute the spelling dictionary. * test/lisp/emacs-lisp/package-vc-tests.el: (package-vc-tests-preserve-artifacts): Rename from package-vc-tests-preserve-artifacts. * test/lisp/eshell/em-prompt-tests.el: (em-prompt-test/forward-backward-paragraph-1): Reword a deliberate misspelling of “goodbye” that is so common I don’t want it to pollute the spelling dictionary.
* Fix problem in tramp-adbMichael Albinus2025-12-261-41/+45
| | | | | | | * lisp/net/tramp-adb.el (tramp-adb-do-ls): New function. (tramp-adb-handle-file-attributes) (tramp-adb-handle-directory-files-and-attributes) (tramp-adb-handle-file-name-all-completions): Use it. (Bug#80054)
* Fix problem in Tramp completionMichael Albinus2025-12-201-1/+3
| | | | | * lisp/net/tramp.el (tramp-completion-handle-expand-file-name): Expand FILENAME also when it is absolute. (Bug#80031)
* Finish process error buffer support in tramp-smb.elMichael Albinus2025-12-151-1/+2
| | | | | | | | | | | | | * doc/misc/tramp.texi (Remote processes): Provide more details in "Running remote processes on MS Windows hosts". * lisp/net/tramp-smb.el (tramp-smb-handle-make-process): Suppress lock files. * test/lisp/net/tramp-tests.el (auto-revert-notify-watch-descriptor) (auto-revert-remote-files, auto-revert-use-notify): Declare. Set proper values. (tramp-test30-make-process): Adapt test.
* Implement process error buffer in tramp-smb.elMichael Albinus2025-12-141-2/+32
| | | | | | | * lisp/net/tramp-smb.el (tramp-smb-handle-make-process): Handle error buffer. * test/lisp/net/tramp-tests.el (tramp-test30-make-process): Adapt test.
* Implement process STDERR file in tramp-smb.elMichael Albinus2025-12-133-20/+29
| | | | | | | | | * lisp/net/tramp-smb.el (tramp-smb-handle-make-process) (tramp-smb-handle-process-file): Handle STDERR file. (tramp-smb-call-winexe): Regroup sent commands. * test/lisp/net/tramp-tests.el (tramp-test28-process-file) (tramp-test30-make-process): Adapt tests.
* Rework remote process support for Tramp's "smb" methodMichael Albinus2025-12-063-171/+229
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Remote processes): Rewrite subsection "Running remote processes on MS Windows hosts". * etc/NEWS: Mention remote process support for Tramp's "smb" method. Presentational fixes and improvements. * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist): Use `tramp-smb-handle-make-process', `tramp-smb-handle-shell-command' and `tramp-handle-start-file-process'. (tramp-smb-matching-line): New defvar. (tramp-smb-handle-make-process, tramp-smb-handle-shell-command) (tramp-smb-shell-prompt): New defuns. (tramp-smb-handle-process-file): Rewrite. (tramp-smb-handle-start-file-process): Remove. (tramp-smb-get-localname, tramp-smb-shell-quote-localname): New optional argument SHARE. (tramp-smb-send-command): Remove echoed command string. (tramp-smb-maybe-open-connection): Initialize variables. (tramp-smb-wait-for-output): Wait more robust. (tramp-smb-call-winexe): Check for share. Goto current directory. (tramp-smb-connection-local-powershell-variables): New defconst. Set it as connection local variables. * test/lisp/net/tramp-tests.el (tramp-test28-process-file) (tramp-test29-start-file-process, tramp-test30-make-process) (tramp-test32-shell-command, tramp--test-async-shell-command) (tramp--test-supports-processes-p): Adapt for "smb" method. (tramp-test34-explicit-shell-file-name) (tramp-test45-asynchronous-requests): Skip for "smb" method. (tramp--test-check-files): Skip shell test for some special characters in the "smb" case. (tramp-test52-unload): Disable further tests.
* Use dedicated minibuffer history for mairix-searchPaul Nelson2025-12-031-1/+3
| | | | | * lisp/net/mairix.el (mairix-search-history): New variable. (mairix-search): Use it (bug#79926).
* Make goto-address/bug-reference buttons TAB-navigable in 'button-mode'Juri Linkov2025-11-301-0/+2
| | | | | | | | * lisp/net/goto-addr.el (goto-address-fontify): Set overlay property 'button' to 'this-overlay', and 'category' to 'goto-address'. * lisp/progmodes/bug-reference.el (bug-reference-fontify): Set overlay property 'button' to 'ov' (bug#74792).
* Sync with Tramp 2.8.0.5Michael Albinus2025-11-285-19/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Remote processes): Improve description where direct asyn processes won't work. * lisp/net/tramp-cache.el (with-tramp-saved-connection-properties): Adapt `tramp-verbose' less aggressive. * lisp/net/tramp-container.el (tramp-kubernetes--context-namespace): Use `string-join'. * lisp/net/tramp-message.el (tramp-get-debug-file-name): Modify debug file name. (tramp-debug-message): Simplify. * lisp/net/tramp-sh.el (tramp-actions-before-shell) (tramp-actions-copy-out-of-band): Add `tramp-keyboard-interactive-authentication-prompt-regexp'. * lisp/net/tramp.el (tramp-encoding-shell): Fix docstring. (tramp-keyboard-interactive-authentication-prompt-regexp): New defcustom. (tramp-action-ignore-message): New defun. * test/lisp/net/tramp-tests.el (tramp-test10-write-region) (tramp-test10-write-region-file-precious-flag) (tramp-test10-write-region-other-file-name-handler) (tramp-test27-load, tramp-test32-shell-command) (tramp-test32-shell-command-dont-erase-buffer) (tramp-test34-connection-local-variables) (tramp-test36-vc-registered, tramp-test39-make-lock-file-name) (tramp-test39-detect-external-change) (tramp-test45-asynchronous-requests): Adapt tests.
* Add 'newsticker--treeview-handle-url' (Bug#79849)Ulf Jasper2025-11-231-3/+14
| | | | | | * lisp/net/newst-treeview.el (newsticker--treeview-url-keymap) (newsticker--treeview-handle-url): Add 'newsticker--treeview-handle-url' to replace 'newsticker-handle-url' in newsticker-treeview (Bug#79849).
* ntlm.el: Add Package-Requires and fix two docstringsThomas Fitzsimmons2025-11-161-6/+8
| | | | | | * lisp/net/ntlm.el (Package-Requires): Add emacs 27.1. * lisp/net/ntlm.el (ntlm-build-auth-response, ntlm-string-xor): Fix docstrings to satisfy `checkdoc'.
* Extend Tramp direct async processes for further methodsMichael Albinus2025-11-113-6/+15
| | | | | | | * lisp/net/tramp-container.el (tramp-methods) <distrobox>: * lisp/net/tramp-sh.el (tramp-methods) <sg>: Add `tramp-direct-async'. (tramp-expand-script): Fix typo in script name. (tramp-maybe-send-script): Adapt docstring.
* Improve handling of Tramp internal shell scriptsMichael Albinus2025-11-091-119/+134
| | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (New operations): Mention tramp-expand-script. * lisp/net/tramp-sh.el (tramp-uudecode) (tramp-readlink-file-truename, tramp-perl-file-truename) (tramp-perl-file-name-all-completions) (tramp-shell-file-name-all-completions) (tramp-perl-file-attributes) (tramp-perl-directory-files-and-attributes, tramp-perl-id) (tramp-python-id, tramp-perl-encode, tramp-perl-decode) (tramp-awk-encode, tramp-awk-decode) (tramp-bundle-read-file-names): Indent script for better readability. (tramp-perl-file-name-all-completions) (tramp-shell-file-name-all-completions) (tramp-ls-file-attributes, tramp-bundle-read-file-names): Adapt docstring. (tramp-shell-print-quoted-string): New defconst. (tramp-shell-file-name-all-completions): Use "%b" format specifier. (tramp-bundle-read-file-names): Use "%k" format specifier. (tramp-sh-handle-file-name-all-completions): Don't send `tramp-bundle-read-file-names'. (tramp-expand-script): Adapt docstring. Apply always `format-spec'. Handle also "%b" and "%k" format specifiers.
* ; Add missing defcustom types in eshell and eww (bug#79607)Jacob S. Gordon2025-11-071-1/+3
| | | | | | * lisp/eshell/esh-mode.el (eshell-scroll-to-bottom-on-input) (eshell-scroll-to-bottom-on-output): Add t as a choice. * lisp/net/eww.el (eww-restore-desktop): Add 'auto' as a choice.
* Fix markup toggling in rcircPhilip Kaludercic2025-11-011-1/+5
| | | | | | | | | | | | | | (rcirc-markup-attributes): Delete markup codes straight after processing it, to correctly handle toggling codes. E.g. when processing the message "one ^Btwo^B three", we previously recognised the first interval "^Btwo^B" and moved over the ^B. Searching for the next range to markup, we would now falsely recognise "^B three" to be another markup range, instead of it being the negative toggle. By removing the processed codes, we avoid this issue. This reverts the functionality removed in 946ceca2, and therefore also re-adds the check to make an exception to removing a ^O as that code can terminate multiple markup sequences. (Bug#57383)
* ; Minor Tramp changesMichael Albinus2025-11-011-4/+5
| | | | | | | | * doc/misc/tramp.texi (Frequently Asked Questions): Don't mention Windows 7/8, they are obsolete now. Improve "speed up" item. * lisp/net/tramp-sh.el (tramp-expand-script): Handle "%%" format specifier better.
* Fix a typo in newst-backend.elGautier Ponsinet2025-11-011-1/+1
| | | | | * lisp/net/newst-backend.el (newsticker--parse-text-container): Fix a typo in the docstring. (Bug#79747)
* Fix tramp-add-external-operationMichael Albinus2025-10-261-1/+5
| | | | | * lisp/net/tramp.el (tramp-add-external-operation): Check `default-directory' if `(car args)' is a relative file name, or nil.
* Fix Tramp support of GVFS built without FUSEStephen Berman2025-10-251-1/+4
| | | | | * lisp/net/tramp-gvfs.el (tramp-gvfs-enabled): Add check for running process "gvsd", since GVFS may be built without FUSE.
* Tramp cleanupMichael Albinus2025-10-205-36/+58
| | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Configuration): Extend example. * lisp/net/tramp.el (tramp-skeleton-write-region): * lisp/net/tramp-cache.el (tramp-flush-file-upper-properties): * lisp/net/tramp-sh.el (tramp-sh-handle-insert-directory): Use `when-let*' consequently. * lisp/net/tramp-cmds.el (tramp-file-name-with-method): Add :initialize and :set functions. (tramp-set-file-name-with-method): New defun. (with-tramp-file-name-with-method): Filter out enabled methods. * lisp/net/tramp-compat.el: Add TODO. * test/lisp/net/tramp-archive-tests.el (tramp-archive-test-cascaded-file-archive): Use "foo.zip". * test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case-p): Extend check. (tramp-test48-session-timeout): Adapt test. * test/lisp/net/tramp-archive-resources/foo.zip: Renamed from outer.zip.
* Fix a recent regression in NewstickerLdBeth2025-10-191-15/+15
| | | | | | * lisp/net/newst-backend.el (newsticker--parse-text-container): New function. (newsticker--parse-atom-1.0): Use it. (Bug#79617)
* Rcirc: Fix invalid face error message when applying IRC colorAlcor2025-10-181-2/+2
| | | | | | | * lisp/net/rcirc.el (rcirc-color-attributes): Fix invalid face. (Bug#79561) Copyright-paperwork-exempt: yes
* Add support for su-rs and sudo-rs programsMichael Albinus2025-10-153-14/+54
| | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Inline methods): Add "surs" and "sudors" methods. * etc/NEWS: Add optional "surs" and "sudors" Tramp methods. Presentational fixes and improvements. * lisp/net/tramp-cmds.el (tramp-file-name-with-method): Add "surs" and "sudors" to :type. Adapt :version. * lisp/net/tramp-sh.el (tramp-enable-surs-method) (tramp-enable-sudors-method): New defuns (tramp-sh-handle-expand-file-name): Add "surs" and "sudors" in check. * lisp/net/tramp.el (tramp-methods): Adapt docstring. * lisp/comint.el (comint-password-prompt-regexp): * test/lisp/comint-tests.el (comint-testsuite-password-strings): Add su-rs and sudo-rs password prompts.