Topic: Re: c-COMPIL.VDM and {TOOLS_Menu} (1 of 9), Read 86 times
Conf: Compiler support
From: Fritz Heberlein
Date: Monday, July 01, 2002 02:55 AM

> I would like to run the C-COMPIL.VDM macro from my {TOOLS_Menu}.
> However, when I call this macro it installs the Vedit COMPILE_Menu}.

Peter:

there should be no problem with that. The simplest way is to copy the
relevant sections from the compile.mnu to your custom.mnu. You may
want to check my solution (appended here below).

You should make sure, however, that you have only one tools.mnu (or
whatever the name of your tools menu is). If you have one in, say,
vedit/macros and another in vedit/user-mac you will run into problems
(experto crede :))

Fritz


--
Dr. Friedrich Heberlein, Akad. Direktor
Seminar für Klassische Philologie der KU Eichstaett
Universitaetsallee 1
D-85071 Eichstaett / Bayern
email: sla019@...
Tel.: +49 8421 93 1544 / 93 3544

 


Topic: Re: c-COMPIL.VDM and {TOOLS_Menu} (2 of 9), Read 81 times
Conf: Compiler support
From: Peter Rejto
Date: Monday, July 01, 2002 02:33 PM

On 7/1/2002 2:55:12 AM, Fritz wrote

>there should be no problem
>with that. The simplest way is
>to copy the
>relevant sections from the
>compile.mnu to your
>custom.mnu.

Following your suggestion I learned that the {Misc, Compiler support} menu command loads the COMPILE.VDM macro. Hence, I can edit it to my needs.


>You may
>want to check my solution
>(appended here below).
>

Yes, I would very much like to check your tex.mnu. However, your previous message is garbled. I take this had it. Could you please send it again?


>You should make sure, however,
>that you have only one
>tools.mnu (or
>whatever the name of your
>tools menu is). If you have
>one in, say,
>vedit/macros and another in
>vedit/user-mac you will run
>into problems
>(experto crede :))
>
I thought that Vedit looks for the *.mnu file
first, in the vedit\user-mac directory and second, in the home directory and third, in the \vedit\macros directory.


Do you think that there is a similar phylosophy with the COMPILE.CNF file?
Certainly, when I left an old COMPILE.CNF file in my data directory, E:\TeXVols,
Vedit got confused. Then Vedit loaded
the home directory configuration file, which was perfectly OK. So, I was at a loss.
May be Vedit routinely checks for configuration files in the current directory?
It would be nice to know.

I certainly shall repeat this unintended experiment. Then I shall add a personal note
to COMPILE.CNF, saying that "please remove
any old COMPLIE.CNF file from the current directory".

A more ambitious project would be to ask Vedit to do this checking. I guess Vedit in this case would be the C-INIT.VDM macro. At least, it seemed to me that my error messages came from this macro. This macro was recently enhanced by Christian. So, I hope that Christian will have a reaction to this.

Thanks to both of you.

-peter

 


Topic: Re: c-COMPIL.VDM and {TOOLS_Menu} (3 of 9), Read 83 times
Conf: Compiler support
From: Ted Green
Date: Monday, July 01, 2002 03:14 PM

At 02:33 PM 7/1/2002, you wrote:
>I thought that Vedit looks for the *.mnu file
>first, in the vedit\user-mac directory and second, in the home directory and third, in the \vedit\macros directory.

If you look at the logic in startup.vdm, you will notice that VEDIT does look explicitly first in the vedit\user-mac directory. If not there, the Reg_Load(...,EXTRA) command continues the search process. This searches first the current
directory, then the VEDIT Macro Directory, and last, the VEDIT Home Directory.

>May be Vedit routinely checks for configuration files in the current directory?

Yes, VEDIT almost always looks first in the current directory. This includes the startup.vdm, vedit.cfg, compile.cnf, etc. I think that this is pretty well documented.

>I certainly shall repeat this unintended experiment. Then I shall add a personal note to COMPILE.CNF, saying that "please remove
>any old COMPLIE.CNF file from the current directory".

Using local COMPILE.CNF files lets you set different compiler settings for different projects.

Ted.

 


Topic: Re: c-COMPIL.VDM and {TOOLS_Menu} (4 of 9), Read 81 times
Conf: Compiler support
From: Peter Rejto
Date: Monday, July 01, 2002 08:57 PM

On 7/1/2002 3:14:33 PM, Ted Green wrote:

>Using local COMPILE.CNF files
>lets you set different
>compiler settings for
>different projects.

Thanks Ted for your patient explanation. Yes, this is well documented. In fact, I found the following error message in C-INFO.VDM:

The default settings are determined by the COMPILE.CNF file in
the VEDIT Home Directory. However a local COMPILE.VCO file
will override them.

