mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-04 11:40:22 +00:00
(rmail-list-to-menu): Bind `command' with let.
This commit is contained in:
parent
a16aef1565
commit
bc8661cab0
@ -762,28 +762,29 @@ original copy."
|
||||
(let ((menu (make-sparse-keymap menu-name)))
|
||||
(mapcar
|
||||
(function (lambda (item)
|
||||
(if (consp item)
|
||||
(let (command)
|
||||
(if (consp item)
|
||||
(progn
|
||||
(setq command
|
||||
(rmail-list-to-menu (car item) (cdr item)
|
||||
action
|
||||
(if full-name
|
||||
(concat full-name "/"
|
||||
(car item))
|
||||
(car item))))
|
||||
(setq name (car item)))
|
||||
(progn
|
||||
(setq command
|
||||
(rmail-list-to-menu (car item) (cdr item)
|
||||
action
|
||||
(if full-name
|
||||
(concat full-name "/"
|
||||
(car item))
|
||||
(car item))))
|
||||
(setq name (car item)))
|
||||
(progn
|
||||
(setq name item)
|
||||
(setq command
|
||||
(list 'lambda () '(interactive)
|
||||
(list action
|
||||
(expand-file-name
|
||||
(if full-name
|
||||
(concat full-name "/" item)
|
||||
item)
|
||||
rmail-secondary-file-directory))))))
|
||||
(define-key menu (vector (intern name))
|
||||
(cons name command))))
|
||||
(setq name item)
|
||||
(setq command
|
||||
(list 'lambda () '(interactive)
|
||||
(list action
|
||||
(expand-file-name
|
||||
(if full-name
|
||||
(concat full-name "/" item)
|
||||
item)
|
||||
rmail-secondary-file-directory))))))
|
||||
(define-key menu (vector (intern name))
|
||||
(cons name command)))))
|
||||
(reverse l))
|
||||
menu))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user