Properly quote hook names.
This commit is contained in:
parent
5888c37335
commit
dc7dc90808
1 changed files with 2 additions and 2 deletions
4
magit.el
4
magit.el
|
@ -1318,7 +1318,7 @@ error otherwise."
|
||||||
clauses)
|
clauses)
|
||||||
,@(when opname
|
,@(when opname
|
||||||
`(((run-hook-with-args-until-success
|
`(((run-hook-with-args-until-success
|
||||||
,(make-symbol (format "magit-%s-action-hook" opname)))
|
',(make-symbol (format "magit-%s-action-hook" opname)))
|
||||||
t)
|
t)
|
||||||
((not ,type)
|
((not ,type)
|
||||||
(error "Nothing to %s here" ,opname))
|
(error "Nothing to %s here" ,opname))
|
||||||
|
@ -1342,7 +1342,7 @@ the actions."
|
||||||
(let ((section (car head))
|
(let ((section (car head))
|
||||||
(info (cadr head))
|
(info (cadr head))
|
||||||
(type (caddr head)))
|
(type (caddr head)))
|
||||||
`(add-hook ,(make-symbol (format "magit-%s-action-hook" type))
|
`(add-hook ',(make-symbol (format "magit-%s-action-hook" type))
|
||||||
(lambda ()
|
(lambda ()
|
||||||
,(macroexpand
|
,(macroexpand
|
||||||
;; Don't pass in the opname so we don't recursively
|
;; Don't pass in the opname so we don't recursively
|
||||||
|
|
Loading…
Reference in a new issue