From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Newsgroups: gmane.emacs.help Subject: Re: updating /usr/bin/emacs Date: Fri, 17 Oct 2008 14:49:15 -0700 (PDT) Organization: http://groups.google.com Message-ID: <4da63d85-8098-478a-872a-eac5ce206cb3@f40g2000pri.googlegroups.com> References: <26a71c99-701b-4525-913a-c7828bffce72@40g2000prx.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1224283256 8912 80.91.229.12 (17 Oct 2008 22:40:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Oct 2008 22:40:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 18 00:41:57 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kqy16-0000jj-Tw for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Oct 2008 00:41:57 +0200 Original-Received: from localhost ([127.0.0.1]:42780 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kqy01-0004fG-Uw for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Oct 2008 18:40:49 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news-out.readnews.com!transit3.readnews.com!postnews.google.com!f40g2000pri.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 57 Original-NNTP-Posting-Host: 24.6.185.159 Original-X-Trace: posting.google.com 1224280156 4489 127.0.0.1 (17 Oct 2008 21:49:16 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 17 Oct 2008 21:49:16 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f40g2000pri.googlegroups.com; posting-host=24.6.185.159; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:163542 comp.emacs:97203 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58883 Archived-At: On Oct 17, 11:58 am, Brian Brooks wrote: > Hello. I am currently running OS X 10.5.5. > > I use emacs within Terminal.app by running the command 'emacs' which > launches /usr/bin/emacs. Though, this uses GNU Emacs 22.1.1 (mac- > apple-darwin, Carbon Version 1.6.0) -- which is the emacs that the MBP > shipped with I presume. > > I would like to update to Emacs 22.3 (or whatever is the latest). > Although I don't want to install a duplicate copy of emacs. I've > noticed that by installing emacs versions like Carbon Emacs or > AquaEmacs seems to just install a separate copy of Emacs with a GUI > and all that. > > I would just like to update /usr/bin/emacs to whatever the latest > version of emacs is and still be able to run it within Terminal.app > > How do I go about doing that? Thanks! it is generally not recommended to diddle anything in the default OS X dirs such as /usr/bin. e.g. if you want to update your perl, python, you'd better off install it elsewhere, e.g. fink does in /sw/ and MacPorts in /opt/. my own experience is that you can do fine if you do it in /usr/bin/ local. And it is most safe if you do it in =E2=80=9C~/bin/=E2=80=9D in the case of emacs, perhaps there's no problem since emacs and its subsystems isn't much run as a script engine as do perl that the OS actually depends on. (however, emacs requires few other packages such as png lib, encryption, etc. So, if the new emacs needs newer version of these, you run into problem) But if you insist on replacing /usr/bin/emacs, you could just do it in the usual way, by compiling the source and set the install dir to /usr/ bin and /usr/share/emacs etc. there's little reason you really want to though. My recommendation is just to install Carbon emacs. Then, you can start it in terminal by: /Applications/Emacs.app/Contents/MacOS/Emacs -nw If you just want to type =E2=80=9Cemacs=E2=80=9D to start it, then you just= define a alias in =E2=80=9C~/.bash_profile=E2=80=9D. Like this: alias emacs=3D"/Applications/Emacs.app/Contents/MacOS/Emacs -nw"; (don't remember if alias has precedence than shell commands... but you can easily find out or use sym link) Xah =E2=88=91 http://xahlee.org/ =E2=98=84