Windows pry editor setup

Does anyone know the correct way to configure Pry's editor variable on
Windows? I use Emacs so I took the wiki entry Pry.config.editor = proc { |
file, line| "emacsclient +#{line} #{file}" }

However when I run the edit command the script is executed rather than
being opened in Emacs. Am I missing something?

I just gave that a try (I'm on Mac, though) and it worked for me. It also
seems to be what the docs say to do (
Editor integration · pry/pry Wiki · GitHub)

So, some things to look at is do you have the emacs server started? (On
mine, at least, I needed to start a server)

Is the emacsclient in your path? (ie does it work if you run it from the
command line, outside of pry?)

Are you invoking it with the edit-method command? (
Editor integration · pry/pry Wiki · GitHub)

···

On Fri, Nov 11, 2011 at 11:33 AM, Kevin <darkintent@gmail.com> wrote:

Does anyone know the correct way to configure Pry's editor variable on
Windows? I use Emacs so I took the wiki entry Pry.config.editor = proc { |
file, line| "emacsclient +#{line} #{file}" }

However when I run the edit command the script is executed rather than
being opened in Emacs. Am I missing something?

Does anyone know the correct way to configure Pry's editor variable on
Windows? I use Emacs so I took the wiki entry Pry.config.editor = proc {

file, line| "emacsclient +#{line} #{file}" }

However when I run the edit command the script is executed rather than being
opened in Emacs. Am I missing something?

···

Da: Kevin [mailto:darkintent@gmail.com]
Inviato: venerdì 11 novembre 2011 18:34
A: ruby-talk ML; ruby-talk-google@googlegroups.com
Oggetto: windows pry editor setup

--
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f

Sponsor:
Conto Arancio al 4,20%. Soldi sempre disponibili, zero spese, aprilo in due minuti!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=11923&d=29-12

I got it working the problem was that .pyrc was not in the home
directory which I thought was %appdata% when in reality it is actually
in c:\users\user which incidentally seems to wreak havoc with emacs'
initialization since it does in fact search %appdata% like expected.
There does not seem to be a way to specify where Pry should look for
its' initialization file so I have to start emacs before passing
anything through Pry even .emacslient "foo.rb" exhibits this annoying
behavior.

···

On Fri, Nov 11, 2011 at 7:08 PM, Josh Cheek <josh.cheek@gmail.com> wrote:

On Fri, Nov 11, 2011 at 11:33 AM, Kevin <darkintent@gmail.com> wrote:

Does anyone know the correct way to configure Pry's editor variable on
Windows? I use Emacs so I took the wiki entry Pry.config.editor = proc { |
file, line| "emacsclient +#{line} #{file}" }

However when I run the edit command the script is executed rather than
being opened in Emacs. Am I missing something?

I just gave that a try (I'm on Mac, though) and it worked for me. It also
seems to be what the docs say to do (
Editor integration · pry/pry Wiki · GitHub)

So, some things to look at is do you have the emacs server started? (On
mine, at least, I needed to start a server)

Is the emacsclient in your path? (ie does it work if you run it from the
command line, outside of pry?)

Are you invoking it with the edit-method command? (
Editor integration · pry/pry Wiki · GitHub)

-----Messaggio originale-----

···

Da: Kevin [mailto:darkintent@gmail.com]
Inviato: sabato 12 novembre 2011 07:00
A: ruby-talk ML
Oggetto: Re: windows pry editor setup

I got it working the problem was that .pyrc was not in the home directory
which I thought was %appdata% when in reality it is actually in
c:\users\user which incidentally seems to wreak havoc with emacs'
initialization since it does in fact search %appdata% like expected.
There does not seem to be a way to specify where Pry should look for its'
initialization file so I have to start emacs before passing anything through
Pry even .emacslient "foo.rb" exhibits this annoying behavior.

On Fri, Nov 11, 2011 at 7:08 PM, Josh Cheek <josh.cheek@gmail.com> wrote:

On Fri, Nov 11, 2011 at 11:33 AM, Kevin <darkintent@gmail.com> wrote:

Does anyone know the correct way to configure Pry's editor variable
on Windows? I use Emacs so I took the wiki entry Pry.config.editor =
proc { | file, line| "emacsclient +#{line} #{file}" }

However when I run the edit command the script is executed rather
than being opened in Emacs. Am I missing something?

I just gave that a try (I'm on Mac, though) and it worked for me. It
also seems to be what the docs say to do (
Editor integration · pry/pry Wiki · GitHub)

So, some things to look at is do you have the emacs server started?
(On mine, at least, I needed to start a server)

Is the emacsclient in your path? (ie does it work if you run it from
the command line, outside of pry?)

Are you invoking it with the edit-method command? (
https://github.com/pry/pry/wiki/Editor-integration#wiki-Edit_method\)

--
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f

Sponsor:
Conto Arancio al 4,20%. Soldi sempre disponibili, zero spese, aprilo in due minuti!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=11923&d=29-12