Merge from origin/emacs-30
5c9de704cc
; * admin/make-tarball.txt: Minor copyedits.3fc1635783
; * doc/lispref/strings.texi (Text Comparison): Improve i...45a78ec6c5
* lisp/files.el (require-with-check): Improve error messa...9a04b99b3d
; * src/data.c (Fsubrp): Improve docstring.4f3e8c3b4e
Improve documentation of ERTed8904937e
Disambiguate minor-mode variable in its function docstring505139e0ba
Fix project-dired keybinding in manual9bedb957be
Improve documentation of time-parsing functions # Conflicts: # doc/lispref/os.texi # lisp/calendar/iso8601.el # lisp/calendar/parse-time.el
This commit is contained in:
commit
661e5dec57
11 changed files with 139 additions and 57 deletions
|
@ -91,7 +91,7 @@ Enable the mode if ARG is nil, omitted, or is a positive number.
|
|||
Disable the mode if ARG is a negative number.
|
||||
|
||||
To check whether the minor mode is enabled in the current buffer,
|
||||
evaluate `%s'.
|
||||
evaluate %s.
|
||||
|
||||
The mode's hook is called both when the mode is enabled and when
|
||||
it is disabled.")
|
||||
|
@ -128,8 +128,11 @@ it is disabled.")
|
|||
easy-mmode--arg-docstring
|
||||
(if global "global " "")
|
||||
mode-pretty-name
|
||||
;; Avoid having quotes turn into pretty quotes.
|
||||
(string-replace "'" "\\='" (format "%S" getter)))))
|
||||
(concat
|
||||
(if (symbolp getter) "the variable ")
|
||||
(format "`%s'"
|
||||
;; Avoid having quotes turn into pretty quotes.
|
||||
(string-replace "'" "\\='" (format "%S" getter)))))))
|
||||
(let ((start (point)))
|
||||
(insert argdoc)
|
||||
(when (fboundp 'fill-region) ;Don't break bootstrap!
|
||||
|
|
|
@ -932,14 +932,14 @@ of tests, or t, which refers to all tests named by symbols in `obarray'.
|
|||
Valid SELECTORs:
|
||||
|
||||
nil -- Selects the empty set.
|
||||
t -- Selects UNIVERSE.
|
||||
t -- Selects all of UNIVERSE. If UNIVERSE is t, selects all tests.
|
||||
:new -- Selects all tests that have not been run yet.
|
||||
:failed, :passed -- Select tests according to their most recent result.
|
||||
:expected, :unexpected -- Select tests according to their most recent result.
|
||||
a string -- A regular expression selecting all tests with matching names.
|
||||
a test -- (i.e., an object of the ert-test data-type) Selects that test.
|
||||
a symbol -- Selects the test that the symbol names, signals an
|
||||
`ert-test-unbound' error if none.
|
||||
a test -- (i.e., an object of the `ert-test' data-type) Selects that test.
|
||||
a symbol -- Selects the test named by the symbol, signals an
|
||||
`ert-test-unbound' error if no such test.
|
||||
\(member TESTS...) -- Selects the elements of TESTS, a list of tests
|
||||
or symbols naming tests.
|
||||
\(eql TEST) -- Selects TEST, a test or a symbol naming a test.
|
||||
|
@ -1375,10 +1375,10 @@ RESULT must be an `ert-test-result-with-condition'."
|
|||
(defun ert-run-tests-batch (&optional selector)
|
||||
"Run the tests specified by SELECTOR, printing results to the terminal.
|
||||
|
||||
SELECTOR works as described in `ert-select-tests', except if
|
||||
SELECTOR is nil, in which case all tests rather than none will be
|
||||
run; this makes the command line \"emacs -batch -l my-tests.el -f
|
||||
ert-run-tests-batch-and-exit\" useful.
|
||||
SELECTOR selects which tests to run as described in `ert-select-tests' when
|
||||
called with its second argument t, except if SELECTOR is nil, in which case
|
||||
all tests rather than none will be run; this makes the command line
|
||||
\"emacs -batch -l my-tests.el -f ert-run-tests-batch-and-exit\" useful.
|
||||
|
||||
Returns the stats object."
|
||||
(unless selector (setq selector 't))
|
||||
|
@ -2240,7 +2240,9 @@ STATS is the stats object; LISTENER is the results listener."
|
|||
(defun ert-run-tests-interactively (selector)
|
||||
"Run the tests specified by SELECTOR and display the results in a buffer.
|
||||
|
||||
SELECTOR works as described in `ert-select-tests'."
|
||||
SELECTOR selects which tests to run as described in `ert-select-tests'
|
||||
when called with its second argument t. Interactively, prompt for
|
||||
SELECTOR; the default t means run all the defined tests."
|
||||
(interactive
|
||||
(list (let ((default (if ert--selector-history
|
||||
;; Can't use `first' here as this form is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue