home *** CD-ROM | disk | FTP | other *** search
- Distribution Notes for Win-Emacs 1.00.05 beta
-
- Copyright (c) 1993 Pearl Software, Oakland, CA
-
-
- Pearl Software has ported GNU EMACS to Windows. To run, it requires
- an X Windows emulation package. One such emulation package, WIN-X, is
- provided on this disk. WIN-X is Pearl proprietary. The license
- agreement for the proprietary WIN-X package may be found in the file
- demo-license.txt after installation.
-
- THE FREE SOFTWARE FOUNDATION'S GNU EMACS IS PROVIDED AT NO
- CHARGE UNDER THE TERMS OF THE FREE SOFTWARE FOUNDATION'S
- GENERAL PUBLIC LICENSE. THE GENERAL PUBLIC LICENSE MAY BE
- VIEWED BY INSTALLING THE SOFTWARE AND TYPING CONTROL-H FOL-
- LOWED BY CONTROL-C OR BY VIEWING THE FILE "COPYING" IN THE
- "info" DIRECTORY AFTER INSTALLATION.
-
- The reason we consider WIN-X and GNU Emacs two separate programs, and
- not two parts of one program, is that each makes sense separately.
- WIN-X is a general emulator for X Windows, and this version of GNU
- Emacs has no modifications specific to use with WIN-X. It could run
- with any X Windows emulator (or, on other systems, with X Windows).
-
- Win-Emacs requires Windows 3.1, 8 megabytes of memory, and 9 megabytes
- of free hard-disk space for a complete distribution. It is based on
- Lucid GNU Emacs 19.4.
-
-
- I. Installation
-
- A. If you received Win-Emacs on floppies:
-
- Installation is accomplished through the SETUP.EXE program located on
- the disk "Win-Emacs 1" in the distribution. Insert this disk in drive A
- and type "A:SETUP" from a DOS prompt; or from within Windows, select the Run
- command from the File menu in Program Manager and type "A:SETUP.EXE".
- Setup will start Windows automatically if it is not currently running, and
- will allow you to select the sections of Emacs you wish to install. The
- "Core Program Files" must be installed in order for Emacs to work. This
- includes the binaries, compiled Emacs-Lisp files, and files in the "etc"
- subdirectory. "Emacs Info" refers to the online documentation files; you
- may choose not to install these files if you wish.
-
- B. If you downloaded a demo version by FTP or off of a CD-ROM:
-
- You will need to unpack the files from whatever form they are in.
- If they are in a .ZIP file, this file should be unpacked using "PKUNZIP -d".
- (The -d option is important -- it creates the necessary subdirectories.)
- If the files have already been unpacked, you simply need to copy them into
- the proper location (e.g. using XCOPY), making sure to preserve the sub-
- directory structure. If there is not already a subdirectory "LOCK" off
- of the top-level directory, you must create it.
-
-
- II. Running Win-Emacs
-
- Once Win-Emacs has successfully been installed, you can run it it as
- follows:
-
- 1) From File Manager, locate the file "WINEMACS.EXE" (this is in the
- "bin" subdirectory of the directory you installed Win-Emacs in).
- Double-click on it to run.
- 2) From Program Manager, select "Run" from the File menu and type in
- the full pathname of WINEMACS.EXE (see option 1).
- 3) In Program Manager, create a program item and give the full pathname
- of WINEMACS.EXE as the command line. You may optionally specify
- a directory that will be current when Win-Emacs starts; this is
- the default directory when Win-Emacs searches for files. If you do
- not specify a current directory, the Windows directory will be
- current.
-
-
- III. Initialization files
-
- There are two startup files: _emacs and xdefault.ini. Win-Emacs looks
- for these files in the directory specified in the environment variable
- HOME, or in the root directory of the current hard disk if HOME does
- not exist.
-
- 1) _emacs: This file contains arbitrary Emacs-Lisp code to be executed
- at startup and is the equivalent of the Unix ".emacs" file. Keys
- can be rebound, options can be set, etc. For example:
-
- (global-set-key "C-xC-j" 'goto-line)
-
- causes the command sequence C-x C-j ("C-" means the control key is
- held down) to execute the Emacs-Lisp command "goto-line", which
- will prompt for a line number to move to.
-
- 2) xdefault.ini: This file allows the startup fonts, colors, and other
- graphical options to be specified. (this is equivalent to the X-
- Windows ".Xdefaults" file and has the same format.) The format
- of this file is as follows:
-
- 1) Each line (or "resource specification") consists of a resource
- pattern and a value, separated by a colon.
- 2) Each resource pattern consists of a series of words
- separated by dots or asterisks or a combination of the two.
-
- The lines in "xdefault.ini" are used to specify the value of
- resources, which are configurable options for particular Emacs
- screens and particular Emacs faces. Every screen and every face
- has a number of different resources for it. The format of
- a resource specification for a screen resource is
-
- Emacs.SCREEN_NAME.RESOURCE: value
-
- and the format of a resource for a face is
-
- Emacs.SCREEN_NAME.FACE_NAME.RESOURCE: value
-
- Resource names are case sensitive.
-
- Resource patterns can specify either a single resource or a
- number of resources:
-
- a) An asterisk in a resource pattern is a wildcard and substitutes
- for any number of words in the resource name.
- b) Every screen, face, and resource name is part of a particular
- class, and specifying that class includes all resources of
- that class.
-
- For example, to specify that the default foreground color of all
- screens be blue, use the following resource specification:
-
- Emacs*default.attributeForeground: blue
-
- (In other words, set the value of the "attributeForeground" resource
- of the "default" face of all screens [the asterisk substitutes for all
- screens] to "blue".)
-
- More specifics of resources, including all the available resources,
- can be found in the file "etc/news".
-
- A thorough explanation of the workings of resources, and the
- precedence rules governing conflicting resource specifications,
- can be found in books on the X Toolkit (for example, "X Toolkit
- Intrinsics Programming Manual" published by O'Reilly & Associates).
-
- See the sample file "etc/xdefault.ini" for some resource
- specifications.
-
- The allowable color names are listed in the file "rgb.txt". Each
- line in this file lists the R, G, and B values of the color
- followed by its name, which is not case sensitive. You can
- modify this file and add your own color names.
-
- Font names are specified as follows:
-
- -[1]-[2]-[3]-[4]-[5]-[6]-[7]-[8]-[9]-[10]-[11]-[12]-[13]-[14]
-
- where
-
- [1] = foundry that produced the font
- [2] = font family name
- [3] = weight ("medium" or "bold" or "demibold")
- [4] = slant ("r" (normal) or "o" (oblique) or "i" (italic))
- [5] = set width (usually "normal"; could be "semicondensed",
- "condensed", "narrow", "double width", etc.)
- [6] = serif ((nothing) or "sans")
- [7] = pixels
- [8] = points (in tenths of a point)
- [9] = horizontal resolution in dpi
- [10] = vertical resolution in dpi
- [11] = spacing ("m" (monospace) or "p" (proportional) or "c" (?))
- [12] = average width (in tenths of a pixel)
- [13] [14] = character set (usually "iso8859-1")
-
- An asterisk can be substituted for a section in place of specifying
- a value. The sample "xdefault.ini" file contains the following
- font specification:
-
- Emacs*default.attributeFont: -*-courier-medium-r-*-*-*-80-*-*-*-*-iso8859-*
-
- This sets the font of the default face on all screens to be a standard
- Courier 8-point font. (Courier is a fixed-width font and should be
- the font normally used, since support for variable-width fonts is
- currently incomplete.)
-
-
- IV. Known bugs and missing features
-
- 1) Spawning sub-processes is not currently implemented. We are planning
- on including this feature in the next release.
- 2) Scrollbars do not exist in either Win-Emacs or Lucid-Emacs 19.4. These
- may be added in a future release.
- 3) Support for italicized and variable-width fonts is not perfect. Using
- these fonts or changing font size often during program execution may
- produce unexpected results. We are planning on fixing these problems in
- near releases.
- 4) The Emacs key bindings may not be shown in the menus.
- 5) Paste is not grayed when no selection from the clipboard is available.
- 6) Win-Emacs does not currently handle resource limitations gracefully.
- It may crash when it runs out of memory.
- 7) Win-Emacs may not work perfectly on black-and-white or 16-color
- displays.
- 8) Multiple instances of Win-Emacs are not allowed. If Win-Emacs is
- running and another instance is started, the second instance will
- simply exit. This is not a big problem because multiple top-level
- windows can be created within a single instance (for example, with
- the "C-x 5" key sequence).
- 9) There are some minor redisplay and miscellaneous problems: you cannot
- quit from Win-Emacs directly after startup until at least one keyboard
- or mouse event is processed; redisplay is incomplete if you select a
- menu item in an unselected window and the drawing isn't completed
- until after the menu is popped down; new screens are redisplayed twice
- at creation time.
- 10) If you iconify and then de-iconify Win-Emacs, it may not let you
- iconify it again using "C-z" or 'iconify-screen.
- 11) Timers of greater than 65.5 seconds are not handled properly.
-
-
- V. MS-Windows integration
-
- Since Win-Emacs is still in beta, integration with Microsoft Windows
- is not complete. The current level of integration is as follows:
-
- 1) Clipboard selections can be pasted with the "paste" menu item in
- the Edit menu. Cutting or copying a region of text in Emacs using
- the "cut" or "copy" menu items copies the text into the clipboard.
- 2) Text can be selected by holding down the left mouse button and
- dragging. You can drag the selection beyond the bottom of the
- screen, but not currently beyond the top of the screen.
- 3) Single-clicking the left mouse button places the cursor; double-
- clicking selects the word under the cursor; triple-clicking selects
- the line under the cursor.
- 4) Mouse buttons can be bound just like keys, using "global-set-key"
- and such. The left mouse button is "button1"; the right mouse
- button is "button2"; and the middle mouse button on a three-button
- mouse is "button3".
- 5) Multiple windows can be created using "C-x 5" and can be resized and
- moved around. Closing a window using the "close" button in the
- upper-left corner will delete the window if there is more than one,
- and quit Win-Emacs if there is only one window.
- 6) Drag-and-drop support is now present: i.e. files from File Manager
- can be dragged and dropped into a Win-Emacs window, and new screens
- will be created, each one visiting one of the dropped files.
-
-
- VI. Differences between Win-Emacs and Emacs version 18
-
- Please look in the file "etc/news" for more information. This file
- documents the differences between Emacs 18 and Lucid Emacs 19.4.
-
-
- VII. MS-DOS-specific additions to Emacs
-
- These are documented in the file "readme.dos".
-
-
- VIII. Where to look for more documentation
-
- The file "readme.dos" documents MS-DOS additions, as mentioned in (VII).
- The file "etc/news" documents Emacs 19 additions, as mentioned in (VI).
- There is extensive online documentation, which can be retrieved by
- typing "C-h i" from within Emacs. This documents how to use Win-Emacs
- as an editor, how to program in Emacs-Lisp, how to add more on-line
- documentation, and how to use the various Emacs extensions.
-
-
- IX. Obtaining source code
-
- Source code for the Emacs DLL and for the Emacs-Lisp files can be
- FTP'ed from netcom.com:/pub/pearl. The Emacs DLL source code is in the
- form of diffs; in order to construct the source files, you will need to
- obtain the Lucid-Emacs 19.4, X Library, and X Toolkit sources. See
- the README file at the FTP site for more information.
-
- The full source code (not in diff form) can also be ordered from us
- for a shipping/handling fee. Please contact us for more information.
-
-
- X. Questions, comments, problems, bug reports
-
- Please send e-mail to
-
- pearl@netcom.com
-
- or contact Pearl Software at
-
- 320 Lenox Ave.
- Oakland, CA 94610
-
- voice: 510-273-9795
- fax: 510-839-9820
-