This has been fixed in emacs25 of as at least 18.10 (and possibly 18.04,
but I didn't check to confirm).

** Changed in: emacs24 (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to emacs24 in Ubuntu.
https://bugs.launchpad.net/bugs/1096449

Title:
  gnus-summary-respool-article (B r) no longer works in emacs 24

Status in emacs24 package in Ubuntu:
  Fix Released

Bug description:
  In emacs24, gnus-summary-respool-article (B r) no longer works for me.
  It prompts me for the backend to use (nnfolder), but then doesn't find
  any servers for nnfolder and doesn't offer me any completions for the
  server question and won't accept anything I type.

  The relevant change appears to be this one in gnus-sum.el:

  | @@ -9945,7 +10202,7 @@
  |              (car ms))
  |             (t
  |              (let ((ms-alist (mapcar (lambda (m) (cons (cadr m) m)) ms)))
  | -              (cdr (assoc (completing-read "Server name: " ms-alist nil t)
  | +              (cdr (assoc (gnus-completing-read "Server name" ms-alist t)
  |                            ms-alist))))))))
  |    (unless method
  |      (error "No method given for respooling"))

  If I switch it back to completing-read, gnus-summary-respool-article
  works again.  Looking at gnus-completing-read, it calls
  gnus-completing-read-function which for me is the default,
  i.e. gnus-emacs-completing-read.

  Looking at that function:

  | (defun gnus-emacs-completing-read (prompt collection &optional require-match
  |                                           initial-input history def)
  |   "Call standard `completing-read-function'."
  |   (let ((completion-styles gnus-completion-styles))
  |     (completing-read prompt
  |                      ;; Old XEmacs (at least 21.4) expect an alist for
  |                      ;; collection.
  |                      (mapcar 'list collection)
  |                      nil require-match initial-input history def)))

  The problem appears to be the mapcar.  If I replace it with just
  'collection', gnus-summary-respool-article works again.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/emacs24/+bug/1096449/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to