Re: [Factor-talk] osx emacs FUEL

2015-06-05 Thread Iain Gray
 June to my thred Re: [Factor-talk] osx emacs FUEL as it has gone missing here.
 thanks Iain

maailserver boounced request
 On 4 Jun 2015, at 15:34, John Benediktsson mrj...@gmail.com wrote:
 
 Excellent!
 
 Glad it's working. Based on your feedback I made a patch that tries to find 
 emacsclient in your path, so some installations will work out of the box. For 
 Emacs.app, you will still have to set it manually.
 
 We love newcomers and it's great to get a fresh perspective. Sometimes things 
 seem obvious but aren't. 
 
 Feel free to give more feedback as you learn and use Factor. 
 
 Best,
 John.
 
 On Jun 4, 2015, at 7:21 AM, Iain Gray iaing...@ednet.co.uk wrote:
 
 Doug your email has gone missing, retrieved from  archive
 
 success!
 
 thank you all for your advice and patience with a newcomer
 
 --
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk


--
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] osx emacs FUEL

2015-06-05 Thread Iain Gray
sorry fond email
 On 5 Jun 2015, at 12:21, Iain Gray iaing...@ednet.co.uk wrote:
 
 June to my thred Re: [Factor-talk] osx emacs FUEL as it has gone missing here.
 thanks Iain
 
 maailserver boounced request
 On 4 Jun 2015, at 15:34, John Benediktsson mrj...@gmail.com wrote:
 
 Excellent!
 
 Glad it's working. Based on your feedback I made a patch that tries to find 
 emacsclient in your path, so some installations will work out of the box. 
 For Emacs.app, you will still have to set it manually.
 
 We love newcomers and it's great to get a fresh perspective. Sometimes 
 things seem obvious but aren't. 
 
 Feel free to give more feedback as you learn and use Factor. 
 
 Best,
 John.
 
 On Jun 4, 2015, at 7:21 AM, Iain Gray iaing...@ednet.co.uk wrote:
 
 Doug your email has gone missing, retrieved from  archive
 
 success!
 
 thank you all for your advice and patience with a newcomer
 
 --
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk
 
 
 --
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk


--
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] osx emacs FUEL

2015-06-04 Thread Iain Gray
Doug your email has gone missing, retrieved from  archive

success!

thank you all for your advice and patience with a newcomer




 On 3 Jun 2015, at 18:01, Iain Gray iaing...@ednet.co.uk wrote:
 
 Sorry to try your patience again
 
 I found emacsclient locally in /usr/bin
 so my .factor-rc is now
 
 USING: editors.emacs namespaces ;
 “‘’/usr/bin” \ emacsclient-path set-global
 
 typing these into a listener followed by “io” edit gives
 
 Process exited with error code 255
 
 Launch descriptor:
 
 T{ process
 { command
 {
 /usr/bin
 --no-wait
 +1
 /Applications/Languages/factor/core/io/io.factor
 }
 }
 { detached t }
 { environment H{ } }
 { environment-mode +append-environment+ }
 { group +same-group+ }
 { status 255 }
 
 whereas typing into my terminal
 
 $ cd /Applications/Languages/factor/core/io
 $ emacsclient -no-wait +1 io.factor
 
 gives syntax aware emacs window
 two questions
 
 1. why are there two hyphens on no-wait in the factor error?
 2. factor-rc is in my home directory, is this right?
 
 On 2 Jun 2015, at 17:04, John Benediktsson mrj...@gmail.com 
 mailto:mrj...@gmail.com wrote:
 
 Why is your process trying to run /Applications/Languages/Factor when you 
 call edit?
 
 Shouldn't it be the /path/to/emacsclient?
 
 This is what I mean (using the full path to your emacsclient):
 
 USING: editors.emacs namespaces 
 /Applications/Languages/Emacs.app/Contents/MacOS/bin-i386-10_5/emacsclient 
 emacsclient-path set-global
 
 Are you running OS X 10.5 on 32-bit? I think that path doesn't look like the 
 right architecture.
 
 You can look at which other architectures are available:
 
 $ ls /Applications/Languages/Emacs.app/Contents/MacOS
 
 
 
 
 On Jun 2, 2015, at 8:42 AM, Iain Gray iaing...@ednet.co.uk 
 mailto:iaing...@ednet.co.uk wrote:
 
 I get a similar error
 
 Process exited with error code 255
 
 Launch descriptor:
 
 T{ process
 { command
 {
 /Applications/Languages/factor
 --no-wait
 +1
 /Applications/Languages/factor/core/io/io.factor
 }
 }
 { detached t }
 { environment H{ } }
 { environment-mode +append-environment+ }
 { group +same-group+ }
 { status 255 }
 
 and emcsclient? gives an underflow error
 
 On 2 Jun 2015, at 15:51, John Benediktsson mrj...@gmail.com 
 mailto:mrj...@gmail.com wrote:
 
 I just noticed that your error doesn't use your emacsclient-path (just the 
 default emacsclient):
 
 T{ process
 { command
 {
 emacsclient
 --no-wait
 +1
 /Applications/Languages/factor/core/io/io.factor
 }
 }
 }
 
 Is it possible you aren't loading your .factor-rc correctly?
 
 1) Try pasting the code from your .factor-rc into your Factor Listener and 
 trying ``io edit`` again.
 
 2) Make sure .factor-rc is in your home directory and readable when you 
 start Factor.
 
 
 
 
 On Tue, Jun 2, 2015 at 7:46 AM, Iain Gray iaing...@ednet.co.uk 
 mailto:iaing...@ednet.co.uk wrote:
 that works if I do
 
 $ cd /Applications/Languages/factor
 
 I feel very close!
 
 On 2 Jun 2015, at 14:32, John Benediktsson mrj...@gmail.com 
 mailto:mrj...@gmail.com wrote:
 
 I'm sorry its not working, are you sure you have an emacs started and run 
 ``M-x server-start`` from it?
 
 Our emacs edit integration just calls emacsclient, so it should be 
 simple to get working.
 
 Does emacsclient work from your command-line?
 
 $ cd factor
 
 $ emacsclient --no-wait +1 README.md
 
 That command does not start a new emacs, so it will error out in the way 
 you see when one does not appear to be running.
 
 
 
 
 On Tue, Jun 2, 2015 at 4:26 AM, Iain Gray iaing...@ednet.co.uk 
 mailto:iaing...@ednet.co.uk wrote:
 My .factor-rc reads
 
 USING: editors.emacs namespaces ;
 “/Applications/languages/Emacs.app/Contents/MacOS/bin-i386-10_5” 
 emacsclient-path set-global
 
 after doing all suggestions I still  get
 
 IN: scratchpad io edit
 Process exited with error code 1
 
 Launch descriptor:
 
 T{ process
 { command
 {
 emacsclient
 --no-wait
 +1
 /Applications/Languages/factor/core/io/io.factor
 }
 }
 { detached t }
 { environment H{ } }
 { environment-mode +append-environment+ }
 { group +same-group+ }
 { status 1 }
 }
 
 I have even reinstalled FUEL from Melpa
 
 On 1 Jun 2015, at 16:04, John Benediktsson mrj...@gmail.com 
 mailto:mrj...@gmail.com wrote:
 
 The .factor-boot-rc is used during bootstrap, but if you just download 
 and use a release, you might want to put that code in .factor-rc which 
 is run each time Factor starts.
 
 Also, I'm a bit confused -- your examples uses emacspath but the 
 documentation for editors.emacs says to set the path to emacsclient?
 
 editors.emacs help
 
 That means this would be it (either in the listener directly for 
 testing, 

Re: [Factor-talk] osx emacs FUEL

2015-06-04 Thread John Benediktsson
Excellent!

Glad it's working. Based on your feedback I made a patch that tries to find 
emacsclient in your path, so some installations will work out of the box. For 
Emacs.app, you will still have to set it manually.

We love newcomers and it's great to get a fresh perspective. Sometimes things 
seem obvious but aren't. 

Feel free to give more feedback as you learn and use Factor. 

Best,
John.

 On Jun 4, 2015, at 7:21 AM, Iain Gray iaing...@ednet.co.uk wrote:
 
 Doug your email has gone missing, retrieved from  archive
 
 success!
 
 thank you all for your advice and patience with a newcomer

--
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] osx emacs FUEL