My problem was that I did not know the difference between a COMPILE.CNF file and a
COMPILE.VCO file. I take that COMPILE.VCO is a group of files and COMPILE.CNF is one of them,

Thanks again,

-peter.

 


Topic: Re: c-COMPIL.VDM and {TOOLS_Menu} (6 of 9), Read 81 times
Conf: Compiler support
From: Ted Green
Date: Tuesday, July 02, 2002 09:57 AM

At 08:58 PM 7/1/2002, you wrote:
>The default settings are determined by the COMPILE.CNF file in
>the VEDIT Home Directory. However a local COMPILE.VCO file
>will override them.

According to the documentation, you should only have one COMPILE.CNF file which should be in the VEDIT Home directory. If desired, you can override it with COMPILE.VCO files in your local project directories.

>My problem was that I did not know the difference between a COMPILE.CNF file and a COMPILE.VCO file.

The on-line help for the compiler support describes the COMPILE.VCO file in detail.

Peter, it appears that you are (again) copying VEDIT files into different non-standard directories and then asking for assistance with the resulting strange behavior. These startup and configuration files are complex enough when they are in their intended directories. We really cannot support you if you choose to copy these files into non-standard directories. Thank you for your understanding.

Ted.

 


Topic: Re: c-COMPIL.VDM and {TOOLS_Menu} (7 of 9), Read 81 times
Conf: Compiler support
From: Pauli Lindgren
Date: Wednesday, July 03, 2002 10:32 AM

On 7/2/2002 9:57:03 AM, Ted Green wrote:
>According to the documentation, you should only
>have one COMPILE.CNF file which should be in the VEDIT
>Home directory. If desired, you can override it with
>COMPILE.VCO files in your local project directories.

Actually, the on-line help (Vedit 6.02.1) says:
"As an alternative, you could have a local compile.cnf file."

If I understand it correctly, local COMPILE.CNF file has the same effect as local COMPILE.VCO file.

The problem is, as I mentioned in another thread, that in Windows, there is no such thing as "local directory".

In DOS, you are always in some directory, which is the local directory. In Windows, you are not in any directory. The "local directory" is just whatever has last been set using Chdir() command.

If you open a file and tick the "Change directory" box in file open dialog box, then you will Chdir() to the directory where that file was located. If you then run a macro that uses Chdir(), the directory is changed. If you have multiple files open from different directories, it is difficult to say what is the "local directory".

I think compiler support macros should explicitly set the local directory.

Or maybe all these problems will be solved in future Vedit versions, when the projects are implemented?

-- Pauli

 


Topic: Re: c-COMPIL.VDM and {TOOLS_Menu} (8 of 9), Read 84 times
Conf: Compiler support
From: Peter Rejto
Date: Friday, July 05, 2002 03:54 PM

On 7/3/2002 10:32:53 AM, Pauli Lindgren wrote:

>Actually, the on-line help (Vedit
>6.02.1) says:
>"As an alternative, you could have a
>local compile.cnf file."
>

Thanks Pauli,

This is exactly that I missed!

In fact, I put the COMPILE.CNF file into my TeXVols directory, way back in 1994. Since then,
I try to keep my data files and my Vedit files in separate directories. So, I have completely
forgotten about this file. Since C-INIT.VDM loaded the correct COMPILE.CNF file, I was at a loss.

I studied C-INIT.VDM and noticed that it also loads the local COMPILE.CVO file, if there is one.
When, I understand more about C-INIT.VDM I shall try to adapt this part to handle the local
COMPILE. CNF file as well.

This turned out to be a self-survey of mistakes that I made. Thanks,

-peter.

 


Topic: Re: c-COMPIL.VDM and {TOOLS_Menu} (5 of 9), Read 79 times
Conf: Compiler support
From: Fritz Heberlein
Date: Tuesday, July 02, 2002 04:42 AM

Peter:

> Yes, I would very much like to check your tex.mnu. [...] Could you please send
> it again?

You can find it here:

http://webboard.dundee.net/read?4635,84

> I thought that Vedit looks for the *.mnu file
> first, in the vedit\user-mac directory and second, in the home
> directory and third, in the \vedit\macros directory.

Ok, but assume you have a custom.mnu in c:\vedit, another in
c:\vedit\macros, a third one in c:\vedit\user-mac: which one would be
loaded? to my experience, if you find that your xx.mnu isn't what you
expected, you should first look for concurrent versions from older
installations elsewhere in the vedit tree.

Fritz

 


Topic: Re: c-COMPIL.VDM and {TOOLS_Menu} (9 of 9), Read 72 times
Conf: Compiler support
From: Peter Rejto
Date: Wednesday, July 03, 2002 04:13 PM

Thanks Fritz,

I really like your webboard book keeping system.

-peter