* bug#10843: 23.4; Fix gnus-group-post-news error
@ 2012-02-19 8:14 Leo
2012-02-20 8:38 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Leo @ 2012-02-19 8:14 UTC (permalink / raw)
To: 10843; +Cc: Lars Magne Ingebrigtsen
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-02-20 8:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-19 8:14 bug#10843: 23.4; Fix gnus-group-post-news error Leo
2012-02-20 8:38 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).