2015-06-03 Thread Doug Coleman
You need to set the path to the full path of the emacsclient binary.

```factor
USING: editors.emacs namespaces ;
/usr/bin/emacsclient \ emacsclient-path set-global
```

You can debug what's happening because the array in the ``command`` slot of
``process`` is what Factor is launching.

```
{
/usr/bin
--no-wait
+1
/Applications/Languages/factor/core/io/io.factor
}   join print
```

/usr/bin --no-wait +1 /Applications/Languages/factor/core/io/io.factor

You can run this from the command-line in a shell and expect it to fail
since /usr/bin is just a directory.



1. There are two hyphens because ``--no-wait`` is a command-line argument
to emacsclient:

ergmac:factor erg$ [master*] emacsclient --help
Usage: emacsclient [OPTIONS] FILE...
Tell the Emacs server to visit the specified files.
Every FILE can be either just a FILENAME or [+LINE[:COLUMN]] FILENAME.

The following OPTIONS are accepted:

-V, --version Just print version info and return
-H, --help   Print this usage information message
-e, --eval   Evaluate FILE arguments as Lisp expressions
-n, --no-wait Don't wait for the server to return
-d, --display=DISPLAY Visit the file in the given display
-s, --socket-name=FILENAME
Set filename of the UNIX socket for communication
-f, --server-file=FILENAME
Set filename of the TCP authentication file
-a, --alternate-editor=EDITOR
Editor to fallback to if server is not running

Report bugs to bug-gnu-em...@gnu.org.

2. The .rc files should go in your ``$HOME`` directory, yes.



Doug

On Wed, Jun 3, 2015 at 10:01 AM, Iain Gray iaing...@ednet.co.uk wrote:

 Sorry to try your patience again

 I found emacsclient locally in /usr/bin
 so my .factor-rc is now

 USING: editors.emacs namespaces ;
 “‘’/usr/bin” \ emacsclient-path set-global

 typing these into a listener followed by “io” edit gives

 Process exited with error code 255

 Launch descriptor:

 T{ process
 { command
 {
 /usr/bin
 --no-wait
 +1
 /Applications/Languages/factor/core/io/io.factor
 }
 }
 { detached t }
 { environment H{ } }
 { environment-mode +append-environment+ }
 { group +same-group+ }
 { status 255 }

 whereas typing into my terminal

 $ cd /Applications/Languages/factor/core/io
 $ emacsclient -no-wait +1 io.factor

 gives syntax aware emacs window
 two questions

 1. why are there two hyphens on no-wait in the factor error?
 2. factor-rc is in my home directory, is this right?

 On 2 Jun 2015, at 17:04, John Benediktsson mrj...@gmail.com wrote:

 Why is your process trying to run /Applications/Languages/Factor when you
 call edit?

 Shouldn't it be the /path/to/emacsclient?

 This is what I mean (using the full path to your emacsclient):

 USING: editors.emacs namespaces 
 /Applications/Languages/Emacs.app/Contents/MacOS/bin-i386-10_5/emacsclient
 emacsclient-path set-global

 Are you running OS X 10.5 on 32-bit? I think that path doesn't look like
 the right architecture.

 You can look at which other architectures are available:

 $ ls /Applications/Languages/Emacs.app/Contents/MacOS




 On Jun 2, 2015, at 8:42 AM, Iain Gray iaing...@ednet.co.uk wrote:

 I get a similar error

 Process exited with error code 255

 Launch descriptor:

 T{ process
 { command
 {
 /Applications/Languages/factor
 --no-wait
 +1
 /Applications/Languages/factor/core/io/io.factor
 }
 }
 { detached t }
 { environment H{ } }
 { environment-mode +append-environment+ }
 { group +same-group+ }
 { status 255 }

 and emcsclient? gives an underflow error

 On 2 Jun 2015, at 15:51, John Benediktsson mrj...@gmail.com wrote:

 I just noticed that your error doesn't use your emacsclient-path (just the
 default emacsclient):

 T{ process
 { command
 {
 emacsclient
 --no-wait
 +1
 /Applications/Languages/factor/core/io/io.factor
 }
 }
 }

 Is it possible you aren't loading your .factor-rc correctly?

 1) Try pasting the code from your .factor-rc into your Factor Listener and
 trying ``io edit`` again.

 2) Make sure .factor-rc is in your home directory and readable when you
 start Factor.




 On Tue, Jun 2, 2015 at 7:46 AM, Iain Gray iaing...@ednet.co.uk wrote:

 that works if I do

 $ cd /Applications/Languages/factor

 I feel very close!

 On 2 Jun 2015, at 14:32, John Benediktsson mrj...@gmail.com wrote:

 I'm sorry its not working, are you sure you have an emacs started and run
 ``M-x server-start`` from it?

 Our emacs edit integration just calls emacsclient, so it should be
 simple to get working.

 Does emacsclient work from your command-line?

 $ cd factor

 $ emacsclient --no-wait +1 README.md

 That command does not start a new emacs, so it will error out in the way
 you see when one does not appear to be running.




 On Tue, Jun 2, 2015 at 

Re: [Factor-talk] osx emacs FUEL

2015-06-03 Thread Iain Gray
Sorry to try your patience again

I found emacsclient locally in /usr/bin
so my .factor-rc is now

USING: editors.emacs namespaces ;
“‘’/usr/bin” \ emacsclient-path set-global

typing these into a listener followed by “io” edit gives

Process exited with error code 255

Launch descriptor:

