summaryrefslogtreecommitdiff
path: root/lisp/net
Commit message (Collapse)AuthorAgeFilesLines
...
* EUDC: Add eudc-ignore-options-file customizationThomas Fitzsimmons2022-11-072-8/+24
| | | | | | | | | | | | | * etc/NEWS (EUDC): Document eudc-ignore-options-file. * doc/misc/eudc.texi (The Server Hotlist): Likewise * lisp/net/eudc-vars.el (eudc-ignore-options-file): New variable. (eudc-options-file): Mention new variable. * lisp/net/eudc.el: Warn on load if eudc-ignore-options-file is set but the options file exists. (eudc-set-server): Support eudc-ignore-options-file. (eudc-bookmark-server): Likewise. (eudc-save-options): Likewise. (Bug#56154)
* Bind "DEL" in dictionary-modeDavide Masserut2022-11-061-1/+2
| | | | | * lisp/net/dictionary.el (dictionary-mode-map): Bind DEL to 'scroll-down-command'. (Bug#58986)
* * lisp/net/dictionary.el (dictionary-search): Use format-prompt.Juri Linkov2022-11-051-3/+1
|
* * lisp/net/rcirc.el (rcirc-print): Replace misjudged assertionPhilip Kaludercic2022-11-051-1/+2
|
* Fix calling file name handler for `load'.Michael Albinus2022-11-042-10/+5
| | | | | | | | | | * lisp/net/ange-ftp.el (ange-ftp-load): Add MUST-SUFFIX argument. * lisp/net/tramp.el (tramp-handle-load): Adapt MUST_SUFFIX test. * src/lread.c (Fload): Call handler with must_suffix. * test/lisp/net/tramp-tests.el (tramp-test27-load): Extend test.
* Add the parameter :noquery to open-network-stream (bug#58948)Juri Linkov2022-11-021-0/+4
| | | | | | | | | | | * doc/lispref/processes.texi (Network): Add :noquery for open-network-stream. * lisp/net/network-stream.el (open-network-stream): Pass the parameter :noquery to make-network-process. Doc fix. * lisp/progmodes/eglot.el (eglot--connect): Pass `:noquery t' to eglot--inferior-bootstrap to use in open-network-stream call, like `:noquery t' is passed to make-process in other places.
* * lisp/net/dbus.el (dbus-debug): Declare. (Bug#58865)Michael Albinus2022-11-011-0/+1
|
* Fix tramp-handle-file-newer-than-file-pMichael Albinus2022-10-311-0/+11
| | | | | * lisp/net/tramp.el (tramp-handle-file-newer-than-file-p): Don't use fractions of seconds. (Bug#58842)
* ; Remove redundant declares of w3m-minor-mode-mapStefan Kangas2022-10-291-1/+0
| | | | | * lisp/gnus/gnus-art.el (w3m-minor-mode-map): * lisp/net/newst-backend.el (w3m-minor-mode-map): Don't declare.
* ; Fix several symbol name typosStefan Kangas2022-10-262-2/+2
|
* ; Tramp copyeditMichael Albinus2022-10-262-2/+2
|
* Move required options out of ldap-ldapsearch-argsFilipp Gunbin2022-10-251-2/+3
| | | | | | * lisp/net/ldap.el (ldap-ldapsearch-args, ldap-search-internal): Move "-LLL" and "-tt" options as they're required for the code to work properly.
* Handle context changes in Tramp kubernetes methodMichael Albinus2022-10-254-13/+77
| | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Inline methods): Remove note about cache reset. (File name completion): Add tramp-completion-use-cache. * etc/NEWS: Add 'tramp-completion-use-cache'. * lisp/net/tramp-cache.el (tramp-completion-use-cache): New defcustom. (tramp-parse-connection-properties): Use it. * lisp/net/tramp-container.el (tramp-docker--completion-function) (tramp-kubernetes--completion-function): Ensure the processes run locally. (tramp-kubernetes--current-context-data): New defun. (tramp-methods) <kubernetes>: Add `tramp-config-check'. * lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell): Handle `tramp-login-args'. * lisp/net/tramp.el (tramp-methods): Adapt docstring.
* Improve error reporting of EUDC plist functionsBasil L. Contovounesios2022-10-231-3/+2
| | | | | | | | | * lisp/net/eudc.el (eudc--plist-member): Signal a more informative wrong-type-argument instead of a generic error (bug#58531#19, bug#58720). * test/lisp/net/eudc-tests.el (eudc--plist-member) (eudc-plist-member, eudc-plist-get, eudc-lax-plist-get): Update tests accordingly.
* Audit some plist uses with new predicate argumentBasil L. Contovounesios2022-10-221-33/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/lists.texi (Plist Access): Improve description of default predicate. * lisp/emacs-lisp/cl-extra.el (cl-getf, cl--set-getf): Assume plist-member always returns a cons. * lisp/emacs-lisp/gv.el (plist-get): Support new optional predicate argument (bug#47425#91). * lisp/emacs-lisp/map.el: Bump minor version. (map--dispatch): Remove now that bug#58563 is fixed. Break two remaining uses out into corresponding cl-defmethods. (map--plist-p): Add docstring. (map--plist-has-predicate, map--plist-member-1, map--plist-member) (map--plist-put-1, map--plist-put): New definitions for supporting predicate argument backward compatibly. (map-elt): Fix generalized variable getter under a predicate (bug#58531). Use predicate when given a plist. (map-put): Avoid gratuitous warnings when called without the hidden predicate argument. Improve obsoletion message. (map-put!): Use predicate when given a plist. (map-contains-key): Ditto. Declare forgotten advertised-calling-convention (bug#58531#19). (map--put): Group definition in file together with that of map-put!. * lisp/files-x.el (connection-local-normalize-criteria): Simplify using mapcan + plist-get. * lisp/net/eudc.el (eudc--plist-member): New convenience function. (eudc-plist-member, eudc-plist-get, eudc-lax-plist-get): Use it instead of open-coding plist-member. * src/fns.c (Fplist_get, plist_get, Fplist_put, plist_put): Pass the plist element as the first argument to the predicate, for consistency with assoc + alist-get. (Fplist_member, plist_member): Move from widget to plist section. Open-code the EQ case in plist_member, and call it from Fplist_member in that case, rather than the other way around. * test/lisp/apropos-tests.el (apropos-tests-format-plist): Avoid polluting obarray. * test/lisp/emacs-lisp/cl-extra-tests.el (cl-getf): Extend test with generalized variables, degenerate plists, and improper lists. * test/lisp/emacs-lisp/gv-tests.el: Byte-compile file; in the meantime bug#24402 seems to have been fixed or worked around. (gv-setter-edebug): Inhibit printing messages. (gv-plist-get): Avoid modifying constant literals. Also test with a predicate argument. * test/lisp/emacs-lisp/map-tests.el (with-maps-do): Simplify docstring. (test-map-elt-testfn): Rename... (test-map-elt-testfn-alist): ...to this. Also test with a predicate argument. (test-map-elt-testfn-plist, test-map-elt-gv, test-map-elt-signature) (test-map-put!-plist, test-map-put!-signature) (test-map-contains-key-signature, test-map-plist-member) (test-map-plist-put): New tests. (test-map-contains-key-testfn): Also test with a predicate argument. (test-map-setf-alist-overwrite-key, test-map-setf-plist-insert-key) (test-map-setf-plist-overwrite-key): Avoid modifying constant literals. (test-hash-table-setf-insert-key) (test-hash-table-setf-overwrite-key): Fix indentation. (test-setf-map-with-function): Make test more precise. * test/lisp/net/eudc-tests.el: New file. * test/lisp/subr-tests.el (test-plistp): Extend test with circular list. * test/src/fns-tests.el (test-cycle-equal, test-cycle-nconc): Move from plist section to circular list section. (plist-put/odd-number-of-elements): Avoid modifying constant literals. (plist-member/improper-list): Simplify. (test-plist): Move to plist section. Also test with a predicate argument.
* Fix ldapsearch output parsing in ldap-search-internalFilipp Gunbin2022-10-201-4/+4
| | | | | * lisp/net/ldap.el (ldap-search-internal): When parsing output, make sure that file:// matched before opening the file. (bug#58605)
* * lisp/net/tramp.el (tramp-file-name-equal-p): Fix docstring.Michael Albinus2022-10-182-1/+4
|
* Improve handling of $PATH in Eshell for remote directoriesJim Porter2022-10-171-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/eshell/esh-util.el (eshell-path-env, eshell-parse-colon-path): Make obsolete. (eshell-path-env-list): New variable. (eshell-connection-default-profile): New connection-local profile. (eshell-get-path): Reimplement using 'eshell-path-env-list'; add LITERAL-P argument. (eshell-set-path): New function. * lisp/eshell/esh-var.el (eshell-variable-aliases-list): Add entry for $PATH. (eshell-var-initialize): Add 'eshell-path-env-list' to 'eshell-subcommand-bindings'. * lisp/eshell/esh-ext.el (eshell-search-path): Use 'file-name-concat' instead of 'concat'. (eshell/addpath): Use 'eshell-get-path' and 'eshell-set-path'. * lisp/net/tramp-integration.el: Only apply Eshell hooks when 'eshell-path-env-list' is unbound. * test/lisp/eshell/esh-var-tests.el (esh-var-test/path-var/local-directory) (esh-var-test/path-var/remote-directory, esh-var-test/path-var/set) (esh-var-test/path-var/set-locally) (esh-var-test/path-var-preserve-across-hosts): New tests. * test/lisp/eshell/esh-ext-tests.el: New file. * test/lisp/eshell/eshell-tests-helpers.el (with-temp-eshell): Set 'eshell-last-dir-ring-file-name' to nil. (eshell-tests-remote-accessible-p, eshell-last-input) (eshell-last-output): New functions. (eshell-match-output, eshell-match-output--explainer): Use 'eshell-last-input' and 'eshell-last-output'. * doc/misc/eshell.texi (Variables): Document $PATH. * etc/NEWS: Announce this change (bug#57556).
* Signal an error in dictionary lookup if there's no word at pointDaniel Martín2022-10-161-1/+4
| | | | | * lisp/net/dictionary.el (dictionary-lookup-definition): Signal an error when there is no word at point (bug#58552).
* Minor Tramp fixesMichael Albinus2022-10-152-34/+40
| | | | | | | * lisp/net/tramp-sh.el (tramp-perl-id): Fix Perl script. (tramp-sh-handle-expand-file-name): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-expand-file-name): Check, that there's really a Tramp file name.
* * lisp/net/rcirc.el (rcirc-bridged-nick): Inherit from highlightPhilip Kaludercic2022-10-141-5/+1
|
* * lisp/net/rcirc.el (rcirc-generate-log-filename): Append ".log"Philip Kaludercic2022-10-141-3/+5
| | | | (Bug#54718)
* Fix browse-url-emacs for file: URLs on WindowsLars Ingebrigtsen2022-10-131-0/+5
| | | | | * lisp/net/browse-url.el (browse-url-emacs): Fix up file:///c:/foo/bar URLs on windows (bug#58464).
* Fix Tramp completion on MS WindowsMichael Albinus2022-10-101-30/+16
| | | | | | | * lisp/net/tramp.el (tramp-build-remote-file-name-spec-regexp): Revert previous change, it's too complicate. (tramp-build-completion-file-name-regexp): Use `tramp-prefix-format' instead of `tramp-prefix-regexp'. (Bug#558133)
* Remove redundant let-bindings of `inhibit-point-motion-hooks`Stefan Monnier2022-10-071-45/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `inhibit-point-motion-hooks` has defaulted to t (and been declared obsolete) since Emacs-25, so remove left-over bindings to that now default value. * lisp/dabbrev.el (dabbrev--search): * lisp/format.el (format-insert-file): * lisp/forms.el (forms-next-field, forms-prev-field): * lisp/minibuf-eldef.el (minibuf-eldef-setup-minibuffer): * lisp/simple.el (primitive-undo): * lisp/cedet/semantic/edit.el (semantic-change-function): * lisp/cedet/srecode/fields.el (srecode-field-mod-hook): * lisp/cedet/srecode/insert.el (srecode-insert-fcn): * lisp/erc/erc-button.el (erc-button-add-buttons): * lisp/erc/erc.el (erc-display-line): * lisp/eshell/em-script.el (eshell-source-file): * lisp/eshell/em-smart.el (eshell-smart-scroll-window): * lisp/eshell/esh-arg.el (eshell-parse-arguments): * lisp/eshell/esh-cmd.el (eshell-with-temp-command): * lisp/eshell/esh-mode.el (eshell-send-input, eshell-output-filter): * lisp/gnus/gnus-art.el (gnus-with-article-headers) (article-hide-headers, article-hide-boring-headers) (article-decode-mime-words, article-decode-charset) (article-decode-encoded-words, article-decode-group-name) (article-decode-idna-rhs, article-hide-list-identifiers) (article-strip-banner, article-really-strip-banner) (article-strip-leading-blank-lines) (article-strip-multiple-blank-lines, article-strip-leading-space) (article-strip-trailing-space, article-strip-all-blank-lines) (gnus-article-narrow-to-signature, gnus-article-show-hidden-text) (article-date-ut, article-verify-x-pgp-sig) (gnus-article-only-boring-p, gnus-article-highlight-signature) (gnus-article-add-buttons, gnus-signature-toggle, gnus-button-push): * lisp/gnus/gnus-cite.el (gnus-article-highlight-citation) (gnus-article-fill-cited-article, gnus-article-hide-citation) (gnus-article-toggle-cited-text, gnus-article-hide-citation-maybe) (gnus-cite-parse-wrapper, gnus-cite-add-face, gnus-cite-toggle): * lisp/gnus/gnus-gravatar.el (gnus-gravatar-insert): * lisp/gnus/gnus-rfc1843.el (rfc1843-decode-article-body): * lisp/gnus/gnus-sum.el (gnus-summary-toggle-header): * lisp/gnus/gnus-util.el (gnus-fetch-field): * lisp/gnus/message.el (message-fetch-field, message-reply) (message-followup, message-hide-headers): * lisp/net/goto-addr.el (goto-address-fontify): * lisp/obsolete/linum.el (linum-update-window): * lisp/play/zone.el (zone-shift-left, zone-shift-right) (zone-fill-out-screen): * lisp/progmodes/opascal.el (opascal-save-excursion): * lisp/progmodes/vhdl-mode.el (vhdl-prepare-search-2): * lisp/textmodes/enriched.el (enriched-encode): * lisp/textmodes/flyspell.el (flyspell-word-search-backward) (flyspell-word-search-forward): * lisp/textmodes/table.el (table--point-entered/left-cell-function): Remove let-binding of `inhibit-point-motion-hooks`.
* Add tramp-kubernetes integrationFilipp Gunbin2022-10-052-25/+84
| | | | | | | | | | | | * doc/misc/tramp.texi (Inline methods): Add kubernetes. (Customizing Methods): Remove kubernetes-tramp. * etc/NEWS: Mention new Tramp method "kubernetes". * lisp/net/tramp-compat.el (kubernetes-tramp): Warn if that package is used. * lisp/net/tramp-container.el (tramp-kubernetes-program): New defcustom. (tramp-kubernetes-method): New defconst. (tramp-kubernetes--completion-function): New function.
* Rename lisp/net/tramp-docker.el to lisp/net/tramp-container.elFilipp Gunbin2022-10-051-6/+6
|
* Provide Podman containers on their own method in TrampBrian Cully2022-10-041-5/+36
| | | | | | | | * lisp/net/tramp-docker.el (tramp-podman-program): New defcustom. (tramp-podman-method): New defconst. (tramp-docker-program): Remove "podman" from option list. (top): Update comments to refer to Docker-alike where necessary. Add description for how to use the podman method.
* Port TZ settings to POSIXPaul Eggert2022-10-022-2/+2
| | | | | | | | * lisp/Makefile.in (.el.elc): * lisp/net/tramp-sh.el (tramp-sh-handle-set-file-times): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-set-file-times): Use the POSIX standard TZ=UTC0 rather than the GNU extension TZ=UTC to set the time zone to UTC.
* Decrease use of the word "Emacsen" in Tramp docsStefan Kangas2022-10-024-6/+6
| | | | | | | | * lisp/net/tramp-archive.el: * lisp/net/tramp-smb.el: * lisp/net/tramp-uu.el: * lisp/net/tramp.el: Don't say "Emacsen" when a different wording would be clearer.
* Fix point movement when indenting in sieve-modeLars Ingebrigtsen2022-10-021-1/+7
| | | | | * lisp/net/sieve-mode.el (sieve-mode-indent-function): Fix point movement when point is at the start of the line (bug#58202).
* Revert "Decrease use of the word "Emacsen" in docs"Stefan Kangas2022-10-014-6/+6
| | | | | | This reverts commit 55f46cc77cb9d72fbabadb63d8aeab45c5e005e2. Ref. https://lists.gnu.org/r/emacs-devel/2022-10/msg00016.html
* Tramp cleanupMichael Albinus2022-10-013-9/+12
| | | | | | | | | | | * doc/misc/tramp.texi (Password handling): Fix typos. * lisp/net/tramp-docker.el (tramp-default-remote-shell): * lisp/net/tramp-sshfs.el (tramp-default-remote-shell): Declare. * lisp/net/tramp.el (tramp-methods): Fix docstring. (tramp-get-remote-tmpdir): Revert previous patch, it isn't needed anymore.
* Use a version for the Tramp cacheMichael Albinus2022-10-012-2/+24
| | | | | | | | | * lisp/net/tramp-cache.el (tramp-cache-version): New defconst. (top): Check the cache version, and flush the cache in case of mismatch. Suggested by Paul Pogonyshev <pogonyshev@gmail.com>. * lisp/net/tramp-cmds.el (tramp-cleanup-all-connections): Re-initialize the cache version.
* Decrease use of the word "Emacsen" in docsStefan Kangas2022-10-014-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | "Emacsen" is either a less clear way of saying "old versions of Emacs", or an implicit reference to XEmacs. We recommend against using it in the FAQ. So use the more clear wording instead. * doc/misc/gnus.texi (Oort Gnus): * doc/misc/widget.texi (Basic Types, toggle): * lisp/cedet/semantic/bovine/c.el (semantic-c-skip-conditional-section): * lisp/cedet/semantic/wisent/comp.el (wisent-compile-grammar): * lisp/desktop.el (desktop-save): * lisp/erc/erc-compat.el: * lisp/erc/erc-log.el: * lisp/gnus/gnus-util.el (gnus-replace-in-string): * lisp/mail/footnote.el: * lisp/net/tramp-archive.el: * lisp/net/tramp-smb.el: * lisp/net/tramp-uu.el: * lisp/net/tramp.el: (with-tramp-locked-connection): * lisp/org/ol-eww.el: * lisp/org/org-compat.el: (org-define-error): * lisp/shadowfile.el: * lisp/winner.el: Don't use the word "Emacsen".
* Merge from origin/emacs-28Stefan Kangas2022-10-011-0/+5
|\ | | | | | | | | | | | | | | be3eac3929 ; * etc/NEWS: Fix typos. 99a8c53247 Fix connection property incompatibility in Tramp # Conflicts: # etc/NEWS
| * Fix connection property incompatibility in TrampMichael Albinus2022-09-301-0/+5
| | | | | | | | | | * lisp/net/tramp.el (tramp-get-remote-tmpdir): Remove obsolete connection property "tmpdir". (Bug#57800)
* | Make mailcap--regexp-quote-type more resilientLars Ingebrigtsen2022-10-011-2/+4
| | | | | | | | | | * lisp/net/mailcap.el (mailcap--regexp-quote-type): Make more resilient in the presence of junk.
* | Make mailcap consistent about regexp-quoting minorsLars Ingebrigtsen2022-10-011-3/+8
| | | | | | | | | | | | | | | | | | | | * lisp/net/mailcap.el (mailcap-mime-data): Quote regexp. (mailcap-mime-extensions): Ditto. (mailcap--regexp-quote-type): New function. (mailcap-parse-mimetype-file): Use it to get consistent quoting of (regexp) strings (bug#52038). Before you'd get both application/vnd\.ms-excel and application/vnd.ms-excel (etc), making prompting confusing.
* | Fix the `dictionary' parent defgroupLars Ingebrigtsen2022-09-301-1/+1
| | | | | | | | | | | | * lisp/net/dictionary.el (dictionary): The `hypermedia' group doesn't exist, so put it in the same parent group that `ispell' uses (bug#58178).
* | ; Fix typosStefan Kangas2022-09-281-1/+1
| |
* | Simplify eww--rescale-images codeLars Ingebrigtsen2022-09-281-9/+8
| | | | | | | | * lisp/net/eww.el (eww--rescale-images): Simplify code.
* | Follow #target links in eww without re-renderingVisuwesh2022-09-281-5/+12
| | | | | | | | | | | | * lisp/net/eww.el (eww-follow-link): Do a text property search instead of re-rendering to follow #target links in the same page. (bug#58118) (eww-link-keymap): Bind <mouse-2> to eww-follow-link as well.
* | Add back useful information from gnus-coding.texiStefan Kangas2022-09-271-0/+2
| | | | | | | | | | | | * lisp/international/rfc1843.el: * lisp/net/pop3.el: Improve Commentary by adding back text from deleted file gnus-coding.texi.
* | Some tramp-docker.el adaptionsMichael Albinus2022-09-271-14/+17
| | | | | | | | | | | | * lisp/net/tramp-docker.el (tramp-docker--completion-function): Add ;;;###tramp-autoload cookie. Make implementation more robust. (tramp-methods) Use `tramp-default-remote-shell'.
* | Fix (thing-at-point 'url) in eww formsLars Ingebrigtsen2022-09-262-3/+4
| | | | | | | | | | | | | | | | | | * lisp/net/eww.el (eww-tag-input): Don't claim to have an URL here (bug#58091). * lisp/net/shr.el (shr-next-link, shr-previous-link): Search for shr-tab-stop instead of shr-url so that we can be more general. (shr-urlify): Mark all links as tabbable-to.
* | Rescale images along with text in eww with `C-x C-+'Lars Ingebrigtsen2022-09-261-0/+20
| | | | | | | | | | * lisp/net/eww.el (eww--rescale-images): Also rescale images when using `C-x C-+' etc (bug#58047).
* | Keep point in eww after hitting `g'Lars Ingebrigtsen2022-09-261-5/+3
| | | | | | | | | | * lisp/net/eww.el (eww-retrieve): Keep point after hitting `g' (bug#58076).
* | * lisp/net/rcirc.el (rcirc-print): Remove 'fill-region' callPhilip Kaludercic2022-09-251-3/+0
| | | | | | | | See Bug#57376.
* | Add formatting commands to rcircPhilip Kaludercic2022-09-251-0/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | * etc/NEWS: Mention new command * lisp/net/rcirc.el (rcirc-format): Add new utility function. (rcirc-unformat): Add new command. (rcirc-format-bold): Add new command. (rcirc-format-italic): Add new command. (rcirc-format-underline): Add new command. (rcirc-format-strike-trough): Add new command. (rcirc-format-fixed-width): Add new command. (rcirc-mode-map): Bind formatting commands. (rcirc-multiline-minor-mode-map): Bind formatting commands.