summaryrefslogtreecommitdiff
path: root/doc/lispref/sequences.texi
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge from origin/emacs-26Glenn Morris2018-04-141-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5a6bb01 (origin/emacs-26) Fix building etc/DOC in the MSDOS port 274c979 * lisp/select.el (gui-get-selection): Doc fix. ad731b0 ; * doc/lispref/display.texi (Temporary Displays): Fix typos. f1450e9 Complete documentation of syntax flags by adding `c' 6bdcaec Fix typos and minor wording issues in ELisp manual febac27 Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emac... 6c2e21e Avoid segfault in processes of type 'pipe' 60e10c5 Remove repetitions in documentation strings 208e752 * lisp/image.el (image-load-path): Doc fix. 92e0fd8 ; * etc/NEWS: Remove a FIXME. (Bug#31122) Conflicts: etc/NEWS
| * Fix typos and minor wording issues in ELisp manualEli Zaretskii2018-04-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/internals.texi (Writing Emacs Primitives): * doc/lispref/display.texi (Temporary Displays): Fix typos. * doc/lispref/text.texi (Filling, Changing Properties) (Transposition): Clarify and fix typos. * doc/lispref/positions.texi (Screen Lines): Improve wording. * doc/lispref/modes.texi (Minor Mode Conventions) (Font Lock Multiline): Fix typos. * doc/lispref/variables.texi (Dynamic Binding Tips): Fix a cross-reference. Fix a typo. * doc/lispref/sequences.texi (Sequence Functions): Fix typos. (Bug#31143)
* | * src/print.c (syms_of_print) <print_quoted>: Set default to trueStefan Monnier2018-01-151-4/+4
|/
* Update copyright year to 2018Paul Eggert2018-01-011-1/+1
| | | | Run admin/update-copyright.
* ; lispref nil/t markup fixesGlenn Morris2017-12-221-1/+1
|
* * doc/lispref/sequences.texi (Sequence Functions): Improve indexing.Eli Zaretskii2017-12-161-0/+13
|
* Fix a typo in ELisp manualEli Zaretskii2017-12-011-1/+1
| | | | | * doc/lispref/sequences.texi (Sequence Functions): Fix the example of using 'seq-uniq'. (Bug#29524)
* Improve documentation of 'copy-sequence'Eli Zaretskii2017-09-301-1/+4
| | | | | | * src/fns.c (Fcopy_sequence): * doc/lispref/sequences.texi (Sequence Functions): Mention the exception when copying an empty sequence. (Bug#28627)
* Add seq-set-equal-p to test for set equalityDamien Cassou2017-05-041-0/+27
| | | | | | | | * lisp/emacs-lisp/seq.el (seq-set-equal-p): Add function to compare two lists as if they were sets. * test/lisp/emacs-lisp/seq-tests.el (test-seq-set-equal-p): Add test for seq-set-equal-p.
* Deprecate copy-record in favor of copy-sequencePaul Eggert2017-04-071-12/+11
| | | | | | | | | | | | | | | | | Since copy-sequence seems to be needed anyway for records, have it work on records, and remove copy-record as being superfluous. * doc/lispref/records.texi (Records, Record Functions): * lisp/emacs-lisp/cl-macs.el (cl-defstruct): * lisp/emacs-lisp/eieio.el (make-instance, clone): * test/src/alloc-tests.el (record-3): Use copy-sequence, not copy-record, to copy records. * doc/lispref/sequences.texi (Sequence Functions) (Array Functions): Document that aref and copy-sequence work on records. * etc/NEWS: Omit copy-record. * src/alloc.c (Fcopy_record): Remove. * src/data.c (Faref): Document that arg can be a record. * src/fns.c (Fcopy_sequence): Copy records, too.
* Merge from origin/emacs-25Paul Eggert2017-01-011-1/+1
|\ | | | | | | | | 2e2a806 Fix copyright years by hand 5badc81 Update copyright year to 2017
| * Update copyright year to 2017Paul Eggert2016-12-311-1/+1
| | | | | | | | Run admin/update-copyright.
* | Merge from origin/emacs-25Paul Eggert2016-12-071-1/+1
|\| | | | | | | | | d31298d Fix documentation of `window-combination-resize' 2086f4c Typo fixes in elisp manual
| * Typo fixes in elisp manualBogdan Creanga2016-11-291-1/+1
| | | | | | | | | | | | | | | | | | * doc/lispref/sequences.texi: Add missing '4' in result (Bug#25047). * doc/lispref/strings.texi (Text Comparison): Avoid duplicate definitions of 'string-prefix-p' and 'string-suffix-p'. * doc/lispref/symbols.texi (Definitions): Pluralize 'definitions'. Copyright-paperwork-exempt: yes
* | Minor fix in the documentation of seq-random-eltNicolas Petton2016-10-251-1/+0
| | | | | | | | | | * doc/lispref/sequences.texi (Sequence Functions): Remove false sentence.
* | Minor copyedits in documentation of 'seq-random-elt'Eli Zaretskii2016-10-251-2/+3
| | | | | | | | | | * doc/lispref/sequences.texi (Sequence Functions): Fix markup in last change. Use 2 spaces between sentences.
* | Add seq-random-elt to seq.elDamien Cassou2016-10-251-0/+20
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/seq.el (seq-random-elt): Add function to return a random element from it's sequence parameter. * test/lisp/emacs-lisp/seq-tests.el (test-seq-random-elt-take-all test-seq-random-elt-return-nil): Test the new function * doc/lispref/sequences.texi: Document the new function
* | New function seq-sort-by in seq.elNicolas Petton2016-03-291-0/+12
| | | | | | | | | | | | * lisp/emacs-lisp/seq.el (seq-sort-by): New function. * test/lisp/emacs-lisp/seq-tests.el: New test for seq-sort-by. * doc/lispref/sequences.texi: Add documentation for seq-sort-by.
* | -Paul Eggert2016-03-221-28/+32
|\|
| * Fix documentation of seq.el functionsEli Zaretskii2016-03-121-28/+32
| | | | | | | | | | * doc/lispref/sequences.texi (Sequence Functions): Fix typos. Add cross-references. Fix formatting. (Bug#22992)
* | * doc/lispref/sequences.texi: Add documentation for seq-map-indexedNicolas Petton2016-02-141-0/+15
|/
* Update copyright year to 2016Paul Eggert2016-01-011-1/+1
| | | | Run admin/update-copyright.
* Rename seq-p and map-p to seqp and mappNicolas Petton2015-11-111-3/+3
| | | | | | | * lisp/emacs-lisp/seq.el (seqp): New name. * lisp/emacs-lisp/map.el (mapp): New name. * doc/lispref/sequences.texi: Update the documentation for seqp. * test/automated/map-tests.el: Update the tests for mapp.
* * doc/lispref/sequences.texi (Sequence Functions): Fix typoArtur Malabarba2015-10-281-1/+1
|
* * lisp/emacs-lisp/seq.el (seq-mapn): New functionArtur Malabarba2015-10-281-0/+18
| | | | * doc/lispref/sequences.texi (Sequence Functions): Document seq-mapn
* New function seq-positionNicolas Petton2015-10-201-0/+19
| | | | | | * lisp/emacs-lisp/seq.el (seq-position): New function. * test/automated/seq-tests.el: New tests for seq-position. * doc/lispref/sequences.texi: Add documentation for `seq-position'.
* Add documentation for seq.elNicolas Petton2015-09-281-0/+75
| | | | | | * doc/lispref/sequences.texi: Add documentation regarding extending seq.el, as well as missing documentation for seq-elt, seq-length, seq-p, seq-do and seq-map.
* Better documentation for seq-someNicolas Petton2015-09-281-3/+6
| | | | | | | * doc/lispref/sequences.texi: * lisp/emacs-lisp/seq.el: Update the documentation of seq-some to guarantee that the returned value is the first non-nil value that resulted from applying the predicate.
* Better docstring and parameter name for seq-findNicolas Petton2015-09-211-5/+4
| | | | | | | | * lisp/emacs-lisp/seq.el (seq-find): Improve the docstring and rename the parameter `sentinel' to `default'. * doc/lispref/sequences.texi (Sequence Functions): Update the documentation for `seq-find' accordingly.
* Restore some of the quoting in the manualsEli Zaretskii2015-09-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/windows.texi (Coordinates and Windows) (Coordinates and Windows): * doc/lispref/variables.texi (Lexical Binding) (File Local Variables): * doc/lispref/text.texi (Format Properties): * doc/lispref/symbols.texi (Symbol Components): * doc/lispref/strings.texi (Creating Strings): * doc/lispref/sequences.texi (Sequence Functions): * doc/lispref/searching.texi (Regexp Special, Regexp Search) (Search and Replace): * doc/lispref/processes.texi (Bindat Spec): * doc/lispref/os.texi (Idle Timers): * doc/lispref/objects.texi (Basic Char Syntax): * doc/lispref/numbers.texi (Float Basics, Random Numbers): * doc/lispref/nonascii.texi (Character Properties): * doc/lispref/modes.texi (Major Mode Conventions, Mode Hooks) (Mode Line Variables): * doc/lispref/minibuf.texi (Text from Minibuffer): * doc/lispref/loading.texi (Autoload): * doc/lispref/keymaps.texi (Controlling Active Maps): * doc/lispref/frames.texi (Frame Layout, Size and Position) (Size Parameters, Implied Frame Resizing): * doc/lispref/files.texi (Changing Files, Magic File Names): * doc/lispref/eval.texi (Self-Evaluating Forms): * doc/lispref/display.texi (Progress, Abstract Display) (Abstract Display Example, Bidirectional Display): * doc/lispref/commands.texi (Event Mod): * doc/emacs/windows.texi (Displaying Buffers): * doc/emacs/trouble.texi (Bug Criteria, Checklist): * doc/emacs/text.texi (Enriched Text): * doc/emacs/programs.texi (MixedCase Words): * doc/emacs/picture-xtra.texi (Insert in Picture) (Tabs in Picture): * doc/emacs/misc.texi (Emacs Server, Printing): * doc/emacs/mini.texi (Minibuffer History): * doc/emacs/maintaining.texi (Old Revisions, VC Change Log) (Pulling / Pushing): * doc/emacs/killing.texi (Yanking, Cut and Paste, Clipboard): * doc/emacs/help.texi (Help, Help Echo): * doc/emacs/glossary.texi (Glossary): * doc/emacs/frames.texi (Mouse Commands, Creating Frames) (Frame Commands): * doc/emacs/files.texi (Reverting, Saving, Directories): * doc/emacs/entering.texi (Exiting): * doc/emacs/emacs.texi (Top): * doc/emacs/cmdargs.texi (Window Size X, Icons X): * doc/emacs/anti.texi (Antinews): Restore quoting of text where appropriate or replace quoting with @dfn. * doc/misc/ediff.texi (Window and Frame Configuration): * doc/lispref/processes.texi (Network Feature Testing): * doc/lispref/display.texi (Display Margins): Quote the phrase after "a.k.a." where appropriate.
* Quote less in manualsPaul Eggert2015-09-151-2/+2
| | | | | | | | | | The manuals often used quotes ``...'' when it is better to use @dfn or @code or capitalized words or no quoting at all. For example, there is no need for the `` and '' in “if a variable has one effect for @code{nil} values and another effect for ``non-@code{nil}'' values”. Reword the Emacs, Lisp intro, and Lisp reference manuals to eliminate unnecessary quoting like this, and to use @dfn etc. instead when called for (Bug#21472).
* Clarify documentation of char-table extra slotsEli Zaretskii2015-09-141-3/+3
| | | | | * doc/lispref/sequences.texi (Char-Tables): Clarify that extra slot numbers are zero-based. (Bug#21467)
* Add seq-findNicolas Petton2015-09-111-0/+22
| | | | | | | | | | | This function is similar to `seq-some' but returns the found element. In the cases where nil can be the found element, a sentinel optional argument can be provided to avoid ambiguities. * lisp/emacs-lisp/seq.el (seq-find): New function. * test/automated/seq-tests.el (test-seq-find): Add tests for `seq-find'. * doc/lispref/sequences.texi (Sequence Functions): Add documentation for seq-find.
* Improve the semantic of seq-someNicolas Petton2015-09-061-3/+8
| | | | | | | | | | | | Update seq-some to return non-nil if the predicate returns non-nil for any element of the seq, in which case the returned value is the one returned by the predicate. * lisp/emacs-lisp/seq.el (seq-some): Update the function and its docstring. * test/automated/seq-tests.el (test-seq-some): Add a regression test. * doc/lispref/sequences.texi (Sequence Functions): Update the documentation for seq-some.
* Rename seq-some-p to seq-some and seq-contains-p to seq-containsNicolas Petton2015-09-061-7/+7
| | | | | | | | | * lisp/emacs-lisp/seq.el (seq-some, seq-contains): Rename the functions without the "-p" prefix. * test/automated/seq-tests.el (test-seq-some, test-seq-contains): Update the tests accordingly. * doc/lispref/sequences.texi (Sequence Functions): Update the documentation for seq.el.
* Better documentation of seq-letNicolas Petton2015-08-311-4/+3
| | | | | * doc/lispref/sequences.texi (Sequence Functions): Rephrase the documentation of seq-let.
* * doc/lispref/sequences.texi: Add documentation for seq-min and seq-max.Nicolas Petton2015-06-301-0/+34
|
* Spelling fixPaul Eggert2015-05-101-1/+1
|
* * doc/lispref/sequences.texi (Sequence Functions): Fix quoting.Paul Eggert2015-05-061-1/+1
|
* Update `seq-let' documentationNicolas Petton2015-05-051-1/+10
| | | | | * doc/lispref/sequences.texi: Update the documentation of `seq-let' with the support of `&rest'.
* New macro seq-let, providing destructuring support to seq.elNicolas Petton2015-05-011-0/+27
| | | | | | | | * lisp/emacs-lisp/seq.el (seq-let): New macro. `seq-let' is similar to `cl-destructuring-bind' but works on all sequence types supported by `seq.el'. Bump version number to 1.6. * test/automated/seq-tests.el: Add tests for seq-let. * doc/lispref/sequences.texi: Add documentation for seq-let.
* * lisp/emacs-lisp/seq.el (seq-doseq): Tighten the codeStefan Monnier2015-04-241-1/+1
| | | | | | | (seq-doseq): Fix out-of-scope binding. Don't call `seq-length at every iteration. Reduce `if's from 3 to 2 per iteration. (emacs-lisp-mode-hook): Don't tweak in Emacs≥25.
* * doc/lispref/sequences.texi (Sequence Functions): Fix typo in previous.Glenn Morris2015-04-151-2/+2
|
* Add seq-intersection and seq-difference to the seq libraryNicolas Petton2015-04-151-1/+29
| | | | | | | | | | | * lisp/emacs-lisp/seq.el (seq-intersection, seq-difference): New functions. * test/automated/seq-tests.el: Add tests for seq-intersection and seq-difference. * doc/lispref/sequences.texi: Add documentation for seq-intersection and seq-difference.
* Add seq-into as a public functionNicolas Petton2015-03-091-0/+22
| | | | | | | * lisp/emacs-lisp/seq.el: Make seq-into a public function (replacing seq--into) * test/automated/seq-tests.el: Add tests for seq-into * doc/lispref/sequences.texi: Add documentation for seq-into
* Improve seq-group-by to return sequence elements in correct orderNicolas Petton2015-02-111-2/+2
| | | | | | | | * lisp/emacs-lisp/seq.el (seq-group-by): Improves seq-group-by to return sequence elements in correct order * tests/automated/seq-tests.el: Update test for seq-group-by * doc/lispref/sequences.texi (Sequence Functions): Update documentation examples for seq-group-by
* Add documentation for seq-mapcat, seq-partition and seq-group-byNicolas Petton2015-02-061-1/+46
| | | | | * doc/lispref/sequences.texi (Sequence Functions): Add documentation for seq-mapcat, seq-partition and seq-group-by
* Update copyright year to 2015Paul Eggert2015-01-011-1/+1
| | | | Run admin/update-copyright.
* * doc/lispref/sequences.texi (Sequence Functions): Copyedits.Glenn Morris2014-12-241-152/+75
|
* * lisp/emacs-lisp/seq.el: New file.Nicolas Petton2014-12-161-0/+360
| | | | | * doc/lispref/sequences.texi (Seq Library): Add documentation for seq.el. * test/automated/seq-tests.el: New file.