unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Subject: Mac OS 9 support
Date: Sat, 16 Oct 2004 16:28:55 +0900	[thread overview]
Message-ID: <wlmzyndsug.wl@church.math.s.chiba-u.ac.jp> (raw)

[-- Attachment #1: Type: text/plain, Size: 2918 bytes --]

I'm not sure how many people are interested in Mac OS 9 support, but
now it works again.  Although the source codes for Mac OS 9 have been
bundled with the standard distribution, it could not be compiled as of
Emacs 21.3.

Changes (from 21.2):
  - Works with >256MB memory systems.
  - Most of display features such as images, toolbars, and tooltips
    are available.

Problems:
  - No support for Metrowerks CodeWarrior Pro 6.  Only tested with
    MPW-GM, which is available free of charge.
  - I'm not sure how old versions of Mac OS 8/9 are compatible with.
    I tested it with Mac OS 9.2.2/QuickTime 6.0.3/CarbonLib 1.6.1
    running on the Classic environment in Mac OS X 10.3.5.
  - USE_LSB_TAG is defined so that it can work with >256MB memory
    system.  It seems to work with DECL_ALIGN as the identity macro,
    but not 100% sure.
  - "#define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS" also seems to work,
    but not defined in the attached patch.
  - It's almost impossible to select an item from a pop-up menu
    invoked from a toolbar button, because the mouse button is already
    released when the menu appears.

Install:

  The first half of the steps requires Mac OS X and its Developer Tools.

  1. Get the Emacs source as usual.

    OSX% mkdir somedir
    OSX% cd somedir
    OSX% env CVS_RSH=ssh cvs -z3 -d:ext:anoncvs@savannah.gnu.org:/cvsroot/emacs co emacs

  2. Apply the attached patch.

    OSX% cd emacs
    OSX% zcat someplace/diff-classic.gz | patch -p0

  3. Setup resource forks.

    OSX% /Developer/Tools/SetFile -t TEXT mac/inc/* mac/inc/*/* mac/src/* lib-src/* src/*

  4. Generate .elc files.

    OSX% mkdir ../emacs-carbon
    OSX% cd ../emacs-carbon
    OSX% ../emacs/configure --without-x
    OSX% make bootstrap

  You can do the remaining steps on "real" Mac OS 9, which is much
  faster than the Classic environment in Mac OS X.

  5. Download MPW-GM from Apple.

    http://developer.apple.com/tools/mpw-tools/
    ftp://ftp.apple.com/developer/Tool_Chest/Core_Mac_OS_Tools/MPW_etc./MPW-GM_Images/MPW-GM.img.bin

  6. Extract and install it into an appropriate place.
     (e.g. "/Applications (Mac OS 9)").

  7. Invode MPW Shell.

    OSX% open "/Applications (Mac OS 9)/MPW-GM/MPW/MPW Shell"

  8. Do the following inside MPW Shell.  Note that no prompt such as
     "MPW>" is displayed in reality, and you must hit "enter" instead of
     "return" to execute each command.

    MPW> Directory "Macintosh HD:Users:yourname:somedir:emacs:mac"
    MPW> make Emacs -f makefile.MPW > Emacs.MakeScript
    MPW> Emacs.MakeScript

  9. Wait for some time until the left upper corner's message becomes
     "MPW Shell".  It will take much time to execute "make-docfile"
     under the Classic environment even on Power Mac G5.

  10. Invoke "Emacs MPW" (white bear icon) in emacs/mac directory.

  11. Have fun!!

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp

[-- Attachment #2: ChangeLog.gz --]
[-- Type: application/octet-stream, Size: 1445 bytes --]

[-- Attachment #3: diff-classic.gz --]
[-- Type: application/octet-stream, Size: 9246 bytes --]

[-- Attachment #4: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

             reply	other threads:[~2004-10-16  7:28 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-16  7:28 YAMAMOTO Mitsuharu [this message]
2004-10-16 18:37 ` Mac OS 9 support Stefan Monnier
2004-10-17  9:23   ` YAMAMOTO Mitsuharu
2005-02-03 11:28     ` [OSX] G4 compiled binary fails on G5 YAMAMOTO Mitsuharu
2004-12-24  8:52 ` Mac OS 9 support (and some enhancements for Carbon Emacs) YAMAMOTO Mitsuharu
2004-12-27 17:42   ` Steven Tamm
2005-01-18 10:46   ` Sébastien Kirche
  -- strict thread matches above, loose matches on Subject: below --
2005-01-31 10:15 [OSX] G4 compiled binary fails on G5 Sébastien Kirche
2005-01-31 16:40 ` Steven Tamm
2005-01-31 17:06   ` Sébastien Kirche
2005-01-31 21:45   ` Kim F. Storm
2005-02-02 16:22   ` Sébastien Kirche
2005-02-02 17:21     ` Stefan Monnier
2005-02-02 18:09       ` Steven Tamm
2005-02-02 18:48         ` Stefan Monnier
     [not found]           ` <85wttqwwv5.fsf@obelix.seki.fr>
2005-02-02 20:25             ` Stefan Monnier
     [not found]         ` <85sm4ewwqo.fsf@obelix.seki.fr>
2005-02-02 22:50           ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=wlmzyndsug.wl@church.math.s.chiba-u.ac.jp \
    --to=mituharu@math.s.chiba-u.ac.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).