all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Steven Tamm <steventamm@mac.com>
Subject: Re: Mac OS X GNU Emacs Installer (make-package)
Date: Sat, 30 Nov 2002 17:53:05 -0800	[thread overview]
Message-ID: <A21B6B94-04CF-11D7-AADA-00039390AB82@mac.com> (raw)
In-Reply-To: <2147483647.1038671435@[10.0.0.2]>

>> This is the solution that Andrew proposes.  /usr/local/bin/emacs 
>> would be
>> a shell script that calls /usr/local/bin/emacs-21.3.50 -nw $*.  I 
>> don't
>> like that solution very much.  This is a patch I placed on the list
>> earlier; it causes the executable to determine if it is inside an
>> application bundle.  If it is not, it will cause it to
>> inhibit_windowing_system.  I placed the call to this right after the 
>> call
>> to init_mac_osx_environment inside emacs.c:main
> [..]
>
> That was my initial idea. But in the end I like the way the shell 
> script works better. Typing plain "emacs" gives you a new window, 
> while "emacs -nw" gives you the console. It works just like under X 
> Windows. Otherwise there is no way to get a nice window from the 
> command line, except by writing your own shell wrapper. To me that is 
> the only reason to choose the shell script road over the patch you 
> propose (Although I think patch should be there as well, since emacs 
> should never segfault).

Yeah, I think you are right.  The one concern that I had was what would 
happen if the location of the Emacs.app was moved.  Your solution fixes 
that by creating a "shadow" application.  Why not make the whole 
Emacs.app directory be a link to the lib-exec one?  That way you 
wouldn't have the problem of dealing with two sets of files depending 
on whether you did it from the command line or from the finder.  The 
downside is that the icon in the Applications menu would be a little 
screwed up.

As another aside, I think the make-package script should eventually be 
rewritten in perl because of the guarantee that it exists on Mac OS X.  
Any objections.

>> BTW, I think making  Contents/MacOS/Emacs be a hard link to 
>> emacs-21.3.50
>> is a bad idea.  The Application may (and in my case usually will) 
>> live on
>> a different volume than the /usr/local tree.  I'll keep the symlink
>> option there for the Application, but remove the bad behavior.
>
> The question is, does the installer (or pax) automatically copy the 
> file if it's getting unloaded accross filesystems? If so then there's 
> no problem with a hard link.

If Emacs.app is a symlink then it's a non-issue (obviously).  pax at 
that point is just a wrapper around tar (see the man page), so I would 
assume it would do the right thing in any case.

-Steven

  reply	other threads:[~2002-12-01  1:53 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-30 22:23 Mac OS X GNU Emacs Installer (make-package) Steven Tamm
2002-11-30 22:38 ` Kai Großjohann
2002-11-30 22:48 ` David Caldwell
2002-11-30 23:19   ` Steven Tamm
2002-11-30 23:50     ` David Caldwell
2002-12-01  1:53       ` Steven Tamm [this message]
2002-12-01  2:04         ` Miles Bader
2002-12-01  2:23           ` Steven Tamm
2002-12-02 15:46           ` Richard Stallman
2002-12-01  3:38         ` David Caldwell
2002-12-02 18:26     ` Andrew Choi
2002-12-02 15:46   ` Richard Stallman
2002-12-02 15:46 ` Richard Stallman
2002-12-02 16:04 ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2002-12-02 19:22 Steven Tamm
2002-12-02 19:45 ` Andrew Choi

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

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

  git send-email \
    --in-reply-to=A21B6B94-04CF-11D7-AADA-00039390AB82@mac.com \
    --to=steventamm@mac.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.