Thread: [Mac-emacs-users] new to mac os x
Brought to you by:
akochoi
|
From: Amos <amo...@ut...> - 2002-05-03 06:36:08
|
Hi. I've been mostly around Sun machines for a long time, then Linux, and now more recently Mac OS X (on a TiBook). Trying to get latest CVS Emacs going. I installed texinfo, textutils, and ispell without problems. (I debated whether to use Fink or not, but in the end blew it off for now. Mainly I'm just eager to get this Emacs going.) I then did a configure on Emacs followed by 'make bootstrap'. It *seemed* to compile just fine. After the 'make install', when I try to start up emacs without any arguments, I get: % emacs Fatal error (6).Abort However, if I do 'emacs -nw', then it comes up just fine: GNU Emacs 21.2.50.1 (powerpc-apple-darwin5.4) Thoughts? Is there a 'truss' or 'trace' on OS X? So far haven't found anything like that. Pointers of where to look? -- Amos |
|
From: Piet v. O. <pi...@cs...> - 2002-05-03 07:42:57
|
>>>>> Amos <amo...@ut...> (A) writes: A> Hi. A> I've been mostly around Sun machines for a long time, then Linux, A> and now more recently Mac OS X (on a TiBook). Trying to get latest A> CVS Emacs going. I installed texinfo, textutils, and ispell A> without problems. (I debated whether to use Fink or not, but in A> the end blew it off for now. Mainly I'm just eager to get this A> Emacs going.) A> I then did a configure on Emacs followed by 'make bootstrap'. It A> *seemed* to compile just fine. After the 'make install', when I A> try to start up emacs without any arguments, I get: A> % emacs A> Fatal error (6).Abort A> However, if I do 'emacs -nw', then it comes up just fine: A> GNU Emacs 21.2.50.1 (powerpc-apple-darwin5.4) A> Thoughts? If you want a non-graphical emacs, i.e. running in a Terminal windows: emacs -nw is the proper invocation. If you want a GUI emacs you jave to start the Emacs.app in the mac subdirectory. Either double-click or start it from a Terminal with open Emacs.app. And you normally would copy it to /Applications or some such. Be careful to copy and not to move, otherwise you get problems if you want to recompile. -- Piet van Oostrum <pi...@cs...> URL: http://www.cs.uu.nl/~piet [PGP] Private email: P.v...@hc... |
|
From: Didier C. <car...@ac...> - 2002-05-03 09:22:26
|
> A> % emacs > A> Fatal error (6).Abort > > A> However, if I do 'emacs -nw', then it comes up just fine: > > > If you want a non-graphical emacs, i.e. running in a Terminal windows: > emacs -nw is the proper invocation. > > If you want a GUI emacs you jave to start the Emacs.app in the mac > subdirectory. Either double-click or start it from a Terminal with open > Emacs.app. I noticed the same thing but have another question regarding the GUI mode: whenever I run it, it starts consuming a lot of CPU time (> 80% on a powerbook). Only happens in GUI mode, it works fine in a terminal window. Well actually, it works fine in the GUI mode too, it is just that anything else is slow while it is running. Has anybody else noticed this ? Didier |
|
From: Piet v. O. <pi...@cs...> - 2002-05-03 21:06:46
|
>>>>> Didier Carlier <car...@ac...> (DC) writes: A> % emacs A> Fatal error (6).Abort >> A> However, if I do 'emacs -nw', then it comes up just fine: >> >> >> If you want a non-graphical emacs, i.e. running in a Terminal windows: >> emacs -nw is the proper invocation. >> >> If you want a GUI emacs you jave to start the Emacs.app in the mac >> subdirectory. Either double-click or start it from a Terminal with open >> Emacs.app. DC> I noticed the same thing but have another question regarding the GUI mode: DC> whenever I run it, it starts consuming a lot of CPU time (> 80% on a DC> powerbook). DC> Only happens in GUI mode, it works fine in a terminal window. Well DC> actually, it works fine DC> in the GUI mode too, it is just that anything else is slow while it is DC> running. DC> Has anybody else noticed this ? I had never noticed this, but now I startup top and it shows around 70% CPU. It also happens on a freshly started emacs. I am sure emacs 21.1 didn't have this. -- Piet van Oostrum <pi...@cs...> URL: http://www.cs.uu.nl/~piet [PGP] Private email: P.v...@hc... |
|
From: Andrew C. <ak...@sh...> - 2002-05-03 23:44:22
|
> [...] I noticed the same thing but have another question regarding
> the GUI mode: whenever I run it, it starts consuming a lot of CPU
> time (> 80% on a powerbook). Only happens in GUI mode, it works
> fine in a terminal window. Well actually, it works fine in the GUI
> mode too, it is just that anything else is slow while it is running.
The patch below fixes the problem. I'll check in into the CVS when I
can.
Index: macterm.c
===================================================================
RCS file: /cvsroot/emacs//emacs/src/macterm.c,v
retrieving revision 1.1
diff -u -r1.1 macterm.c
--- macterm.c 26 Apr 2002 23:39:05 -0000 1.1
+++ macterm.c 3 May 2002 23:32:14 -0000
@@ -12301,7 +12301,7 @@
if (NILP (Fboundp (Qmac_ready_for_drag_n_drop)))
event_mask -= highLevelEventMask;
- while (WaitNextEvent (event_mask, &er, 0L, NULL) && numchars > 0)
+ if (WaitNextEvent (event_mask, &er, (expected ? app_sleep_time : 0L), NULL))
switch (er.what)
{
case mouseDown:
@@ -12339,8 +12339,6 @@
mouse_tracking_in_progress = mouse_tracking_none;
tracked_scroll_bar = NULL;
count++;
- bufp++;
- numchars--;
break;
}
@@ -12356,8 +12354,6 @@
bufp->kind = menu_bar_activate_event;
XSETFRAME (bufp->frame_or_window, f);
count++;
- bufp++;
- numchars--;
}
break;
@@ -12437,8 +12433,6 @@
}
count++;
- bufp++;
- numchars--;
}
break;
@@ -12462,8 +12456,6 @@
XSETFRAME (bufp->frame_or_window,
((mac_output *) GetWRefCon (window_ptr))->mFP);
count++;
- bufp++;
- numchars--;
}
break;
@@ -12603,8 +12595,6 @@
bufp->timestamp = er.when * (1000 / 60); /* ticks to milliseconds */
count++;
- bufp++;
- numchars--;
break;
case kHighLevelEvent:
@@ -12655,8 +12645,6 @@
#endif /* not TARGET_API_MAC_CARBON */
count++;
- bufp++;
- numchars--;
}
default:
|
|
From: Didier C. <car...@ac...> - 2002-05-04 08:32:35
|
On Saturday, May 4, 2002, at 01:44 AM, Andrew Choi wrote: >> [...] I noticed the same thing but have another question regarding >> the GUI mode: whenever I run it, it starts consuming a lot of CPU >> time (> 80% on a powerbook). > The patch below fixes the problem. I'll check in into the CVS when I > can. [...] > Fixed indeed, thank you very much. |
|
From: Amos <amo...@ut...> - 2002-05-03 14:34:21
|
>>>>> On 03 May 2002 09:42:48 +0200, >>>>> Piet van Oostrum <pi...@cs...> (pvo) writes: pvo> If you want a GUI emacs you jave to start the Emacs.app in the mac pvo> subdirectory. Either double-click or start it from a Terminal with open pvo> Emacs.app. And you normally would copy it to /Applications or some such. pvo> Be careful to copy and not to move, otherwise you get problems if you want pvo> to recompile. Thanks! Cool. It works now. :-) Perhaps the mac/INSTALL file should mention this with a little: cd mac sudo cp -r Emacs.app /Applications Or maybe just have 'make install' do this? Next question: when I go into info mode the links are a series of boxes. I guess this is the font bold / italic stuff that I noticed folks talking about (viewed from list archive)? I downloaded these GNU-Fonts that are referenced, but not sure just where to install them. I have a feeling that maybe my Emacs doesn't see them? Oh, we need to get the GNU image and use that as the icon. That would be cool. Are there thoughts of eventually implementing the tool bar? I have to admit it's not something I've tended to use a lot, but I imagine it would sure look nice on Aqua. Now to see if I can get CVS gnus installed.... -- Amos |
|
From: Piet v. O. <pi...@cs...> - 2002-05-03 21:09:40
|
>>>>> Amos <amo...@ut...> (A) writes: A> Next question: when I go into info mode the links are a series of A> boxes. I guess this is the font bold / italic stuff that I noticed A> folks talking about (viewed from list archive)? I downloaded these A> GNU-Fonts that are referenced, but not sure just where to install A> them. I have a feeling that maybe my Emacs doesn't see them? I have no special fonts installed. Just this in my .emacs: (set-frame-font "fontset-mac") A> Oh, we need to get the GNU image and use that as the icon. That A> would be cool. A> Are there thoughts of eventually implementing the tool bar? I have A> to admit it's not something I've tended to use a lot, but I imagine A> it would sure look nice on Aqua. A> Now to see if I can get CVS gnus installed.... The gnus that comes with 21.2 works well enough. -- Piet van Oostrum <pi...@cs...> URL: http://www.cs.uu.nl/~piet [PGP] Private email: P.v...@hc... |
|
From: Andrew C. <ak...@sh...> - 2002-05-04 00:29:43
|
> Next question: when I go into info mode the links are a series of > boxes. I guess this is the font bold / italic stuff that I noticed > folks talking about (viewed from list archive)? I downloaded these > GNU-Fonts that are referenced, but not sure just where to install > them. I have a feeling that maybe my Emacs doesn't see them? I put it in my Mac OS 9 System Folder so both system 9 and X can see it. You can try putting it in ~/Library/Fonts/ for that user to see it or /Library/Fonts/ for all users to see it. To check whether Emacs is aware of a font, use the x-list-fonts function, e.g., (x-list-fonts "*fixed*160*") > Oh, we need to get the GNU image and use that as the icon. That > would be cool. I'm designing a new one. In the mean time, you can put any .icns file you like in Emacs.app/Contents/Resources/. |
|
From: Amos <amo...@ut...> - 2002-05-06 13:56:52
|
>>>>> On 03 May 2002 23:09:33 +0200, >>>>> Piet van Oostrum <pi...@cs...> (pvo) writes: pvo> The gnus that comes with 21.2 works well enough. Speaking of gnus, how do folks have it set up so that clicking on a URL brings up a window in a web browser, like perhaps OmniWeb? I had something like this on Solaris where it would pass the request onto Netscape, but I'm not sure how that can be done on OS X.... -- Amos |
|
From: Piet v. O. <pi...@cs...> - 2002-05-06 18:56:39
|
>>>>> Amos <amo...@ut...> (A) writes: >>>>> On 03 May 2002 23:09:33 +0200, >>>>> Piet van Oostrum <pi...@cs...> (pvo) writes: pvo> The gnus that comes with 21.2 works well enough. A> Speaking of gnus, how do folks have it set up so that clicking on a A> URL brings up a window in a web browser, like perhaps OmniWeb? I A> had something like this on Solaris where it would pass the request A> onto Netscape, but I'm not sure how that can be done on OS X.... I use browse-url-generic-program and have it set to "openurl" (setq browse-url-browser-function 'browse-url-generic) (setq browse-url-generic-program "openurl") I have a shell script "openurl" containing: osascript -e 'open location "'$*'"' -- Piet van Oostrum <pi...@cs...> URL: http://www.cs.uu.nl/~piet [PGP] Private email: P.v...@hc... |