From: yamaoka Date: Wed, 24 May 2000 07:26:48 +0000 (+0000) Subject: Sync X-Git-Tag: t-gnus-6_14-quimby-before-AC-changed-~53 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ade49cfbe8da5ac9c22bd450b434f44ae3e4e301;p=elisp%2Fgnus.git- Sync with `t-gnus-6_14'. --- diff --git a/ChangeLog b/ChangeLog index 866f377..f296173 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-05-24 Katsumi Yamaoka + + * lisp/gnus-group.el (gnus-group-make-shimbun-group): Complete + completions. + 2000-05-24 TSUCHIYA Masatoshi * lisp/nnshimbun.el: Add `CNET Japan' support. diff --git a/lisp/gnus-group.el b/lisp/gnus-group.el index 8dd13b3..1a03449 100644 --- a/lisp/gnus-group.el +++ b/lisp/gnus-group.el @@ -2288,39 +2288,33 @@ If SOLID (the prefix), create a solid group." "Create a nnshimbun group." (interactive) (require 'nnshimbun) - (let* ((default-type - (or (car gnus-group-shimbun-type-history) - (symbol-name (caar nnshimbun-type-definition)))) + (let* ((minibuffer-setup-hook (append minibuffer-setup-hook + '(beginning-of-line))) (type - (gnus-string-or - (completing-read - (format "Shimbun type (default %s): " default-type) - (mapcar (lambda (elem) (list (symbol-name (car elem)))) - nnshimbun-type-definition) - nil t nil 'gnus-group-shimbun-type-history) - default-type)) - (default-address - (cdr (assq 'address - (assq (intern type) nnshimbun-type-definition)))) + (completing-read + "Shimbun type: " + (mapcar (lambda (elem) (list (symbol-name (car elem)))) + nnshimbun-type-definition) + nil t + (or (car gnus-group-shimbun-type-history) + (symbol-name (caar nnshimbun-type-definition))) + 'gnus-group-shimbun-type-history)) (address - (gnus-string-or - (read-string - (if default-address - (format "Shimbun address (default %s): " default-address) - "Shimbun address: ") - nil 'gnus-group-shimbun-address-history) - default-address)) + (read-string + "Shimbun address: " + (cdr (assq 'address + (assq (intern type) nnshimbun-type-definition))) + 'gnus-group-shimbun-address-history)) (group (completing-read "Group name: " (mapcar (lambda (elem) (list elem)) - (cdr (assq 'groups (cdr (assq (intern type) nnshimbun-type-definition))))) + (cdr (assq 'groups (cdr (assq (intern type) + nnshimbun-type-definition))))) nil t nil))) - (setq gnus-group-shimbun-type-history - (delete "" gnus-group-shimbun-type-history) - gnus-group-shimbun-address-history - (delete "" gnus-group-shimbun-address-history)) - (gnus-group-make-group group `(nnshimbun ,address (nnshimbun-type ,(intern type)))))) + (gnus-group-make-group group + `(nnshimbun ,address + (nnshimbun-type ,(intern type)))))) (defun gnus-group-make-archive-group (&optional all) "Create the (ding) Gnus archive group of the most recent articles.