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
431fca48
Commit
431fca48
authored
Jun 06, 2015
by
NicolasPetton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
; * lisp/emacs-lisp/map.el: Fix formatting.
parent
8fe836ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
lisp/emacs-lisp/map.el
lisp/emacs-lisp/map.el
+7
-7
No files found.
lisp/emacs-lisp/map.el
View file @
431fca48
...
...
@@ -91,7 +91,7 @@ form.
((
arrayp
,
map-var
)
,
(
plist-get
args
:array
))
(
t
(
error
"Unsupported map: %s"
,
map-var
))))
,@
(
when
(
cddr
spec
)
`
((
setq
,
result-var
,@
(
cddr
spec
))))
`
((
setq
,
result-var
,@
(
cddr
spec
))))
,
result-var
)))
(
defun
map-elt
(
map
key
&optional
default
)
...
...
@@ -309,12 +309,12 @@ MAP can be a list, hash-table or array."
(
defun
map--apply-array
(
function
map
)
"Private function used to apply FUNCTION over MAP, MAP being an array."
(
let
((
index
0
))
(
seq-map
(
lambda
(
elt
)
(
prog1
(
funcall
function
index
elt
)
(
setq
index
(
1+
index
))))
map
)))
(
let
((
index
0
))
(
seq-map
(
lambda
(
elt
)
(
prog1
(
funcall
function
index
elt
)
(
setq
index
(
1+
index
))))
map
)))
(
defun
map--elt-list
(
map
key
&optional
default
)
"Lookup, in the list MAP, the value associated with KEY and return it.
...
...
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