T{ process
{ command
{
/usr/bin
--no-wait
+1
/Applications/Languages/factor/core/io/io.factor
}
}
{ detached t }
{ environment H{ } }
{ environment-mode +append-environment+ }
{ group +same-group+ }
{ status 255 }

whereas typing into my terminal

$ cd /Applications/Languages/factor/core/io
$ emacsclient -no-wait +1 io.factor

gives syntax aware emacs window
two questions

1. why are there two hyphens on no-wait in the factor error?
2. factor-rc is in my home directory, is this right?

 On 2 Jun 2015, at 17:04, John Benediktsson mrj...@gmail.com wrote:
 
 Why is your process trying to run /Applications/Languages/Factor when you 
 call edit?
 
 Shouldn't it be the /path/to/emacsclient?
 
 This is what I mean (using the full path to your emacsclient):
 
 USING: editors.emacs namespaces 
 /Applications/Languages/Emacs.app/Contents/MacOS/bin-i386-10_5/emacsclient 
 emacsclient-path set-global
 
 Are you running OS X 10.5 on 32-bit? I think that path doesn't look like the 
 right architecture.
 
 You can look at which other architectures are available:
 
 $ ls /Applications/Languages/Emacs.app/Contents/MacOS
 
 
 
 
 On Jun 2, 2015, at 8:42 AM, Iain Gray iaing...@ednet.co.uk 
 mailto:iaing...@ednet.co.uk wrote:
 
 I get a similar error
 
 Process exited with error code 255
 
 Launch descriptor:
 
 T{ process
 { command
 {
 /Applications/Languages/factor
 --no-wait
 +1
 /Applications/Languages/factor/core/io/io.factor
 }
 }
 { detached t }
 { environment H{ } }
 { environment-mode +append-environment+ }
 { group +same-group+ }
 { status 255 }
 
 and emcsclient? gives an underflow error
 
 On 2 Jun 2015, at 15:51, John Benediktsson mrj...@gmail.com 
 mailto:mrj...@gmail.com wrote:
 
 I just noticed that your error doesn't use your emacsclient-path (just the 
 default emacsclient):
 
 T{ process
 { command
 {
 emacsclient
 --no-wait
 +1
 /Applications/Languages/factor/core/io/io.factor
 }
 }
 }
 
 Is it possible you aren't loading your .factor-rc correctly?
 
 1) Try pasting the code from your .factor-rc into your Factor Listener and 
 trying ``io edit`` again.
 
 2) Make sure .factor-rc is in your home directory and readable when you 
 start Factor.
 
 
 
 
 On Tue, Jun 2, 2015 at 7:46 AM, Iain Gray iaing...@ednet.co.uk 
 mailto:iaing...@ednet.co.uk wrote:
 that works if I do
 
 $ cd /Applications/Languages/factor
 
 I feel very close!
 
 On 2 Jun 2015, at 14:32, John Benediktsson mrj...@gmail.com 
 mailto:mrj...@gmail.com wrote:
 
 I'm sorry its not working, are you sure you have an emacs started and run 
 ``M-x server-start`` from it?
 
 Our emacs edit integration just calls emacsclient, so it should be 
 simple to get working.
 
 Does emacsclient work from your command-line?
 
 $ cd factor
 
 $ emacsclient --no-wait +1 README.md
 
 That command does not start a new emacs, so it will error out in the way 
 you see when one does not appear to be running.
 
 
 
 
 On Tue, Jun 2, 2015 at 4:26 AM, Iain Gray iaing...@ednet.co.uk 
 mailto:iaing...@ednet.co.uk wrote:
 My .factor-rc reads
 
 USING: editors.emacs namespaces ;
 “/Applications/languages/Emacs.app/Contents/MacOS/bin-i386-10_5” 
 emacsclient-path set-global
 
 after doing all suggestions I still  get
 
 IN: scratchpad io edit
 Process exited with error code 1
 
 Launch descriptor:
 
 T{ process
 { command
 {
 emacsclient
 --no-wait
 +1
 /Applications/Languages/factor/core/io/io.factor
 }
 }
 { detached t }
 { environment H{ } }
 { environment-mode +append-environment+ }
 { group +same-group+ }
 { status 1 }
 }
 
 I have even reinstalled FUEL from Melpa
 
 On 1 Jun 2015, at 16:04, John Benediktsson mrj...@gmail.com 
 mailto:mrj...@gmail.com wrote:
 
 The .factor-boot-rc is used during bootstrap, but if you just download 
 and use a release, you might want to put that code in .factor-rc which is 
 run each time Factor starts.
 
 Also, I'm a bit confused -- your examples uses emacspath but the 
 documentation for editors.emacs says to set the path to emacsclient?
 
 editors.emacs help
 
 That means this would be it (either in the listener directly for testing, 
 or in .factor-rc on startup, or .factor-boot-rc on bootstrap):
 
 USING: editors.emacs namespaces ;
 /path/to/the/emacsclient emacsclient-path set-global
 
 And in emacs you would need to make sure to have:
 
 M-x server-start
 
 I just tested that 

Re: [Factor-talk] osx emacs FUEL

2015-06-02 Thread Iain Gray
My .factor-rc reads

USING: editors.emacs namespaces ;
“/Applications/languages/Emacs.app/Contents/MacOS/bin-i386-10_5” 
emacsclient-path set-global

after doing all suggestions I still  get

IN: scratchpad io edit
Process exited with error code 1

Launch descriptor:

T{ process
{ command
{
emacsclient
--no-wait
+1
/Applications/Languages/factor/core/io/io.factor
}
}
{ detached t }
{ environment H{ } }
{ environment-mode +append-environment+ }
{ group +same-group+ }
{ status 1 }
}

I have even reinstalled FUEL from Melpa

 On 1 Jun 2015, at 16:04, John Benediktsson mrj...@gmail.com wrote:
 
 The .factor-boot-rc is used during bootstrap, but if you just download and 
 use a release, you might want to put that code in .factor-rc which is run 
 each time Factor starts.
 
 Also, I'm a bit confused -- your examples uses emacspath but the 
 documentation for editors.emacs says to set the path to emacsclient?
 
 editors.emacs help
 
 That means this would be it (either in the listener directly for testing, or 
 in .factor-rc on startup, or .factor-boot-rc on bootstrap):
 
 USING: editors.emacs namespaces ;
 /path/to/the/emacsclient emacsclient-path set-global
 
 And in emacs you would need to make sure to have:
 
 M-x server-start
 
 I just tested that and it worked fine (meaning ``io edit`` opened the file 
 in my open emacs buffer).
 
 Thanks,
 John.
 
 
 On Mon, Jun 1, 2015 at 7:53 AM, Iain Gray iaing...@ednet.co.uk 
 mailto:iaing...@ednet.co.uk wrote:
 still doesn’t work sorry
 I found emacsclient deep inside Emacs,app
 
  On 1 Jun 2015, at 13:00, Björn Lindqvist bjou...@gmail.com 
  mailto:bjou...@gmail.com wrote:
 
  You shouldn't need to set emacs-path if the emacs and emacsclient
  binaries are on your path. emacsclient is not called correctly from
  Factor, but as a workaround you can start the server manually. First
  start emacs and in it type M-x server-start. Then you should be able
  to run io edit in the Factor gui and have the file shown in emacs.
 
  2015-06-01 10:54 GMT+02:00 Iain Gray iaing...@ednet.co.uk 
  mailto:iaing...@ednet.co.uk:
  I have setup the file .factor-boot-rc as
 
  USING: editors.emacs namespaces ;
  “/Applications/languages” \ emacs-path sett-global
 
  which sets up the path to emacs.app
  running factor.app I get on doing “palindrome” edit
 
  error code 1 which seems to be complaining about “emacsclient”
 
  whereas loading palindrome.factor into emacs and typing meta-x run-factor 
  I get a syntax aware editor
  and a factor listener
 
  What am I missing?
 
  Thanks, Iain
 
  p.s. original bounced as I included screen captures
 
 
  On 31 May 2015, at 00:11, Björn Lindqvist bjou...@gmail.com 
  mailto:bjou...@gmail.com wrote:
 
  Could you explain in more detail what your problem is?
 
  2015-05-30 19:04 GMT+02:00 Iain Gray iaing...@ednet.co.uk 
  mailto:iaing...@ednet.co.uk:
  I have successfully integrated FUEL in emacs but cannot seem get it 
  integrated with Factor. My emacs is 24..4.1 and an aoo and my os is OS X 
  10.3. Any advice appreciated. Iain
  --
  ___
  Factor-talk mailing list
  Factor-talk@lists.sourceforge.net 
  mailto:Factor-talk@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/factor-talk 
  https://lists.sourceforge.net/lists/listinfo/factor-talk
 
 
 
  --
  mvh/best regards Björn Lindqvist
 
  --
  ___
  Factor-talk mailing list
  Factor-talk@lists.sourceforge.net 
  mailto:Factor-talk@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/factor-talk 
  https://lists.sourceforge.net/lists/listinfo/factor-talk
 
 
  --
  ___
  Factor-talk mailing list
  Factor-talk@lists.sourceforge.net 
  mailto:Factor-talk@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/factor-talk 
  https://lists.sourceforge.net/lists/listinfo/factor-talk
 
 
 
  --
  mvh/best regards Björn Lindqvist
 
  --
  ___
  Factor-talk mailing list
  Factor-talk@lists.sourceforge.net mailto:Factor-talk@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/factor-talk 
  https://lists.sourceforge.net/lists/listinfo/factor-talk
 
 
 --
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net mailto:Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk 
 

