aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Francoise2005-09-24 13:46:20 +0000
committerRomain Francoise2005-09-24 13:46:20 +0000
commit81df110a292f64172818df0ce94579a5429563e4 (patch)
treed915c0420de83f070c02926f691b98e96fdd486b
parentd88a70a010ef76c08f37497b551a4fc620059096 (diff)
downloademacs-81df110a292f64172818df0ce94579a5429563e4.tar.gz
emacs-81df110a292f64172818df0ce94579a5429563e4.zip
2005-09-24 Emilio C. Lopes <eclig@gmx.net>
* smime.el (smime-sign-buffer, smime-decrypt-buffer): * mm-view.el (mm-view-pkcs7-decrypt): * gnus-sum.el (gnus-summary-limit-to-extra) (gnus-summary-respool-article, gnus-read-move-group-name): * gnus-score.el (gnus-summary-increase-score): * gnus-util.el (gnus-completing-read-with-default): * gnus-art.el (gnus-read-save-file-name) (gnus-summary-save-in-rmail, gnus-summary-save-in-mail) (gnus-summary-save-in-file, gnus-summary-save-body-in-file): * message.el (message-check-news-header-syntax): Follow convention for reading with the minibuffer.
-rw-r--r--lisp/gnus/ChangeLog16
-rw-r--r--lisp/gnus/gnus-art.el16
-rw-r--r--lisp/gnus/gnus-score.el2
-rw-r--r--lisp/gnus/gnus-sum.el8
-rw-r--r--lisp/gnus/gnus-util.el4
-rw-r--r--lisp/gnus/message.el2
-rw-r--r--lisp/gnus/mm-view.el7
-rw-r--r--lisp/gnus/smime.el13
8 files changed, 42 insertions, 26 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 08fd723cf1f..bb81878502b 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,8 +1,22 @@
12005-09-24 Emilio C. Lopes <eclig@gmx.net>
2
3 * smime.el (smime-sign-buffer, smime-decrypt-buffer):
4 * mm-view.el (mm-view-pkcs7-decrypt):
5 * gnus-sum.el (gnus-summary-limit-to-extra)
6 (gnus-summary-respool-article, gnus-read-move-group-name):
7 * gnus-score.el (gnus-summary-increase-score):
8 * gnus-util.el (gnus-completing-read-with-default):
9 * gnus-art.el (gnus-read-save-file-name)
10 (gnus-summary-save-in-rmail, gnus-summary-save-in-mail)
11 (gnus-summary-save-in-file, gnus-summary-save-body-in-file):
12 * message.el (message-check-news-header-syntax):
13 Follow convention for reading with the minibuffer.
14
12005-09-18 D Goel <deego@gnufans.org> 152005-09-18 D Goel <deego@gnufans.org>
2 16
3 * sieve.el (sieve-help): Fix `message' call: first arg should be a 17 * sieve.el (sieve-help): Fix `message' call: first arg should be a
4 format spec. 18 format spec.
5 19
62005-09-16 Katsumi Yamaoka <yamaoka@jpl.org> 202005-09-16 Katsumi Yamaoka <yamaoka@jpl.org>
7 21
8 * gnus.el (gnus-group-startup-message): Bind image-load-path. 22 * gnus.el (gnus-group-startup-message): Bind image-load-path.
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 3821f9ecf18..4957d3ae98b 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -3255,7 +3255,7 @@ This format is defined by the `gnus-article-time-format' variable."
3255 ((null split-name) 3255 ((null split-name)
3256 (read-file-name 3256 (read-file-name
3257 (concat prompt " (default " 3257 (concat prompt " (default "
3258 (file-name-nondirectory default-name) ") ") 3258 (file-name-nondirectory default-name) "): ")
3259 (file-name-directory default-name) 3259 (file-name-directory default-name)
3260 default-name)) 3260 default-name))
3261 ;; A single group name is returned. 3261 ;; A single group name is returned.
@@ -3265,7 +3265,7 @@ This format is defined by the `gnus-article-time-format' variable."
3265 (symbol-value variable))) 3265 (symbol-value variable)))
3266 (read-file-name 3266 (read-file-name
3267 (concat prompt " (default " 3267 (concat prompt " (default "
3268 (file-name-nondirectory default-name) ") ") 3268 (file-name-nondirectory default-name) "): ")
3269 (file-name-directory default-name) 3269 (file-name-directory default-name)
3270 default-name)) 3270 default-name))
3271 ;; A single split name was found 3271 ;; A single split name was found
@@ -3278,7 +3278,7 @@ This format is defined by the `gnus-article-time-format' variable."
3278 ((file-exists-p name) name) 3278 ((file-exists-p name) name)
3279 (t gnus-article-save-directory)))) 3279 (t gnus-article-save-directory))))
3280 (read-file-name 3280 (read-file-name
3281 (concat prompt " (default " name ") ") 3281 (concat prompt " (default " name "): ")
3282 dir name))) 3282 dir name)))
3283 ;; A list of splits was found. 3283 ;; A list of splits was found.
3284 (t 3284 (t
@@ -3289,7 +3289,7 @@ This format is defined by the `gnus-article-time-format' variable."
3289 (setq result 3289 (setq result
3290 (expand-file-name 3290 (expand-file-name
3291 (read-file-name 3291 (read-file-name
3292 (concat prompt " (`M-p' for defaults) ") 3292 (concat prompt " (`M-p' for defaults): ")
3293 gnus-article-save-directory 3293 gnus-article-save-directory
3294 (car split-name)) 3294 (car split-name))
3295 gnus-article-save-directory))) 3295 gnus-article-save-directory)))
@@ -3323,7 +3323,7 @@ This format is defined by the `gnus-article-time-format' variable."
3323Optional argument FILENAME specifies file name. 3323Optional argument FILENAME specifies file name.
3324Directory to save to is default to `gnus-article-save-directory'." 3324Directory to save to is default to `gnus-article-save-directory'."
3325 (setq filename (gnus-read-save-file-name 3325 (setq filename (gnus-read-save-file-name
3326 "Save %s in rmail file:" filename 3326 "Save %s in rmail file" filename
3327 gnus-rmail-save-name gnus-newsgroup-name 3327 gnus-rmail-save-name gnus-newsgroup-name
3328 gnus-current-headers 'gnus-newsgroup-last-rmail)) 3328 gnus-current-headers 'gnus-newsgroup-last-rmail))
3329 (gnus-eval-in-buffer-window gnus-save-article-buffer 3329 (gnus-eval-in-buffer-window gnus-save-article-buffer
@@ -3338,7 +3338,7 @@ Directory to save to is default to `gnus-article-save-directory'."
3338Optional argument FILENAME specifies file name. 3338Optional argument FILENAME specifies file name.
3339Directory to save to is default to `gnus-article-save-directory'." 3339Directory to save to is default to `gnus-article-save-directory'."
3340 (setq filename (gnus-read-save-file-name 3340 (setq filename (gnus-read-save-file-name
3341 "Save %s in Unix mail file:" filename 3341 "Save %s in Unix mail file" filename
3342 gnus-mail-save-name gnus-newsgroup-name 3342 gnus-mail-save-name gnus-newsgroup-name
3343 gnus-current-headers 'gnus-newsgroup-last-mail)) 3343 gnus-current-headers 'gnus-newsgroup-last-mail))
3344 (gnus-eval-in-buffer-window gnus-save-article-buffer 3344 (gnus-eval-in-buffer-window gnus-save-article-buffer
@@ -3357,7 +3357,7 @@ Directory to save to is default to `gnus-article-save-directory'."
3357Optional argument FILENAME specifies file name. 3357Optional argument FILENAME specifies file name.
3358Directory to save to is default to `gnus-article-save-directory'." 3358Directory to save to is default to `gnus-article-save-directory'."
3359 (setq filename (gnus-read-save-file-name 3359 (setq filename (gnus-read-save-file-name
3360 "Save %s in file:" filename 3360 "Save %s in file" filename
3361 gnus-file-save-name gnus-newsgroup-name 3361 gnus-file-save-name gnus-newsgroup-name
3362 gnus-current-headers 'gnus-newsgroup-last-file)) 3362 gnus-current-headers 'gnus-newsgroup-last-file))
3363 (gnus-eval-in-buffer-window gnus-save-article-buffer 3363 (gnus-eval-in-buffer-window gnus-save-article-buffer
@@ -3381,7 +3381,7 @@ The directory to save in defaults to `gnus-article-save-directory'."
3381Optional argument FILENAME specifies file name. 3381Optional argument FILENAME specifies file name.
3382The directory to save in defaults to `gnus-article-save-directory'." 3382The directory to save in defaults to `gnus-article-save-directory'."
3383 (setq filename (gnus-read-save-file-name 3383 (setq filename (gnus-read-save-file-name
3384 "Save %s body in file:" filename 3384 "Save %s body in file" filename
3385 gnus-file-save-name gnus-newsgroup-name 3385 gnus-file-save-name gnus-newsgroup-name
3386 gnus-current-headers 'gnus-newsgroup-last-file)) 3386 gnus-current-headers 'gnus-newsgroup-last-file))
3387 (gnus-eval-in-buffer-window gnus-save-article-buffer 3387 (gnus-eval-in-buffer-window gnus-save-article-buffer
diff --git a/lisp/gnus/gnus-score.el b/lisp/gnus/gnus-score.el
index e866f7f32fc..22a579c3d69 100644
--- a/lisp/gnus/gnus-score.el
+++ b/lisp/gnus/gnus-score.el
@@ -652,7 +652,7 @@ file for the command instead of the current score file."
652 (intern ; need symbol 652 (intern ; need symbol
653 (gnus-completing-read-with-default 653 (gnus-completing-read-with-default
654 (symbol-name (car gnus-extra-headers)) ; default response 654 (symbol-name (car gnus-extra-headers)) ; default response
655 "Score extra header:" ; prompt 655 "Score extra header" ; prompt
656 (mapcar (lambda (x) ; completion list 656 (mapcar (lambda (x) ; completion list
657 (cons (symbol-name x) x)) 657 (cons (symbol-name x) x))
658 gnus-extra-headers) 658 gnus-extra-headers)
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 88fe21fd5a2..c9e93d19f42 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -7696,8 +7696,8 @@ articles that are younger than AGE days."
7696 (gnus-completing-read-with-default 7696 (gnus-completing-read-with-default
7697 (symbol-name (car gnus-extra-headers)) 7697 (symbol-name (car gnus-extra-headers))
7698 (if current-prefix-arg 7698 (if current-prefix-arg
7699 "Exclude extra header:" 7699 "Exclude extra header"
7700 "Limit extra header:") 7700 "Limit extra header")
7701 (mapcar (lambda (x) 7701 (mapcar (lambda (x)
7702 (cons (symbol-name x) x)) 7702 (cons (symbol-name x) x))
7703 gnus-extra-headers) 7703 gnus-extra-headers)
@@ -9218,7 +9218,7 @@ latter case, they will be copied into the relevant groups."
9218 gnus-newsgroup-name))))) 9218 gnus-newsgroup-name)))))
9219 (method 9219 (method
9220 (gnus-completing-read-with-default 9220 (gnus-completing-read-with-default
9221 methname "What backend do you want to use when respooling?" 9221 methname "Backend to use when respooling"
9222 methods nil t nil 'gnus-mail-method-history)) 9222 methods nil t nil 'gnus-mail-method-history))
9223 ms) 9223 ms)
9224 (cond 9224 (cond
@@ -11044,7 +11044,7 @@ save those articles instead."
11044 (let* ((split-name (gnus-get-split-value gnus-move-split-methods)) 11044 (let* ((split-name (gnus-get-split-value gnus-move-split-methods))
11045 (minibuffer-confirm-incomplete nil) ; XEmacs 11045 (minibuffer-confirm-incomplete nil) ; XEmacs
11046 (prom 11046 (prom
11047 (format "%s %s to:" 11047 (format "%s %s to"
11048 prompt 11048 prompt
11049 (if (> (length articles) 1) 11049 (if (> (length articles) 1)
11050 (format "these %d articles" (length articles)) 11050 (format "these %d articles" (length articles))
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el
index 4c1721029be..5556a815d2a 100644
--- a/lisp/gnus/gnus-util.el
+++ b/lisp/gnus/gnus-util.el
@@ -335,8 +335,8 @@ is slower."
335(defun gnus-completing-read-with-default (default prompt &rest args) 335(defun gnus-completing-read-with-default (default prompt &rest args)
336 ;; Like `completing-read', except that DEFAULT is the default argument. 336 ;; Like `completing-read', except that DEFAULT is the default argument.
337 (let* ((prompt (if default 337 (let* ((prompt (if default
338 (concat prompt " (default " default ") ") 338 (concat prompt " (default " default "): ")
339 (concat prompt " "))) 339 (concat prompt ": ")))
340 (answer (apply 'completing-read prompt args))) 340 (answer (apply 'completing-read prompt args)))
341 (if (or (null answer) (zerop (length answer))) 341 (if (or (null answer) (zerop (length answer)))
342 default 342 default
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 5995fcbcea0..55f07183753 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -4197,7 +4197,7 @@ Otherwise, generate and save a value for `canlock-password' first."
4197 (zerop 4197 (zerop
4198 (length 4198 (length
4199 (setq to (completing-read 4199 (setq to (completing-read
4200 "Followups to (default: no Followup-To header) " 4200 "Followups to (default no Followup-To header): "
4201 (mapcar #'list 4201 (mapcar #'list
4202 (cons "poster" 4202 (cons "poster"
4203 (message-tokenize-header 4203 (message-tokenize-header
diff --git a/lisp/gnus/mm-view.el b/lisp/gnus/mm-view.el
index ac408aa179f..dec03bf0b9c 100644
--- a/lisp/gnus/mm-view.el
+++ b/lisp/gnus/mm-view.el
@@ -576,9 +576,10 @@
576 (cadar smime-keys) 576 (cadar smime-keys)
577 (smime-get-key-by-email 577 (smime-get-key-by-email
578 (gnus-completing-read-maybe-default 578 (gnus-completing-read-maybe-default
579 (concat "Decipher using which key? " 579 (concat "Decipher using key"
580 (if smime-keys (concat "(default " (caar smime-keys) ") ") 580 (if smime-keys
581 "")) 581 (concat " (default " (caar smime-keys) "): ")
582 ": "))
582 smime-keys nil nil nil nil (car-safe (car-safe smime-keys)))))) 583 smime-keys nil nil nil nil (car-safe (car-safe smime-keys))))))
583 (goto-char (point-min)) 584 (goto-char (point-min))
584 (while (search-forward "\r\n" nil t) 585 (while (search-forward "\r\n" nil t)
diff --git a/lisp/gnus/smime.el b/lisp/gnus/smime.el
index 485cf177154..22489affa89 100644
--- a/lisp/gnus/smime.el
+++ b/lisp/gnus/smime.el
@@ -341,9 +341,10 @@ KEYFILE should contain a PEM encoded key and certificate."
341 keyfile 341 keyfile
342 (smime-get-key-with-certs-by-email 342 (smime-get-key-with-certs-by-email
343 (completing-read 343 (completing-read
344 (concat "Sign using which key? " 344 (concat "Sign using key"
345 (if smime-keys (concat "(default " (caar smime-keys) ") ") 345 (if smime-keys
346 "")) 346 (concat " (default " (caar smime-keys) "): ")
347 ": "))
347 smime-keys nil nil (car-safe (car-safe smime-keys)))))) 348 smime-keys nil nil (car-safe (car-safe smime-keys))))))
348 (error "Signing failed")))) 349 (error "Signing failed"))))
349 350
@@ -472,9 +473,9 @@ in the buffer specified by `smime-details-buffer'."
472 (or keyfile 473 (or keyfile
473 (smime-get-key-by-email 474 (smime-get-key-by-email
474 (completing-read 475 (completing-read
475 (concat "Decipher using which key? " 476 (concat "Decipher using key"
476 (if smime-keys (concat "(default " (caar smime-keys) ") ") 477 (if smime-keys (concat " (default " (caar smime-keys) "): ")
477 "")) 478 ": "))
478 smime-keys nil nil (car-safe (car-safe smime-keys))))))))) 479 smime-keys nil nil (car-safe (car-safe smime-keys)))))))))
479 480
480;; Various operations 481;; Various operations