* emacs -nw on Mac OS X
@ 2006-12-24 21:31 Piet van Oostrum
2006-12-25 11:42 ` mituharu
0 siblings, 1 reply; 4+ messages in thread
From: Piet van Oostrum @ 2006-12-24 21:31 UTC (permalink / raw)
The pretest (22.0.92) on Mac OS X when installed as a Mac OS X application
(/Application/Emacs.app) will not run properly in a terminal.
When the application is built in the mac subdirectory with the command:
./make-package --self-contained --build-in-place --app-symlink
emacs -nw or Applications/Emacs.app/Contents/MacOS/bin/emacs -nw complain:
Warning: arch-dependent data dir
(/usr/local/libexec/emacs/22.0.92/powerpc-apple-darwin8.8.0/) does not
exist.
I also tried to give the build command an additional --prefix option
./make-package --self-contained --build-in-place --app-symlink
--prefix=/Applications/Emacs.app/Contents/Resources
Then the message becomes:
Warning: arch-dependent data dir
(/Applications/Emacs.app/Contents/Resources/libexec/emacs/22.0.92/powerpc-apple-darwin8.8.0/)
does not exist.
The real path of the architecture-dependent data dir is
/Applications/Emacs.app/Contents/Resources/libexec/, but this is only set
if emacs is started as /Applications/Emacs.app/Contents/MacOS/Emacs
Although this is a warning the resulting emacs fails, probably because
other paths also are incorrect.
I also tried to start emacs from a terminal with
/Applications/Emacs.app/Contents/MacOS/Emacs -nw
but that complains about:
error: Mac native windows not in use or not initialized
--
Piet van Oostrum <piet@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: piet@vanoostrum.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: emacs -nw on Mac OS X
2006-12-24 21:31 emacs -nw on Mac OS X Piet van Oostrum
@ 2006-12-25 11:42 ` mituharu
2006-12-25 12:14 ` Piet van Oostrum
0 siblings, 1 reply; 4+ messages in thread
From: mituharu @ 2006-12-25 11:42 UTC (permalink / raw)
Cc: emacs-devel
> I also tried to start emacs from a terminal with
> /Applications/Emacs.app/Contents/MacOS/Emacs -nw
> but that complains about:
> error: Mac native windows not in use or not initialized
What message is shown if invoked with "-nw --debug-init"?
The error still occurs with "-nw -Q" ?
YAMAMOTO Mitsuharu
mituharu@math.s.chiba-u.ac.jp
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: emacs -nw on Mac OS X
2006-12-25 11:42 ` mituharu
@ 2006-12-25 12:14 ` Piet van Oostrum
2006-12-26 2:37 ` YAMAMOTO Mitsuharu
0 siblings, 1 reply; 4+ messages in thread
From: Piet van Oostrum @ 2006-12-25 12:14 UTC (permalink / raw)
Cc: emacs-devel
>>>>> mituharu@math.s.chiba-u.ac.jp (YM) wrote:
>>> I also tried to start emacs from a terminal with
>>> /Applications/Emacs.app/Contents/MacOS/Emacs -nw
>>> but that complains about:
>>> error: Mac native windows not in use or not initialized
>YM> What message is shown if invoked with "-nw --debug-init"?
Debugger entered--Lisp error: (error "Mac native windows not in use or not init$
query-fontset("-apple-monaco-medium-r-normal--14-*-*-*-*-*-fontset-monaco14")
create-fontset-from-fontset-spec("-apple-monaco-medium-r-normal--14-*-*-*-*-*$
I guess I should make this conditional in my .emacs file
>YM> The error still occurs with "-nw -Q" ?
My bad. I should have tried -Q. It runs without errors with -Q.
So it appears that /Applications/Emacs.app/Contents/MacOS/Emacs is the
proper thing to call in terminal mode rather than
/Applications/Emacs.app/Contents/MacOS/Resources/bin/emacs although
they are the same.
--
Piet van Oostrum <piet@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: piet@vanoostrum.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: emacs -nw on Mac OS X
2006-12-25 12:14 ` Piet van Oostrum
@ 2006-12-26 2:37 ` YAMAMOTO Mitsuharu
0 siblings, 0 replies; 4+ messages in thread
From: YAMAMOTO Mitsuharu @ 2006-12-26 2:37 UTC (permalink / raw)
Cc: emacs-devel
>>>>> On Mon, 25 Dec 2006 13:14:36 +0100, Piet van Oostrum <piet@cs.uu.nl> said:
> Debugger entered--Lisp error: (error "Mac native windows not in use or not init$
> query-fontset("-apple-monaco-medium-r-normal--14-*-*-*-*-*-fontset-monaco14")
> create-fontset-from-fontset-spec("-apple-monaco-medium-r-normal--14-*-*-*-*-*$
> I guess I should make this conditional in my .emacs file
And as explained in the Emacs info node "Mac Font Specs", I'd not
recommend the use of create-font-set-from-fontset-spec. If you just
need 14pt Monaco as the default font, (set-face-attribute 'default nil
:family "monaco" :height 140) would usually be sufficient.
> So it appears that /Applications/Emacs.app/Contents/MacOS/Emacs is
> the proper thing to call in terminal mode rather than
> /Applications/Emacs.app/Contents/MacOS/Resources/bin/emacs although
> they are the same.
They may be the same in the sense of contents. But the former
invocation can deduce the location of the application bundle with
CFBundleCopyBundleURL, but the latter not.
YAMAMOTO Mitsuharu
mituharu@math.s.chiba-u.ac.jp
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-12-26 2:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-24 21:31 emacs -nw on Mac OS X Piet van Oostrum
2006-12-25 11:42 ` mituharu
2006-12-25 12:14 ` Piet van Oostrum
2006-12-26 2:37 ` YAMAMOTO Mitsuharu
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).