Re: [Factor-talk] osx emacs FUEL

2015-06-02 Thread Iain Gray
that works if I do

$ cd /Applications/Languages/factor

I feel very close!

 On 2 Jun 2015, at 14:32, John Benediktsson mrj...@gmail.com wrote:
 
 I'm sorry its not working, are you sure you have an emacs started and run 
 ``M-x server-start`` from it?
 
 Our emacs edit integration just calls emacsclient, so it should be simple 
 to get working.
 
 Does emacsclient work from your command-line?
 
 $ cd factor
 
 $ emacsclient --no-wait +1 README.md
 
 That command does not start a new emacs, so it will error out in the way you 
 see when one does not appear to be running.
 
 
 
 
 On Tue, Jun 2, 2015 at 4:26 AM, Iain Gray iaing...@ednet.co.uk 
 mailto:iaing...@ednet.co.uk wrote:
 My .factor-rc reads
 
 USING: editors.emacs namespaces ;
 “/Applications/languages/Emacs.app/Contents/MacOS/bin-i386-10_5” 
 emacsclient-path set-global
 
 after doing all suggestions I still  get
 
 IN: scratchpad io edit
 Process exited with error code 1
 
 Launch descriptor:
 
 T{ process
 { command
 {
 emacsclient
 --no-wait
 +1
 /Applications/Languages/factor/core/io/io.factor
 }
 }
 { detached t }
 { environment H{ } }
 { environment-mode +append-environment+ }
 { group +same-group+ }
 { status 1 }
 }
 
 I have even reinstalled FUEL from Melpa
 
 On 1 Jun 2015, at 16:04, John Benediktsson mrj...@gmail.com 
 mailto:mrj...@gmail.com wrote:
 
 The .factor-boot-rc is used during bootstrap, but if you just download and 
 use a release, you might want to put that code in .factor-rc which is run 
 each time Factor starts.
 
 Also, I'm a bit confused -- your examples uses emacspath but the 
 documentation for editors.emacs says to set the path to emacsclient?
 
 editors.emacs help
 
 That means this would be it (either in the listener directly for testing, or 
 in .factor-rc on startup, or .factor-boot-rc on bootstrap):
 
 USING: editors.emacs namespaces ;
 /path/to/the/emacsclient emacsclient-path set-global
 
 And in emacs you would need to make sure to have:
 
 M-x server-start
 
 I just tested that and it worked fine (meaning ``io edit`` opened the file 
 in my open emacs buffer).
 
 Thanks,
 John.
 
 
 On Mon, Jun 1, 2015 at 7:53 AM, Iain Gray iaing...@ednet.co.uk 
 mailto:iaing...@ednet.co.uk wrote:
 still doesn’t work sorry
 I found emacsclient deep inside Emacs,app
 
  On 1 Jun 2015, at 13:00, Björn Lindqvist bjou...@gmail.com 
  mailto:bjou...@gmail.com wrote:
 
  You shouldn't need to set emacs-path if the emacs and emacsclient
  binaries are on your path. emacsclient is not called correctly from
  Factor, but as a workaround you can start the server manually. First
  start emacs and in it type M-x server-start. Then you should be able
  to run io edit in the Factor gui and have the file shown in emacs.
 
  2015-06-01 10:54 GMT+02:00 Iain Gray iaing...@ednet.co.uk 
  mailto:iaing...@ednet.co.uk:
  I have setup the file .factor-boot-rc as
 
  USING: editors.emacs namespaces ;
  “/Applications/languages” \ emacs-path sett-global
 
  which sets up the path to emacs.app
  running factor.app I get on doing “palindrome” edit
 
  error code 1 which seems to be complaining about “emacsclient”
 
  whereas loading palindrome.factor into emacs and typing meta-x run-factor 
  I get a syntax aware editor
  and a factor listener
 
  What am I missing?
 
  Thanks, Iain
 
  p.s. original bounced as I included screen captures
 
 
  On 31 May 2015, at 00:11, Björn Lindqvist bjou...@gmail.com 
  mailto:bjou...@gmail.com wrote:
 
  Could you explain in more detail what your problem is?
 
  2015-05-30 19:04 GMT+02:00 Iain Gray iaing...@ednet.co.uk 
  mailto:iaing...@ednet.co.uk:
  I have successfully integrated FUEL in emacs but cannot seem get it 
  integrated with Factor. My emacs is 24..4.1 and an aoo and my os is OS 
  X 10.3. Any advice appreciated. Iain
  --
  ___
  Factor-talk mailing list
  Factor-talk@lists.sourceforge.net 
  mailto:Factor-talk@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/factor-talk 
  https://lists.sourceforge.net/lists/listinfo/factor-talk
 
 
 
  --
  mvh/best regards Björn Lindqvist
 
  --
  ___
  Factor-talk mailing list
  Factor-talk@lists.sourceforge.net 
  mailto:Factor-talk@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/factor-talk 
  https://lists.sourceforge.net/lists/listinfo/factor-talk
 
 
  --
  ___
  Factor-talk mailing list
  Factor-talk@lists.sourceforge.net 
  mailto:Factor-talk@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/factor-talk 
  

Re: [Factor-talk] osx emacs FUEL

2015-06-02 Thread John Benediktsson
I just noticed that your error doesn't use your emacsclient-path (just the
default emacsclient):

T{ process
{ command
{
emacsclient
--no-wait
+1
/Applications/Languages/factor/core/io/io.factor
}
}
}

Is it possible you aren't loading your .factor-rc correctly?

1) Try pasting the code from your .factor-rc into your Factor Listener and
trying ``io edit`` again.

2) Make sure .factor-rc is in your home directory and readable when you
start Factor.




