Mg for Win32
Version 0.7 Jan 12, 2006

1. What is Mg?

Mg gives you the similar operational feelings as the famous editor GNU
Emacs does.  Mg is a derived version of MicroEMACS, and a lot of
enhancement has been introduced by Bob Larson (blarson@ecla.usc.edu,
this address can be found in the README file of Mg but now unreachable
unfortunately) and several other developers.  You can find a detailed
description of Mg in "README" file which is involved in this delivery. 

Mg for Win32 is a port of this Mg onto Windows based operating systems
such as Windows CE and Windows 95/98/ME/NT/2000.  After Bob released
Mg version 2a, Japanese developers including Shigeki Yoshida did a lot
of works on Mg, such as port to MS-DOS, preparing c-mode, and so on.
Mg for Win32 is based on this enhanced version of Mg.  So, Mg for
Win32 provides a lot of enhanced features compared to Mg 2a.

The following is the summary for outlining the Mg for Win32:

 1) Provides the similar operations as the GNU Emacs does.

  In addition to key bindings, you can find a lot of similar behaviors
  in buffers, buffer windows, etc.  You must feel that Mg is really a
  "Micro" Emacs. 

  Consider how wonderful if just 200KB application can provide such
  similar feelings as Emacs! 

 2) `dired', directory editor is supported

  Mg provides selected features of directory editor (dired) which GNU
  Emacs provides.  Tillanosoft added a new feature
  `dired-do-shell-command'.  It provides a feature to execute
  arbitrary file listed by dired including associated data files (ie.
  *.txt, *.htm, etc).

 3) auto-fill-mode, a convenient mode for creating e-mail messages

  You can wrap your messages around in auto-fill-mode.  For example,
  this text is also created using auto-fill-mode. 

  Mg provides a feature to specify the both edge of text like this
  paragraph.  It also provides the feature to re-fill the paragraph
  even after inserting some words in the paragraph (the function is
  named fill-paragraph). 

2. Installation

After unpacking the distributed package, you can find several mg.exe
files. Each mg.exe is for specific CPU or Windows CE version, and the
files are located in the following folders:

 hpcpromips  -- For MIPS CPU with H/PC pro 2.11 or higher,
                including HPC 2000.

 hpcprosh3   -- For SH3 CPU with H/PC pro 2.11 or higher.

 hpcproarm   -- For StrongARM CPU with H/PC pro 2.11 or higher,
                including HPC 2000.

 hpcprosh4   -- For SH4 CPU with H/PC pro 2.11 or higher.

 ppcarm      -- For StrongARM CPU with Pocket PC, including Windows
                Mobile 5 Pocket PC.

 ppcmips     -- For MIPS CPU with Pocket PC.

 ppcsh3      -- For SH3 CPU with Pocket PC.

Choose the appropriate mg.exe according to the above instructions,
then copy the file to your (Handheld or Pocket) PC.  You can locate
the file in any folder.  Copy mg.ini file also according to your
preference. 

3. Uninstallation

You can safely uninstall Mg by removing mg.exe (and mg.ini if you have
installed it). 

Mg for Win32 uses the following registry entry.  Although it is quite
harmless to leave it as it is, you can remove the entry by a certain
registry editing tool if you do not want to leave such entries on
your device. 

  HKEY_CURRENT_USER\Software\mg-developers\MG

4. How to execute Mg for Win32

You can execute it by tapping the installed mg.exe twice (or once if
Pocket PC).  Refer to the Mg.ref for options. 

At the first time, please choose the `Option' from the `File' menu
then tap `Path' tab to specify the path of initialization file
(mg.ini).  The path will be used from the next execution of Mg for
Win32. 

5. How to quit Mg for Win32

You can quit Mg for Win32 by typing C-x C-c.  C-x means pressing X
with CTL key being pressed.  Similarly, C-c means pressing C with CTL
key being pressed.

You can also quit it from the `File' menu or exit button on the upper
right corner.  Please note that Pocket PC version does not have the
exit button. 

6. Documents

In addition to this file, you can obtain detailed information from the
following files.  Please refer to appropriate documents according to
your interest. 

  README.M32.txt  This file.
  CHANGES.M32.txt Modification history of Mg for Win32. (Not yet
                  provided) 
  SUPDOC.M32.txt  Supplementary information to the documents below.
                  (Not yet provided) 
  README          General README file for Mg 2a
  mg.tex          Mg Manual (TeX file)
  mgidx.tex       Index of Mg Manual (TeX file)
  mg2a.change     General modification history for Mg 2A
  mgprog.doc      Explanation for the source code of Mg
  COPYING         Copyright which applies to re_search.c, regex.h, regex.c

7. Copyright notice

Mg for Win32 is a free software.  

