Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
4643f6c2
Commit
4643f6c2
authored
May 28, 2015
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A few more doc string fixes (Bug#20385)
parent
89ab85f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
lisp/emacs-lisp/backquote.el
lisp/emacs-lisp/backquote.el
+3
-3
lisp/emacs-lisp/pcase.el
lisp/emacs-lisp/pcase.el
+2
-2
No files found.
lisp/emacs-lisp/backquote.el
View file @
4643f6c2
...
...
@@ -99,9 +99,9 @@ places where expressions are evaluated and inserted or spliced in.
For example:
b => (ba bb bc) ; assume b has this value
`(a b c) => (a b c) ; backquote acts like quote
`(a ,b c) => (a (ba bb bc) c) ; insert the value of b
`(a ,@b c) => (a ba bb bc c) ; splice in the value of b
\\=
`(a b c) => (a b c) ; backquote acts like quote
\\=
`(a ,b c) => (a (ba bb bc) c) ; insert the value of b
\\=
`(a ,@b c) => (a ba bb bc c) ; splice in the value of b
Vectors work just like lists. Nested backquotes are permitted."
(
cdr
(
backquote-process
structure
)))
...
...
lisp/emacs-lisp/pcase.el
View file @
4643f6c2
...
...
@@ -133,8 +133,8 @@ FUN can refer to variables bound earlier in the pattern.
FUN is assumed to be pure, i.e. it can be dropped if its result is not used,
and two identical calls can be merged into one.
E.g. you can match pairs where the cdr is larger than the car with a pattern
like `(,a . ,(pred (< a))) or, with more checks:
`(,(and a (pred numberp)) . ,(and (pred numberp) (pred (< a))))
like
\\=
`(,a . ,(pred (< a))) or, with more checks:
\\=
`(,(and a (pred numberp)) . ,(and (pred numberp) (pred (< a))))
Additional patterns can be defined via `pcase-defmacro'.
Currently, the following patterns are provided this way:"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment