Gnus development mailing list
 help / color / mirror / Atom feed
* change in open-tls-stream, jabber does not work any longer
@ 2008-07-17 11:05 Uwe Brauer
  2008-07-17 12:13 ` Katsumi Yamaoka
  0 siblings, 1 reply; 6+ messages in thread
From: Uwe Brauer @ 2008-07-17 11:05 UTC (permalink / raw)
  To: ding; +Cc: Magnus Henoch

Hello

While jabber (emacs-jabber-0.7.1) worked fine for me in ngnus 0.6, 
it stopped working with ngnus.0.10, the reason seems to be a change in
the function 
  open-tls-stream

I attach the error message and ask what could I do?


Debugger entered--Lisp error: (error "Selecting deleted or non-existent buffer")
  open-tls-stream("jabber" " *-jabber-process-*" "talk.google.com" 5223)
  jabber-ssl-connect()
  jabber-connect()
  (lambda nil (interactive) (jabber-connect) (switch-to-buffer "*-jabber-*"))()
  call-interactively(jabber)
  recursive-edit()
  byte-code("..." [buffer-read-only noninteractive debugger-buffer middlestart debugger-args debugger-batch-max-lines pop-to-buffer debugger-mode debugger-setup-buffer count-lines 2 "...\n" message buffer-string kill-emacs debug backtrace-debug 3 t debugger-reenable "" nil recursive-edit standard-output] 3)
  debug(error (error "No recursive edit is in progress"))
  signal(error ("No recursive edit is in progress"))
  cerror("No recursive edit is in progress")
  apply(cerror "No recursive edit is in progress" nil)
  error("No recursive edit is in progress")
  #<compiled-function nil "...(15)" [recursion-depth 0 throw exit nil error "No recursive edit is in progress"] 3 679460 nil>()
  call-interactively(exit-recursive-edit)




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: change in open-tls-stream, jabber does not work any longer
  2008-07-17 11:05 change in open-tls-stream, jabber does not work any longer Uwe Brauer
@ 2008-07-17 12:13 ` Katsumi Yamaoka
  2008-07-17 12:37   ` Uwe Brauer
  0 siblings, 1 reply; 6+ messages in thread
From: Katsumi Yamaoka @ 2008-07-17 12:13 UTC (permalink / raw)
  To: Uwe Brauer; +Cc: ding, Magnus Henoch

>>>>> Uwe Brauer wrote:

> While jabber (emacs-jabber-0.7.1) worked fine for me in ngnus 0.6,
> it stopped working with ngnus.0.10, the reason seems to be a change in
> the function
>   open-tls-stream

> I attach the error message and ask what could I do?

> Debugger entered--Lisp error: (error "Selecting deleted or non-existent buffer")
>   open-tls-stream("jabber" " *-jabber-process-*" "talk.google.com" 5223)
>   jabber-ssl-connect()
>   jabber-connect()
>   (lambda nil (interactive) (jabber-connect) (switch-to-buffer "*-jabber-*"))()
>   call-interactively(jabber)

Performing jabber again after loading tls.el (not tls.elc) will
make the cause of the problem more clearer.  (I'm ignorant of
jabber though.)



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: change in open-tls-stream, jabber does not work any longer
  2008-07-17 12:13 ` Katsumi Yamaoka
@ 2008-07-17 12:37   ` Uwe Brauer
  2008-07-18  0:25     ` Katsumi Yamaoka
  0 siblings, 1 reply; 6+ messages in thread
From: Uwe Brauer @ 2008-07-17 12:37 UTC (permalink / raw)
  To: Katsumi Yamaoka; +Cc: ding, Magnus Henoch


   >> Debugger entered--Lisp error: (error "Selecting deleted or non-existent buffer")
   >> open-tls-stream("jabber" " *-jabber-process-*" "talk.google.com" 5223)
   >> jabber-ssl-connect()
   >> jabber-connect()
   >> (lambda nil (interactive) (jabber-connect) (switch-to-buffer "*-jabber-*"))()
   >> call-interactively(jabber)

   > Performing jabber again after loading tls.el (not tls.elc) will
   > make the cause of the problem more clearer.  (I'm ignorant of
   > jabber though.)

I am not so sure, after loading the file and debug-on-error t


I obtain
--8<------------------------schnipp------------------------->8---

Debugger entered--Lisp error: (error "Selecting deleted or non-existent buffer")
  set-buffer(" *-jabber-process-*")
  (save-current-buffer (set-buffer buffer) (message "Opening TLS connection to `%s'..." host) (while (and ... ...) (message "Opening TLS connection with `%s'..." cmd) (let ... ... ... ... ...)) (when (and done ...) (setq done nil) (delete-process process)))
  (with-current-buffer buffer (message "Opening TLS connection to `%s'..." host) (while (and ... ...) (message "Opening TLS connection with `%s'..." cmd) (let ... ... ... ... ...)) (when (and done ...) (setq done nil) (delete-process process)))
  (let ((cmds tls-program) (use-temp-buffer ...) process cmd done) (if use-temp-buffer (setq buffer ...)) (with-current-buffer buffer (message "Opening TLS connection to `%s'..." host) (while ... ... ...) (when ... ... ...)) (message "Opening TLS connection to `%s'...%s" host (if done "done" "failed")) (when use-temp-buffer (if done ...) (kill-buffer buffer)) done)
  open-tls-stream("jabber" " *-jabber-process-*" "talk.google.com" 5223)
  jabber-ssl-connect()
  jabber-connect()
  (lambda nil (interactive) (jabber-connect) (switch-to-buffer "*-jabber-*"))()
  call-interactively(jabber)
