[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash 4e90743 093/316: Ensure ' in docstring code snippe
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dash 4e90743 093/316: Ensure ' in docstring code snippets is not replaced |
Date: |
Mon, 15 Feb 2021 15:57:33 -0500 (EST) |
branch: externals/dash
commit 4e907430b1104bb17a11e5bd41c1dcbed096eba0
Author: Wilfred Hughes <me@wilfred.me.uk>
Commit: Wilfred Hughes <me@wilfred.me.uk>
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.
---
dash-functional.el | 8 ++++----
dash.el | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dash-functional.el b/dash-functional.el
index b5d49bf..305b7cf 100644
--- a/dash-functional.el
+++ b/dash-functional.el
@@ -207,10 +207,10 @@ In types (for n=2): ((a -> b), (c -> d)) -> (a, c) -> (b,
d)
This function satisfies the following laws:
- (-compose (-prodfn f g ...) (-prodfn f' g' ...)) = (-prodfn (-compose f f')
(-compose g g') ...)
- (-prodfn f g ...) = (-juxt (-compose f (-partial 'nth 0)) (-compose g
(-partial 'nth 1)) ...)
- (-compose (-prodfn f g ...) (-juxt f' g' ...)) = (-juxt (-compose f f')
(-compose g g') ...)
- (-compose (-partial 'nth n) (-prod f1 f2 ...)) = (-compose fn (-partial 'nth
n))"
+ (-compose (-prodfn f g ...) (-prodfn f\\=' g\\=' ...)) = (-prodfn (-compose
f f\\=') (-compose g g\\=') ...)
+ (-prodfn f g ...) = (-juxt (-compose f (-partial \\='nth 0)) (-compose g
(-partial \\='nth 1)) ...)
+ (-compose (-prodfn f g ...) (-juxt f\\=' g\\=' ...)) = (-juxt (-compose f
f\\=') (-compose g g\\=') ...)
+ (-compose (-partial \\='nth n) (-prod f1 f2 ...)) = (-compose fn (-partial
\\='nth n))"
(lambda (x) (-zip-with 'funcall fns x)))
(provide 'dash-functional)
diff --git a/dash.el b/dash.el
index aa6e9f5..1fcd3e3 100644
--- a/dash.el
+++ b/dash.el
@@ -1324,7 +1324,7 @@ combinations created by taking one element from each list
in
order. The results are flattened, ignoring the tensor structure
of the result. This is equivalent to calling:
- (-flatten-n (1- (length lists)) (apply '-table fn lists))
+ (-flatten-n (1- (length lists)) (apply \\='-table fn lists))
but the implementation here is much more efficient.
@@ -2046,7 +2046,7 @@ execute body."
"Tests for equality use this function or `equal' if this is nil.
It should only be set using dynamic scope with a let, like:
- (let ((-compare-fn #'=)) (-union numbers1 numbers2 numbers3)")
+ (let ((-compare-fn #\\='=)) (-union numbers1 numbers2 numbers3)")
(defun -distinct (list)
"Return a new list with all duplicates removed.
- [elpa] externals/dash 53e641c 044/316: [Fix #202] -table-flat works on input of dimension 1, (continued)
- [elpa] externals/dash 53e641c 044/316: [Fix #202] -table-flat works on input of dimension 1, ELPA Syncer, 2021/02/15
- [elpa] externals/dash f04df47 048/316: Fix the debug declaration for -->, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 81ef1ef 055/316: Replace string-to-int with string-to-number (#216), ELPA Syncer, 2021/02/15
- [elpa] externals/dash 13a4718 059/316: Add new partition-before, -after methods., ELPA Syncer, 2021/02/15
- [elpa] externals/dash ca2f767 064/316: Show (VAR VAL) in the function signature, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 0297166 068/316: Docs: Clarify that we don't modify the original list, ELPA Syncer, 2021/02/15
- [elpa] externals/dash a57c2c3 082/316: Merge pull request #245 from duianto/patch-1, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 5b549bc 085/316: Add missing fontification keywords, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 0574686 089/316: Make tails and inits return all prefixes including the empty one., ELPA Syncer, 2021/02/15
- [elpa] externals/dash eb1231e 087/316: Add -reductions[-r][-from], ELPA Syncer, 2021/02/15
- [elpa] externals/dash 4e90743 093/316: Ensure ' in docstring code snippets is not replaced,
ELPA Syncer <=
- [elpa] externals/dash 138c22a 097/316: Merge pull request #261 from basil-conto/blc/common-prefix, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 3789b15 102/316: Change Emacs tested and supported versions., ELPA Syncer, 2021/02/15
- [elpa] externals/dash e9919f6 104/316: Release 2.14.0, ELPA Syncer, 2021/02/15
- [elpa] externals/dash a55452a 107/316: Merge pull request #270 from magnars/travis/use-emacs-26, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 14f76df 118/316: Update docs, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 8af9987 116/316: Add '-each-r' and '-each-r-while'., ELPA Syncer, 2021/02/15
- [elpa] externals/dash 8873749 120/316: Improve and simplify right-associative reductions, ELPA Syncer, 2021/02/15
- [elpa] externals/dash e52909f 110/316: Add smarter key destructuring, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 6302243 127/316: Release 2.15.0, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 2758ee7 130/316: Alias `-cons-pair-p` to `-cons-pair?`, ELPA Syncer, 2021/02/15