Fix bug with `C-u a' on topics
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 20 Feb 2012 08:37:21 +0000 (09:37 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 20 Feb 2012 08:37:21 +0000 (09:37 +0100)
* gnus-msg.el (gnus-group-post-news): Don't bug out on `C-u a' on
topics (bug#10843).

lisp/ChangeLog
lisp/gnus-msg.el

index 440b9e6..8d3a26a 100644 (file)
@@ -1,5 +1,8 @@
 2012-02-20  Lars Ingebrigtsen  <larsi@gnus.org>
 
+       * gnus-msg.el (gnus-group-post-news): Don't bug out on `C-u a' on
+       topics (bug#10843).
+
        * nnimap.el (nnimap-log-command): Add the IMAP address to the log
        buffer.  Suggested by Herbert Valerio Riedel.
        (nnimap-request-move-article): Delete the message from the correct IMAP
index f92dc5e..bf75f94 100644 (file)
@@ -640,7 +640,7 @@ a news."
             (if (= 1 (prefix-numeric-value arg))
                 (gnus-group-completing-read "Newsgroup" nil
                                             (gnus-read-active-file-p))
-              (gnus-group-group-name))
+              (or (gnus-group-group-name) ""))
           ""))
        ;; make sure last viewed article doesn't affect posting styles:
        (gnus-article-copy))