home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Professional
/
OS2PRO194.ISO
/
os2
/
wps
/
editor
/
epmtools
/
epmmac
/
read.me
< prev
next >
Wrap
Text File
|
1992-09-09
|
12KB
|
258 lines
There are three sample configuration files included in this directory.
MYCNF.SMP is a simple example MYCNF.E. EPMGCNF.SMP is the configuration
file used to build the .ex files shipped with the OS/2 2.0 Enhanced Editor.
OS2TOOLS.CFG is the MYCNF.E used to build the .ex files included with the
EPM package as shipped internally to IBM.
Note that in order to be as general as possible, many features are made
switchable at runtime in the shipped .ex files so that users who don't
want to recompile the macros needn't. If you *do* recompile, then
the switchability will be lost unless you explicitly enable it. For
example, line vs. stream mode: people used to line based editors will
prefer line mode; people used to word processors will prefer stream mode,
and few people will want to dynamically change between the two paradigms.
So it makes more sense to configure it the way you prefer, and not waste
the overhead of run-time checks and extra code.
Also note that you should recompile both EPM and EXTRA when changing any
configuration constants related to the menu choices, as the menus are
contained in EXTRA.EX but the commands used are (mostly) defined in
EPM.EX, so if the two files are not in synch, you might get "Unknown command".
A description of each file in E_MACROS is appended at the end of this file.
Answers to some common questions:
:QUESTION.
While trying to recompile the macros, I got the error message:
EX code size too large
:ANSWER.
The current set of macros won't fit into a single .ex file, which is
limited to 64k of code. We've split EPM.EX into EPM.EX and EXTRA.EX.
If you add to your MYCNF.E
const
EXTRA_EX = 1
and recompile both EPM.E and EXTRA.E, then EXTRA.EX will automatically
be linked in at run time. (EXTRA.E includes a MYEXTRA.E if it exists,
so if space is still tight you can move any DEFCs or DEFPROCs from
MYSTUFF.E to MYEXTRA.E. DEFLOADs, DEFSELECTs, DEFMODIFYs and key
definitions should stay where they are.)
:QUESTION.
What is OK to place in MYCNF.E?
:ANSWER.
MYCNF.E is a configuration file that is included by many .E files.
Therefore, it should contain *nothing* other than CONST, SET and DEFINE
statements. If you placed executable code in MYCNF.E, at best you
would be wasting space since the code would be duplicated in all your
.ex files; at worst, you'd break various things depending on what code
you included.
:QUESTION.
I am writing some C source code in the EPM editor and am
getting a bit tired of erasing EPM's C add-ons. How can I
turn this off?
:ANSWER.
You can turn it on and off dynamically by entering the command
EXPAND OFF
on the EPM command line. If you're using EPM (or the Enhanced Editor)
as shipped, and don't want to recompile the macros, you can make this
the default by doing the following:
1. Create a PROFILE.ERX in your EPMPATH (or PATH) containing:
/* EPM profile */
'expand off'
2. On the EPM command line, enter: PROFILE ON
3. Select Options / Save Options.
If you're compiling the macros, then you can make the syntax expansion
start out turned off by adding to your MYCNF.E:
const
my_EXPAND_ON = 0 -- Start out off; default is on.
or you can omit the support for any language completely by including
one of:
const
C_SYNTAX_ASSIST = 0 -- Default for C is 1
E_SYNTAX_ASSIST = 0 -- Default for E is 1
P_SYNTAX_ASSIST = 0 -- Default for Pascal is 1
REXX_SYNTAX_ASSIST = 0 -- Default for Rexx is 0
or, if you don't have a MYKEYSET.E, you can omit support for all of
them by including:
const
ALTERNATE_KEYSETS = 0 -- Default is 1
Then recompile the macros, as described in the EPM User's Guide
(enter VIEW EPMUSERS to see it).
:QUESTION.
When I try WYSIWYG printing, I get no output or a blank page.
:ANSWER.
Two things to check:
- If you're printing to a LAN printer, your machine and the LAN server
must be using exactly the same printer driver, or things might not
work. (I believe this is documented in the LAN pubs.)
- WYSIWYG stands for "What You See Is What You Get". If you have a
white or light foreground color, it won't show up on the default
background color. Try selecting black on white.
:QUESTION.
Why are buttons greyed in the print dialog?
:ANSWER.
EPM prints to a queue for WYSIWYG printing, and to a device (e.g.,
LPT1) when printing in draft mode. If one of these is not defined
for a printer, then the corresponding button will not be selectable.
:QUESTION.
When I invoke EPM I get an icon in the Window Viewer, but when I
select it nothing happens. Any thoughts?
:ANSWER.
It's the fault of the viewer. They subclass the icon, and don't give
us anything that a "nicely behaved" icon isn't supposed to get.
You can configure the system so that all icons minimize to the desktop,
or you can configure just EPM.
If you open "OS/2 System", then open "System Setup", then open "Settings"
you'll see a Window page that lets you specify whether minimized windows
should appear on the desktop (as they do in OS/2 1.3), or in the
"Minimized Window Viewer", or just be hidden. This sets the default
action for the system. Some objects have a separate setting that can
override the default. If you open the Settings for the real program as
found via the Drives object, you won't see this (no Window page on the
Settings notebook), but if you create a Program object that points to
EPM.EXE you will.
:QUESTION.
How can I edit host files on other than the 'A' session?
:ANSWER.
The default host interface (SAVELOAD.E) only accesses the first host
session. E3EMUL will let you access any host session. Add the
following to MYCNF.E and then recompile:
const
HOST_SUPPORT = 'EMUL'
USING = 'CM' -- (or 'IBM', or whatever. See E3EMUL SCRIPT.)
my_HOSTCOPY = 'AC' -- (for example; the default is ALMCOPY)
USING = 'CM' uses ALMCOPY.EXE (or the value of my_HOSTCOPY) as the file
transfer command; USING = 'IBM' uses SEND/RECEIVE. You must use the
latter for MVS files.
If you don't have room for E3EMUL, you could elect to have it linked in
externally. Add the following line to your MYCNF.E, then recompile
both EPM and E3EMUL:
LINK_HOST_SUPPORT = 1
:QUESTION.
I am unable to edit any files on my H: drive. Why is this?
:ANSWER.
By default, H: is used to refer to the host system. If you do not edit
host files, then add the following to MYCNF.E:
const
HOST_SUPPORT = '' -- Omit host support
If you wish to be able to load and save host files directly from your E
session, then you can change the drive letter used to refer to the host.
If you use the standard SAVELOAD routines, then you can do this by adding
the following to MYCNF.E:
const
HOSTDRIVE = 'V:' -- Use V: to refer to VM files
If you use the enhanced host support of E3EMUL, (HOST_SUPPORT = 'EMUL'
in your MYCNF.E) then you can do this by adding the following to MYCNF.E:
const
my_HOSTDRIVE = 'V' -- Use V: to refer to VM files
Note: For SAVELOAD, you set HOSTDRIVE to 'x:' (it needs the colon); for
E3EMUL you set my_HOSTDRIVE to 'x' (it doesn't take the colon).
If you use E3EMUL, instead of changing the host drive letter, you may
choose to make the host logical terminal ID required, by adding to MYCNF.E:
const
HOST_LT_REQUIRED = 1
This means that H: will refer to the local H drive on the workstation,
and HA:, HB:, etc. will refer to the VM or MVS host.
-------------------------------------------------------------------------------
List of files included in E_MACROS:
ALL.E - The ALL macro; displays all instances of a given string.
ASSIST.E - The bracket-matching code used by Ctrl+left bracket.
BOOKMARK.E - Bookmark support, Workframe support, & code to load and
save EPM attributes as an enhanced attribute.
BOX.E - The BOX macro; draw a box in various styles.
BUFF.E - Test macros for the buffer() opcode; not actually used.
CALLREXX.E - The Rexx macro interface code.
CHAROPS.E - Support for character mark operations.
CKEYS.E - C language syntax assist.
CKEYSEL.E - (Not used by EPM.)
CLIPBRD.E - Support for the clipboard and for copying marks between windows.
COLORS.E - Constant definitions for color names.
DOSUTIL.E - OS-specific code (DATE, TIME, DIR, etc.).
DRAW.E - The DRAW macro; lets you draw figures with the cursor keys.
DRAWKEY.E - F6 definition.
E.E - The main file that includes most of the others.
E3EMUL.E - Advanced host file editing support
EKEYS.E - E macro language syntax assist.
EKEYSEL.E - (Not used by EPM.)
ENGLISH.E - Messages; included separately for NLS support.
EPM.E - Front-end for E.E.
EPMDBCS.E - DBCS support
EPMGCNF.SMP - The MYCNF.E used to build the Enhanced Editor.
EPMLEX.E - Spell-checking support.
EPMSHELL.E - EPM Shell support.
EPM_EA.E - Enhanced attribute support.
EXTRA.E - Used to split EPM.EX in two.
GET.E - The GET macro; get a copy of a file into the current file.
HELP.E - Builds the stand-alone HELP.EX used by the help browser.
KWHELP.E - Keyword help support (Ctrl+H or Ctrl+double-click MB1).
LINKCMDS.E - Linking-related commands.
LOAD.E - The default DEFLOAD (executed every time a file is loaded).
MAIN.E - The default DEFMAIN (processes the command line arguments).
MARKFILT.E - Procedures for filtering a block,line or character mark.
MATH.E - MATHx, ADD, and MULT commands.
MATHLIB.E - Support for MATH.E; separately linkable.
MENUHELP.H - Help panel numbers; used by STDMENU.E
MODIFY.E - The default DEFMODIFY (called when .modify status changes and
for autosaving.
MOUSE.E - Mouse support.
MYCNF.SMP - A simple sample MYCNF.E.
MYSTUFF.SMP - A sample MYSTUFF.E.
OS2TOOLS.CFG - The MYCNF.E used to build the .ex files distributed within IBM.
PKEYS.E - P language syntax assist.
PKEYSEL.E - (Not used by EPM.)
PUT.E - The PUT macro; copy the marked area or current file into a
new file, or append it to the end of an existing file.
READ.ME - (This file.)
REXXKEYS.E - Rexx language syntax assist.
RKEYSEL.E - (Not used by EPM.)
SAVELOAD.E - The default host file editing support.
SELECT.E - The default DEFSELECT (called whenever the current file changes).
SLNOHOST.E - Save / Load file support with no host support.
SMALL.E - Used to compile a smaller .ex file; untested with the current EPM.
SORTDLL.E - The SORT command that uses sorting code in a DLL; limited to
sorting 64k (65,535 bytes) of data.
SORTE.E - A SORT command that just uses macro code. Slower, but no size
limit.
STDCMDS.E - Most of the macro-defined commands are defined here.
STDCNF.E - Standard configuration file; sets defaults for options not
set in MYCNF.E.
STDCONST.E - Sets various constants.
STDCTRL.E - Code for interacting with various PM and EPM controls.
STDKEYS.E - Most of the keys are defined here.
STDMENU.E - The standard EPM action bar is defined here.
STDPROCS.E - Most of the standard macro procedures are defined here.
USERAPP.SMP - A sample user application, written for sharing with other users.
It shows how to include the MYCNF.E to determine the user's
defaults.