Wilfred Hughes
4e907430b1
Ensure ' in docstring code snippets is not replaced
...
As of Emacs 25.1, `foo' is displayed as ‘foo’. This is controlled by
text-quoting-style, but curved quotes are the default.
This causes problems for docstrings that contain ' in code
snippets. Help buffers show e.g. (funcall 'foo) as (funcall ’foo),
which isn't legal elisp.
Instead, escape the quotes with \=. See substitute-command-keys for
the full docs on \= escaping.
8 years ago
Matus Goljer
91d8cb01e6
Move inits and tails under reductions in the examples
8 years ago
Matus Goljer
1b9061c5f5
Update docs
8 years ago
Matus Goljer
057468608d
Make tails and inits return all prefixes including the empty one.
...
It is easy for the user to drop the first/last item with cdr or
-butlast, so let's be consistent with how reductions work
8 years ago
Matus Goljer
55d8cc9294
Running sum and product can only be computed from non-empty lists
8 years ago
Matus Goljer
eb1231eca4
Add -reductions[-r][-from]
8 years ago
Matus Goljer
d8bcf567ef
Add -running-sum and -running-product
8 years ago
Matus Goljer
5b549bc0a3
Add missing fontification keywords
8 years ago
Matus Goljer
f8c8dc002c
Add -tails and -inits
8 years ago
Matus Goljer
e7764ea722
Formatting
8 years ago
Matus Goljer
a57c2c335d
Merge pull request #245 from duianto/patch-1
...
Update examples.el, remove duplicate -third-item
9 years ago
duianto
057e55ca58
Update examples.el, remove duplicate -third-item
9 years ago
Matus Goljer
4b46527780
Merge pull request #238 from Wilfred/more-item-accesses
...
Define -second-item through to -fifth-item
9 years ago
Wilfred Hughes
66e3e94341
Define -second-item through to -fifth-item
...
cl-second is a very useful function that has no dash
equivalent. Define functions for accessing the second, third, fourth
and fifth items of a list.
9 years ago
Matus Goljer
8ef32875da
Merge pull request #237 from Wilfred/add-see-also
...
Add 'see also' for -select and -remove
9 years ago
Wilfred Hughes
e9b861154e
Mention that -select and -remove are related
...
These functions do the opposite of each other, so it's useful to
mention the other one in the docstrings.
9 years ago
Matus Goljer
3493fc97cf
Merge pull request #242 from magnars/fix-infinite-loop-zip-interleave
...
Fix infinite loop in -zip/-interleave when called with no arguments.
9 years ago
Matus Goljer
72675567c6
Fix infinite loop in -zip/-interleave when called with no arguments.
...
Fix #241 .
9 years ago
Matus Goljer
bdcaf68ffc
Merge pull request #236 from Wilfred/robust-docs-generation
...
Set text-quoting-style
9 years ago
Magnar Sveen
c026c46527
Merge pull request #240 from basil-conto/239
...
Replace -first with -some in -any?
9 years ago
Basil L. Contovounesios
0273913927
Update docs
9 years ago
Basil L. Contovounesios
f69a9df16f
Replace -first with -some in -any?
...
Extend examples accordingly.
Fixes #239
9 years ago
Wilfred Hughes
5d7077a7b4
Set text-quoting-style
...
This enables us to generate docs on newer (25+) Emacsen.
Fixes #192 .
9 years ago
Matus Goljer
dcb0ec1623
Merge pull request #232 from Wilfred/improve_docs_wording
...
Docs: Clarify that we don't modify the original list
9 years ago
Wilfred Hughes
0297166f41
Docs: Clarify that we don't modify the original list
...
Fixes #231
9 years ago
Matus Goljer
0df0ff1a65
Merge pull request #222 from zck/partition-before-after
...
Add new methods to partition a list each time elements occur, or a predicate is true, but include those elements in the list.
9 years ago
Matus Goljer
b4faa9397e
Merge pull request #224 from Wilfred/when-let-docstring
...
Docstring improvements
9 years ago
Wilfred Hughes
d7b769bc44
Use standard Emacs quoting for bound symbols
...
From the manual 'Documentation Tips':
If a symbol has a function definition and/or a variable definition,
but those are irrelevant to the use of the symbol that you are
documenting, you can write the words ‘symbol’ or ‘program’ before
the symbol name to prevent making any hyperlink.
9 years ago
Wilfred Hughes
ca2f7673a5
Show (VAR VAL) in the function signature
...
This saves us having to explain the syntax in the docstring.
9 years ago
Matus Goljer
0468a3137c
Merge pull request #223 from phillord/feature/doc-copyright
...
Add copyright assignment statement to documentation
9 years ago
Phillip Lord
05dc0aa3fe
Add copyright assignment statement to documentation
9 years ago
Matus Goljer
1e14307e2d
Merge pull request #221 from zck/it-anywhere-in-->
...
Make --> bind IT for use anywhere in FORMS, and add -as->.
9 years ago
Zachary Kanfer
13f9eceb60
add tests for nesting anaphoric macros.
9 years ago
Zachary Kanfer
13a4718b3d
Add new partition-before, -after methods.
...
The new methods are -partition-before-pred, -partition-after-pred,
-partition-before-item, and -partition-after-item.
9 years ago
Zachary Kanfer
a3b40f8f01
Make --> bind IT for use anywhere in FORMS, and add -as->.
9 years ago
Adam Niederer
524e6fe86b
Fix -map-last docs ( #220 )
9 years ago
holomorph
81ef1efa63
Replace string-to-int with string-to-number ( #216 )
...
string-to-int was declared obsolete in Emacs 22.1, and has been removed
for the eventual 26.1 release.
9 years ago
Magnar Sveen
98e819e407
Merge pull request #210 from Wilfred/car_opcode_with_first_item
...
Ensure that -first-item is as fast as car
9 years ago
Wilfred Hughes
75cde71040
Ensure that -first-item is as fast as car
...
Add symbol properties to -first-item so the byte-compiler compiles
calls to the car opcode. This ensures that -first-item has the same
performance as car.
For example, given the following function:
(defun wh/call-first-item (x)
(-first-item x))
This would compile to:
byte code for wh/call-first-item:
args: (arg1)
0 constant -first-item
1 stack-ref 1
2 call 1
3 return
Whereas it now compiles to:
byte code for wh/call-first-item:
args: (arg1)
0 dup
1 car
2 return
9 years ago
Magnar Sveen
958e3fb62f
Merge pull request #206 from Silex/master
...
Correct use of eval-after-load
9 years ago
Philippe Vaucher
9dfb01a593
Correct use of eval-after-load
...
With a symbol, only the file providing the feature triggers the
eval-after-load. With a string, any file named the same way triggers
it. This is problematic for custom configurations named after
packages.
9 years ago
Wilfred Hughes
ff323e0fda
Fix setf on emacs23 ( #205 )
...
`gv-define-simple-setter` is not defined on Emacs 23, so we need to use
the macro `defsetf` on Emacs 23. `defsetf` is not autoloaded, so we must
require 'cl before using it. We don't need to load 'cl on later Emacs
versions.
However, the whole form is macro-expanded on all Emacs versions. Emacs
24+ assumes that `(defsetf ...)` is a function call because it hasn't
loaded 'cl. This generates byte-compile warnings about unused variables
and nonexistent functions, so silence those.
9 years ago
Matus Goljer
f04df47f47
Fix the debug declaration for -->
9 years ago
holomorph
dd30a1fbba
[Feature #196 ] Add -powerset and -permutations ( #203 )
9 years ago
Matus Goljer
07c61f5a7e
[ #200 ] Add tests for generalized variables
9 years ago
Matus Goljer
bcc74b56cc
[ #200 ] Define setters for -first-item and -last-item
9 years ago
Matus Goljer
53e641c127
[ Fix #202 ] -table-flat works on input of dimension 1
9 years ago
Matus Goljer
73a28ae359
Fix function application in documentation
9 years ago
Matus Goljer
1422b70b56
Update info
9 years ago
Matus Goljer
4b805e1355
Update README
9 years ago