Permission to use, copy, modify and distribute this software and its
documentation is hereby granted without fee.  The author makes no
representations about the suitability of this software for any
purpose.  It is provided "as is" without express or implied warranty. 

THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTUOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE. 

By the way, Mg for Win32 has been developed based on the source code
of Ng for WinCE which has been distributed by Eiichiro Ito.  Eiichiro
Ito did not describe copyright notice in his README file.  However, he
stated in his homepage (http://www.oohito.com/) that his software are
all free software.

In addition, the Ng, from which both Mg for Win32 and Ng for WinCE are
derived, is also a free software, and its copyright notice is written
in its README file in Japanese.

The following is a translation of the copyright notice of Ng:

  Ng is a free software.  Permission to use, copy, modify and
  distribute this software for non-profit purpose is granted without
  fee.  It is provided "as is" without express or implied warranty.
  The author disclaims all warranties with regard to this software.
  In no event shall the author be liable for any damages. 

  Large portion of the source code of original Mg has no copyright.
  It is stated as a free software and placed in a Public Domain. 

  Source code regarding to regular expression (re_search.c, regex.h
  and regex.c) has copyright by Rechard M. Stallman.  It is described
  in the original author's README file that in order to prevent the
  copyright of GNU Emacs, replace these 3 files by empty files. 

  Please see the COPYING for the detail of GNU Emacs copyright.

  This distribution also includes a source code which controls the IME
  (Input Method Editor) for Japanese.  It was developed by Junn Ohta.
  He provided a document which states he expects the source code
  (fepctrl.c and fepcsub.asm) will be treated as a Public Domain
  Software.  In addition, a termcap library for MS-DOS written by him
  (termcap.c) is stated as placed in nearly Public Domain.

8. Authors

The following authors description are quoted from the README.Ng
(written in Japanese) with a small supplement.

    Dave Conroy         Old MicroEmacs, v30
    Dave Brower         Old Mg
    Bob Larson          Current Mg
    Mic Kaczmarczik     Same as above
    Mike Meyer          Same as above
    Sandra Loosemore    Same as above
    Michael Portuesi    Same as above
    Stephen Walton      Same as above
    Marion Hakanson     Same as above
    Shigeki Yoshida     Localization to Japanese (Ng), All additional
                        functions except written below, Japanese documents.
                        Ng MS-DOS version, J-3100 version
    Kazuhiro Takano     Ng PC-9801 version. C mode. IME auto control
    Akihiro Sirahashi   PC-9801 high performance version, Turbo-C version
    Kaoru Maeda         File name completion, shell-command, miscellaneous
                        bug fixes
    Junn Ohta           Termcap library, IME control library,
                        Turbo-C 1.5/++ version
    Yoshiro Sawayanagi  Ng X68000 version, completion for newer version
    Eiichiro Ito        Windows CE version
    Tillanosoft	        Win32 version including Windows CE, additional
                        functions

9. Restrictions

1) No undo

 None of the Mg, Ng, Ng for Win CE, Mg for Win32 does not have undo.

2) mini buffer

 Mini buffer is not a real buffer.  That is, ordinal editing
 operation will not be supported at mini buffer. 

 Please refer to the mg.tex to get the key binding information on mini
 buffer.

3) file name completion

 You can not complete the file name if `..' is contained in the path
 string. 

4) dired

 Contents of the dired screen will not be refreshed when rename or
 copy operation was performed. 

5) overwite-mode

 Character input will be `inserted' even if you are in the
 overwrite-mode during macro execution.

6) dired-do-shell-command on Windows 95/98/NT4.0/2000

 dired-do-shell-command against .htm/.html does not work if .htm/.html
 is associated with IE.

7) Length of file name

 Mg can not open a file with a name over 24 characters.

10. Supported platforms

Currently, MIPS and SH3 platforms are supported.

                           Tested Machines     Target Machines
  CE 1.0  H/PC  SH3    N/A
                MIPS   N/A
  CE 2.x  H/PC  SH3     A  Cassiopeia A-11up   Jornada 680
                MIPS    A  Mobilon HC-4500     Telios, MobilePro

11. Changes

Note: newest versions are available at:

  http://tillanosoft.com/ce/downloads.html

 0.7  2006.1.12 Beta 7
  Windows Mobile 5 Pocket PC support, etc.

 0.6  2001.2.20 Beta 6
  Pocket PC support, etc.

 0.5  2000.9.11 Beta 5
  Support menu bar, etc.

 0.4  1999.6.7  Beta 4
  Support 95/98, etc.

 0.3  1999.5.20  Beta 3
  Support NT, etc.

 0.2  1999.4.21  Beta 2
  Add configure items, etc.

 0.1  1999.4.15  Beta 1
  The first version for Japanese Windows CE.

Please refer to the CHANGES.* file to get detailed information.
