aboutsummaryrefslogtreecommitdiffstats
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | ; Fix docstring in TrampMichael Albinus2020-02-021-1/+2
| | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test32-shell-command-dont-erase-buffer): Fix docstring.
* | Implement `shell-command-dont-erase-buffer' in Tramp. (Bug#39067)Michael Albinus2020-02-011-26/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp.el (tramp-handle-shell-command): Handle `shell-command-dont-erase-buffer'. (Bug#39067) * test/lisp/net/tramp-tests.el (shell-command-dont-erase-buffer): Declare. (tramp-test10-write-region, tramp-test21-file-links): Use function symbols. (tramp--test-async-shell-command): Don't assume that `async-shell-command' returns the process object. (tramp-test32-shell-command): Rework `async-shell-command-width' test. (tramp-test32-shell-command-dont-erase-buffer): New test.
* | Give fuller support for obsolete ---12 dates in iso8601Lars Ingebrigtsen2020-01-301-3/+7
| | | | | | | | | | | | * lisp/calendar/iso8601.el (iso8601--outdated-reduced-precision-date-match): New constant. (iso8601--date-match): Use it.
* | Make iso8601.el understand two obsolete formsLars Ingebrigtsen2020-01-301-0/+8
| | | | | | | | | | | | * lisp/calendar/iso8601.el (iso8601-parse-date): Understand some obsolete formats to provide compatibility with the vCard RFC (bug#39347).
* | Fix problems in Tramp's async-shell-commandMichael Albinus2020-01-271-20/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-adb.el (tramp-adb-handle-make-process): * lisp/net/tramp-cache.el (top): * lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Use `insert-file-contents-literally'. * lisp/net/tramp.el (tramp-parse-file): Use `insert-file-contents-literally'. (tramp-handle-shell-command): Reorganize error-buffer handling. (tramp-handle-start-file-process): Use `consp' instead of `listp'. * test/lisp/net/tramp-tests.el (tramp-test31-interrupt-process): Bind `delete-exited-processes'. (tramp--test-async-shell-command): Bind `delete-exited-processes'. Add additional `accept-process-output'. Move cleanup of output buffer ... (tramp-test32-shell-command): ... here. Test error buffer also for `async-shell-command'.
* | Add more tests for bookmark-bmenu-listStefan Kangas2020-01-261-3/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/bookmark-tests.el (cl-lib): Require. (bookmark-test-bmenu-toggle-filenames) (bookmark-test-bmenu-toggle-filenames/show) (bookmark-test-bmenu-show-filenames) (bookmark-test-bmenu-hide-filenames) (bookmark-test-bmenu-bookmark, bookmark-test-bmenu-mark) (bookmark-test-bmenu-any-marks, bookmark-test-bmenu-unmark) (bookmark-test-bmenu-delete, bookmark-test-bmenu-locate): New tests. (bookmark-test-bmenu-edit-annotation/show-annotation): Rename from 'bookmark-bmenu-edit-annotation/show-annotation'. (bookmark-test-bmenu-send-edited-annotation): Rename from 'bookmark-bmenu-send-edited-annotation'. (bookmark-test-bmenu-send-edited-annotation/restore-focus): Rename from 'bookmark-bmenu-send-edited-annotation/restore-focus'.
* | Remove (or double) redundant backslashes in string literalsMattias Engdegård2020-01-246-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See discussion at https://lists.gnu.org/archive/html/emacs-devel/2020-01/msg00749.html . * lisp/obsolete/iswitchb.el (iswitchb-summaries-to-end): * test/src/regex-emacs-tests.el (regex-tests-BOOST-frob-escapes): * test/lisp/help-fns-tests.el (help-fns-test-lisp-macro) (help-fns-test-lisp-defun, help-fns-test-lisp-defsubst) (help-fns-test-alias-to-defun, help-fns-test-bug23887): Double backslashes for desired effect. * lisp/org/ol.el (org-link-escape): * lisp/net/nsm.el (nsm-protocol-check--rsa-kx) (nsm-protocol-check--anon-kx, nsm-protocol-check--sha1-sig): * lisp/obsolete/old-whitespace.el (whitespace-buffer): * lisp/obsolete/rcompile.el (remote-compile-run-before): * lisp/obsolete/vi.el (vi-end-of-blank-delimited-word): * lisp/obsolete/vip.el (vip-current-major-mode) (vip-paren-match, vip-switch-to-buffer) (vip-switch-to-buffer-other-window, vip-kill-buffer) (vip-get-ex-token, ex-edit): * lisp/org/org-element.el (org-element--cache-sync-requests): * lisp/org/org.el (org-sparse-tree): * lisp/textmodes/reftex.el (reftex-report-bug): * test/lisp/ibuffer-tests.el (ibuffer-save-filters): * test/lisp/international/ucs-normalize-tests.el (ucs-normalize-tests--insert-failing-lines): * test/lisp/simple-tests.el (undo-test-kill-c-a-then-undo): * test/lisp/textmodes/conf-mode-tests.el (conf-test-toml-mode): * test/src/regex-emacs-tests.el (regex-tests-compare): Remove redundant backslashes.
* | Fix iso8601-parse so unknown DST is -1, not nilPaul Eggert2020-01-241-71/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The convention in a decoded time’s dst flag is that t means DST, nil means standard time, and -1 means unknown. This differs from the convention for other components of a decoded time, where nil means unknown. Fix some places where iso8601-parse mistakenly treated nil as meaning that the dst flag was unknown. * doc/lispref/os.texi (Time Parsing): Adjust to match parse-time-string’s doc string. * lisp/calendar/iso8601.el (iso8601-parse): Set dst flag to nil if a numeric time zone or "Z" is given. (iso8601--decoded-time): Default dst flag to -1 if no dst flag or zone is given. * lisp/calendar/time-date.el (decoded-time-set-defaults): When we don’t have a time zone, set the dst flag consistently with DEFAULT-ZONE. * test/lisp/calendar/iso8601-tests.el (test-iso8601-date-years) (test-iso8601-date-dates, test-iso8601-date-obsolete) (test-iso8601-date-weeks, test-iso8601-date-ordinals) (test-iso8601-time, test-iso8601-combined) (test-iso8601-duration, test-iso8601-intervals) (standard-test-dates, standard-test-time-of-day-local-time) (standard-test-time-of-day-fractions) (nonstandard-test-time-of-day-decimals) (standard-test-time-of-day-beginning-of-day) (standard-test-date-and-time-of-day, standard-test-interval): Adjust tests to match fixed behavior.
* | Add tests for version comparison predicatesStefan Kangas2020-01-241-0/+21
| | | | | | | | | | * test/lisp/subr-tests.el (subr-test-version-list-<) (subr-test-version-list-=, subr-test-version-list-<=): New tests.
* | Adapt tramp-test32-shell-commandMichael Albinus2020-01-241-17/+12
| | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test32-shell-command): Test error buffer for synchronous `shell-command' only.
* | Fix crash when sending Gnus message (Bug#39207)Paul Eggert2020-01-221-0/+7
| | | | | | | | | | | | * src/alloc.c (resize_string_data): The string must be multibyte. When not bothering to reallocate, do bother to change the byte count. * test/src/alloc-tests.el (aset-nbytes-change) New test.
* | Minor cleanup in {autorevert,filenotify,shadowfile}-tests.elMichael Albinus2020-01-223-27/+26
| | | | | | | | | | | | | | | | * test/lisp/autorevert-tests.el (tramp-message-show-message): * test/lisp/shadowfile-tests.el (tramp-message-show-message): * test/lisp/filenotify-tests.el (tramp-message-show-message) Do Not set. (file-notify-test04-autorevert): Inhibit messages.
* | * test/lisp/auth-source-pass-tests.el: Test for multiple ports.Damien Cassou2020-01-221-0/+4
| |
* | Merge from origin/emacs-27Glenn Morris2020-01-202-1/+65
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 154cd116be (origin/emacs-27) * admin/release-process: Adapt bug numbe... fd19282134 Fix shell-tests failures 891f7de8ed * test/lisp/simple-tests.el: Full path to Emacs binary (bu... 92f30d62c0 * lisp/tab-line.el (tab-line-auto-hscroll): Fix for long t... dde313151d * lisp/menu-bar.el (menu-bar-options-menu): Add desktop-sa... 3543b9fad9 ; Fix a test (Bug#39067) 83f9fe44fa ; * etc/NEWS: Fix typo. 2eb0b7835d Fix shell-command-dont-erase-buffer feature c134978a76 Remove reference to Emacs 19 from FAQ fabf0065c5 Doc fixes in package.el # Conflicts: # etc/NEWS
| * Fix shell-tests failuresMattias Engdegård2020-01-201-1/+9
| | | | | | | | | | | | | | * test/lisp/shell-tests.el (shell-tests-completion-before-semi): Go back to actually testing completion before semicolon. (shell-tests-completion-after-semi): Test completion after semicolon, correctly (bug#39075).
| * * test/lisp/simple-tests.el: Full path to Emacs binary (bug#39067).Mattias Engdegård2020-01-201-1/+3
| |
| * ; Fix a test (Bug#39067)Tino Calancha2020-01-191-1/+1
| | | | | | | | | | * test/lisp/simple-tests.el (with-shell-command-dont-erase-buffer): Use flag -Q to prevent from loading site-lisp files.
| * Fix shell-command-dont-erase-buffer featureTino Calancha2020-01-191-0/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/simple.el (shell-command-dont-erase-buffer): The default, nil, is backward compatible, i.e. it erases the buffer only if the output buffer is not the current one; the new value 'erase always erases the output buffer. Update docstring. (shell-command-save-pos-or-erase): Add optional arg output-to-current-buffer. Rename it so that it's not internal. All callers updated. (shell-command-set-point-after-cmd): Rename it so that it's not internal. All callers updated. Adjust it to cover a side case. (shell-command): Adjust logic to match the specification (Bug#39067). Enable the feature when the output buffer is the current one. (shell-command-on-region): Little tweak to follow `shell-command-dont-erase-buffer' specification. * test/lisp/simple-tests.el (with-shell-command-dont-erase-buffer): Add helper macro. (simple-tests-shell-command-39067) (simple-tests-shell-command-dont-erase-buffer): Add tests. * doc/emacs/misc.texi (Single Shell): Update manual. * etc/NEWS (Single shell commands): Announce the change.
* | Merge from origin/emacs-27Glenn Morris2020-01-201-2/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | f3d30b5303 Remove some doc references to old Emacs versions 4217bc229b Fix infloop in shell.el 74b151195d Fix erc-notifications-notify for non-PRIVMSGs, broken in l... db4436eaf9 Fix the notification action for PRIVMSG in erc-notificatio... 36a4068105 ERC: New maintainer. 2391d3f45d ; spelling fixes e898442be3 Honor tags-case-fold-search during xref identifer completion # Conflicts: # etc/NEWS
| * Fix infloop in shell.elPieter van Oostrum2020-01-181-2/+1
| | | | | | | | | | | | | | | | | | | | | | * test/lisp/shell-tests.el (shell-tests-completion-before-semi): Amend the shell.el tests to catch errors such as bug#39057. * lisp/shell.el (shell--parse-pcomplete-arguments): Skip the semi-colon as well. This avoids inflooping when a semi-colon is typed by the user. (Bug#39057) Copyright-paperwork-exempt: yes
* | Sync with Tramp 2.5.0-preMichael Albinus2020-01-192-27/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi: Protext Tramp x.y and Emacs x.y by @w{}. (GVFS-based methods): Move "GNOME Online Accounts" index. (Customizing Methods, Android shell setup, File name completion) (Frequently Asked Questions): Fix typos. * doc/misc/trampver.texi: Change version to "2.5.0-pre". * lisp/net/trampver.el: Change version to "2.5.0-pre". (inhibit-message): Don't declare. * lisp/net/tramp.el: Bump version to 2.5.0-pre. Require Emacs 25.1. (tramp-debug-message): Simplify. (tramp-message): Don't use `tramp-message-show-message'. (tramp-with-demoted-errors, with-parsed-tramp-file-name) (with-tramp-file-property, with-tramp-connection-property): Adapt `declare' form. (with-tramp-progress-reporter): Suppress progress reporter when noninteractive. (tramp-completion-mode, tramp-completion-mode-p): Remove. * lisp/net/tramp-compat.el (tramp-compat-process-running-p) (format-message): Remove compatibility code. (tramp-compat-directory-name-p) (tramp-compat-tramp-file-name-slots): Remove. * lisp/net/tramp.el (tramp-debug-message, tramp-message) (tramp-backtrace, tramp-error, tramp-error-with-buffer) (tramp-user-error, tramp-with-demoted-errors) (tramp-signal-hook-function): * lisp/net/tramp-compat.el (tramp-compat-funcall) * lisp/net/tramp-gvfs.el (tramp-dbus-function): Add `tramp-suppress-trace' property. * lisp/net/tramp.el (tramp-get-method-parameter) (tramp-dissect-file-name, tramp-error, tramp-error-with-buffer) (tramp-user-error, with-parsed-tramp-file-name) (with-tramp-progress-reporter, tramp-file-name-handler) (tramp-completion-file-name-handler, tramp-autoload-file-name-handler) (tramp-register-file-name-handlers, tramp-connectable-p) (tramp-handle-file-modes, tramp-handle-file-regular-p) (tramp-handle-file-truename, tramp-handle-insert-directory) (tramp-handle-load, tramp-set-file-uid-gid): * lisp/net/tramp-adb.el (tramp-adb-file-name-handler) (tramp-adb-handle-file-truename, tramp-adb-handle-copy-file) (tramp-adb-handle-rename-file): * lisp/net/tramp-archive.el (with-parsed-tramp-archive-file-name): * lisp/net/tramp-cache.el (tramp-get-file-property, tramp-cache-print): * lisp/net/tramp-compat.el (tramp-compat-process-running-p) (tramp-compat-exec-path): * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler) (tramp-gvfs-dbus-byte-array-to-string) (tramp-gvfs-do-copy-or-rename-file): * lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler) (tramp-rclone-do-copy-or-rename-file): * lisp/net/tramp-sh.el (tramp-sh-handle-file-truename) (tramp-sh-handle-copy-directory, tramp-do-copy-or-rename-file) (tramp-sh-handle-insert-directory, tramp-sh-file-name-handler) (tramp-maybe-open-connection): * lisp/net/tramp-smb.el (tramp-smb-file-name-handler) (tramp-smb-handle-copy-file, tramp-smb-handle-copy-directory) (tramp-smb-handle-copy-file, tramp-smb-handle-insert-directory) (tramp-smb-handle-rename-file, tramp-smb-maybe-open-connection): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler) (tramp-sudoedit-do-copy-or-rename-file) (tramp-sudoedit-handle-file-truename): Use `if-let', `when-let', `directory-name-p', `inhibit-message', `non-essential and `cl-struct-slot-info'. Don't use `seconds-to-time'. * test/lisp/net/tramp-archive-tests.el (tramp-message-show-message): Don't set. * test/lisp/net/tramp-tests.el (inhibit-message): Don't declare. (tramp-message-show-message): Don't set. (tramp-test06-directory-file-name): Use `non-essential'. (tramp-test10-write-region): Use `inhibit-message'. (tramp-test36-vc-registered): No special handling for old Emacsen. (tramp--test-emacs25-p): Remove. (tramp-test45-unload): Special case of `tramp-completion-mode'.
* | Merge from origin/emacs-27Glenn Morris2020-01-161-0/+20
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 52080b5778 (origin/emacs-27) * lisp/minibuffer.el (read-file-name-def... e4cec1fd10 ; * etc/NEWS: Fix some file name quotations. 13995f31a2 Make emacs prefer an existing ~/.emacs.d to an existing XD... 91cac24952 ; etc/NEWS minor edits 5505babc07 Describe --with-cairo non-support for bitmapped fonts. caf00066ee Mention GTK font chooser changes in NEWS 23b87db628 ; Unmaintain fortran elisp 3b0d1a50aa f90: handle F2008 module function 55803cc189 Move shell-related menu items to "Shell Commands" submenu ... 2be48605c0 * admin/notes/font-backend: Remove outdated file. (Bug#34663) f07a470124 Declare the ftx font backend driver obsolete 6c08a430fb ; Fix wording of a comment. # Conflicts: # admin/notes/font-backend # etc/NEWS
| * f90: handle F2008 module functionGlenn Morris2020-01-151-0/+20
| | | | | | | | | | | | | | * lisp/progmodes/f90.el (f90-font-lock-keywords-1) (f90-looking-at-program-block-start): Handle F2008 "module function" and subroutine. (Bug#38415) * test/lisp/progmodes/f90-tests.el (f90-test-bug38415): New test.
* | Add SASL SCRAM-SHA-256 support.Simon Josefsson2020-01-161-2/+24
| | | | | | | | | | | | | | | | * lisp/net/sasl.el (sasl-mechanisms): Add SCRAM-SHA-256. (sasl-mechanism-alist): Ditto. * lisp/net/sasl-scram-sha256.el: New file. * tests/lisp/net/sasl-scram-rfc-tests.el (sasl-scram-sha-256-test): New function.
* | Refactor Tramp async process codeMichael Albinus2020-01-141-88/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-adb.el (tramp-adb-handle-make-process): * lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Update stderr buffer when process has finished. Do not call `auto-revert'. * test/lisp/net/tramp-tests.el (tramp-test31-interrupt-process): Tag it :unstable. Change `accept-process-output' arguments. (tramp--test-async-shell-command): New defun. (tramp--test-shell-command-to-string-asynchronously): Use it. (tramp-test32-shell-command): Refactor code.
* | Fix sxhash-equal on bytecodes, markers, etc.Paul Eggert2020-01-072-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem reported by Pip Cet (Bug#38912#14). * doc/lispref/objects.texi (Equality Predicates): Document better when ‘equal’ looks inside objects. * doc/lispref/windows.texi (Window Configurations): Don’t say that ‘equal’ looks inside window configurations. * etc/NEWS: Mention the change. * src/fns.c (internal_equal): Do not look inside window configurations. (sxhash_obj): Hash markers, byte-code function objects, char-tables, and font objects consistently with Fequal. * src/window.c (compare_window_configurations): Now static. Remove last argument. Caller changed. * test/lisp/ffap-tests.el (ffap-other-window--bug-25352): Use compare-window-configurations, not ‘equal’. * test/src/fns-tests.el (test-sxhash-equal): New test.
* | Implement stderr in tramp-adb-handle-make-processMichael Albinus2020-01-071-65/+59
| | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-adb.el (tramp-adb-handle-make-process): Implement `stderr'. * lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Flush connection properties in time. * test/lisp/net/tramp-tests.el (tramp-test30-make-process) (tramp-test32-shell-command): Test asynchronous stderr for tramp-adb.
* | ; Adapt tramp-tests.elMichael Albinus2020-01-061-20/+72
| | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test30-make-process): (tramp-test32-shell-command): Extend for asynchronous stderr.
* | Also print function data when printing module functions.Philipp Stephani2020-01-052-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is especially useful in cases where modules only use a single entry point and use the data to dispatch to the actual function. Such a design is common for languages such as Go and C++. * src/emacs-module.c (module_function_data): New function. * src/print.c (print_vectorlike): Use it to print module function data if not NULL. (print_object): Adapt size of buffer. * test/data/emacs-module/mod-test.c (emacs_module_init): Pass some non-NULL data to ‘mod-test-sum’. (Fmod_test_sum): Check that correct data is passed through. * test/src/emacs-module-tests.el (mod-test-sum-test) (module-function-object): Adapt unit tests.
* | Make module function finalizer test less brittle.Philipp Stephani2020-01-041-5/+17
| | | | | | | | | | | | * test/src/emacs-module-tests.el (module/function-finalizer): Create 100 leaked functions to increase the probability that at least one gets garbage-collected.
* | Implement finalizers for module functions (Bug#30373)Philipp Stephani2020-01-032-2/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/module-env-28.h: Add new module environment functions to module environment for Emacs 28. * src/emacs-module.h.in: Document that 'emacs_finalizer' also works for function finalizers. * src/emacs-module.c (CHECK_MODULE_FUNCTION): New function. (struct Lisp_Module_Function): Add finalizer data member. (module_make_function): Initialize finalizer. (module_get_function_finalizer) (module_set_function_finalizer): New module environment functions. (module_finalize_function): New function. (initialize_environment): Initialize new environment functions. * src/alloc.c (cleanup_vector): Call potential module function finalizer during garbage collection. * test/data/emacs-module/mod-test.c (signal_error): New helper function. (memory_full): Use it. (finalizer): New example function finalizer. (Fmod_test_make_function_with_finalizer) (Fmod_test_function_finalizer_calls): New test module functions. (emacs_module_init): Define them. * test/src/emacs-module-tests.el (module/function-finalizer): New unit test. * doc/lispref/internals.texi (Module Functions): Document new functionality. (Module Misc): Move description of 'emacs_finalizer' type to 'Module Functions' node, and add a reference to it. * etc/NEWS: Mention new functionality.
* | Merge from origin/emacs-27Paul Eggert2020-01-01327-327/+327
|\ \ | |/ | | | | | | | | | | | | | | | | | | 186152ba40 Pacify gcc -Wunused-function on Ubuntu 18.04.3 4cd143aded Fix copyright years by hand 365e01cc9f Update copyright year to 2020 cd2c156163 ; * etc/NEWS: Make the description of XDG fallback more ac... # Conflicts: # etc/NEWS # etc/refcards/ru-refcard.tex
| * Fix copyright years by handPaul Eggert2020-01-012-2/+2
| | | | | | | | These are dates that admin/update-copyright did not update.
| * Update copyright year to 2020Paul Eggert2020-01-01325-325/+325
| | | | | | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
* | Merge from origin/emacs-27Glenn Morris2019-12-313-7/+9
|\ \ | |/ | | | | | | | | 9b6872b4e4 ; * test/lisp/calc/calc-tests.el: Fix warnings 957cdca6f0 Make minibuffer-tests work in out-of-tree builds (bug#38816) 2065316749 Make comint-tests more robust (bug#38813)
| * ; * test/lisp/calc/calc-tests.el: Fix warningsMattias Engdegård2019-12-301-0/+1
| |
| * Make minibuffer-tests work in out-of-tree builds (bug#38816)Mattias Engdegård2019-12-301-1/+2
| | | | | | | | | | * test/lisp/minibuffer-tests.el (completion-table-test-quoting): Set default-directory.
| * Make comint-tests more robust (bug#38813)Mattias Engdegård2019-12-301-6/+6
| | | | | | | | | | | | | | | | | | | | | | * test/lisp/comint-tests.el (comint-test-no-password-function) (comint-test-password-function-with-value) (comint-test-password-function-with-nil): Call accept-process-output as many times as needed, with a slightly more generous timeout (100 ms), after sending the Password: prompt to the process, since there must be time for some back-and-forth communication. Also clear the process-query-on-exit flag, since it doesn't go well with noninteractive tests.
| * Sync with Tramp 2.4.3Michael Albinus2019-12-291-14/+20
| | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/trampver.texi: * lisp/net/trampver.el: Change version to "2.4.3". * lisp/net/tramp.el: Bump version. (tramp-handle-shell-command): The temp file for error-buffer is remote. * test/lisp/net/tramp-tests.el (tramp-test30-make-process): Simplify buffer generation. (tramp-test32-shell-command): Extend test.
* | Sync with Tramp 2.4.3Michael Albinus2019-12-301-14/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/trampver.texi: * lisp/net/trampver.el: Change version to "2.4.3". * lisp/net/tramp.el: Bump version. (tramp-handle-shell-command): The temp file for error-buffer is remote. * test/lisp/net/tramp-tests.el (tramp-test30-make-process): Simplify buffer generation. (tramp-test32-shell-command): Extend test. (cherry picked from commit d6922db49dea33ac2bca8b33d24763cc7b2e4cd7)
* | Merge from origin/emacs-27Glenn Morris2019-12-301-13/+14
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 70fe552c61 ; xref-references-in-directory: Autoload as well 181f571651 Fix up requires 43f66c3368 Extract xref-matches-in-files from project--find-regexp-in... 65af18d86e Rename xref-collect-references and xref-collect-matches 98788bf976 ; Improve the docstring some more c190e91a1e Improve docstrings 012c12a05e Fix when expose draws partially visible first glyph (bug#3... d915b8c3f1 Don't require semantic/fw 50a0126402 Do some renames for clarity 74261ff301 Rearrange NEWS, add missing documentation 6c9571379e Fix interactive spec in netrc-parse 32222fb34c Fix documentation of define-obsolete-* functions # Conflicts: # etc/NEWS
| * Rename xref-collect-references and xref-collect-matchesDmitry Gutov2019-12-291-13/+14
| | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/xref.el (xref-references-in-directory): Rename from xref-collect-references. Update the sole caller. (xref-matches-in-directory): Rename from xref-collect-matches. Update all callers (all of them are in the /tests/ dir). * test/lisp/progmodes/xref-tests.el (xref-tests-data-dir): Don't use the EMACS_TEST_DIRECTORY env var. It doesn't work when running interactively.
* | Merge from origin/emacs-27Glenn Morris2019-12-271-0/+15
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | 8aad80d661 Fix installer build 47a73e3e14 Update Windows build documentation cd55984153 Calc: add missing dynamic variable declarations e8aa6f19e9 * doc/emacs/buffers.texi (Kill Buffer): Improve indexing. ccd7cd2c51 Speed up dired-do-find-regexp 7edb1f0773 ; Remove outdated declarations 6ab40c1a51 ; Clarify the assumption be38e39fcc project--find-regexp-in-files: Support remote files 21c3020fce Document some restrictions for module functions. e1ce9f3423 Don't recommend using 'module-load' for loading modules. 03f962a486 Port x_get_monitor_attributes_fallback to !HAVE_GTK3 0b32f59764 Fix compilation warning in gnus-start.el
| * Calc: add missing dynamic variable declarationsMattias Engdegård2019-12-261-0/+15
| | | | | | | | | | | | | | | | | | | | * lisp/calc/calc-alg.el (math-simplify-only, calc-simplify-mode) (math-expand-formulas, calc-poly-div-remainder) (math-living-dangerously, math-simplifying, calc-angle-mode) (calc-prefer-frac, math-poly-base-variable): Declare dynamic variables. * test/lisp/calc/calc-tests.el (calc-poly-div): Add test for at least one bug caused by missing declarations.
* | Support .dylib suffix for modules on macOS (Bug#36226).Philipp Stephani2019-12-251-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On macOS, shared libraries typically have the suffix .dylib. This commit switches the module suffix to .dylib on Darwin to account for that. To also support the .so suffix, introduce the concept of a secondary module suffix. * configure.ac: Switch MODULES_SUFFIX to .dylib for Darwin, introduce MODULES_SECONDARY_SUFFIX. * src/lread.c (Fload, syms_of_lread): Also use MODULES_SECONDARY_SUFFIX if defined. * test/src/emacs-module-tests.el (module-darwin-secondary-suffix): New unit test.
* | Further expand coverage of unit tests for time-stampStephen Gildea2019-12-231-24/+86
|/ | | | | | | | | * test/lisp/time-stamp-tests.el (time-stamp-custom-format-tabs-expand, time-stamp-custom-end, time-stamp-helper-string-defaults): New tests. (time-stamp-custom-count): Test 0 case. (time-stamp-format-non-date-conversions): Test different system values. Development of these new tests was guided by the "testcover" library.
* Added `comint-password-function' hookMichael R. Mauger2019-12-221-0/+68
| | | | | | | | | * etc/NEWS: * lisp/comint.el (comint-password-function): New variable. (comint-send-invisible): Use it. * test/lisp/comint-tests.el (comint-test-no-password-function, comint-test-password-function-with-value, comint-test-password-function-with-nil): Test new variable.
* Extend tramp-tests.el for other host name syntax and file name syntaxMichael Albinus2019-12-221-553/+656
| | | | | | | | | | | | | | | | | | | | | | * test/lisp/net/tramp-tests.el (inhibit-message) (connection-local-criteria-alist) (connection-local-profile-alist, async-shell-command-width): Declare. (tramp-test01-file-name-syntax) (tramp-test02-file-name-dissect): Set syntax to `default'. (tramp-test03-file-name-defaults) (tramp-test03-file-name-host-rules) (tramp-test03-file-name-method-rules) (tramp-test04-substitute-in-file-name) (tramp-test05-expand-file-name) (tramp-test06-directory-file-name, tramp-test44-auto-load): Skip unless syntax is `default'. (tramp-test06-directory-file-name, tramp-test10-write-region) (tramp-test17-dired-with-wildcards) (tramp-test26-file-name-completion): Handle IPv6 host names. (tramp-test21-file-links): Support all syntaxes. (tramp-test30-make-process, tramp-test45-unload): Suppress compiler warnings. (tramp-test37-make-auto-save-file-name): Skip for `separate' syntax.
* * lisp/international/mule-cmds.el: Fix bug#38642Stefan Monnier2019-12-201-0/+8
| | | | | | | | | (universal-coding-system-argument): Adjust the code to the way `universal-argument` works nowadays. Handle `prefix-arg` a bit more like `command_loop` does. * test/lisp/international/mule-tests.el (mule-cmds--test-universal-coding-system-argument): New test.
* Allow characters and single-char strings in rx charsetsMattias Engdegård2019-12-131-6/+14
| | | | | | | | | | | | | | | | The `not' and `intersection' forms, and `or' inside these forms, now accept characters and single-character strings as arguments. Previously, they had to be wrapped in `any' forms. This does not add expressive power but is a convenience and is easily understood. * doc/lispref/searching.texi (Rx Constructs): Amend the documentation. * etc/NEWS: Announce the change. * lisp/emacs-lisp/rx.el (rx--charset-p, rx--translate-not) (rx--charset-intervals, rx): Accept characters and 1-char strings in more places. * test/lisp/emacs-lisp/rx-tests.el (rx-not, rx-charset-or) (rx-def-in-charset-or, rx-intersection): Test the change.