Topic: Enhancement for System() (1 of 11), Read 204 times
Conf: VEDIT Suggestions
From: Christian Ziemski
Date: Wednesday, January 27, 1999 02:31 AM


It would be nice to be able to modify the message of the macro command System():

"Shell (To another program)"


Maybe like that: System("prog","message",DOS)


Christian

 


Topic: Enhancement for System() (2 of 11), Read 204 times
Conf: VEDIT Suggestions
From: Scott Lambert
Date: Wednesday, January 27, 1999 10:16 AM


It would be nice also to be able to prevent the message from coming up at all.

Scott Lambert

 


Topic: Re: Enhancement for System() (5 of 11), Read 207 times
Conf: VEDIT Suggestions
From: Ted Green
Date: Monday, February 01, 1999 10:08 PM

That seems to be a good suggestion. There currently doesn't
seem to be an option to suppress the message.

 


Topic: Enhancement for System() (3 of 11), Read 201 times
Conf: VEDIT Suggestions
From: Fritz Heberlein
Date: Wednesday, January 27, 1999 06:25 PM

Even better would be full DDE support, which would make Vedit catching up with editors like WinEdit or PFE (which in almost every other respect are falling behind Vedit).

Fritz

 


Topic: Re: Enhancement for System() (6 of 11), Read 212 times
Conf: VEDIT Suggestions
From: Ted Green
Date: Monday, February 01, 1999 10:15 PM

It would help if you would document how the desired
DDE support should work, e.g. suggested command(s),
arguments and options.

VEDIT currently has DDE client and server code in it
already. DDE server is used for the Group_Create()
command, which is used for installation.

DDE client allows Explorer to open additional files
in an alreadying-running VEDIT. Essentially any
macro command can already be passed to VEDIT via DDE.

 


Topic: Re: Enhancement for System() (8 of 11), Read 227 times
Conf: VEDIT Suggestions
From: Fritz Heberlein
Date: Tuesday, February 02, 1999 01:29 PM

Ted,
Let me give an example.
I cite from DVIWIN manual, which is a DVI driver for previewing and printing DVI files under Windows.

Fritz