--8<------------------------schnapp------------------------->8---


After loading the old tls jabber works again.

Uwe Brauer 




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: change in open-tls-stream, jabber does not work any longer
  2008-07-17 12:37   ` Uwe Brauer
@ 2008-07-18  0:25     ` Katsumi Yamaoka
  2008-07-30  9:06       ` Uwe Brauer
  0 siblings, 1 reply; 6+ messages in thread
From: Katsumi Yamaoka @ 2008-07-18  0:25 UTC (permalink / raw)
  To: Uwe Brauer; +Cc: ding, Magnus Henoch

[-- Attachment #1: Type: text/plain, Size: 738 bytes --]

>>>>> Uwe Brauer wrote:

>> Performing jabber again after loading tls.el (not tls.elc) will
>> make the cause of the problem more clearer.  (I'm ignorant of
>> jabber though.)

> I am not so sure, after loading the file and debug-on-error t

> I obtain
> --8<------------------------schnipp------------------------->8---

> Debugger entered--Lisp error: (error "Selecting deleted or non-existent buffer")
>   set-buffer(" *-jabber-process-*")
>   (save-current-buffer (set-buffer buffer) (message "Opening TLS connectio...
>   (with-current-buffer buffer (message "Opening TLS connection to `%s'..."...
[...]
>   open-tls-stream("jabber" " *-jabber-process-*" "talk.google.com" 5223)
>   jabber-ssl-connect()

I see.  The workaround is:


[-- Attachment #2: Type: application/emacs-lisp, Size: 311 bytes --]

[-- Attachment #3: Type: text/plain, Size: 515 bytes --]


emacs-jabber-0.7.1 passes the buffer name (that is only a string,
has not been created yet) as the second argument to `open-tls-stream'.
The reason the former `open-tls-stream' worked is that it directly
passed the buffer name to `start-process', that creates the buffer
even if it is only a string.  I believe the present one should be
fixed because it is mentioned in the doc-string:

BUFFER is the buffer (or buffer name) to associate with the process.
                     ^^^^^^^^^^^^^^^^
I'll do it later...

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: change in open-tls-stream, jabber does not work any longer
  2008-07-18  0:25     ` Katsumi Yamaoka
@ 2008-07-30  9:06       ` Uwe Brauer
  2008-07-30 10:06         ` Katsumi Yamaoka
  0 siblings, 1 reply; 6+ messages in thread
From: Uwe Brauer @ 2008-07-30  9:06 UTC (permalink / raw)
  To: Katsumi Yamaoka; +Cc: ding, Magnus Henoch


   > emacs-jabber-0.7.1 passes the buffer name (that is only a string,
   > has not been created yet) as the second argument to `open-tls-stream'.
   > The reason the former `open-tls-stream' worked is that it directly
   > passed the buffer name to `start-process', that creates the buffer
   > even if it is only a string.  I believe the present one should be
   > fixed because it is mentioned in the doc-string:

   > BUFFER is the buffer (or buffer name) to associate with the process.
   >                      ^^^^^^^^^^^^^^^^
   > I'll do it later...


It this now fixed in the recent ngnus version?


Uwe Brauer 




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: change in open-tls-stream, jabber does not work any longer
  2008-07-30  9:06       ` Uwe Brauer
@ 2008-07-30 10:06         ` Katsumi Yamaoka
  0 siblings, 0 replies; 6+ messages in thread
From: Katsumi Yamaoka @ 2008-07-30 10:06 UTC (permalink / raw)
  To: Uwe Brauer; +Cc: ding, Magnus Henoch

>>>>> Uwe Brauer wrote:

>> emacs-jabber-0.7.1 passes the buffer name (that is only a string,
>> has not been created yet) as the second argument to `open-tls-stream'.
>> The reason the former `open-tls-stream' worked is that it directly
>> passed the buffer name to `start-process', that creates the buffer
>> even if it is only a string.  I believe the present one should be
>> fixed because it is mentioned in the doc-string:

>> BUFFER is the buffer (or buffer name) to associate with the process.
>>                      ^^^^^^^^^^^^^^^^
>> I'll do it later...

> It this now fixed in the recent ngnus version?

I've fixed it in the Emacs CVS trunk in July 18, and now it has
been merged to the Gnus CVS trunk (i.e. No Gnus) already.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-07-30 10:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-17 11:05 change in open-tls-stream, jabber does not work any longer Uwe Brauer
2008-07-17 12:13 ` Katsumi Yamaoka
2008-07-17 12:37   ` Uwe Brauer
2008-07-18  0:25     ` Katsumi Yamaoka
2008-07-30  9:06       ` Uwe Brauer
2008-07-30 10:06         ` Katsumi Yamaoka

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).