diff options
| author | Dave Love | 2000-11-01 18:59:45 +0000 |
|---|---|---|
| committer | Dave Love | 2000-11-01 18:59:45 +0000 |
| commit | 8538cc2a488a8c6636b225d78237e5db4ae6241c (patch) | |
| tree | da569ba8695f8ee82603e1031be36597ddbd893a | |
| parent | 160ff4e59d3afa69875374a634fc57ed43190109 (diff) | |
| download | emacs-8538cc2a488a8c6636b225d78237e5db4ae6241c.tar.gz emacs-8538cc2a488a8c6636b225d78237e5db4ae6241c.zip | |
(mml-parse-1): Clarify message.
(mml-minibuffer-read-type): Use mailcap-mime-types.
| -rw-r--r-- | lisp/gnus/mml.el | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el index 106511c3f16..05ad19024ee 100644 --- a/lisp/gnus/mml.el +++ b/lisp/gnus/mml.el | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | ;; Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc. | 2 | ;; Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> | 4 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 5 | ;; Maintainer: bugs@gnus.org | ||
| 5 | ;; This file is part of GNU Emacs. | 6 | ;; This file is part of GNU Emacs. |
| 6 | 7 | ||
| 7 | ;; GNU Emacs is free software; you can redistribute it and/or modify | 8 | ;; GNU Emacs is free software; you can redistribute it and/or modify |
| @@ -132,7 +133,7 @@ The function is called with one parameter, which is the generated part.") | |||
| 132 | (when (and (not raw) (memq nil charsets)) | 133 | (when (and (not raw) (memq nil charsets)) |
| 133 | (if (or (memq 'unknown-encoding mml-confirmation-set) | 134 | (if (or (memq 'unknown-encoding mml-confirmation-set) |
| 134 | (y-or-n-p | 135 | (y-or-n-p |
| 135 | "Warning: You message contains characters with unknown encoding. Really send?")) | 136 | "Message contains characters with unknown encoding. Really send?")) |
| 136 | (if (setq use-ascii | 137 | (if (setq use-ascii |
| 137 | (or (memq 'use-ascii mml-confirmation-set) | 138 | (or (memq 'use-ascii mml-confirmation-set) |
| 138 | (y-or-n-p "Use ASCII as charset?"))) | 139 | (y-or-n-p "Use ASCII as charset?"))) |
| @@ -704,25 +705,7 @@ If MML is non-nil, return the buffer up till the correspondent mml tag." | |||
| 704 | "application/octet-stream")) | 705 | "application/octet-stream")) |
| 705 | (string (completing-read | 706 | (string (completing-read |
| 706 | (format "Content type (default %s): " default) | 707 | (format "Content type (default %s): " default) |
| 707 | (mapcar | 708 | (mapcar 'list (mailcap-mime-types))))) |
| 708 | 'list | ||
| 709 | (mm-delete-duplicates | ||
| 710 | (nconc | ||
| 711 | (mapcar 'cdr mailcap-mime-extensions) | ||
| 712 | (apply | ||
| 713 | 'nconc | ||
| 714 | (mapcar | ||
| 715 | (lambda (l) | ||
| 716 | (delq nil | ||
| 717 | (mapcar | ||
| 718 | (lambda (m) | ||
| 719 | (let ((type (cdr (assq 'type (cdr m))))) | ||
| 720 | (if (equal (cadr (split-string type "/")) | ||
| 721 | "*") | ||
| 722 | nil | ||
| 723 | type))) | ||
| 724 | (cdr l)))) | ||
| 725 | mailcap-mime-data)))))))) | ||
| 726 | (if (not (equal string "")) | 709 | (if (not (equal string "")) |
| 727 | string | 710 | string |
| 728 | default))) | 711 | default))) |