Search the web
Sign In
New User? Sign Up
jasspa · JASSPA's MicroEmacs
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Client-Server Problems with find-file, goto-line   Message List  
Reply | Forward Message #2306 of 2530 |
Hello all,

I would like to run a pipeline like:

$ /c/Programme/jasspa/me32.exe -m 'C:ME:find-file c:/path/to/
Makefile'
$ /c/Programme/jasspa/me32.exe -m 'C:ME:goto-line 18'

unfortunatly does not work. Sometimes the *server* window popups
instead of the desired file argument and the file even if it popups
does not have a focus

cmds like
$ /c/Programme/jasspa/me32.exe -m 'C:ME:delete-other-windows'

are simply ignored.

A macro like:

define-macro find-file-line
find-file @1
!if &not &equal 0 @2
goto-line @2
!endif
!emacro

works if tested inside emacs but the invoked file-window does not get
the focus if invoked from the commandline.

Keeping short. I would like to invoke me with two arguments the file-
name and a line number. The server should show at the end just one
window with the right file at the right line.

any suggestions ?

regards,
Detlef






Wed Apr 9, 2008 6:01 am

dgroth_99
Offline Offline
Send Email Send Email

Forward
Message #2306 of 2530 |
Expand Messages Author Sort by Date

Hello all, I would like to run a pipeline like: $ /c/Programme/jasspa/me32.exe -m 'C:ME:find-file c:/path/to/ Makefile' $ /c/Programme/jasspa/me32.exe -m...
Dr. Detlef Groth
dgroth_99
Offline Send Email
Apr 9, 2008
6:01 am

The server interface has deliberately been restricted to avoid the user accidentally breaking things (consider doing a large macro based operation to modify...
Steven Phillips
bill@...
Send Email
Apr 9, 2008
12:44 pm

Hi Steven, I think the only thing I really would like to do is opening a file or reusing an existing buffer and optional going to a certain line number if line...
Detlef Groth
dgroth_99
Offline Send Email
Apr 9, 2008
2:27 pm

Detlef, I've worked out the best way to do this, you need 2 macros - the first is the one directly called by the client/server interface, this stores the...
Steven Phillips
bill@...
Send Email
Apr 9, 2008
9:13 pm

Thanks Steven, works like a charm: $ /c/Programme/jasspa/me32.exe -m 'C:ME:server-find-file c:/home/dgroth/mycvs/mytcl/goblet1/conf/goblet.cfg 2' $...
Detlef Groth
dgroth_99
Offline Send Email
Apr 10, 2008
4:11 am

Hi all, I finally found the time to interact with the ME-Server from an Tcl-Tree showing my project files see: http://www.dgroth.de/downloads/me-no-ide.png ...
Dr. Detlef Groth
dgroth_99
Offline Send Email
Jun 20, 2008
9:46 am

Hi. sorry, but I found the solution myself. Of course I have to use just the server-find-file command from below instead of find-file: The Tcl-command is: exec...
Dr. Detlef Groth
dgroth_99
Offline Send Email
Jun 20, 2008
11:35 am

Detlef - Once apon a time I integrated a TCL interpreter with MicroEmacs that provided a new ME command "tcl some tcl statement" and one new TCL command "emf...
Bryan Schofield
schofield.bryan@...
Send Email
Apr 10, 2008
12:40 pm

Hi Brian, sounds very interesting, do you have still some code around for the Tcl integration ? regards, Detlef ... -- Dr.Detlef Groth Neue Scheune 5 14548...
Detlef Groth
dgroth_99
Offline Send Email
Apr 10, 2008
1:59 pm

I'm afraid I can't find it, but I remember the changes were pretty simple. A couple of C files. This would have been 3 years or so ago... I can't search the...
Bryan Schofield
schofield.bryan@...
Send Email
Apr 10, 2008
2:13 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help