GNU bug report logs - #10843
23.4; Fix gnus-group-post-news error

Previous Next

Packages: gnus, emacs;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Sun, 19 Feb 2012 08:18:02 UTC

Severity: normal

Tags: fixed

Found in version 23.4

Fixed in version 24.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10843 in the body.
You can then email your comments to 10843 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to larsi <at> gnus.org, bug-gnu-emacs <at> gnu.org:
bug#10843; Package emacs. (Sun, 19 Feb 2012 08:18:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leo <sdl.web <at> gmail.com>:
New bug report received and forwarded. Copy sent to larsi <at> gnus.org, bug-gnu-emacs <at> gnu.org. (Sun, 19 Feb 2012 08:18:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Leo <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.4; Fix gnus-group-post-news error
Date: Sun, 19 Feb 2012 16:14:24 +0800
On a topic line in the group buffer, key C-u a, to get an error. After
this, every time you enter a group you get an error like this:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  string-match(".*" nil)
  gnus-group-name-charset(nil nil)
  gnus-group-decoded-name(nil)
  gnus-summary-buffer-name(nil)
  gnus-article-setup-buffer()
  gnus-select-newsgroup("gmane.comp.lang.scala" 1 nil)
  gnus-summary-read-group-1("gmane.comp.lang.scala" 1 t nil nil nil)
  gnus-summary-read-group("gmane.comp.lang.scala" 1 t nil nil nil nil)
  gnus-group-read-group(1 t)
  gnus-group-select-group(1)
  gnus-topic-select-group(1)
  call-interactively(gnus-topic-select-group nil nil)

The following patch fixes this bug.

=== modified file 'lisp/gnus/gnus-msg.el'
--- lisp/gnus/gnus-msg.el	2012-02-09 23:07:49 +0000
+++ lisp/gnus/gnus-msg.el	2012-02-19 08:07:22 +0000
@@ -636,12 +636,12 @@
   (interactive "P")
   ;; Bind this variable here to make message mode hooks work ok.
   (let ((gnus-newsgroup-name
-	 (if arg
-	     (if (= 1 (prefix-numeric-value arg))
-		 (gnus-group-completing-read "Newsgroup" nil
-					     (gnus-read-active-file-p))
-	       (gnus-group-group-name))
-	   ""))
+	 (or (and arg
+		  (if (= 1 (prefix-numeric-value arg))
+		      (gnus-group-completing-read "Newsgroup" nil
+						  (gnus-read-active-file-p))
+		    (gnus-group-group-name)))
+	     ""))
 	;; make sure last viewed article doesn't affect posting styles:
 	(gnus-article-copy))
     (gnus-post-news 'post gnus-newsgroup-name nil nil nil nil





Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#10843; Package emacs,gnus. (Mon, 20 Feb 2012 08:41:02 GMT) Full text and rfc822 format available.

Message #8 received at 10843 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Leo <sdl.web <at> gmail.com>
Cc: 10843 <at> debbugs.gnu.org
Subject: Re: bug#10843: 23.4; Fix gnus-group-post-news error
Date: Mon, 20 Feb 2012 09:38:01 +0100
Leo <sdl.web <at> gmail.com> writes:

> The following patch fixes this bug.

Thanks; I applied something similar.

-- 
(domestic pets only, the antidote for overdose, milk.)
  http://lars.ingebrigtsen.no  *  Sent from my Rome




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 20 Feb 2012 08:41:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 24.1, send any further explanations to 10843 <at> debbugs.gnu.org and Leo <sdl.web <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 20 Feb 2012 08:41:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 19 Mar 2012 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 91 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.