summaryrefslogtreecommitdiff
path: root/test/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Silence byte-compiler in generator-tests.elStefan Kangas2021-12-051-3/+3
| | | | | * test/lisp/emacs-lisp/generator-tests.el (cps-let*-shadow-empty) (cps-let-shadow-empty, cps-let*-parallel): Silence byte-compiler.
* Silence warnings about testing obsolete functions and macrosStefan Kangas2021-12-054-289/+357
| | | | | | | | * test/lisp/emacs-lisp/cl-generic-tests.el: * test/lisp/emacs-lisp/edebug-tests.el: * test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el: * test/lisp/emacs-lisp/eieio-tests/eieio-tests.el: Silence byte-compiler warnings about testing obsolete functions and macros.
* Remove hacks for broken `with-suppressed-warnings'Stefan Kangas2021-12-052-17/+6
| | | | | | * test/lisp/obsolete/cl-tests.el (labels-function-quoting): * test/lisp/tar-mode-tests.el (tar-mode-test-tar-grind-file-mode): Remove hack for broken `with-suppressed-warnings'.
* Remove hack from seq-tests.el for broken `with-suppressed-warnings'Lars Ingebrigtsen2021-12-051-14/+10
| | | | | | * test/lisp/emacs-lisp/seq-tests.el: `with-suppressed-warnings' now works better in erf-deftests, so remove hack that works around it (bug#36568).
* eieio-core.el: Allow assignment to cl-structs through `slot-value`Stefan Monnier2021-12-041-2/+5
| | | | | | | | | | | | * lisp/emacs-lisp/eieio-core.el (eieio--validate-slot-value): Obey the `:read-only` property of the slot. (eieio-oset): Allow use on cl-structs as well. (eieio-read-only): New error. * test/lisp/emacs-lisp/eieio-tests/eieio-tests.el (eieio-test--struct): Make the last field read-only. (eieio-test-defstruct-slot-value): Test that cl-struct slots can be assigned via `slot-value`.
* Fix (date-to-time "2021-12-04")Paul Eggert2021-12-041-0/+7
| | | | | | | | | | | | | | | This should complete the fix for Bug#52209. * lisp/calendar/time-date.el (date-to-time): Apply decoded-time-set-defaults only to the output of (parse-time-string date), and only when the output has a year (to avoid confusion when dates lack years). There is no point applying it after timezone-make-date-arpa-standard since the latter fills in all the blanks. And the former code mistakenly called encode-time on an already-encoded time. This goes back to the code a couple of days ago, except with changed behavior (to fix Bug#52209) only when timezone-make-date-arpa-standard is not called. * test/lisp/calendar/time-date-tests.el (test-date-to-time) (test-days-between): New tests.
* Silence byte-compiler in some testsStefan Kangas2021-12-0417-80/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/dired-tests.el: * test/lisp/emacs-lisp/cl-macs-tests.el: * test/lisp/emacs-lisp/derived-tests.el: * test/lisp/emacs-lisp/eieio-tests/eieio-tests.el: * test/lisp/emacs-lisp/generator-tests.el: * test/lisp/emacs-lisp/lisp-tests.el: * test/lisp/emacs-lisp/seq-tests.el (test-seq-let) (test-seq-setq): * test/lisp/emacs-lisp/subr-x-tests.el (subr-x-test-if-let*-false) (subr-x-test-if-let*-and-laziness-is-preserved) (subr-x-test-when-let*-false) (subr-x-test-when-let*-and-laziness-is-preserved): * test/lisp/emacs-lisp/timer-tests.el (timer-tests-debug-timer-check): * test/lisp/format-spec-tests.el (format-spec-do-flags-truncate) (format-spec-do-flags-pad): * test/lisp/ls-lisp-tests.el (ls-lisp-test-bug27762): * test/lisp/obsolete/cl-tests.el (labels-function-quoting): * test/lisp/progmodes/elisp-mode-tests.el: * test/lisp/replace-tests.el (replace-regexp-bug45973): * test/lisp/ses-tests.el: * test/lisp/subr-tests.el: * test/lisp/tar-mode-tests.el (tar-mode-test-tar-grind-file-mode): * test/src/data-tests.el (data-tests--set-default-per-buffer): * test/src/search-tests.el (test-replace-match-modification-hooks): Silence byte-compiler.
* ; Silence byte-compiler warning in testStefan Kangas2021-12-041-1/+1
| | | | | * test/lisp/dired-aux-tests.el (dired-test-bug28834): Silence byte-compiler.
* Add more dired-x testsEli Zaretskii2021-12-031-1/+4
| | | | | * test/lisp/dired-x-tests.el (dired-x--string-to-number): Add more tests with various thousands separators.
* Improve how dired-mark-sexp interprets file sizes in non-C localesLars Ingebrigtsen2021-12-031-0/+7
| | | | | * lisp/dired-x.el (dired-x--string-to-number): Try to understand localised numbers (with "." separators or the like) (bug#23373).
* Merge from origin/emacs-28Stefan Kangas2021-12-031-0/+51
|\ | | | | | | | | | | | | | | | | | | 9c222b9c1a Port to C compilers that lack size-0 arrays fed35a8951 Port emacsclient to Solaris 10 f35d6a9c73 * CONTRIBUTE: Improve commit message instructions e0ee1d003a Work around IBM XL C compiler bug 6b99b6eb8b * admin/make-tarball.txt: Various clarifications. bbf4140091 * admin/diff-tar-files: Don't assume .tar.gz. 0a50ad11db * lisp/tab-bar.el (tab-bar-close-other-tabs): Fix regression.
| * * lisp/tab-bar.el (tab-bar-close-other-tabs): Fix regression.Juri Linkov2021-12-021-0/+51
| | | | | | | | | | | | * test/lisp/tab-bar-tests.el: New file. (tab-bar-tests-close-other-tabs-with-arg): Test for regression that closed the selected tab after selecting it.
* | Add `cl-constantly' functionLars Ingebrigtsen2021-12-021-0/+5
| | | | | | | | | | * lisp/emacs-lisp/cl-lib.el (cl-constantly): Add Common Lisp function missing (bug#21584).
* | Fix usage of deprecated syntax in some cedet testsMichael Levine2021-12-021-13/+10
| | | | | | | | | | * test/lisp/cedet/srecode/fields-tests.el (srecode-field-utest-impl): Fix deprecated syntax.
* | Change how Dired displays available spaceLars Ingebrigtsen2021-12-016-74/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/dired.texi (Misc Dired Features): Document it (bug#23812). * lisp/dired.el (dired-free-space): New user option. (dired-insert-directory): Use it from here. (dired--insert-disk-space): New function that uses the user option. * lisp/files.el (insert-directory): Don't transform "total" here. * lisp/ls-lisp.el (ls-lisp--insert-directory): Or here. Instead just leave the "total <num>" bit alone, and let Dired transform it. * test/lisp/files-tests.el (files-tests): Move "available" tests to dired-tests. * test/lisp/dired-tests.el (data-dir): Moved here.
* | Fix closure-conversion of shadowed captured lambda-lifted varsMattias Engdegård2021-12-012-0/+195
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Lambda-lifted variables (ones passed explicitly to lambda-lifted functions) that are also captured in an outer closure and shadowed were renamed incorrectly (bug#51982). Reported by Paul Pogonyshev. * lisp/emacs-lisp/cconv.el (cconv--lifted-arg): New. (cconv-convert): Provide correct definiens for the closed-over variable. * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-cases): * test/lisp/emacs-lisp/cconv-tests.el (cconv-tests--intern-all) (cconv-closure-convert-remap-var): Add tests.
* | Merge from origin/emacs-28Stefan Kangas2021-12-011-1/+35
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e632b83a28 Update authors.el for Emacs 28 e9fdb11903 ; * ChangeLog.3: Some additional fixes. 8fa4749df1 ; * ChangeLog.3: Filename fixes. ea5a90b4f4 * lisp/repeat.el: Fix long-standing problem when a random ... ef4954b69c * lisp/repeat.el (repeat-keep-prefix): Change default to nil. 6d5886e780 * test/lisp/repeat-tests.el (repeat-tests-call-b): Test fo... 9e16c6a96d ; * src/comp.c (syms_of_comp) <comp-no-native-file-h>: Doc... 9aa8fd6e62 * src/callint.c (Fcall_interactively): Fix inhibit_mouse_e... 70c229b1fc Fix regression in gdb-frame-handler cd9dd26d24 Format and index concept 'predicate' in ELisp Intro ab291656d0 ; * ChangeLog.3: Fix typos. 354f6c5609 ; * ChangeLog.3: Formatting fixes. 6192525a96 ; make change-history-commit
| * * lisp/repeat.el: Fix long-standing problem when a random key activates mapJuri Linkov2021-11-301-0/+34
| | | | | | | | | | | | | | | | | | * lisp/repeat.el (repeat-check-key): New defcustom (bug#51390). (repeat--command-property): New internal function. (repeat-check-key): New function. (repeat-post-hook): Use repeat--command-property and repeat-check-key. * test/lisp/repeat-tests.el (repeat-tests-check-key): New test.
| * * test/lisp/repeat-tests.el (repeat-tests-call-b): Test for commit 588caf0b27.Juri Linkov2021-11-301-1/+1
| | | | | | | | This tests for 'repeat-map' as a variable instead of a symbol.
| * Backport Tramp fixes, don't mergeMichael Albinus2021-11-241-15/+14
| | | | | | | | | | | | | | | | * lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler-alist): Use `tramp-handle-file-readable-p'. * test/lisp/net/tramp-archive-tests.el (tramp-archive-test02-file-name-dissect): Use `make-tramp-file-name'.
* | time-stamp-tests.el: Test more formatsStephen Gildea2021-11-261-3/+7
| | | | | | | | | | | | * test/lisp/time-stamp-tests.el (time-stamp-format-ignored-modifiers): Additional testing with illegal formats, including "%". (time-stamp-format-multiple-conversions): Add a test with "%%%".
* | MH-E: support Mailutils "folders +/"Stephen Gildea2021-11-251-4/+7
| | | | | | | | | | | | | | * lisp/mh-e/mh-utils.el (mh-sub-folders-parse): Support Mailutils style of "folders +/" output. * test/lisp/mh-e/mh-utils.el: Test "folders +/" with GNU Mailutils 3.13.91 and later.
* | mh-utils-tests: 'mh-sub-folders-actual' coverageStephen Gildea2021-11-241-0/+46
| | | | | | | | | | | | | | | | * test/lisp/mh-e/mh-utils.el (mh-sub-folders-parse-no-folder) (mh-sub-folders-parse-relative-folder, mh-sub-folders-parse-root-folder): New tests. * lisp/mh-e/mh-utils.el (mh-sub-folders-parse): New function, refactored out of 'mh-sub-folders-actual' to create a testing seam.
* | Add new function 'add-display-text-property'Lars Ingebrigtsen2021-11-241-0/+18
| | | | | | | | | | * doc/lispref/display.texi (Display Property): Document it. * lisp/emacs-lisp/subr-x.el (add-display-text-property): New function.
* | mh-utils-tests: Add new tests of "folders +/"Stephen Gildea2021-11-242-22/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/mh-e/mh-utils-tests.el (mh-sub-folders-actual, mh-sub-folders): Add new tests of "folders +/". Rewrite tests that were using 'assoc' to use 'member' instead, so that on failure, ERT logs the list of which the element was not a member, rather than the 'nil' returned by 'assoc'. (mh-test-variant-handles-plus-slash): Factor out new helper function. (mh-folder-completion-function-08-plus-slash) (mh-folder-completion-function-09-plus-slash-tmp): Use new helper function. * test/lisp/mh-e/test-all-mh-variants.sh: LD_LIBRARY_PATH unnecessary.
* | Avoid false positives about wide docstrings for key sequencesStefan Kangas2021-11-222-0/+21
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile--wide-docstring-p): Ignore literal key sequence substitutions. * test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-ignore-substitutions.el: New file. * test/lisp/emacs-lisp/bytecomp-tests.el ("warn-wide-docstring-ignore-substitutions.el"): New test.
* | Add new format for literal key sequences to substitute-command-keysStefan Kangas2021-11-221-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/help.el (substitute-command-keys): Add new format "\\`f'" for literal key sequences. (Bug#50804) * doc/lispref/help.texi (Keys in Documentation): Document the above new substitution. * test/lisp/help-tests.el (help-tests-substitute-command-keys/literal-key-sequence): (help-tests-substitute-command-keys/literal-key-sequence-errors): New tests. (help-tests-substitute-key-bindings/face-help-key-binding): Extend test.
* | Fix recent compile-tests additionGlenn Morris2021-11-211-1/+1
| | | | | | | | | | | | | | * test/lisp/progmodes/compile-tests.el (compile-test-error-regexps): Bump number of expected errors. ; Surely running the tests before committing would have flagged this?
* | Improve error parsing for GCC -fanalyzer outputPhilip Kaludercic2021-11-211-0/+1
| | | | | | | | | | * compile.el (compilation-error-regexp-alist-alist): Adjust gnu rule * compile-tests.el (compile-tests--test-regexps-data): Add testcase
* | Fix icalendar time zone parsingdickmao2021-11-211-15/+19
| | | | | | | | | | | | | | | | * lisp/calendar/icalendar.el (icalendar--decode-isodatetime): Parse time zones more correctly. * test/lisp/calendar/icalendar-tests.el (icalendar-tests--decode-isodatetime): Fix tests so that they work in other time zones than Europe/Berlin (bug#51959).
* | Make 'eval' use lexical scoping in most testsStefan Kangas2021-11-2011-23/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/electric-tests.el (electric-pair-define-test-form) (define-electric-pair-test): * test/lisp/emacs-lisp/backtrace-tests.el (backtrace-tests--uncompiled-functions): * test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs-test--symbol-macrolet): * test/lisp/emacs-lisp/let-alist-tests.el (let-alist-list-to-sexp): * test/lisp/emacs-lisp/lisp-tests.el (elisp-tests-with-temp-buffer, core-elisp-tests-3-backquote): * test/lisp/emacs-lisp/testcover-resources/testcases.el (testcover-testcase-nth-case): * test/lisp/ffap-tests.el (ffap-ido-mode): * test/lisp/files-tests.el (file-test--do-local-variables-test): * test/lisp/net/tramp-tests.el (tramp--test-utf8): * test/lisp/progmodes/elisp-mode-tests.el (find-defs-defgeneric-eval, find-defs-defun-eval) (find-defs-defvar-eval, find-defs-face-eval) (find-defs-feature-eval): Give 'eval' non-nil LEXICAL argument. * test/lisp/subr-tests.el (subr-tests--dolist--wrong-number-of-args): * test/src/eval-tests.el (eval-tests--if-dot-string) (eval-tests--mutating-cond) (eval-tests-19790-backquote-comma-dot-substitution): Test 'eval' using LEXICAL as both nil and non-nil. (eval-tests--let-with-circular-defs): Give explicit nil to 'eval'.
* | Merge from origin/emacs-28Stefan Kangas2021-11-201-1/+0
|\| | | | | | | c1eea85be1 * test/lisp/net/tramp-tests.el (tramp-get-remote-gid): Rem...
| * * test/lisp/net/tramp-tests.el (tramp-get-remote-gid): Remove declaration.Michael Albinus2021-11-191-1/+0
| |
* | Fix Tramp testMichael Albinus2021-11-191-0/+1
| | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test07-abbreviate-file-name): Skip Ange FTP test.
* | Make puny-encode-string normalize firstLars Ingebrigtsen2021-11-191-0/+7
| | | | | | | | | | * lisp/net/puny.el (puny-encode-string): Normalize before encoding (bug#51954).
* | Turn mistaken functions into tests (bug#51941)Mattias Engdegård2021-11-181-1/+1
| | | | | | | | | | | | | | | | | | * test/lisp/calendar/icalendar-tests.el (icalendar-tests--decode-isodatetime): * test/src/eval-tests.el (eval-tests-19790-backquote-comma-dot-substitution): Change `defun` into `ert-deftest` where this seems to have been the original intention.
* | String backslash correctionsMattias Engdegård2021-11-181-1/+1
| | | | | | | | | | | | * lisp/net/shr.el (shr-tag-video): Remove ineffective backslash. * test/lisp/emacs-lisp/package-tests.el (package-test-macro-compilation-gz): Make dot literal as intended.
* | Extend abbreviate-file-name for further Tramp methods.Michael Albinus2021-11-181-1/+4
| | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Add 'abbreviate-file-name'. (tramp-gvfs-handle-expand-file-name): * lisp/net/tramp.el (tramp-handle-expand-file-name): Handle case that tilde cannot be expanded. * test/lisp/net/tramp-tests.el (tramp-test07-abbreviate-file-name): Extend test.
* | Eliminate ERT test name clashes (bug#51941)Mattias Engdegård2021-11-188-31/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/electric-tests.el (js-mode-braces-with-layout-and-indent): * test/lisp/emacs-lisp/cl-lib-tests.el (cl-lib-test-fifth): * test/lisp/thingatpt-tests.el (test-symbol-thing-2): Remove duplicated tests. * test/lisp/emacs-lisp/generator-tests.el (cps-loop): * test/lisp/emacs-lisp/ring-tests.el (ring-tests-insert): * test/lisp/help-tests.el (help-tests-substitute-command-keys/no-change): * test/lisp/net/netrc-tests.el (test-netrc-credentials): * test/lisp/progmodes/elisp-mode-tests.el (elisp-completes-functions-after-let-bindings): * test/lisp/thingatpt-tests.el (test-symbol-thing-3): * test/src/buffer-tests.el (deftest-overlayp-1, buffer-tests--*): * test/src/buffer-tests.el (test-buffer-swap-text-1): * test/src/data-tests.el (binding-test-set-constant-nil) (data-tests-logcount): Rename clashing tests.
* | Fix two failing tests in mh-utils-testsMike Kupfer2021-11-171-2/+12
| | | | | | | | | | | | | | | | * test/lisp/mh-e/mh-utils-tests.el (mh-test-utils-mock-call-process): Add mock for root folders. (mh-folder-completion-function-08-plus-slash) (mh-folder-completion-function-09-plus-slash-tmp): Skip these tests with Mailutils, which doesn't handle root folders. (Bug#51902)
* | Temporarily mark two failing tests as unstableStefan Kangas2021-11-171-5/+7
| | | | | | | | | | | | | | * test/lisp/mh-e/mh-utils-tests.el (mh-folder-completion-function-08-plus-slash) (mh-folder-completion-function-09-plus-slash-tmp): Temporarily mark two failing tests as unstable.
* | Some minor Tramp updatesMichael Albinus2021-11-161-1/+10
| | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-crypt.el (tramp-crypt-add-directory): Add comment. * lisp/net/tramp.el (tramp-debug-buffer-command-completion-p) (tramp-setup-debug-buffer): New defuns. (tramp-get-debug-buffer): Call `tramp-setup-debug-buffer. * test/lisp/net/tramp-tests.el (tramp-test07-abbreviate-file-name): Extend test.
* | Make results details in ert-run-tests-batch configurableMichael Herstine2021-11-162-30/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/ert.el (ert-batch-print-length) (ert-batch-print-level,.ert-batch-backtrace-line-length) (ert-batch-test, ert-run-tests-interactively): Added the three variables, bound them to these settings when formatting batch test results including backtraces. Removed the optional parameters output-buffer & message-fn from ert-run-tests-interactively. * test/lisp/emacs-lisp/ert-tests.el (ert-test-run-tests-interactively, ert-test-run-tests-batch): use cl-letf to capture output, new tests resp. * test/lisp/ert-x-tests.el (ert-test-run-tests-interactively-2): Changed to use cl-letf to capture output instead of using message-fn. * lisp/emacs-lisp/backtrace.el (backtrace--line-length-or-nil) (backtrace--print-func-and-args): Fixed a bug when setting backtrace-line-length to nil by adding a new function to check for that case & having backtrace--print-func-and-args use it. * doc/misc/ert.texi: document the new variables & their usage (bug#51037).
* | Add new 'keymap-*' functionsLars Ingebrigtsen2021-11-161-107/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/keymap.el: New file with all the new keymap-* functions. * lisp/loadup.el ("keymap"): Load. * lisp/subr.el (kbd): Refactor out all the code to key-parse. (define-key-after, keyboard-translate, global-set-key) (local-set-key, global-unset-key, local-unset-key) (local-key-binding, global-key-binding) (substitute-key-definition): Note in doc strings that these are legacy functions. (define-keymap--define): Use keymap-set. * lisp/emacs-lisp/byte-opt.el: Remove the optimizations for defvar-keymap and define-keymap since the macros now only understand the kbd syntax. * lisp/emacs-lisp/bytecomp.el (byte-compile-define-keymap) (byte-compile-define-keymap--define): Warn about invalid key definitions in all keymap-* functions. * lisp/emacs-lisp/shortdoc.el (keymaps): Add shortdocs form keymap* functions. * src/keymap.c (possibly_translate_key_sequence): Adjust callers to key-valid-p and key-parse. (syms_of_keymap): Adjust defs.
* | Fix handling of folder "+/" in MH-EMike Kupfer2021-11-151-4/+2
| | | | | | | | | | | | | | | | | | * lisp/mh-e/mh-utils.el (mh-sub-folders): Fix handling of "+/". * test/lisp/mh-e/mh-utils-tests.el (mh-folder-completion-function-08-plus-slash) (mh-folder-completion-function-09-plus-slash-tmp): Fix errors made importing tests from mh-unit.el; remove declaration that these tests are expected to fail.
* | Fix recently changed wdired test on MS-WindowsStefan Kangas2021-11-161-5/+6
| | | | | | | | | | | | * test/lisp/wdired-tests.el (wdired-test-bug34915): Don't try to create a local socket on MS-Windows, as it is not supported on that platform. Problem reported by Robert Pluim <rpluim@gmail.com>.
* | Fix minor problems resulting from Tramp regression testsMichael Albinus2021-11-151-11/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-sshfs.el (tramp-sshfs-file-name-handler-alist): Add comment. * lisp/net/tramp-cache.el (tramp-flush-file-upper-properties): FILE can be "~". * lisp/net/tramp.el ('tramp-ensure-dissected-file-name): Add `tramp-suppress-trace' property. (tramp-get-debug-buffer): Add local key for debugging. (tramp-handle-abbreviate-file-name): Adapt implementation. * test/lisp/net/tramp-tests.el (tramp-test07-abbreviate-file-name): Adapt test. (tramp-test17-insert-directory-one-file) (tramp--test-check-files): Use proper `no-dir' argument for `dired-get-filename'.
* | Add another 'abbreviate-file-name' testJim Porter2021-11-151-0/+9
| | | | | | | | | | * test/lisp/files-tests.el (files-tests-file-name-non-special-abbreviate-file-name): New test.
* | Support abbreviating home directory of Tramp filenamesJim Porter2021-11-151-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/files.texi (Magic File Names): Mention 'abbreviate-file-name' in the list of magic file name handlers. * etc/NEWS: Announce the change. * lisp/files.el (file-name-non-special): * lisp/net/tramp.el (tramp-file-name-for-operation): * 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-sudoedit.el (tramp-sudoedit-file-name-handler-alist): Add 'abbreviate-file-name'. * lisp/files.el (directory-abbrev-make-regexp): (directory-abbrev-apply): New functions. (abbreviate-file-name): Check for file name handler. * test/lisp/net/tramp-tests.el (tramp-test07-abbreviate-file-name): New test.
* | Fix hanging wdired testStefan Kangas2021-11-151-12/+10
| | | | | | | | | | | | * test/lisp/wdired-tests.el (wdired-test-bug34915): Fix hanging test. Don't start the Emacs Server just to create a socket; just create the socket manually.