4. Editor linkage for inverse search
Dviwin can interface with most text editors supporting the DDE protocol.
PFE is such an editor and is freely available from ftp.cica.indiana.edu.
The interface is accomplished by setting several fields in the "Inverse Search" dialog from the "Options" menu. Set the "Command" field to "pfe.exe $f", the "Service" field to "PFE", the "Topic" field to "System", the "Message 1" field to "[FileOpen("$f")] [EditGotoLine($l,0)] [EditSelectLine()]", leave the "Message 2" field empty, and check the "Uses DDE" box (You'll need PFE version 0.05.007G or later). When you double click the left mouse button, dviwin will instruct PFE to display the appropriate TeX file at the appropriate location (provided of course that the DVI file contains src specials).

5. Editor setup for forward search

You can also do a forward search (ie., find the location in the DVI file that corresponds to a particular location in the TeX file) provided that the DVI file contains src specials. Assuming that you use PFE, go to the "Configure Windows Tools" dialog from the "Execute" menu, set the "Tool" field to "Dviwin" and the "Command Line" field to:
dde2exe 'dviwin -1 -s\'' PFE|Editor!LineNumber ' ' PFE|Editor!FileName '\''
Once you load a TeX file, you will be able to do a forward search by selecting the "Dviwin" tool from the "Launch Windows Tool" dialog in the "Execute" menu. If the DVI file contains src specials, dviwin will try to position you at the DVI location corresponding to the current line number of the current file.

 


Topic: Re: Enhancement for System() (9 of 11), Read 94 times
Conf: VEDIT Suggestions
From: Peter Rejto
Date: Wednesday, February 05, 2003 12:28 AM

On 2/2/1999 1:29:28 PM, Fritz Heberlein wrote:
>Ted,
>Let me give an example.
>I cite from DVIWIN manual,
>which is a DVI driver for
>previewing and printing DVI
>files under Windows.
>
>Fritz
>
>
>
>4. Editor linkage for inverse
>search
>Dviwin can interface with most
>text editors supporting the
>DDE protocol.
>PFE is such an editor and is
>freely available from
>ftp.cica.indiana.edu.
>The interface is accomplished
>by setting several fields in
>the "Inverse Search" dialog
>from the "Options" menu. Set
>the "Command" field to
>"pfe.exe $f", the "Service"
>field to "PFE", the "Topic"
>field to "System", the
>"Message 1" field to
>"[FileOpen("$f")]
>[EditGotoLine($l,0)]
>[EditSelectLine()]", leave the
>"Message 2" field empty, and
>check the "Uses DDE" box
>(You'll need PFE version
>0.05.007G or later). When you
>double click the left mouse
>button, dviwin will instruct
>PFE to display the appropriate
>TeX file at the appropriate
>location (provided of course
>that the DVI file contains src
>specials).
>
>5. Editor setup for forward
>search
>
>You can also do a forward
>search (ie., find the location
>in the DVI file that
>corresponds to a particular
>location in the TeX file)
>provided that the DVI file
>contains src specials.
>Assuming that you use PFE, go
>to the "Configure Windows
>Tools" dialog from the
>"Execute" menu, set the "Tool"
>field to "Dviwin" and the
>"Command Line" field to:
>dde2exe 'dviwin -1 -s\''
>PFE|Editor!LineNumber ' '
>PFE|Editor!FileName '\''
>Once you load a TeX file, you
>will be able to do a forward
>search by selecting the
>"Dviwin" tool from the "Launch
>Windows Tool" dialog in the
>"Execute" menu. If the DVI
>file contains src specials,
>dviwin will try to position
>you at the DVI location
>corresponding to the current
>line number of the current
>file
>

Hello Fritz,

Do you still have an interest in these questions?
I have a hunch that since your posting these features have been implemented in Vedit. Could you give a technical summary for me? In fact, could you give me a reference to DDE?

Do I remember correctly: Your LATEX.VCS also allows direct and inverse search? Somehow these are the two features of your program that I am not using. Or may be this comes from another program of yours.

Thanks,

-peter


P.S. You also say that in every other respect Vedit is superior to these editors. Since everybody loves his/her editor, how do I convince my colleagues that Vedit is indeed better than the official Winedt?

 


Topic: Re: Enhancement for System() (10 of 11), Read 87 times
Conf: VEDIT Suggestions
From: Ted Green
Date: Wednesday, February 05, 2003 11:00 AM

At 12:28 AM 2/5/2003, you wrote:
>...
>I have a hunch that since your posting these features have been implemented in Vedit. Could you give a technical summary for me? In fact, could you give me a reference to DDE?

I will have to double-check and then document how DDE is currently implemented in VEDIT. We probably should implement a command to send DDE messages from within
VEDIT.

VEDIT currently has the code to send and receive DDE messages. A received DDE message is treated as a macro command to be executed. This is how we implemented "Instance control" in VEDIT. When you double-click a file in Explorer, it opens in a new instance of VEDIT. That instance then checks if it is configured for "one" instance of VEDIT and if another instance of VEDIT is running. If both are true,
it sends the new filename to the 1st instance of VEDIT and then shuts down.

Ted.

 


Topic: Re: Enhancement for System() (11 of 11), Read 93 times, 1 File Attachment
Conf: VEDIT Suggestions
From: Fritz Heberlein
Date: Wednesday, February 05, 2003 12:51 PM

>>
That instance then checks if it is configured for "one" instance of VEDIT and if another instance of VEDIT is running. If both are true, it sends the new filename to the 1st instance of VEDIT and then shuts down.
<<

If i'm not mistaken, this is limited to the invocation of Vedit from the explorer or from OS. Invoking by another Windows program always starts a new copy of Vedit, at least in 6.03.

I would be glad to see this fixed in 6.1 or a future version. Only then -- and here I come back to Peter's question -- we will be able to implement an efficient "backward search" for TeX.

Currently I'm using a workaround that closes down Vedit before it passes the file name / line to the previewer so that the previewer opens a "single instance" of Vedit. I attach it here, case Peter wants to try it.

BTW. it requires the following command line in the "inverse search" section of the previewer:

c:\vedit\vpw %f -l%l

Fritz

 
YAP.VDM (1KB)

 


Topic: Re: Enhancement for System() (4 of 11), Read 204 times
Conf: VEDIT Suggestions
From: Ted Green
Date: Monday, February 01, 1999 10:06 PM

Since the message is also put up from {MISC, Shell}, your "System(...)"
message is much to technical for casual users.

 


Topic: Re: Enhancement for System() (7 of 11), Read 211 times
Conf: VEDIT Suggestions
From: Christian Ziemski
Date: Tuesday, February 02, 1999 01:21 PM


Yes, maybe.
But that's another story. When one uses {MISC, Shell} he or she knows
was is happening then.

But when a macro is calling System() in the background with a longer
task to do the user should be informed about what's going on.

Example:
I'm using an integrated development environment built with VEDIT
macros. The system() is getting/putting files from a UNIX system with
rcp. That sometimes lasts very long...
Here it would be nice to inform the user with:
"copying file from UNIX, please wait" or something like that.

Christian