From: Harry Putnam <reader@newsguy.com>
Subject: Re: Denying a server on purpose at startup
Date: Mon, 16 Jun 2003 22:24:07 -0700 [thread overview]
Message-ID: <m3n0ghqnt4.fsf@newsguy.com> (raw)
In-Reply-To: <m34r2pb9x0.fsf@newsguy.com>
Harry Putnam <reader@newsguy.com> writes:
> David S Goldberg <david.goldberg6@verizon.net> writes:
>
>>> Now this sounds even easier with less side effects, ifonly I would
>>> finally learn enough lisp to do something probably fairly simple like
>>> you described.. thanks ... I'll take a look.
>>
>> (add-hook 'gnus-read-newsrc-el-hook
>> (lambda ()
>> (gnus-server-deny-server "your-server-name-here")))
>>
>
> Sometimes laziness pays off... thanks.
In this case maybe not... hehe.
That doesn't seem to work.
Tried both these:
news.west.cox.net
nntp:news.west.cox.net)
In either case the result is that gnus doesn't know that server name.
(backtrace included)
In both cases the server name is taken directly from `server' buffer.
(add-hook 'gnus-read-newsrc-el-hook
(lambda ()
(gnus-server-deny-server "news.west.cox.net")))
From Messages buffer with both syntax:
Reading /home/reader/.newsrc-enews.newsguy.com.eld...
gnus-server-deny-server: No such server: news.west.cox.net
Loading font-lock...done
Reading /home/reader/.newsrc-enews.newsguy.com.eld...
gnus-server-deny-server: No such server: nntp:news.west.cox.net
Loading font-lock...done
Back trace
Debugger entered--Lisp error: (error "No such server: nntp:news.west.cox.net")
signal(error ("No such server: nntp:news.west.cox.net"))
error("No such server: %s" "nntp:news.west.cox.net")
gnus-server-deny-server("nntp:news.west.cox.net")
(lambda nil (gnus-server-deny-server "nntp:news.west.cox.net"))()
run-hooks(gnus-read-newsrc-el-hook)
apply(run-hooks gnus-read-newsrc-el-hook)
gnus-run-hooks(gnus-read-newsrc-el-hook)
gnus-read-newsrc-el-file("/home/reader/.newsrc-enews.newsguy.com.el")
gnus-read-newsrc-file(nil)
gnus-setup-news(nil nil nil)
[...] snip byte code
gnus-1(nil nil nil)
gnus(nil)
* call-interactively(gnus)
command-execute(gnus)
command-line-1(("-f" "gnus"))
command-line()
normal-top-level()
next prev parent reply other threads:[~2003-06-17 5:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-13 17:22 Harry Putnam
2003-06-13 18:12 ` Stainless Steel Rat
2003-06-14 1:24 ` Harry Putnam
2003-06-14 9:32 ` Reiner Steib
2003-06-17 4:32 ` Harry Putnam
2003-06-17 12:15 ` Reiner Steib
2003-06-16 14:56 ` David S Goldberg
2003-06-17 4:33 ` Harry Putnam
2003-06-17 5:24 ` Harry Putnam [this message]
2003-06-13 20:36 ` David S Goldberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3n0ghqnt4.fsf@newsguy.com \
--to=reader@newsguy.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 NNTP newsgroup(s).