On Tue, Jun 2, 2015 at 7:46 AM, Iain Gray iaing...@ednet.co.uk wrote:

 that works if I do

 $ cd /Applications/Languages/factor

 I feel very close!

 On 2 Jun 2015, at 14:32, John Benediktsson mrj...@gmail.com wrote:

 I'm sorry its not working, are you sure you have an emacs started and run
 ``M-x server-start`` from it?

 Our emacs edit integration just calls emacsclient, so it should be
 simple to get working.

 Does emacsclient work from your command-line?

 $ cd factor

 $ emacsclient --no-wait +1 README.md

 That command does not start a new emacs, so it will error out in the way
 you see when one does not appear to be running.




 On Tue, Jun 2, 2015 at 4:26 AM, Iain Gray iaing...@ednet.co.uk wrote:

 My .factor-rc reads

 USING: editors.emacs namespaces ;
 “/Applications/languages/Emacs.app/Contents/MacOS/bin-i386-10_5”
 emacsclient-path set-global

 after doing all suggestions I still  get

 IN: scratchpad io edit
 Process exited with error code 1

 Launch descriptor:

 T{ process
 { command
 {
 emacsclient
 --no-wait
 +1
 /Applications/Languages/factor/core/io/io.factor
 }
 }
 { detached t }
 { environment H{ } }
 { environment-mode +append-environment+ }
 { group +same-group+ }
 { status 1 }
 }

 I have even reinstalled FUEL from Melpa

 On 1 Jun 2015, at 16:04, John Benediktsson mrj...@gmail.com wrote:

 The .factor-boot-rc is used during bootstrap, but if you just download
 and use a release, you might want to put that code in .factor-rc which is
 run each time Factor starts.

 Also, I'm a bit confused -- your examples uses emacspath but the
 documentation for editors.emacs says to set the path to emacsclient?

 editors.emacs help

 That means this would be it (either in the listener directly for testing,
 or in .factor-rc on startup, or .factor-boot-rc on bootstrap):

 USING: editors.emacs namespaces ;
 /path/to/the/emacsclient emacsclient-path set-global

 And in emacs you would need to make sure to have:

 M-x server-start

 I just tested that and it worked fine (meaning ``io edit`` opened the
 file in my open emacs buffer).

 Thanks,
 John.


 On Mon, Jun 1, 2015 at 7:53 AM, Iain Gray iaing...@ednet.co.uk wrote:

 still doesn’t work sorry
 I found emacsclient deep inside Emacs,app

  On 1 Jun 2015, at 13:00, Björn Lindqvist bjou...@gmail.com wrote:
 
  You shouldn't need to set emacs-path if the emacs and emacsclient
  binaries are on your path. emacsclient is not called correctly from
  Factor, but as a workaround you can start the server manually. First
  start emacs and in it type M-x server-start. Then you should be able
  to run io edit in the Factor gui and have the file shown in emacs.
 
  2015-06-01 10:54 GMT+02:00 Iain Gray iaing...@ednet.co.uk:
  I have setup the file .factor-boot-rc as
 
  USING: editors.emacs namespaces ;
  “/Applications/languages” \ emacs-path sett-global
 
  which sets up the path to emacs.app
  running factor.app I get on doing “palindrome” edit
 
  error code 1 which seems to be complaining about “emacsclient”
 
  whereas loading palindrome.factor into emacs and typing meta-x
 run-factor I get a syntax aware editor
  and a factor listener
 
  What am I missing?
 
  Thanks, Iain
 
  p.s. original bounced as I included screen captures
 
 
  On 31 May 2015, at 00:11, Björn Lindqvist bjou...@gmail.com wrote:
 
  Could you explain in more detail what your problem is?
 
  2015-05-30 19:04 GMT+02:00 Iain Gray iaing...@ednet.co.uk:
  I have successfully integrated FUEL in emacs but cannot seem get it
 integrated with Factor. My emacs is 24..4.1 and an aoo and my os is OS X
 10.3. Any advice appreciated. Iain
 
 --
  ___
  Factor-talk mailing list
  Factor-talk@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/factor-talk
 
 
 
  --
  mvh/best regards Björn Lindqvist
 
 
 --
  ___
  Factor-talk mailing list
  Factor-talk@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/factor-talk
 
 
 
 --
  ___
  Factor-talk mailing list
  

Re: [Factor-talk] osx emacs FUEL

2015-06-02 Thread John Benediktsson
I'm sorry its not working, are you sure you have an emacs started and run
``M-x server-start`` from it?

Our emacs edit integration just calls emacsclient, so it should be simple
to get working.

Does emacsclient work from your command-line?

$ cd factor

$ emacsclient --no-wait +1 README.md

That command does not start a new emacs, so it will error out in the way
you see when one does not appear to be running.




On Tue, Jun 2, 2015 at 4:26 AM, Iain Gray iaing...@ednet.co.uk wrote:

 My .factor-rc reads

 USING: editors.emacs namespaces ;
 “/Applications/languages/Emacs.app/Contents/MacOS/bin-i386-10_5”
 emacsclient-path set-global

 after doing all suggestions I still  get

 IN: scratchpad io edit
 Process exited with error code 1

 Launch descriptor:

 T{ process
 { command
 {
 emacsclient
 --no-wait
 +1
 /Applications/Languages/factor/core/io/io.factor
 }
 }
 { detached t }
 { environment H{ } }
 { environment-mode +append-environment+ }
 { group +same-group+ }
 { status 1 }
 }

 I have even reinstalled FUEL from Melpa

 On 1 Jun 2015, at 16:04, John Benediktsson mrj...@gmail.com wrote:

 The .factor-boot-rc is used during bootstrap, but if you just download and
 use a release, you might want to put that code in .factor-rc which is run
 each time Factor starts.

 Also, I'm a bit confused -- your examples uses emacspath but the
 documentation for editors.emacs says to set the path to emacsclient?

 editors.emacs help

 That means this would be it (either in the listener directly for testing,
 or in .factor-rc on startup, or .factor-boot-rc on bootstrap):

 USING: editors.emacs namespaces ;
 /path/to/the/emacsclient emacsclient-path set-global

 And in emacs you would need to make sure to have:

 M-x server-start

 I just tested that and it worked fine (meaning ``io edit`` opened the
 file in my open emacs buffer).

 Thanks,
 John.


 On Mon, Jun 1, 2015 at 7:53 AM, Iain Gray iaing...@ednet.co.uk wrote:

 still doesn’t work sorry
 I found emacsclient deep inside Emacs,app

  On 1 Jun 2015, at 13:00, Björn Lindqvist bjou...@gmail.com wrote:
 
  You shouldn't need to set emacs-path if the emacs and emacsclient
  binaries are on your path. emacsclient is not called correctly from
  Factor, but as a workaround you can start the server manually. First
  start emacs and in it type M-x server-start. Then you should be able
  to run io edit in the Factor gui and have the file shown in emacs.
 
  2015-06-01 10:54 GMT+02:00 Iain Gray iaing...@ednet.co.uk:
  I have setup the file .factor-boot-rc as
 
  USING: editors.emacs namespaces ;
  “/Applications/languages” \ emacs-path sett-global
 
  which sets up the path to emacs.app
  running factor.app I get on doing “palindrome” edit
 
  error code 1 which seems to be complaining about “emacsclient”
 
  whereas loading palindrome.factor into emacs and typing meta-x
 run-factor I get a syntax aware editor
  and a factor listener
 
  What am I missing?
 
  Thanks, Iain
 
  p.s. original bounced as I included screen captures
 
 
  On 31 May 2015, at 00:11, Björn Lindqvist bjou...@gmail.com wrote:
 
  Could you explain in more detail what your problem is?
 
  2015-05-30 19:04 GMT+02:00 Iain Gray iaing...@ednet.co.uk:
  I have successfully integrated FUEL in emacs but cannot seem get it
 integrated with Factor. My emacs is 24..4.1 and an aoo and my os is OS X
 10.3. Any advice appreciated. Iain
 
 --
  ___
  Factor-talk mailing list
  Factor-talk@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/factor-talk
 
 
 
  --
  mvh/best regards Björn Lindqvist
 
 
 --
  ___
  Factor-talk mailing list
  Factor-talk@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/factor-talk
 
 
 
 --
  ___
  Factor-talk mailing list
  Factor-talk@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/factor-talk
 
 
 
  --
  mvh/best regards Björn Lindqvist
 
 
 --
  ___
  Factor-talk mailing list
  Factor-talk@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/factor-talk



 --
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk



 --
 

Re: [Factor-talk] osx emacs FUEL

2015-06-02 Thread Iain Gray
I get a similar error

Process exited with error code 255

