summaryrefslogtreecommitdiff
path: root/test/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Fix Tramp testMichael Albinus2022-06-031-0/+1
| | | | | * test/lisp/net/tramp-tests.el (tramp-test31-signal-process): Skip on MS Windows.
* Reinstate the Qload file name handlerLars Ingebrigtsen2022-06-021-2/+1
| | | | | * src/lread.c (Fload): Reinstate the Qload file name handler (bug#12598). This makes loading non-ASCII elc.gz files work.
* Merge remote-tracking branch 'refs/remotes/origin/master'Stefan Monnier2022-06-011-4/+12
|\
| * Make files-tests.el more robustMichael Albinus2022-06-011-4/+12
| | | | | | | | | | | | * test/lisp/files-tests.el (files-tests--with-temp-non-special) (files-tests--with-temp-non-special-and-file-name-handler): Make it more robust wrt parallel test jobs. (Bug#55706)
* | bindat (strz): Fix wrong-type-argument error when unpackingRichard Hansen2022-06-011-1/+0
| | | | | | | | | | | | | | * lisp/emacs-lisp/bindat.el (strz): Fix (wrong-type-argument number-or-marker-p nil) error when unpacking a strz with unspecified (variable) length. * test/lisp/emacs-lisp/bindat-tests.el (strz): Mark test as passing.
* | bindat (strz): Fix off-by-one bug in computed lengthRichard Hansen2022-06-011-2/+0
| | | | | | | | | | | | * lisp/emacs-lisp/bindat.el (strz): Include null terminator when computing packed string length. * test/lisp/emacs-lisp/bindat-tests.el (strz): Mark tests as passing.
* | ; bindat-tests (strz): Add more testsRichard Hansen2022-06-011-0/+69
|/
* Add a last-modified field when a bookmark is setManuel Giraud2022-05-311-9/+21
| | | | | | | | | | | | | * test/lisp/bookmark-tests.el (bookmark-tests-make-record) (bookmark-tests-make-record-list, bookmark-tests-set): fix tests to not consider last-modified in bookmark equality. * lisp/bookmark.el (bookmark-make-record-default): add a last-modified field. (bookmark-sort-flag): add the 'last-modified choice. (bookmark-get-last-modified): new function to get last-modified bookmark field. (bookmark-maybe-sort-alist): sort in last-modified first order. (bookmark-completing-read): use `bookmark-maybe-sort-alist'.
* Speed up generation of loaddefs filesLars Ingebrigtsen2022-05-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/loading.texi (Autoload, Autoload by Prefix): Refer to loaddefs-generate instead of update-file-autoloads. * lisp/Makefile.in (LOADDEFS): Remove, because all the loaddefs files are created in one go now. (COMPILE_FIRST): Add loaddefs-gen/radix-tree, and drop autoload. ($(lisp)/loaddefs.el): Use loaddefs-gen. (MH_E_DIR, $(TRAMP_DIR)/tramp-loaddefs.el) ($(MH_E_DIR)/mh-loaddefs.el, $(CAL_DIR)/cal-loaddefs.el) ($(CAL_DIR)/diary-loaddefs.el, $(CAL_DIR)/hol-loaddefs.el): Remove. * lisp/generic-x.el: Inhibit computing prefixes, because the namespace here is all wonky. * lisp/w32-fns.el (w32-batch-update-autoloads): Removed -- unused function. * lisp/calendar/holidays.el ("holiday-loaddefs"): Renamed from hol-loaddefs to have a more regular name. * lisp/cedet/ede/proj-elisp.el (ede-emacs-cedet-autogen-compiler): Refer to loaddefs-gen instead of autoload. * lisp/emacs-lisp/autoload.el (make-autoload, autoload-rubric) (autoload-insert-section-header): Made into aliases of loaddefs-gen functions. (autoload--make-defs-autoload): Ditto. (autoload-ignored-definitions, autoload-compute-prefixes): Moved to loaddefs-gen. * lisp/emacs-lisp/lisp-mode.el (lisp-mode-autoload-regexp): New constant. (lisp-fdefs, lisp-mode-variables, lisp-outline-level): Use it to recognize all ;;;###autoload forms. * lisp/emacs-lisp/loaddefs-gen.el: New file. * lisp/emacs-lisp/package.el: Use loaddefs-generate instead of make-directory-autoloads. * test/lisp/vc/vc-bzr-tests.el (vc-bzr-test-faulty-bzr-autoloads): Use loaddefs instead of autoloads.
* Merge from origin/emacs-28Stefan Kangas2022-05-301-0/+1
|\ | | | | | | 1b7b69e764 Some Tramp cleanup on MS Windows
| * Some Tramp cleanup on MS WindowsMichael Albinus2022-05-291-0/+1
| | | | | | | | | | | | | | | | * lisp/net/tramp.el (tramp-restricted-shell-hosts-alist): Do not add localhost when `tramp-encoding-shell' is a POSIX shell. * test/lisp/net/tramp-tests.el (tramp-test31-interrupt-process): Skip on MS Windows.
| * Fix Tramp sshfs tests (don't merge)Michael Albinus2022-05-171-5/+11
| | | | | | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-fuse-remove-hidden-files): Declare. (tramp-test16-directory-files) (tramp-test16-file-expand-wildcards) (tramp-test26-file-name-completion, tramp--test-check-files): Use it. (tramp--test-check-files): Delete directory recursively.
| * * test/lisp/net/tramp-tests.el (tramp-test27-load): Adapt test. Don't mergeMichael Albinus2022-05-151-1/+3
| |
* | ISO 8601 strings sans "Z" don’t specify DST flagPaul Eggert2022-05-291-10/+10
| | | | | | | | | | | | | | | | * lisp/calendar/iso8601.el (iso8601--zone-dst): New function. (iso8601-parse, iso8601-parse-time): Use it. (iso8601--decoded-time): Default dst to -1, not nil. * test/lisp/calendar/iso8601-tests.el (test-iso8601-combined) (standard-test-time-of-day-zone): Adjust to new behavior.
* | Fix Python Hideshow problem with backslash escaped newlineskobarity2022-05-281-0/+54
| | | | | | | | | | | | | | * lisp/progmodes/python.el (python-rx) (python-nav-beginning-of-defun-regexp): Allow python-nav-*-defun to handle backslash escaped newlines (bug#55690).
* | Fix navigation in the *Completions* buffer and enable more tests (bug#54374)Juri Linkov2022-05-271-28/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/ido.el: Use first-completion instead of next-completion. * lisp/minibuffer.el (completion--insert): Put completion--string text property on prefix and suffix as well. * lisp/simple.el (first-completion, last-completion): New commands. (next-completion): Rewrite to fix many bugs reported in bug#54374, bug#55289, bug#55430. (choose-completion): Use the text property completion--string that allows to select a completion when point is on its prefix or suffix. (switch-to-completions): Use first-completion instead of next-completion, and last-completion instead of previous-completion. * test/lisp/minibuffer-tests.el (completion-auto-select-test) (completion-auto-wrap-test, completions-header-format-test) (completions-affixation-navigation-test): Uncomment fixed lines.
* | Test suite for Completions UI (bug#54374)Juri Linkov2022-05-261-0/+123
| | | | | | | | | | | | | | | | * test/lisp/minibuffer-tests.el (completing-read-with-minibuffer-setup): New macro based on xdisp-tests--in-minibuffer. (completion-auto-help-test, completion-auto-select-test) (completion-auto-wrap-test, completions-header-format-test) (completions-affixation-navigation-test): New tests.
* | * test/lisp/files-resources/compile-utf8.el: Use lexical-bindingStefan Monnier2022-05-261-0/+1
| |
* | Reset 'eshell-in-pipeline-p' when interpolating commandsJim Porter2022-05-251-0/+29
| | | | | | | | | | | | | | | | | | * lisp/eshell/esh-cmd.el (eshell-subcommand-bindings) (eshell-command-to-value): Set 'eshell-in-pipeline-p' to nil. * test/lisp/eshell/eshell-tests.el (eshell-test/subcommand-reset-in-pipeline) (eshell-test/lisp-reset-in-pipeline): New tests (bug#55620).
* | ; Fix inevitable failure in erc-dcc testF. Jason Park2022-05-241-37/+39
| | | | | | | | | | | | * test/lisp/erc/erc-dcc-tests.el (erc-dcc-tests--dcc-handle-ctcp-send): Shadow hook to prevent the erc-button module from interfering with tests that use this helper.
* | Keep subcommands in pipelines from clobbering the head/tail processesJim Porter2022-05-241-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/eshell/esh-cmd.el (eshell-execute-pipeline): Use 'make-symbol' for headproc and tailproc. (eshell-do-pipelines, eshell-do-pipelines-synchronously): Adapt to the above. * test/lisp/eshell/eshell-tests.el (eshell-test/pipe-subcommand) (eshell-test/pipe-subcommand-with-pipe): New test. * doc/misc/eshell.texi (Bugs and ideas): Remove item about piping to process from loop; this commit fixes it (bug#55590).
* | Recognize DCC SSEND when receiving files in erc-dccF. Jason Park2022-05-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | * lips/erc/erc-dcc.el (erc-dcc-open-network-stream): Use TLS for new connections when :secure flag is set. (erc-dcc-do-GET-command): Set secure flag when user explicitly passes an "-s" option. (erc-dcc-do-LIST-command): Show an "s" to indicate a secure connection when applicable. (erc-dcc-query-handler-alist): Add extra items for "SSEND", etc. (erc-dcc-handle-ctcp-send): Set secure flag when a leading "S" appears in the command type.
* | Accommodate nonstandard turbo file senders in erc-dccF. Jason Park2022-05-221-0/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/erc/erc-dcc.el (erc-dcc-list): Document optional :turbo item. (erc-message-english-dcc-list-{head,line,item}): Adjust format strings to make room for "(T)" turbo indicator. (erc-dcc-do-GET-command): Optionally set :turbo in `erc-dcc-list' entry when passed "-t" in the "/DCC GET" slash command. Also add switch to command line in front-matter Commentary, but refrain from publicizing further because our implementation is only defensive and only for receiving. (erc-dcc-do-LIST): Print message with new format specifier for turbo status. (erc-dcc-ctcp-query-send-regexp): Account for T- and S-prefixed commands. Receiving from an SSEND-capable sender will be added in a subsequent commit. (erc-dcc-handle-ctcp-send): Set :turbo item in `erc-dcc-list' member when new match group is nonempty. (erc-dcc--X-send-final-turbo-ack): New internal variable and potential future option for extreme corner cases involving maverick turbo senders, like WeeChat, who don't use the TSEND command variant. (erc-dcc-get-filter): Don't send when turbo is active. * test/lisp/erc/erc-dcc-tests.el: Add new file. (Bug#54458)
* | Fix bytecomp-test--with-suppressed-warnings testLars Ingebrigtsen2022-05-221-1/+1
| | | | | | | | | | | | * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-test--with-suppressed-warnings): Adjust test to change in warning message.
* | Don't font-lock invalid invalid class/function nameskobarity2022-05-221-0/+12
| | | | | | | | | | * lisp/progmodes/python.el (python-font-lock-keywords-level-1): Don't font-lock invalid invalid class/function names (bug#55573).
* | Properly indent Python PEP634 match/case blocksLele Gaifax2022-05-221-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | Python 3.10 introduced the "structural pattern matching" syntax, and commit 139042eb8629e6fd49b2c3002a8fc4d1aabd174d told font-lock about the new keywords. This adds them also as block-start statements, to enable proper indentation of such blocks. * lisp/progmodes/python.el (python-rx): Add "match" and "case" as block-start keywords. * test/lisp/progmodes/python-tests.el (python-indent-after-match-block, python-indent-after-case-block): New tests to verify indentation of "match" and "case" blocks (bug#55572).
* | Some cleanups in tramp-tests.elMichael Albinus2022-05-211-13/+17
| | | | | | | | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-fuse-remove-hidden-files): Declare. (tramp-test16-directory-files) (tramp-test16-file-expand-wildcards) (tramp-test26-file-name-completion, tramp--test-check-files): Use it. (tramp--test-check-files): Delete directory recursively. (tramp-test43-file-system-info): Make test more robust.
* | Fix recently introduced Python font lock breakage of chained assignmentskobarity2022-05-211-0/+7
| | | | | | | | | | * lisp/progmodes/python.el (python-font-lock-assignment-matcher): Fix fontification of chained assignments (bug#54992).
* | zap-to-char: case sensitive for upper-case charactersTino Calancha2022-05-212-1/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In interactive calls, behave case-sensitively if the given char is an upper-case character. Same for zap-up-to-char (Bug#54804). This is analog to what the user-level incremental search feature does. * lisp/misc.el (zap-up-to-char): Add an optional arg INTERACTIVE. Perform a case-sensitive search when INTERACTIVE is non-nil and CHAR is an upper-case character. * lisp/simple.el (zap-to-char): Same. * etc/NEWS (Editing Changes in Emacs 29.1): Announce this change. * test/lisp/misc-tests.el (misc-test-zap-up-to-char): Add test cases. * test/lisp/simple-tests.el (with-zap-to-char-test): Add helper macro. (simple-tests-zap-to-char): Add a test.
* | Rename compare-window-configurations and update docLars Ingebrigtsen2022-05-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/windows.texi (Window Configurations): Update name. * lisp/strokes.el (strokes-window-configuration-changed-p): * lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): Update callers and references. * lisp/subr.el (compare-window-configurations): Make into obsolete alias. * src/window.c (Fwindow_configuration_equal_p): Rename (bug#14964).
* | Add a new command 'yank-in-context'Lars Ingebrigtsen2022-05-201-0/+34
| | | | | | | | | | | | | | | | | | | | * lisp/simple.el (escaped-string-quote): New variable. (yank-in-context): New command. (yank-in-context--transform): Helper function. * lisp/progmodes/sh-script.el (sh-mode): Set up an escaped-string-quote function. * lisp/progmodes/sql.el (sql-mode): Define escaped-string-quote.
* | Fix pp-emacs-lisp-code printing of cons cellsLars Ingebrigtsen2022-05-171-0/+12
| | | | | | | | | | * lisp/emacs-lisp/pp.el (pp--insert-lisp): Fix printing of cons cells (bug#55478).
* | Fix Python highlighting of some assignment statementskobarity2022-05-161-0/+160
| | | | | | | | | | * lisp/progmodes/python.el (python-rx): Limit not-simple-operator to a single line (bug#51362).
* | Recognize some more SCSS selectorsSimen Heggestøyl2022-05-151-0/+4
| | | | | | | | | | | | | | | | * lisp/textmodes/css-mode.el (css--selector-regexp): Recognize some more SCSS selectors. * test/lisp/textmodes/css-mode-resources/scss-selectors.txt: Add tests for them.
* | Fix warning suppression in (S)CSS mode testsSimen Heggestøyl2022-05-151-2/+2
| | | | | | | | | | * test/lisp/textmodes/css-mode-tests.el (css-mode-test-selectors) (scss-mode-test-selectors): Fix warning suppression.
* | Don't freeze Emacs on colour codes in sccs-modeLars Ingebrigtsen2022-05-153-0/+131
| | | | | | | | | | | | * lisp/textmodes/css-mode.el (css--font-lock-keywords): Don't freeze Emacs on #ffffff #ffffff, and be more strict in parsing selectors (bug#53203).
* | ; Fix typosStefan Kangas2022-05-153-4/+4
| |
* | Fix undigest-tests on MS-WindowsEli Zaretskii2022-05-141-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/ert-x.el (ert-with-temp-file): Accept a new keyword argument :coding CODING to use as the encoding when writing initial text to the temporary file. * test/lisp/mail/undigest-tests.el (rmail-undigest-test-rfc934-digest) (rmail-undigest-test-rfc1153-digest-strict) (rmail-undigest-test-rfc1153-less-strict-digest) (rmail-undigest-test-rfc1153-sloppy-digest) (rmail-undigest-test-rfc1521-mime-digest) (rmail-undigest-test-multipart-mixed-digest): Force the temporary mbox files to have Unix-style EOL format.
* | Use ert-with-temp-file in undigest-tests.elStefan Kangas2022-05-131-72/+49
| | | | | | | | | | | | | | | | | | | | * test/lisp/mail/undigest-tests.el (ert-x): Require. (rmail-undigest-test-rfc934-digest) (rmail-undigest-test-rfc1153-digest-strict) (rmail-undigest-test-rfc1153-less-strict-digest) (rmail-undigest-test-rfc1153-sloppy-digest) (rmail-undigest-test-rfc1521-mime-digest) (rmail-undigest-test-multipart-mixed-digest): Use ert-with-temp-file.
* | char-uppercase-p: New predicateTino Calancha2022-05-111-0/+7
| | | | | | | | | | | | | | | | | | | | | | Return non-nil if its argument is an uppercase character. Suggested in Bug#54804. * lisp/subr.el (char-uppercase-p): New defun. * etc/NEWS (Lisp Changes in Emacs 29.1): Announce it * doc/lispref/display.texi (Size of Displayed Text): Document it. * test/lisp/subr-tests.el (test-char-uppercase-p): Add a test.
* | Improve handling of `tramp-set-file-uid-gid'Michael Albinus2022-05-111-1/+3
| | | | | | | | | | | | | | | | * lisp/net/tramp.el (tramp-skeleton-write-region): Call `tramp-set-file-uid-gid' properly. (tramp-set-file-uid-gid): Handle also `tramp-crypt-file-name-handler'. * test/lisp/net/tramp-tests.el (tramp-test27-load): Adapt test.
* | Warn about quoted symbols in defcustom choice/other formsLars Ingebrigtsen2022-05-111-0/+6
| | | | | | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile--suspicious-defcustom-choice): New function (bug#16271). (byte-compile-nogroup-warn): Use it to warn about forms like (choice (const :tag "foo" 'bar)).
* | Improve Tramp testsMichael Albinus2022-05-091-18/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-smb.el (tramp-smb-handle-copy-file): Handle compressed files. * lisp/net/tramp.el (tramp-skeleton-write-region): Handle encrypted VISIT file. (tramp-get-process-attributes): Add backward compatibility. * test/lisp/net/tramp-tests.el (with-connection-local-variables): Declare. (auto-save-file-name-transforms): Don't declare. (ert-resource-directory-format) (ert-resource-directory-trim-left-regexp) (ert-resource-directory-trim-right-regexp, ert-resource-directory) (ert-resource-file): Define if they don't exist. (tramp-test10-write-region-file-precious-flag) (tramp-test10-write-region-other-file-name-handler) (tramp-test31-interrupt-process, tramp-test31-signal-process) (tramp--test-async-shell-command) (tramp-test34-connection-local-variables) (tramp-test39-make-lock-file-name) (tramp-test39-detect-external-change): Extend tests.
* | Fix compilation warnings in newer subr testsLars Ingebrigtsen2022-05-071-11/+12
| | | | | | | | | | * test/lisp/subr-tests.el (test-local-set-state): Fix compilation warnings.
* | Allow inhibiting linkification in *Help* buffersLars Ingebrigtsen2022-05-071-1/+1
| | | | | | | | | | | | * doc/lispref/help.texi (Keys in Documentation): Document it. lisp/help-mode.el (help-make-xrefs): Implement a new \+ syntax to inhibit buttonification.
* | Add char-folding of double quotes in isearch-fold-quotes-mode (bug#24510)Juri Linkov2022-05-061-0/+3
| | | | | | | | | | | | | | | | * lisp/isearch.el (isearch-fold-quotes-mode): Add char-folding of double quotation marks. * test/lisp/subr-tests.el (test-local-set-state): Test values after setting state.
* | Move buffer-local-set-state to subr because it's used at runtimeLars Ingebrigtsen2022-05-062-12/+12
| | | | | | | | | | | | * lisp/subr.el (buffer-local-set-state) (buffer-local-set-state--get, buffer-local-restore-state): Moved from easy-mmode.el because they have to be available run-time.
* | Add new helper macros for minor modes to restore variablesLars Ingebrigtsen2022-05-061-1/+11
| | | | | | | | | | | | | | | | | | | | | | * doc/lispref/modes.texi (Defining Minor Modes): Document it. * lisp/emacs-lisp/easy-mmode.el (buffer-local-set-state): New macro. (buffer-local-set-state--get): Helper function. (buffer-local-restore-state): New function. * lisp/textmodes/word-wrap-mode.el (word-wrap-whitespace-mode): Use it to simplify code.
* | Fix a mistaken test case in test-undo-regionLars Ingebrigtsen2022-05-051-2/+2
| | | | | | | | | | | | * test/lisp/simple-tests.el (test-undo-region): Fix failing cases (bug#21523) -- the crossing-region case shouldn't be included, either.
* | Add Tramp testMichael Albinus2022-05-052-10/+50
| | | | | | | | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tar-mode): Require. (tramp-test10-write-region-other-file-name-handler): New test. (tramp-test31-interrupt-process, tramp-test31-signal-process): Tag them :unstable unconditionally. * test/lisp/net/tramp-resources/foo.tar.gz: New resource file.