* Trouble running Emacs-EPL (to run perl in emacs).
@ 2007-01-24 12:12 Adam Funk
2007-01-24 16:08 ` Stefan Monnier
0 siblings, 1 reply; 5+ messages in thread
From: Adam Funk @ 2007-01-24 12:12 UTC (permalink / raw)
To: help-gnu-emacs
I'm trying to use Emacs-EPL to run perl commands in emacs. (My
installation procedure is listed below.) When I run emacs and do
M-x load-library perl
I get the message
Loading perl (source)...done
Then
M-x perl-eval-expression
and at the "Eval Perl: " prompt I type
2+2<CR>
and it hangs until I press C-g. `ps ux` in another xterm shows the
following processes running (after I used C-g twice and tried a third time):
emacs
/usr/bin/perl -MEmacs::EPL=0.007,:server -MEmacs -MEmacs::Lisp -eEmacs::EPL::loop
/usr/bin/perl -MEmacs::EPL=0.007,:server -MEmacs -MEmacs::Lisp -eEmacs::EPL::loop
/usr/bin/perl -MEmacs::EPL=0.007,:server -MEmacs -MEmacs::Lisp -eEmacs::EPL::loop
Any idea what I'm doing wrong?
Thanks,
Adam
~~~~~ my installation ~~~~~
I downloaded
http://john-edwin-tobey.org/perlmacs/src/Emacs-EPL-0.7.tar.gz
and followed the instructions with this result:
/usr/local/share/perl/5.8.8/
|-- Emacs
| |-- EPL
| | `-- Debug.pm
| |-- EPL.pm
| |-- Forward.pm
| `-- Lisp.pm
`-- Emacs.pm
(I've checked that /usr/local/share/perl/5.8.8/ is in my perl library
path.)
Then I copied the files
epl-compat.el epl.el epl-server.el perl-core.el perl.el
into ~/.local/site-lisp/ , which is in my load-path in emacs.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Trouble running Emacs-EPL (to run perl in emacs).
2007-01-24 12:12 Trouble running Emacs-EPL (to run perl in emacs) Adam Funk
@ 2007-01-24 16:08 ` Stefan Monnier
2007-01-24 19:03 ` Adam Funk
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2007-01-24 16:08 UTC (permalink / raw)
To: help-gnu-emacs
> I'm trying to use Emacs-EPL to run perl commands in emacs. (My
> installation procedure is listed below.) When I run emacs and do
> M-x load-library perl
> I get the message
> Loading perl (source)...done
> Then
> M-x perl-eval-expression
> and at the "Eval Perl: " prompt I type
> 2+2<CR>
> and it hangs until I press C-g. `ps ux` in another xterm shows the
> following processes running (after I used C-g twice and tried a third time):
> emacs
> /usr/bin/perl -MEmacs::EPL=0.007,:server -MEmacs -MEmacs::Lisp -eEmacs::EPL::loop
> /usr/bin/perl -MEmacs::EPL=0.007,:server -MEmacs -MEmacs::Lisp -eEmacs::EPL::loop
> /usr/bin/perl -MEmacs::EPL=0.007,:server -MEmacs -MEmacs::Lisp -eEmacs::EPL::loop
> Any idea what I'm doing wrong?
O know nothing about Emacs-EPL, but if you turn on the
"Enter Debugger on Quit/C-g" in the Options menu, then you should get
a backtrace when you hit C-g. So reproduce the above hang and then press
C-g to interrupt it and then show us the backtrace.
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Trouble running Emacs-EPL (to run perl in emacs).
2007-01-24 16:08 ` Stefan Monnier
@ 2007-01-24 19:03 ` Adam Funk
2007-01-26 5:07 ` Stefan Monnier
0 siblings, 1 reply; 5+ messages in thread
From: Adam Funk @ 2007-01-24 19:03 UTC (permalink / raw)
To: help-gnu-emacs
On 2007-01-24, Stefan Monnier wrote:
> know nothing about Emacs-EPL, but if you turn on the
> "Enter Debugger on Quit/C-g" in the Options menu, then you should get
> a backtrace when you hit C-g. So reproduce the above hang and then press
> C-g to interrupt it and then show us the backtrace.
OK, here it is. I hope someone can read it!
Debugger entered--Lisp error: (quit)
accept-process-output(#<process perl>)
(progn (accept-process-output out) (if (eobp) (error "No output from Perl")))
(if (eobp) (progn (accept-process-output out) (if ... ...)))
(when (eobp) (accept-process-output out) (if (eobp) (error "No output from Perl")))
(if ch (progn (unless ... ...) (backward-char)) (when (eobp) (accept-process-output out) (if ... ...)) (forward-char) (char-before))
(save-current-buffer (set-buffer (epl-interp-buffer)) (if ch (progn ... ...) (when ... ... ...) (forward-char) (char-before)))
(with-current-buffer (epl-interp-buffer) (if ch (progn ... ...) (when ... ... ...) (forward-char) (char-before)))
(let* ((out ...)) (with-current-buffer (epl-interp-buffer) (if ch ... ... ... ...)))
epl-read-char()
read(epl-read-char)
(let ((form ...) reply done msg) (epl-debug (format "Emacs(%d)<<< " ...) form "\n") (unwind-protect (setq reply ... done t) (when ... ... ...)) (epl-debug "Reply: " reply " (" (epl-interp-depth) ")\n") (setq msg (car reply) reply (cdr reply)) (cond (... ...) (... ... ... ...) (... nil) (... ... ... ...) (... ...) (... ...) (... ...) (t ...)))
(while t (let (... reply done msg) (epl-debug ... form "\n") (unwind-protect ... ...) (epl-debug "Reply: " reply " (" ... ")\n") (setq msg ... reply ...) (cond ... ... ... ... ... ... ... ...)) (or epl-debugging (with-current-buffer ... ...)))
(catch (quote return) (epl-debug "+++ " depth "\n") (epl-interp-set-depth (1+ depth)) (while t (let ... ... ... ... ... ...) (or epl-debugging ...)))
(unwind-protect (catch (quote return) (epl-debug "+++ " depth "\n") (epl-interp-set-depth ...) (while t ... ...)) (epl-debug "--- " depth "\n") (epl-interp-set-depth depth))
(let ((depth ...)) (unwind-protect (catch ... ... ... ...) (epl-debug "--- " depth "\n") (epl-interp-set-depth depth)))
epl-loop()
(condition-case err (epl-loop) (error (epl-destroy) (signal ... ...)))
(let* ((process-connection-type nil) (out ...) (epl-interp ...)) (condition-case err (epl-loop) (error ... ...)) (epl-interp-set-status (quote ready)) epl-interp)
perl-interpreter-new()
(setq perl-interpreter (perl-interpreter-new))
(if perl-interpreter (epl-check) (setq perl-interpreter (perl-interpreter-new)))
epl-init()
(epl-eval (epl-init) nil context "do { package main; " string " }")
perl-eval("2+2" scalar-context)
(prin1-to-string (perl-eval expression (if prefix ... ...)))
(message (prin1-to-string (perl-eval expression ...)))
perl-eval-expression("2+2" nil)
* call-interactively(perl-eval-expression)
execute-extended-command(nil)
* call-interactively(execute-extended-command)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Trouble running Emacs-EPL (to run perl in emacs).
2007-01-24 19:03 ` Adam Funk
@ 2007-01-26 5:07 ` Stefan Monnier
2007-01-29 10:42 ` Adam Funk
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2007-01-26 5:07 UTC (permalink / raw)
To: help-gnu-emacs
>> know nothing about Emacs-EPL, but if you turn on the
>> "Enter Debugger on Quit/C-g" in the Options menu, then you should get
>> a backtrace when you hit C-g. So reproduce the above hang and then press
>> C-g to interrupt it and then show us the backtrace.
> OK, here it is. I hope someone can read it!
> Debugger entered--Lisp error: (quit)
> accept-process-output(#<process perl>)
Hmm... so it's waiting for Perl output. Presumably, the output has already
arrived but for some reason Emacs-EPL did not recognize it.
You'll have to ask the Emacs-EPL people to debug this.
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Trouble running Emacs-EPL (to run perl in emacs).
2007-01-26 5:07 ` Stefan Monnier
@ 2007-01-29 10:42 ` Adam Funk
0 siblings, 0 replies; 5+ messages in thread
From: Adam Funk @ 2007-01-29 10:42 UTC (permalink / raw)
To: help-gnu-emacs
On 2007-01-26, Stefan Monnier wrote:
>>> know nothing about Emacs-EPL, but if you turn on the
>>> "Enter Debugger on Quit/C-g" in the Options menu, then you should get
>>> a backtrace when you hit C-g. So reproduce the above hang and then press
>>> C-g to interrupt it and then show us the backtrace.
>
>> OK, here it is. I hope someone can read it!
>
>
>> Debugger entered--Lisp error: (quit)
>> accept-process-output(#<process perl>)
>
> Hmm... so it's waiting for Perl output. Presumably, the output has already
> arrived but for some reason Emacs-EPL did not recognize it.
>
> You'll have to ask the Emacs-EPL people to debug this.
Thanks. I've taken this to the CPAN forum:
http://www.cpanforum.com/posts/4183
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-01-29 10:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-24 12:12 Trouble running Emacs-EPL (to run perl in emacs) Adam Funk
2007-01-24 16:08 ` Stefan Monnier
2007-01-24 19:03 ` Adam Funk
2007-01-26 5:07 ` Stefan Monnier
2007-01-29 10:42 ` Adam Funk
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).