* nntp-status-string vs (nntp-status-message)
@ 1996-04-11 17:32 Kai Grossjohann
1996-04-12 3:16 ` Lars Magne Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Kai Grossjohann @ 1996-04-11 17:32 UTC (permalink / raw)
There is a comment in nntp.el which goes like this:
,-----
| (defvar nntp-status-string nil
| "Save the server response message.
| You'd better not use this variable in NNTP front-end program but
| instead call function `nntp-status-message' to get status message.")
`-----
What I would like to do is to nntp-send-command. If the response code
is 442 I want to do something special. Now, (nntp-status-message)
does not return the code, it only returns the informational message
after that. nntp-status-string has the code, but I'm not supposed to
be using it.
I do not want to rely on the special informational message 'cause that
might be changed.
What do I do then?
tia,
kai
--
There ain't no cure for the summertime blues.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: nntp-status-string vs (nntp-status-message)
1996-04-11 17:32 nntp-status-string vs (nntp-status-message) Kai Grossjohann
@ 1996-04-12 3:16 ` Lars Magne Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 1996-04-12 3:16 UTC (permalink / raw)
Kai Grossjohann <grossjoh@ls6.informatik.uni-dortmund.de> writes:
> What I would like to do is to nntp-send-command. If the response code
> is 442 I want to do something special. Now, (nntp-status-message)
> does not return the code, it only returns the informational message
> after that. nntp-status-string has the code, but I'm not supposed to
> be using it.
(nnheader-get-report 'nntp)
will get the status message from the `nntp' backend. (It really just
returns the `nntp-status-string' variable.) The comment in nntp.el is
outdated, and I've now removed it.
--
"Yes. The journey through the human heart
would have to wait until some other time."
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-04-12 3:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-04-11 17:32 nntp-status-string vs (nntp-status-message) Kai Grossjohann
1996-04-12 3:16 ` Lars Magne Ingebrigtsen
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).