diff options
| author | Richard M. Stallman | 1995-03-12 07:47:33 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-03-12 07:47:33 +0000 |
| commit | bc8661cab06a25ea154976af790a7964d31573fd (patch) | |
| tree | fcd88838d9ddae19206e37bdfca645f7eb5f14e0 | |
| parent | a16aef1565fbf7511e4693f78fd58126d0d69227 (diff) | |
| download | emacs-bc8661cab06a25ea154976af790a7964d31573fd.tar.gz emacs-bc8661cab06a25ea154976af790a7964d31573fd.zip | |
(rmail-list-to-menu): Bind `command' with let.
| -rw-r--r-- | lisp/mail/rmail.el | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index d5f094c4edd..bc9f60ea540 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -762,28 +762,29 @@ original copy." | |||
| 762 | (let ((menu (make-sparse-keymap menu-name))) | 762 | (let ((menu (make-sparse-keymap menu-name))) |
| 763 | (mapcar | 763 | (mapcar |
| 764 | (function (lambda (item) | 764 | (function (lambda (item) |
| 765 | (if (consp item) | 765 | (let (command) |
| 766 | (if (consp item) | ||
| 767 | (progn | ||
| 768 | (setq command | ||
| 769 | (rmail-list-to-menu (car item) (cdr item) | ||
| 770 | action | ||
| 771 | (if full-name | ||
| 772 | (concat full-name "/" | ||
| 773 | (car item)) | ||
| 774 | (car item)))) | ||
| 775 | (setq name (car item))) | ||
| 766 | (progn | 776 | (progn |
| 767 | (setq command | 777 | (setq name item) |
| 768 | (rmail-list-to-menu (car item) (cdr item) | 778 | (setq command |
| 769 | action | 779 | (list 'lambda () '(interactive) |
| 770 | (if full-name | 780 | (list action |
| 771 | (concat full-name "/" | 781 | (expand-file-name |
| 772 | (car item)) | 782 | (if full-name |
| 773 | (car item)))) | 783 | (concat full-name "/" item) |
| 774 | (setq name (car item))) | 784 | item) |
| 775 | (progn | 785 | rmail-secondary-file-directory)))))) |
| 776 | (setq name item) | 786 | (define-key menu (vector (intern name)) |
| 777 | (setq command | 787 | (cons name command))))) |
| 778 | (list 'lambda () '(interactive) | ||
| 779 | (list action | ||
| 780 | (expand-file-name | ||
| 781 | (if full-name | ||
| 782 | (concat full-name "/" item) | ||
| 783 | item) | ||
| 784 | rmail-secondary-file-directory)))))) | ||
| 785 | (define-key menu (vector (intern name)) | ||
| 786 | (cons name command)))) | ||
| 787 | (reverse l)) | 788 | (reverse l)) |
| 788 | menu)) | 789 | menu)) |
| 789 | 790 | ||