Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
6b0a9634
Commit
6b0a9634
authored
Oct 05, 2006
by
Juanma Barranquero
Browse files
(ad-remove-advice, ad-parse-arglist, ad-make-mapped-call):
Use `let', not `let*'.
parent
c2976c9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lisp/emacs-lisp/advice.el
lisp/emacs-lisp/advice.el
+3
-3
No files found.
lisp/emacs-lisp/advice.el
View file @
6b0a9634
...
...
@@ -2409,7 +2409,7 @@ If such an advice was found it will be removed from the list of advices
in that CLASS."
(
interactive
(
ad-read-advice-specification
"Remove advice of"
))
(
if
(
ad-is-advised
function
)
(
let
*
((
advice-to-remove
(
ad-find-advice
function
class
name
)))
(
let
((
advice-to-remove
(
ad-find-advice
function
class
name
)))
(
if
advice-to-remove
(
ad-set-advice-info-field
function
class
...
...
@@ -2747,7 +2747,7 @@ For that it has to be fbound with a non-autoload definition."
A three-element list is returned, where the 1st element is the list of
required arguments, the 2nd is the list of optional arguments, and the 3rd
is the name of an optional rest parameter (or nil)."
(
let
*
(
required
optional
rest
)
(
let
(
required
optional
rest
)
(
setq
rest
(
car
(
cdr
(
memq
'&rest
arglist
))))
(
if
rest
(
setq
arglist
(
reverse
(
cdr
(
memq
'&rest
(
reverse
arglist
))))))
(
setq
optional
(
cdr
(
memq
'&optional
arglist
)))
...
...
@@ -2958,7 +2958,7 @@ Example: `(ad-map-arglists '(a &rest args) '(w x y z))' will return
(
defun
ad-make-mapped-call
(
source-arglist
target-arglist
target-function
)
"Make form to call TARGET-FUNCTION with args from SOURCE-ARGLIST."
(
let
*
((
mapped-form
(
ad-map-arglists
source-arglist
target-arglist
)))
(
let
((
mapped-form
(
ad-map-arglists
source-arglist
target-arglist
)))
(
if
(
eq
(
car
mapped-form
)
'funcall
)
(
cons
target-function
(
cdr
(
cdr
mapped-form
)))
(
prog1
mapped-form
...
...
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