2008-12-21 Building Emacs on Mac OS 10.4

My Mac Mini runs Mac OS 10.4.11.

1. get latest sources from CVS

2. `./configure --with-ns`

3. `make`

4. `make install`

5. copy `nextstep/Emacs.app` to your Applications directory

6. …

7. ☆ ☆ ☆ *Profit!!!* ☆ ☆ ☆ ✌

Unfortunately...

I had to call the *Preferences* dialog and switch **Alt/Opt to None** as well as **Command to Meta**. That’s what I’m used to from the good ol’ CarbonEmacsPackage, and I see no other setup that will allow me to type Alt-3 to get ​#, Alt-5 to get [, Alt-6 to get ], Alt-7 to get |, Alt-8 to get `{`, and Alt-9 to get `}`. At least those seem to be the ones I need the most often.

If you run rcirc you will have to port your configuration over to the new format. 🙁

rcirc

rcirc-startup-channels-alist is replaced by rcirc-server-alist.

Old:

(setq rcirc-startup-channels-alist
      '(("freenode" "#emacs" "#rcirc" "#wiki" "#oddmuse" "#epfarms"
	 "#hcoop")))

New:

(setq rcirc-server-alist
      '(("irc.freenode.net" :channels ("#rcirc" "#wiki" "#oddmuse" "#epfarms"
	 "#emacs" "#hcoop"))))

If you’re using rcircColoredNicks you will also have to upgrade to the version for Emacs 23.

rcircColoredNicks

My current Emacs version also has some bugs regarding color-gray-p and face-foreground. That’s why you’ll need the following in your .emacs:

(setq rcirc-colors
      (let (candidates)
        (dolist (item color-name-rgb-alist)
	  (destructuring-bind (color r g b) item
	    (let ((d (sqrt (+ (* (/ r 512) (/ r 512))
			      (* (/ g 512) (/ g 512))
			      (* (/ b 512) (/ b 512))))))
	      (if (and (not (= r g))
		       (not (= r b)); grey
		       (> d 10)
		       (< d 150))
		(setq candidates (cons color candidates))))))
	candidates))

​#Emacs ​#OSX

Comments

(Please contact me if you want to remove your comment.)

In my build from CVS, i get following error on startup (after loading of all my packages) - “Wrong type argument: wholenump, -1”

– Alex Ott 2008-12-22 09:56 UTC

Alex Ott

---

Strange; I did not have that problem (and I’m not updating right now).

– Alex Schroeder 2008-12-22 23:36 UTC

Alex Schroeder

---

When I tried to rebuild it just now, it was complaining about a missing `aclocal-1.14` and I was confused. Reading `INSTALL.REPO` I figured I would need to run `./autogen.sh` again and so it was.

These days:

1. git pull

2. .*autogen.sh*

3. .*configure with-ns*

4. make

5. make install

6. copy nextstep/Emacs.app to your Applications directory

The alternative to building from source:

1. brew tap railwaycat/emacsmacport

2. brew install emacs-mac