Launch descriptor:

T{ process
{ command
{
/Applications/Languages/factor
--no-wait
+1
/Applications/Languages/factor/core/io/io.factor
}
}
{ detached t }
{ environment H{ } }
{ environment-mode +append-environment+ }
{ group +same-group+ }
{ status 255 }

and emcsclient? gives an underflow error

 On 2 Jun 2015, at 15:51, John Benediktsson mrj...@gmail.com wrote:
 
 I just noticed that your error doesn't use your emacsclient-path (just the 
 default emacsclient):
 
 T{ process
 { command
 {
 emacsclient
 --no-wait
 +1
 /Applications/Languages/factor/core/io/io.factor
 }
 }
 }
 
 Is it possible you aren't loading your .factor-rc correctly?
 
 1) Try pasting the code from your .factor-rc into your Factor Listener and 
 trying ``io edit`` again.
 
 2) Make sure .factor-rc is in your home directory and readable when you start 
 Factor.
 
 
 
 
 On Tue, Jun 2, 2015 at 7:46 AM, Iain Gray iaing...@ednet.co.uk 
 mailto:iaing...@ednet.co.uk wrote:
 that works if I do
 
 $ cd /Applications/Languages/factor
 
 I feel very close!
 
 On 2 Jun 2015, at 14:32, John Benediktsson mrj...@gmail.com 
 mailto:mrj...@gmail.com wrote:
 
 I'm sorry its not working, are you sure you have an emacs started and run 
 ``M-x server-start`` from it?
 
 Our emacs edit integration just calls emacsclient, so it should be simple 
 to get working.
 
 Does emacsclient work from your command-line?
 
 $ cd factor
 
 $ emacsclient --no-wait +1 README.md
 
 That command does not start a new emacs, so it will error out in the way you 
 see when one does not appear to be running.
 
 
 
 
 On Tue, Jun 2, 2015 at 4:26 AM, Iain Gray iaing...@ednet.co.uk 
 mailto:iaing...@ednet.co.uk wrote:
 My .factor-rc reads
 
 USING: editors.emacs namespaces ;
 “/Applications/languages/Emacs.app/Contents/MacOS/bin-i386-10_5” 
 emacsclient-path set-global
 
 after doing all suggestions I still  get
 
 IN: scratchpad io edit
 Process exited with error code 1
 
 Launch descriptor:
 
 T{ process
 { command
 {
 emacsclient
 --no-wait
 +1
 /Applications/Languages/factor/core/io/io.factor
 }
 }
 { detached t }
 { environment H{ } }
 { environment-mode +append-environment+ }
 { group +same-group+ }
 { status 1 }
 }
 
 I have even reinstalled FUEL from Melpa
 
 On 1 Jun 2015, at 16:04, John Benediktsson mrj...@gmail.com 
 mailto:mrj...@gmail.com wrote:
 
 The .factor-boot-rc is used during bootstrap, but if you just download and 
 use a release, you might want to put that code in .factor-rc which is run 
 each time Factor starts.
 
 Also, I'm a bit confused -- your examples uses emacspath but the 
 documentation for editors.emacs says to set the path to emacsclient?
 
 editors.emacs help
 
 That means this would be it (either in the listener directly for testing, 
 or in .factor-rc on startup, or .factor-boot-rc on bootstrap):
 
 USING: editors.emacs namespaces ;
 /path/to/the/emacsclient emacsclient-path set-global
 
 And in emacs you would need to make sure to have:
 
 M-x server-start
 
 I just tested that and it worked fine (meaning ``io edit`` opened the 
 file in my open emacs buffer).
 
 Thanks,
 John.
 
 
 On Mon, Jun 1, 2015 at 7:53 AM, Iain Gray iaing...@ednet.co.uk 
 mailto:iaing...@ednet.co.uk wrote:
 still doesn’t work sorry
 I found emacsclient deep inside Emacs,app
 
  On 1 Jun 2015, at 13:00, Björn Lindqvist bjou...@gmail.com 
  mailto:bjou...@gmail.com wrote:
 
  You shouldn't need to set emacs-path if the emacs and emacsclient
  binaries are on your path. emacsclient is not called correctly from
  Factor, but as a workaround you can start the server manually. First
  start emacs and in it type M-x server-start. Then you should be able
  to run io edit in the Factor gui and have the file shown in emacs.
 
  2015-06-01 10:54 GMT+02:00 Iain Gray iaing...@ednet.co.uk 
  mailto:iaing...@ednet.co.uk:
  I have setup the file .factor-boot-rc as
 
  USING: editors.emacs namespaces ;
  “/Applications/languages” \ emacs-path sett-global
 
  which sets up the path to emacs.app
  running factor.app I get on doing “palindrome” edit
 
  error code 1 which seems to be complaining about “emacsclient”
 
  whereas loading palindrome.factor into emacs and typing meta-x 
  run-factor I get a syntax aware editor
  and a factor listener
 
  What am I missing?
 
  Thanks, Iain
 
  p.s. original bounced as I included screen captures
 
 
  On 31 May 2015, at 00:11, Björn Lindqvist bjou...@gmail.com 
  mailto:bjou...@gmail.com wrote:
 
  Could you explain in more detail what your problem is?
 
  2015-05-30 19:04 GMT+02:00 Iain Gray iaing...@ednet.co.uk 
  mailto:iaing...@ednet.co.uk:
  I have successfully integrated FUEL in emacs but cannot seem 

Re: [Factor-talk] osx emacs FUEL

2015-06-02 Thread John Benediktsson
Why is your process trying to run /Applications/Languages/Factor when you call 
edit?

Shouldn't it be the /path/to/emacsclient?

This is what I mean (using the full path to your emacsclient):

USING: editors.emacs namespaces 
/Applications/Languages/Emacs.app/Contents/MacOS/bin-i386-10_5/emacsclient 
emacsclient-path set-global

Are you running OS X 10.5 on 32-bit? I think that path doesn't look like the 
right architecture.

You can look at which other architectures are available:

