timblepaw / geben-on-emacs

Automatically exported from code.google.com/p/geben-on-emacs
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Geben Causes issues With Other Emacs Packages #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. (require 'geben)
2. M-x erc
3. Supply values to logon to IRC

What is the expected output? What do you see instead?
The expected output should be a successful logon to IRC.
Instead the message below is shown:

Connecting to irc.freenode.net:6667... 
open-network-stream: Wrong type argument: bufferp, nil

What version of the product are you using? On what operating system?
0.24 on Mac OS 10.6.8

Please provide any additional information below.

Here is a backtrace:
Debugger entered--Lisp error: (wrong-type-argument bufferp nil)
  buffer-local-value(dbgp-buffer-process nil)
  open-network-stream("erc-irc.freenode.net-6667" nil "irc.freenode.net" 6667)
  erc-server-connect("irc.freenode.net" 6667 #<buffer irc.freenode.net:6667>)
  erc-open("irc.freenode.net" 6667 "carbon99" "unknown" t nil)
  erc(:server "irc.freenode.net" :port 6667 :nick "carbon99" :password nil)
  call-interactively(erc t nil)
  execute-extended-command(nil)
  call-interactively(execute-extended-command nil nil)

Original issue reported on code.google.com by chris012...@gmail.com on 9 Jul 2012 at 1:34

GoogleCodeExporter commented 9 years ago
Also, this problem started happening in Emacs 24.

Original comment by chris012...@gmail.com on 9 Jul 2012 at 1:35

GoogleCodeExporter commented 9 years ago
This also cause gnus to stop working in Emacs 24. The problem seems in dbpg.el 
that changes open-network-stream behavior

(defadvice open-network-stream (around debugclient-pass-process-to-comint)
  "[comint hack] Pass the spawned DBGp client process to comint."
  (let* ((buffer (ad-get-arg 1))
     (proc (buffer-local-value 'dbgp-buffer-process buffer)))
    (set-process-buffer proc buffer)
    (setq ad-return-value proc)))

Original comment by laurent....@gmail.com on 21 Jul 2012 at 5:44

GoogleCodeExporter commented 9 years ago
Also seems to break list-packages.

Is this project dead? Should we fork on github or something?

Original comment by pho...@gmail.com on 14 Jun 2013 at 10:50

GoogleCodeExporter commented 9 years ago
Geben defadvice absolutely correct! The problem is may be in list-packages. I 
think there open-network-stream somehow redefined and it cause advice 
activation in geben. Possible workaround disable advise in dbgp.el. After 
(defadvice .... ) and after ad-deactivate insert 

(ad-disable-advice 'open-network-stream 'around 
'debugclient-pass-process-to-comint)

Before ad-activate insert 

(ad-enable-advice 'open-network-stream 'around 
'debugclient-pass-process-to-comint)

Original comment by simply....@gmail.com on 19 Sep 2013 at 4:18

Attachments:

GoogleCodeExporter commented 9 years ago
The workaround works for me.  If you install geben form elpa, just remember to 
re-complie dbgp.el

Original comment by Deyuan.D...@gmail.com on 16 Mar 2014 at 9:13