# HG changeset patch # User Richard M. Stallman # Date 794994453 0 # Node ID d7f0852f800f9445c0311ea3267b2bbe6446f716 # Parent c71d4c1319e4648d2430a14344004fe3b063837c (rmail-list-to-menu): Bind `command' with let. diff -r c71d4c1319e4 -r d7f0852f800f lisp/mail/rmail.el --- a/lisp/mail/rmail.el Sun Mar 12 07:38:49 1995 +0000 +++ b/lisp/mail/rmail.el Sun Mar 12 07:47:33 1995 +0000 @@ -762,28 +762,29 @@ (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))