$ ls /Applications/Languages/Emacs.app/Contents/MacOS




 On Jun 2, 2015, at 8:42 AM, Iain Gray iaing...@ednet.co.uk wrote:
 
 I get a similar error
 
 Process exited with error code 255
 
 Launch descriptor:
 
 T{ process
 { command
 {
 /Applications/Languages/factor
 --no-wait
 +1
 /Applications/Languages/factor/core/io/io.factor
 }
 }
 { detached t }
 { environment H{ } }
 { environment-mode +append-environment+ }
 { group +same-group+ }
 { status 255 }
 
 and emcsclient? gives an underflow error
 
 On 2 Jun 2015, at 15:51, John Benediktsson mrj...@gmail.com wrote:
 
 I just noticed that your error doesn't use your emacsclient-path (just the 
 default emacsclient):
 
 T{ process
 { command
 {
 emacsclient
 --no-wait
 +1
 /Applications/Languages/factor/core/io/io.factor
 }
 }
 }
 
 Is it possible you aren't loading your .factor-rc correctly?
 
 1) Try pasting the code from your .factor-rc into your Factor Listener and 
 trying ``io edit`` again.
 
 2) Make sure .factor-rc is in your home directory and readable when you 
 start Factor.
 
 
 
 
 On Tue, Jun 2, 2015 at 7:46 AM, Iain Gray iaing...@ednet.co.uk wrote:
 that works if I do
 
 $ cd /Applications/Languages/factor
 
 I feel very close!
 
 On 2 Jun 2015, at 14:32, John Benediktsson mrj...@gmail.com wrote:
 
 I'm sorry its not working, are you sure you have an emacs started and run 
 ``M-x server-start`` from it?
 
 Our emacs edit integration just calls emacsclient, so it should be 
 simple to get working.
 
 Does emacsclient work from your command-line?
 
 $ cd factor
 
 $ emacsclient --no-wait +1 README.md
 
 That command does not start a new emacs, so it will error out in the way 
 you see when one does not appear to be running.
 
 
 
 
 On Tue, Jun 2, 2015 at 4:26 AM, Iain Gray iaing...@ednet.co.uk wrote:
 My .factor-rc reads
 
 USING: editors.emacs namespaces ;
 “/Applications/languages/Emacs.app/Contents/MacOS/bin-i386-10_5” 
 emacsclient-path set-global
 
 after doing all suggestions I still  get
 
 IN: scratchpad io edit
 Process exited with error code 1
 
 Launch descriptor:
 
 T{ process
 { command
 {
 emacsclient
 --no-wait
 +1
 /Applications/Languages/factor/core/io/io.factor
 }
 }
 { detached t }
 { environment H{ } }
 { environment-mode +append-environment+ }
 { group +same-group+ }
 { status 1 }
 }
 
 I have even reinstalled FUEL from Melpa
 
 On 1 Jun 2015, at 16:04, John Benediktsson mrj...@gmail.com wrote:
 
 The .factor-boot-rc is used during bootstrap, but if you just download 
 and use a release, you might want to put that code in .factor-rc which 
 is run each time Factor starts.
 
 Also, I'm a bit confused -- your examples uses emacspath but the 
 documentation for editors.emacs says to set the path to emacsclient?
 
 editors.emacs help
 
 That means this would be it (either in the listener directly for 
 testing, or in .factor-rc on startup, or .factor-boot-rc on bootstrap):
 
 USING: editors.emacs namespaces ;
 /path/to/the/emacsclient emacsclient-path set-global
 
 And in emacs you would need to make sure to have:
 
 M-x server-start
 
 I just tested that and it worked fine (meaning ``io edit`` opened the 
 file in my open emacs buffer).
 
 Thanks,
 John.
 
 
 On Mon, Jun 1, 2015 at 7:53 AM, Iain Gray iaing...@ednet.co.uk wrote:
 still doesn’t work sorry
 I found emacsclient deep inside Emacs,app
 
  On 1 Jun 2015, at 13:00, Björn Lindqvist bjou...@gmail.com wrote:
 
  You shouldn't need to set emacs-path if the emacs and emacsclient
  binaries are on your path. emacsclient is not called correctly from
  Factor, but as a workaround you can start the server manually. First
  start emacs and in it type M-x server-start. Then you should be able
  to run io edit in the Factor gui and have the file shown in emacs.
 
  2015-06-01 10:54 GMT+02:00 Iain Gray iaing...@ednet.co.uk:
  I have setup the file .factor-boot-rc as
 
  USING: editors.emacs namespaces ;
  “/Applications/languages” \ emacs-path sett-global
 
  which sets up the path to emacs.app
  running factor.app I get on doing “palindrome” edit
 
  error code 1 which seems to be complaining about “emacsclient”
 
  whereas loading palindrome.factor into emacs and typing meta-x 
  run-factor I get a syntax aware editor
  

Re: [Factor-talk] osx emacs FUEL

2015-06-01 Thread Björn Lindqvist
You shouldn't need to set emacs-path if the emacs and emacsclient
binaries are on your path. emacsclient is not called correctly from
Factor, but as a workaround you can start the server manually. First
start emacs and in it type M-x server-start. Then you should be able
to run io edit in the Factor gui and have the file shown in emacs.

2015-06-01 10:54 GMT+02:00 Iain Gray iaing...@ednet.co.uk:
 I have setup the file .factor-boot-rc as

 USING: editors.emacs namespaces ;
 “/Applications/languages” \ emacs-path sett-global

 which sets up the path to emacs.app
 running factor.app I get on doing “palindrome” edit

 error code 1 which seems to be complaining about “emacsclient”

 whereas loading palindrome.factor into emacs and typing meta-x run-factor I 
 get a syntax aware editor
 and a factor listener

 What am I missing?

 Thanks, Iain

 p.s. original bounced as I included screen captures


 On 31 May 2015, at 00:11, Björn Lindqvist bjou...@gmail.com wrote:

 Could you explain in more detail what your problem is?

 2015-05-30 19:04 GMT+02:00 Iain Gray iaing...@ednet.co.uk:
 I have successfully integrated FUEL in emacs but cannot seem get it 
 integrated with Factor. My emacs is 24..4.1 and an aoo and my os is OS X 
 10.3. Any advice appreciated. Iain
 --
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk



 --
 mvh/best regards Björn Lindqvist

 --
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk


 --
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk



-- 
mvh/best regards Björn Lindqvist

--
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] osx emacs FUEL

2015-06-01 Thread Iain Gray
I have setup the file .factor-boot-rc as

USING: editors.emacs namespaces ;
“/Applications/languages” \ emacs-path sett-global

which sets up the path to emacs.app
running factor.app I get on doing “palindrome” edit

error code 1 which seems to be complaining about “emacsclient”

whereas loading palindrome.factor into emacs and typing meta-x run-factor I get 
a syntax aware editor
and a factor listener

What am I missing?

Thanks, Iain

p.s. original bounced as I included screen captures


 On 31 May 2015, at 00:11, Björn Lindqvist bjou...@gmail.com wrote:
 
 Could you explain in more detail what your problem is?
 
 2015-05-30 19:04 GMT+02:00 Iain Gray iaing...@ednet.co.uk:
 I have successfully integrated FUEL in emacs but cannot seem get it 
 integrated with Factor. My emacs is 24..4.1 and an aoo and my os is OS X 
 10.3. Any advice appreciated. Iain
 --
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk
 
 
 
 -- 
 mvh/best regards Björn Lindqvist
 
 --
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk


--
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] osx emacs FUEL

2015-06-01 Thread John Benediktsson
The .factor-boot-rc is used during bootstrap, but if you just download and
use a release, you might want to put that code in .factor-rc which is run
each time Factor starts.

Also, I'm a bit confused -- your examples uses emacspath but the
documentation for editors.emacs says to set the path to emacsclient?

editors.emacs help

That means this would be it (either in the listener directly for testing,
or in .factor-rc on startup, or .factor-boot-rc on bootstrap):

USING: editors.emacs namespaces ;
/path/to/the/emacsclient emacsclient-path set-global

And in emacs you would need to make sure to have:

M-x server-start

I just tested that and it worked fine (meaning ``io edit`` opened the
file in my open emacs buffer).

Thanks,
John.


