Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
251463c6
Commit
251463c6
authored
Dec 22, 2014
by
Artur Malabarba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
let-alist.el (let-alist): Use `make-symbol' instead of `gensym'.
parent
6f3f6050
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/let-alist.el
lisp/let-alist.el
+2
-2
test/automated/let-alist.el
test/automated/let-alist.el
+1
-1
No files found.
lisp/ChangeLog
View file @
251463c6
2014-12-22 Artur Malabarba <bruce.connor.am@gmail.com>
* let-alist.el (let-alist): Use `make-symbol' instead of `gensym'.
2014-12-20 Michael Albinus <michael.albinus@gmx.de>
* net/tramp-sh.el (tramp-histfile-override): Add :version.
...
...
lisp/let-alist.el
View file @
251463c6
...
...
@@ -4,7 +4,7 @@
;; Author: Artur Malabarba <bruce.connor.am@gmail.com>
;; Maintainer: Artur Malabarba <bruce.connor.am@gmail.com>
;; Version: 1.0.
2
;; Version: 1.0.
3
;; Keywords: extensions lisp
;; Prefix: let-alist
;; Separator: -
...
...
@@ -131,7 +131,7 @@ the variables of the outer one. You can, however, access alists
inside the original alist by using dots inside the symbol, as
displayed in the example above."
(
declare
(
indent
1
)
(
debug
t
))
(
let
((
var
(
gensym
"alist"
)))
(
let
((
var
(
make-symbol
"alist"
)))
`
(
let
((
,
var
,
alist
))
(
let
,
(
mapcar
(
lambda
(
x
)
`
(
,
(
car
x
)
,
(
let-alist--access-sexp
(
car
x
)
var
)))
(
delete-dups
(
let-alist--deep-dot-search
body
)))
...
...
test/automated/let-alist.el
View file @
251463c6
...
...
@@ -30,7 +30,7 @@
(
.
test-two
(
cdr
(
assq
'test-two
symbol
))))
(
list
.
test-one
.
test-two
.
test-two
.
test-two
)))
(
cl-letf
(((
symbol-function
#'
gensym
)
(
lambda
(
x
)
'symbol
)))
(
cl-letf
(((
symbol-function
#'
make-symbol
)
(
lambda
(
x
)
'symbol
)))
(
macroexpand
'
(
let-alist
data
(
list
.
test-one
.
test-two
.
test-two
.
test-two
))))))
...
...
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