diff options
| author | Kevin Layer | 2013-04-03 23:19:58 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2013-04-03 23:19:58 +0000 |
| commit | 09e20374a1a0d82c0d5223d3ef30ae75f9bab8f2 (patch) | |
| tree | eed0964e6187845c18da640d5b4fc4803a200400 | |
| parent | 691e26ae7d3b48f1cf23d87887da8d105b0f9516 (diff) | |
| download | emacs-09e20374a1a0d82c0d5223d3ef30ae75f9bab8f2.tar.gz emacs-09e20374a1a0d82c0d5223d3ef30ae75f9bab8f2.zip | |
lisp/gnus/mml.el (mml-minibuffer-read-description): Allow passing in a prefix (used by MH-E)
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/mml.el | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index e89fd874069..a2b91b443e0 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-04-03 Kevin Layer <layer@known.net> (tiny change) | ||
| 2 | |||
| 3 | * mml.el (mml-minibuffer-read-description): Allow passing in a prefix | ||
| 4 | (used by MH-E). | ||
| 5 | |||
| 1 | 2013-04-01 Andrew Cohen <cohen@bu.edu> | 6 | 2013-04-01 Andrew Cohen <cohen@bu.edu> |
| 2 | 7 | ||
| 3 | * nnir.el (nnir-request-update-mark): Improve mark updating in original | 8 | * nnir.el (nnir-request-update-mark): Improve mark updating in original |
diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el index 3c9344a62c3..3c79d18b0c3 100644 --- a/lisp/gnus/mml.el +++ b/lisp/gnus/mml.el | |||
| @@ -1212,8 +1212,8 @@ If not set, `default-directory' will be used." | |||
| 1212 | string | 1212 | string |
| 1213 | default))) | 1213 | default))) |
| 1214 | 1214 | ||
| 1215 | (defun mml-minibuffer-read-description () | 1215 | (defun mml-minibuffer-read-description (&optional initial-input) |
| 1216 | (let ((description (read-string "One line description: "))) | 1216 | (let ((description (read-string "One line description: " initial-input))) |
| 1217 | (when (string-match "\\`[ \t]*\\'" description) | 1217 | (when (string-match "\\`[ \t]*\\'" description) |
| 1218 | (setq description nil)) | 1218 | (setq description nil)) |
| 1219 | description)) | 1219 | description)) |