On Mon, Jun 1, 2015 at 7:53 AM, Iain Gray iaing...@ednet.co.uk wrote:

 still doesn’t work sorry
 I found emacsclient deep inside Emacs,app

  On 1 Jun 2015, at 13:00, Björn Lindqvist bjou...@gmail.com wrote:
 
  You shouldn't need to set emacs-path if the emacs and emacsclient
  binaries are on your path. emacsclient is not called correctly from
  Factor, but as a workaround you can start the server manually. First
  start emacs and in it type M-x server-start. Then you should be able
  to run io edit in the Factor gui and have the file shown in emacs.
 
  2015-06-01 10:54 GMT+02:00 Iain Gray iaing...@ednet.co.uk:
  I have setup the file .factor-boot-rc as
 
  USING: editors.emacs namespaces ;
  “/Applications/languages” \ emacs-path sett-global
 
  which sets up the path to emacs.app
  running factor.app I get on doing “palindrome” edit
 
  error code 1 which seems to be complaining about “emacsclient”
 
  whereas loading palindrome.factor into emacs and typing meta-x
 run-factor I get a syntax aware editor
  and a factor listener
 
  What am I missing?
 
  Thanks, Iain
 
  p.s. original bounced as I included screen captures
 
 
  On 31 May 2015, at 00:11, Björn Lindqvist bjou...@gmail.com wrote:
 
  Could you explain in more detail what your problem is?
 
  2015-05-30 19:04 GMT+02:00 Iain Gray iaing...@ednet.co.uk:
  I have successfully integrated FUEL in emacs but cannot seem get it
 integrated with Factor. My emacs is 24..4.1 and an aoo and my os is OS X
 10.3. Any advice appreciated. Iain
 
 --
  ___
  Factor-talk mailing list
  Factor-talk@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/factor-talk
 
 
 
  --
  mvh/best regards Björn Lindqvist
 
 
 --
  ___
  Factor-talk mailing list
  Factor-talk@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/factor-talk
 
 
 
 --
  ___
  Factor-talk mailing list
  Factor-talk@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/factor-talk
 
 
 
  --
  mvh/best regards Björn Lindqvist
 
 
 --
  ___
  Factor-talk mailing list
  Factor-talk@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/factor-talk



 --
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk

--
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] osx emacs FUEL

2015-06-01 Thread John Benediktsson
I downloaded Emacs.app, and this works for me:

/Applications/Emacs.app/Contents/MacOS/bin-x86_64-10_9/emacsclient
emacsclient-path set-global

(There are binaries for different versions of OS X and architectures, use
the right one for your machine I guess):

 /Applications/Emacs.app $ find . | grep emacsclient
./Contents/MacOS/bin-i386-10_5/emacsclient
./Contents/MacOS/bin-powerpc-10_4/emacsclient
./Contents/MacOS/bin-x86_64-10_5/emacsclient
./Contents/MacOS/bin-x86_64-10_7/emacsclient
./Contents/MacOS/bin-x86_64-10_9/emacsclient



On Mon, Jun 1, 2015 at 8:04 AM, John Benediktsson mrj...@gmail.com wrote:

 The .factor-boot-rc is used during bootstrap, but if you just download and
 use a release, you might want to put that code in .factor-rc which is run
 each time Factor starts.

 Also, I'm a bit confused -- your examples uses emacspath but the
 documentation for editors.emacs says to set the path to emacsclient?

 editors.emacs help

 That means this would be it (either in the listener directly for testing,
 or in .factor-rc on startup, or .factor-boot-rc on bootstrap):

 USING: editors.emacs namespaces ;
 /path/to/the/emacsclient emacsclient-path set-global

 And in emacs you would need to make sure to have:

 M-x server-start

 I just tested that and it worked fine (meaning ``io edit`` opened the
 file in my open emacs buffer).

 Thanks,
 John.


 On Mon, Jun 1, 2015 at 7:53 AM, Iain Gray iaing...@ednet.co.uk wrote:

 still doesn’t work sorry
 I found emacsclient deep inside Emacs,app

  On 1 Jun 2015, at 13:00, Björn Lindqvist bjou...@gmail.com wrote:
 
  You shouldn't need to set emacs-path if the emacs and emacsclient
  binaries are on your path. emacsclient is not called correctly from
  Factor, but as a workaround you can start the server manually. First
  start emacs and in it type M-x server-start. Then you should be able
  to run io edit in the Factor gui and have the file shown in emacs.
 
  2015-06-01 10:54 GMT+02:00 Iain Gray iaing...@ednet.co.uk:
  I have setup the file .factor-boot-rc as
 
  USING: editors.emacs namespaces ;
  “/Applications/languages” \ emacs-path sett-global
 
  which sets up the path to emacs.app
  running factor.app I get on doing “palindrome” edit
 
  error code 1 which seems to be complaining about “emacsclient”
 
  whereas loading palindrome.factor into emacs and typing meta-x
 run-factor I get a syntax aware editor
  and a factor listener
 
  What am I missing?
 
  Thanks, Iain
 
  p.s. original bounced as I included screen captures
 
 
  On 31 May 2015, at 00:11, Björn Lindqvist bjou...@gmail.com wrote:
 
  Could you explain in more detail what your problem is?
 
  2015-05-30 19:04 GMT+02:00 Iain Gray iaing...@ednet.co.uk:
  I have successfully integrated FUEL in emacs but cannot seem get it
 integrated with Factor. My emacs is 24..4.1 and an aoo and my os is OS X
 10.3. Any advice appreciated. Iain
 
 --
  ___
  Factor-talk mailing list
  Factor-talk@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/factor-talk
 
 
 
  --
  mvh/best regards Björn Lindqvist
 
 
 --
  ___
  Factor-talk mailing list
  Factor-talk@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/factor-talk
 
 
 
 --
  ___
  Factor-talk mailing list
  Factor-talk@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/factor-talk
 
 
 
  --
  mvh/best regards Björn Lindqvist
 
 
 --
  ___
  Factor-talk mailing list
  Factor-talk@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/factor-talk



 --
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk



--
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] osx emacs FUEL

2015-06-01 Thread Iain Gray
still doesn’t work sorry
I found emacsclient deep inside Emacs,app

 On 1 Jun 2015, at 13:00, Björn Lindqvist bjou...@gmail.com wrote:
 
 You shouldn't need to set emacs-path if the emacs and emacsclient
 binaries are on your path. emacsclient is not called correctly from
 Factor, but as a workaround you can start the server manually. First
 start emacs and in it type M-x server-start. Then you should be able
 to run io edit in the Factor gui and have the file shown in emacs.
 
 2015-06-01 10:54 GMT+02:00 Iain Gray iaing...@ednet.co.uk:
 I have setup the file .factor-boot-rc as
 
 USING: editors.emacs namespaces ;
 “/Applications/languages” \ emacs-path sett-global
 
 which sets up the path to emacs.app
 running factor.app I get on doing “palindrome” edit
 
 error code 1 which seems to be complaining about “emacsclient”
 
 whereas loading palindrome.factor into emacs and typing meta-x run-factor I 
 get a syntax aware editor
 and a factor listener
 
 What am I missing?
 
 Thanks, Iain
 
 p.s. original bounced as I included screen captures
 
 
 On 31 May 2015, at 00:11, Björn Lindqvist bjou...@gmail.com wrote:
 
 Could you explain in more detail what your problem is?
 
 2015-05-30 19:04 GMT+02:00 Iain Gray iaing...@ednet.co.uk:
 I have successfully integrated FUEL in emacs but cannot seem get it 
 integrated with Factor. My emacs is 24..4.1 and an aoo and my os is OS X 
 10.3. Any advice appreciated. Iain
 --
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk
 
 
 
 --
 mvh/best regards Björn Lindqvist
 
 --
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk
 
 
 --
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk
 
 
 
 -- 
 mvh/best regards Björn Lindqvist
 
 --
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk


--
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] osx emacs FUEL

2015-05-30 Thread Björn Lindqvist
Could you explain in more detail what your problem is?

2015-05-30 19:04 GMT+02:00 Iain Gray iaing...@ednet.co.uk:
 I have successfully integrated FUEL in emacs but cannot seem get it 
 integrated with Factor. My emacs is 24..4.1 and an aoo and my os is OS X 
 10.3. Any advice appreciated. Iain
 --
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk



-- 
mvh/best regards Björn Lindqvist

--
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk