You can subscribe to this list here.
2000 |
Jan
|
Feb
(2) |
Mar
(5) |
Apr
(3) |
May
(2) |
Jun
(1) |
Jul
(9) |
Aug
(1) |
Sep
(2) |
Oct
(3) |
Nov
(1) |
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
|
Feb
|
Mar
(3) |
Apr
(5) |
May
(1) |
Jun
|
Jul
(7) |
Aug
|
Sep
(8) |
Oct
(9) |
Nov
(20) |
Dec
(25) |
2002 |
Jan
(11) |
Feb
(8) |
Mar
(16) |
Apr
(33) |
May
(56) |
Jun
(55) |
Jul
(16) |
Aug
(26) |
Sep
|
Oct
(19) |
Nov
(3) |
Dec
|
2003 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(7) |
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
From: Brian M. <ma...@te...> - 2002-06-06 13:34:32
|
I'm running "GNU Emacs 21.1.30.3 (powerpc-apple-darwin5.2.2) of 2002-02-10 on localhost". I'm pretty sure I got it as the precompiled binary from here: <http://www.cse.cuhk.edu.hk/~akochoi/emacs/21.1/emacs-21.1-mac-bin.smi.bin> When I start emacs, it connects to the network. What's it doing? Have I installed something I oughtn't have? |
From: Brian M. <ma...@te...> - 2002-06-06 13:34:32
|
At 3:59 PM -0600 6/5/02, Andrew Choi wrote: >Hi Brian, > >> I can't seem to run the Ruby interpreter as a subshell on OS >> X. (Ruby is a language kind of like Python.) >> >> Ruby comes with some .el files that define M-x run-ruby (and all the >> usual sub-interpreter commands you'd expect). It works as expected >> with the dumb-terminal version of emacs that comes with OS X. M-x >> run-ruby doesn't work with the flashier emacs I downloaded (details >> below). Other kinds of subshells work. >> >> The symptom is that when I M-x run-ruby, I get an empty buffer, >> rather than a prompt. [...] > >Could you please try setting the PATH environment variable as >suggested by others on the mailing list about a week ago for a similar >question on Python? This is necessary since an application started >from the Finder does not get the same environment variables set when >started from a shell. I suppose you may also need to set certain Lisp >variables in the Ruby package. I don't think it's the path problem. Before the python notes, I did this: (setq exec-path (append exec-path '("/usr/local/bin" "~/bin"))) Although that doesn't give "shell-command" the right path, it does suffice to have make-comint find things in /usr/local/bin and ~/bin. I tonight added (setq shell-file-name "tcsh") so that M-! would get the right path. This does not help with my problem. I also tried the plist solution, but that didn't work at all. (See "digression", below.) I've done some playing around, and I suspect what's happening is that the Ruby interpreter is exiting immediately (for whatever reason). Emacs seems to be behaving oddly when given a program that exits without taking input. Consider this program: main() { int i; for (i = 0; i < 10; i++) printf("hello, world\n"); exit(42); } I invoke it with this: (defun test-run (cmd) (interactive "sCMD: ") (pop-to-buffer (make-comint "ruby" cmd))) (which is the core of what "M-x run-ruby" does). If I invoke it when no *ruby* buffer exists, one of three things will happen. In all cases, no text appears in the *ruby* buffer. 1) most often, the status is immediately "exit". 2) less often, the status starts as "run", then changes to "exit" in a second or so. 3) much less often, the status stays as run until I do something, such as press an inserting key or leave the buffer with "C-x o". All these cases differ from the emacs that comes with OS X, which always prints "Process ruby exited abnormally with code 42" (but has nothing else in the buffer). If (back in the version I want to be using), I invoke the test command when a *ruby* buffer already exists, I always get this: Process ruby<2> killed Process ruby killed Process ruby killed To complicate things, change the loop iteration to 100. Then I get the following, no matter whether I'm going to a new buffer or reusing an old one: hello, world hello, world <...> hello, world hello, world hello, wor It always stops in the same place in the final line. The stock OS X version stops in the same place in the line, but then prints the line about the exit code. How is Emacs supposed to behave with lots of output and no input? Is there a way to get all the output from a command, so that I can see if irb (the ruby interpreter) prints any useful diagnostics? What I thought of doing was running it with shell-command, but that brings up the spinning beach ball, and I have to Force Quit emacs. Another way to cause the beach ball is to use M-! to invoke this: while true do read foo echo $foo done Given that Ruby runs in a Terminal window (not under emacs), and that it runs when invoked from the command line in a M-x shell, what could be causing it to not be accepting input? It does take input from stdin: [localhost:~] marick% echo "exit" | irb irb(main):001:0> exit [localhost:~] marick% Note that it echoes the command. ------------ <digression> -------------- The plist solution didn't work at all. I put this in ~/.MacOSX/environment.plist: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd"> <plist version="0.9"> <dict> <key>HOME</key> <string>/Users/marick</string> <key>FOO</key> <string>bar</string> <key>PATH</key> <string>/usr/bin:/bin:/Users/marick:/usr/local/bin:/Users/marick/bin:/Users/marick/src/ruby/ruby-trace/bin</string> </dict> </plist> That doesn't change the PATH in either Emacs, as checked with "M-! which". (I put the FOO environment variable in to check if it's visible in either Emacs or the Terminal shell. Nope.) Do I have the right filename? ------------ </digression> -------------- -- -- If this mail message is supposed to have an attachment, doesn't seem to, and you use Outlook to read mail: you've probably been bitten by an Outlook bug. The attachment is really there, Outlook just isn't showing it to you. You can still save it with File | Save Attachments. (If that doesn't work, I must have forgotten to attach the file.) I'm sorry my choice of a Macintosh and the Eudora mailer is an inconvenience to you. "Act always so as to increase the number of choices." -- Heinz von Foerster -- Brian Marick, ma...@te... www.testing.com - Software testing services and resources www.testingcraft.com - Where software testers exchange techniques www.visibleworkings.com - Adequate understanding of system internals |
From: Andrew C. <ak...@sh...> - 2002-06-05 22:02:02
|
Hi Brian, > I can't seem to run the Ruby interpreter as a subshell on OS > X. (Ruby is a language kind of like Python.) > > Ruby comes with some .el files that define M-x run-ruby (and all the > usual sub-interpreter commands you'd expect). It works as expected > with the dumb-terminal version of emacs that comes with OS X. M-x > run-ruby doesn't work with the flashier emacs I downloaded (details > below). Other kinds of subshells work. > > The symptom is that when I M-x run-ruby, I get an empty buffer, > rather than a prompt. [...] Could you please try setting the PATH environment variable as suggested by others on the mailing list about a week ago for a similar question on Python? This is necessary since an application started from the Finder does not get the same environment variables set when started from a shell. I suppose you may also need to set certain Lisp variables in the Ruby package. > Specifics: This report is for the precompiled binary I got from > <http://www.cse.cuhk.edu.hk/~akochoi/emacs/21.1/emacs-21.1-mac-bin.smi.bin> This is probably incorrect because that was a binary for OS classic. > "GNU Emacs 21.1.30.3 (powerpc-apple-darwin5.2.2) of 2002-02-10 on > localhost" > [...] Andrew. |
From: Brian M. <ma...@te...> - 2002-06-05 18:17:31
|
I can't seem to run the Ruby interpreter as a subshell on OS X. (Ruby is a language kind of like Python.) Ruby comes with some .el files that define M-x run-ruby (and all the usual sub-interpreter commands you'd expect). It works as expected with the dumb-terminal version of emacs that comes with OS X. M-x run-ruby doesn't work with the flashier emacs I downloaded (details below). Other kinds of subshells work. The symptom is that when I M-x run-ruby, I get an empty buffer, rather than a prompt. The mode line shows state "run". If I type a character, it switches to "exit". That happens even if I switch buffers without typing anything to the process. Clues? ------------------- Specifics: This report is for the precompiled binary I got from <http://www.cse.cuhk.edu.hk/~akochoi/emacs/21.1/emacs-21.1-mac-bin.smi.bin> "GNU Emacs 21.1.30.3 (powerpc-apple-darwin5.2.2) of 2002-02-10 on localhost" I'm running OS X 10.1.4. The version of Ruby is 1.6.4, precompiled, from <http://www.apple.com/downloads/macosx/unix_apps_utilities/rubyprogramminglanguage.html> As far as I can tell, the Ruby executable is a pretty standard command-line program. It accepts lines from stdin, sends output to stdout. Nothing funny. Similar programs seem to work. By giving a numeric argument to M-x run-ruby, I can get it to prompt for the command to run. Both tcsh and ftp work fine (including when ftp prompts for a password). (Note that this means there's a workaround: have run-ruby start tcsh, then start the interpreter within it. That seems to work fine, but I want to know what's going on.) I think this problem is unrelated to the inf-ruby.el code that defines M-x run-ruby, since a teensy elisp function has the same behavior: (defun test-run (prog) (pop-to-buffer (make-comint "ruby" prog))) The Ruby interpreter is not quite a true executable. Instead, it's a Ruby script that invokes the Ruby executable. It looks like this: #!/usr/bin/env ruby ... ruby code that checks command line args and calls one of two initialization functions ... So I tried a file called "shell-exec-ftp" that looks like this: #!/usr/bin/env ftp That works. It differs from irb in that it has nothing after the #! line, but I can't think of anything on this fresh system that I could make look like how (I think) irb actually works.) -- -- If this mail message is supposed to have an attachment, doesn't seem to, and you use Outlook to read mail: you've probably been bitten by an Outlook bug. The attachment is really there, Outlook just isn't showing it to you. You can still save it with File | Save Attachments. (If that doesn't work, I must have forgotten to attach the file.) I'm sorry my choice of a Macintosh and the Eudora mailer is an inconvenience to you. "Act always so as to increase the number of choices." -- Heinz von Foerster -- Brian Marick, ma...@te... www.testing.com - Software testing services and resources www.testingcraft.com - Where software testers exchange techniques www.visibleworkings.com - Adequate understanding of system internals |
From: Gregory P. K. <gre...@lm...> - 2002-06-04 23:30:33
|
I have a rev. a 500 Mhz TiBook, running 10.1.4, and uControl works quite nicely (be warned, however, it doesn't play nicely with the USB keyboard tweak). As such, it is likely a hardware change, and not a software one. There is no usable way to do this at the emacs level due to the bizare nature of the PowerBook Caps Lock key... Hopefully a fresh release of uControl will come out that works on your hardware. I feel your pain. Gregory P. Keeney On Tue, 2002-06-04 at 14:39, Matthias Scheidegger wrote: Hi, I'm sure this is a frequently asked question, but I didn't find a FAQ file for this mailing list: Can I swap Caps Lock and Ctrl from within Emacs somehow? I've seen a trick to tweak the behaviour of the Option key, so I hope there's something similar for Caps & Ctrl. I can't swap them outside Emacs since I've got a new TiBook. At least the USB keyboard tweak and the uControl library don't work on it (no USB keyboard / too recent build of OS X). I'd be grateful for any pointers to other possibilities of course. cheers Matthias _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ Mac-emacs-users mailing list Mac...@li... https://lists.sourceforge.net/lists/listinfo/mac-emacs-users |
From: Matthias S. <ms...@ia...> - 2002-06-04 21:39:50
|
Hi, I'm sure this is a frequently asked question, but I didn't find a FAQ file for this mailing list: Can I swap Caps Lock and Ctrl from within Emacs somehow? I've seen a trick to tweak the behaviour of the Option key, so I hope there's something similar for Caps & Ctrl. I can't swap them outside Emacs since I've got a new TiBook. At least the USB keyboard tweak and the uControl library don't work on it (no USB keyboard / too recent build of OS X). I'd be grateful for any pointers to other possibilities of course. cheers Matthias |
From: Andrew C. <ak...@sh...> - 2002-06-02 01:23:27
|
> Hello > I'm trying to install emacs on my powerbook(MacOSX10.1.4) > But I recieve error in make. > First I installed texinfo4.2 from source(./configure then make,make > install,it's OK) > Now I patched emacs (emacs-21.1-2-mac.patch to emacs-21.1) > ./configure>make>make install > first time I recieved error at this time. > Then I tried make bootstrap > Now I recieved error at this time. > I copied error message of end,I past below. > > --------------------------------------------------- > (cd man; make info) > cd /Users/takamoto/emacs/emacs-21.1/man; makeinfo emacs.texi > emacs.texi:103: First argument to cross-reference may not be empty. > ./maintaining.texi:847: First argument to cross-reference may not be > empty. > makeinfo: Removing output file `../info/emacs' due to errors; use > --force to preserve. > make[1]: *** [../info/emacs] Error 2 > make: *** [info] Error 2 > ---------------------------------------------------- > this is just end of message,Is it enough?? > If there is any good suggestion,Let me know. > > Thanks, > > Takamoto Ando > gl...@ct... Hi Ando, The newer versions of texinfo cause problems for the build. Version 21.1 with the patch seems to require texinfo 4.0. The version in the CVS (currently 21.3.50) works fine with texinfo 4.0, 4.1, and 4.2. I suggest getting the Emacs src from CVS http://savannah.gnu.org/projects/emacs/ and using texinfo 4.2. That works for me. The code is newer too and contains many bug fixes! For instructions on how to checkout code using CVS, see http://savannah.gnu.org/cvs/?group_id=40 Note that I posted a patch on this mailing list for the current CVS version last week which I haven't committed to the CVS repository yet. Andrew. |
From: takamoto <gl...@ct...> - 2002-06-01 22:42:42
|
Hello I'm trying to install emacs on my powerbook(MacOSX10.1.4) But I recieve error in make. First I installed texinfo4.2 from source(./configure then make,make install,it's OK) Now I patched emacs (emacs-21.1-2-mac.patch to emacs-21.1) ./configure>make>make install first time I recieved error at this time. Then I tried make bootstrap Now I recieved error at this time. I copied error message of end,I past below. --------------------------------------------------- (cd man; make info) cd /Users/takamoto/emacs/emacs-21.1/man; makeinfo emacs.texi emacs.texi:103: First argument to cross-reference may not be empty. ./maintaining.texi:847: First argument to cross-reference may not be empty. makeinfo: Removing output file `../info/emacs' due to errors; use --force to preserve. make[1]: *** [../info/emacs] Error 2 make: *** [info] Error 2 ---------------------------------------------------- this is just end of message,Is it enough?? If there is any good suggestion,Let me know. Thanks, Takamoto Ando gl...@ct... |
From: Enrico F. <fra...@cs...> - 2002-05-30 16:11:11
|
> Probably a matter of your PATH. Emacs run in GUI mode doesn't get > any PATH definitions from your .tcshrc or .cshrc. Do a M-! which > python in emacs (same for ispell) and see if it is found. > > I have my PATH (and other environment variables) for emacs set in > ~/.MacOSX/environment.plist : Thsese variables are inherited by all > programs run from the Finder. A cheaper alternative (which works most of the time, but not always...) is to add this to your .emacs: (setq shell-file-name "tcsh") (setq sh-shell-file "/bin/tcsh") Hope this helps -- e. Enrico Franconi - fra...@cs... University of Manchester - http://www.cs.man.ac.uk/~franconi/ Department of Computer Science - Phone: +44 (161) 275 6170 Manchester M13 9PL, UK - Fax: +44 (161) 275 6204 |
From: Piet v. O. <pi...@cs...> - 2002-05-30 15:13:07
|
>>>>> Tom Wolfe <wo...@ma...> (TW) writes: TW> Trying to learn python and emacs. Running OS X 10.1.4, mac-emacs 21.1 from TW> binary. I've installed ispell and python-mode. I'm using the same .emacs TW> for both administrator and user accounts. Ispell works as administrator, TW> but not as user. Python mode works, but can't start the interpreter as TW> admin or user. Both ispell and python reside in /usr/local/bin. Any TW> suggestions? Thanks in advance Probably a matter of your PATH. Emacs run in GUI mode doesn't get any PATH definitions from your .tcshrc or .cshrc. Do a M-! which python in emacs (same for ispell) and see if it is found. I have my PATH (and other environment variables) for emacs set in ~/.MacOSX/environment.plist : Thsese variables are inherited by all programs run from the Finder. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd"> <plist version="0.9"> <dict> <key>HOME</key> <string>/Users/piet</string> <key>PATH</key> <string>/Users/piet/bin/powerpc-apple-darwin:/Users/piet/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/teTeX/bin/powerpc-apple-darwin-current:/sw/bin</string> </dict> </plist> -- Piet van Oostrum <pi...@cs...> URL: http://www.cs.uu.nl/~piet [PGP] Private email: P.v...@hc... |
From: Hans-Peter B. <hyp...@gm...> - 2002-05-29 06:40:40
|
On Tue, 28 May 2002, Tom Wolfe wrote: > Trying to learn python and emacs. Running OS X 10.1.4, mac-emacs 21.1 > from binary. I've installed ispell and python-mode. I'm using the same > .emacs for both administrator and user accounts. Ispell works as > administrator, but not as user. Python mode works, but can't start the > interpreter as admin or user. Both ispell and python reside in > /usr/local/bin. Any suggestions? Thanks in advance I have this in my .emacs (setq ispell-program-name "/usr/local/bin/ispell") HTH Regards/Gruesse Hans-Peter Binder -- "Who the f**k is General Failure and why is he reading my hard disk?" |
From: Tom W. <wo...@ma...> - 2002-05-28 23:06:31
|
Trying to learn python and emacs. Running OS X 10.1.4, mac-emacs 21.1 from binary. I've installed ispell and python-mode. I'm using the same .emacs for both administrator and user accounts. Ispell works as administrator, but not as user. Python mode works, but can't start the interpreter as admin or user. Both ispell and python reside in /usr/local/bin. Any suggestions? Thanks in advance Tom |
From: Andrew C. <ak...@sh...> - 2002-05-27 23:47:26
|
Hi Marc-Antoine, > [...] I noticed that, when I try to use emacs via a terminal (option > -nw) and use ctrl-G, emacs crashes. I cannot reproduce this on my machine. Did you just start Emacs, then hit C-g, and it crashed? > The content of the old patch that was posted a while ago still > solves this problem. Applying the patch led to a few errors during > patch, which all correspond to the patche's content having been > otherwise integrated in the source. Ignore those. Another detail: > The patch adds the line #define HAVE_ALLOCA in src/s/darwin.h This > causes a warning during compilation, as HAVE_ALLOCA is now defined > in src/config.h. I removed it from darwin.h The resulting patch > file looks something like this: > [...] I recognize the patch as Tsutomu Ikegami's patch for compiling Emacs for X Window and getting more exact load averages. I'm a bit puzzled as to which part of it actually solves the problem with C-g, if at all. Andrew. |
From: Andrew C. <ak...@sh...> - 2002-05-27 23:44:05
|
> Dear Andrew, > > How do I install and/or access those fonts? I'm using Mac OS10.1.4 and > emacs GNU Emacs 21.3.50.1, with intlfonts-1.2 installed also. > > I don't seem to have (or cannot access) the -etl-fixed-*16* fonts. > > And fontset-alias-alist's value is > (("-etl-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-mac" . > "-*-monaco-*-*-*-*-12-*-*-*-*-*-mac-roman") > ("-etl-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-mac" . "fontset-mac") > ("-*-*-*-*-*-*-*-*-*-*-*-*-fontset-default" . "fontset-default")) > > I downloaded GNU-Fonts from sourceforge, but I don't know what to do with > the three items in that folder (GNU-Asian, GNU-European, GNU-Misc). > > -- > > Gil I put them in the OS 9 System Folder because I want them to be accessible to both systems. Other places may also work. Please see the Mac on-line help for where to put fonts. |
From: Andrew C. <ak...@sh...> - 2002-05-27 23:34:49
|
Hi Everyone, The following patch (to be applied to the version in the CVS repository) fixes a bug which prevents Emacs from correctly displaying the italic, bold, and bold-italic variants of most fonts on the Mac OS (classic and X). Please test it. I'll check it into the CVS once I have used it a bit more. Andrew. ----- Index: lisp/term/mac-win.el =================================================================== RCS file: /cvsroot/emacs//emacs/lisp/term/mac-win.el,v retrieving revision 1.8 diff -u -r1.8 mac-win.el --- lisp/term/mac-win.el 26 Apr 2002 23:39:04 -0000 1.8 +++ lisp/term/mac-win.el 27 May 2002 22:59:32 -0000 @@ -225,6 +225,12 @@ ;; ange-ftp will not work without it. (setq process-connection-type nil) +;; Assume that fonts are always scalable on the Mac. This sometimes +;; results in characters with jagged edges. However, without it, +;; fonts with both truetype and bitmap representations but no italic +;; or bold bitmap versions will not display these variants correctly. +(setq scalable-fonts-allowed t) + ;; (prefer-coding-system 'mac-roman) ;; Index: src/fontset.c =================================================================== RCS file: /cvsroot/emacs//emacs/src/fontset.c,v retrieving revision 1.67 diff -u -r1.67 fontset.c --- src/fontset.c 20 May 2002 08:05:48 -0000 1.67 +++ src/fontset.c 27 May 2002 22:59:34 -0000 @@ -1413,7 +1413,7 @@ #if defined (MAC_OS) FONTSET_ASCII (Vdefault_fontset) = Fcons (make_number (0), - build_string ("-ETL-fixed-medium-r-*--*-160-*-*-*-*-iso8859-1")); + build_string ("-apple-monaco-medium-r-*--*-120-*-*-*-*-mac-roman")); #elif defined (WINDOWSNT) FONTSET_ASCII (Vdefault_fontset) = Fcons (make_number (0), Index: src/macfns.c =================================================================== RCS file: /cvsroot/emacs//emacs/src/macfns.c,v retrieving revision 1.3 diff -u -r1.3 macfns.c --- src/macfns.c 20 May 2002 08:06:16 -0000 1.3 +++ src/macfns.c 27 May 2002 22:59:43 -0000 @@ -4434,7 +4434,7 @@ } #endif /* 0 */ - error ("Display has an unknown visual class"); + return (intern ("true-color")); } DEFUN ("x-display-save-under", Fx_display_save_under, Index: src/macterm.c =================================================================== RCS file: /cvsroot/emacs//emacs/src/macterm.c,v retrieving revision 1.3 diff -u -r1.3 macterm.c --- src/macterm.c 8 May 2002 21:30:03 -0000 1.3 +++ src/macterm.c 27 May 2002 22:59:54 -0000 @@ -9559,6 +9559,13 @@ /* Now make the frame display the given font. */ if (FRAME_MAC_WINDOW (f) != 0) { + XSetFont (FRAME_MAC_DISPLAY (f), f->output_data.mac->normal_gc, + f->output_data.mac->font); + XSetFont (FRAME_MAC_DISPLAY (f), f->output_data.mac->reverse_gc, + f->output_data.mac->font); + XSetFont (FRAME_MAC_DISPLAY (f), f->output_data.mac->cursor_gc, + f->output_data.mac->font); + frame_update_line_height (f); if (NILP (tip_frame) || XFRAME (tip_frame) != f) x_set_window_size (f, 0, f->width, f->height); @@ -10651,10 +10658,30 @@ } -/* Sets up the table font_name_table to contain the list of all - monospace fonts in the system the first time the table is used so - that the Resource Manager need not be accessed every time this - information is needed. */ +static void +add_font_name_table_entry (char *font_name) +{ + if (font_name_table_size == 0) + { + font_name_table_size = 16; + font_name_table = (char **) + xmalloc (font_name_table_size * sizeof (char *)); + } + else if (font_name_count + 1 >= font_name_table_size) + { + font_name_table_size += 16; + font_name_table = (char **) + xrealloc (font_name_table, + font_name_table_size * sizeof (char *)); + } + + font_name_table[font_name_count++] = font_name; +} + +/* Sets up the table font_name_table to contain the list of all fonts + in the system the first time the table is used so that the Resource + Manager need not be accessed every time this information is + needed. */ static void init_font_name_table () @@ -10700,23 +10727,21 @@ while (FMGetNextFontFamilyInstance (&ffii, &font, &style, &size) == noErr) - { - if (font_name_table_size == 0) - { - font_name_table_size = 16; - font_name_table = (char **) - xmalloc (font_name_table_size * sizeof (char *)); - } - else if (font_name_count + 1 >= font_name_table_size) - { - font_name_table_size += 16; - font_name_table = (char **) - xrealloc (font_name_table, - font_name_table_size * sizeof (char *)); - } - font_name_table[font_name_count++] - = mac_to_x_fontname (name, size, style, sc); - } + if (size == 0) + { + add_font_name_table_entry (mac_to_x_fontname (name, size, + style, sc)); + add_font_name_table_entry (mac_to_x_fontname (name, size, + italic, sc)); + add_font_name_table_entry (mac_to_x_fontname (name, size, + bold, sc)); + add_font_name_table_entry (mac_to_x_fontname (name, size, + italic | bold, + sc)); + } + else + add_font_name_table_entry (mac_to_x_fontname (name, size, style, + sc)); } /* Dispose of the iterators. */ Index: src/xfaces.c =================================================================== RCS file: /cvsroot/emacs//emacs/src/xfaces.c,v retrieving revision 1.253 diff -u -r1.253 xfaces.c --- src/xfaces.c 20 May 2002 08:06:45 -0000 1.253 +++ src/xfaces.c 27 May 2002 22:59:59 -0000 @@ -918,6 +918,9 @@ #ifdef WINDOWSNT if (!FRAME_WINDOW_P (f) || FRAME_W32_WINDOW (f)) #endif +#ifdef MAC_OS + if (!FRAME_MAC_P (f) || FRAME_MAC_WINDOW (f)) +#endif if (!realize_basic_faces (f)) abort (); } @@ -6026,6 +6029,17 @@ if (STRINGP (face_family)) nfonts = try_alternative_families (f, face_family, registry, fonts); +#ifdef MAC_OS + /* When realizing the default face and a font spec does not matched + exactly, Emacs looks for ones with the same registry as the + default font. On the Mac, this is mac-roman, which does not work + if the family is -etl-fixed, e.g. The following widens the + choices and fixes that problem. */ + if (nfonts == 0 && STRINGP (face_family) && STRINGP (registry) + && xstricmp (XSTRING (registry)->data, "mac-roman") == 0) + nfonts = try_alternative_families (f, face_family, Qnil, fonts); +#endif + if (nfonts == 0 && !NILP (family)) nfonts = try_alternative_families (f, family, registry, fonts); @@ -6432,18 +6446,6 @@ fontset = default_face->fontset; face->fontset = make_fontset_for_ascii_face (f, fontset); face->font = NULL; /* to force realize_face to load font */ - -#ifdef MAC_OS - /* Load the font if it is specified in ATTRS. This fixes - changing frame font on the Mac. */ - if (STRINGP (attrs[LFACE_FONT_INDEX])) - { - struct font_info *font_info = - FS_LOAD_FONT (f, 0, XSTRING (attrs[LFACE_FONT_INDEX])->data, -1); - if (font_info) - face->font = font_info->font; - } -#endif } /* Load colors, and set remaining attributes. */ |
From: Gilbert H. <ha...@Pr...> - 2002-05-27 18:58:02
|
> Hi Gil, > > Currently only the -etl-fixed-*16* fonts display italic and bold > correctly. I'm working on solving this problem for other fonts and > should have a solution quite soon. > > Andrew. Dear Andrew, How do I install and/or access those fonts? I'm using Mac OS10.1.4 and emacs GNU Emacs 21.3.50.1, with intlfonts-1.2 installed also. I don't seem to have (or cannot access) the -etl-fixed-*16* fonts. And fontset-alias-alist's value is (("-etl-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-mac" . "-*-monaco-*-*-*-*-12-*-*-*-*-*-mac-roman") ("-etl-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-mac" . "fontset-mac") ("-*-*-*-*-*-*-*-*-*-*-*-*-fontset-default" . "fontset-default")) I downloaded GNU-Fonts from sourceforge, but I don't know what to do with the three items in that folder (GNU-Asian, GNU-European, GNU-Misc). -- Gil |
From: Andrew C. <ak...@sh...> - 2002-05-27 16:31:47
|
> In emacs version 23.3.50.1 (it says), if I choose "Syntax > Highlighting (Global Font Lock Mode)" from the Options menu, the > highlighting leaves some characters as blank rectangles. For > example, use dir-ed to look at a directory, select a file and press > d for delete. The filename is suddenly blanked out in this way. > Similarly for certain highlighting in editing LaTeX files. Hi Gil, Currently only the -etl-fixed-*16* fonts display italic and bold correctly. I'm working on solving this problem for other fonts and should have a solution quite soon. Andrew. |
From: Patrick G. <gun...@ir...> - 2002-05-27 15:22:00
|
Enrico Franconi <fra...@cs...> writes: Hi Enrico and Andrew, > The general idea is: > tcsh -c '/Applications/Emacs.app/Contents/MacOS/Emacs OPTIONS &' > where the ampersand should be before the quote. That is great! So I have now made a simple shell-skript wrapper: #! /bin/sh sh -c "/Applications/Emacs.app/Contents/MacOS/Emacs $* &" and an alias alias termemacs="/Applications/Emacs.app/Contents/MacOS/Emacs -nw" Patrick (sorry for sending this twice to you, Enrico) -- I'll fade into the darkness |
From: Gilbert H. <ha...@Pr...> - 2002-05-27 01:02:37
|
In emacs version 23.3.50.1 (it says), if I choose "Syntax Highlighting (Global Font Lock Mode)" from the Options menu, the highlighting leaves some characters as blank rectangles. For example, use dir-ed to look at a directory, select a file and press d for delete. The filename is suddenly blanked out in this way. Similarly for certain highlighting in editing LaTeX files. (Mac OS 10.4.1). -- Gil |
From: Gilbert H. <ha...@Pr...> - 2002-05-27 00:22:34
|
Andrew Choi <ak...@sh...>: > One possibility is you have X Window installed and you didn't do a > `./configure --without-x'. Thanks, Andrew, that was it. (I forgot I had installed X Windows.) I did have to "make bootstrap", because "make" by itself did not work. One interesting fact is that "emacs version" returns: "GNU Emacs 21.3.50.1" Is that correct? All this on MacOS 10.4.1 with recent Developer Tools (I can't figure out how to get the version of Developer Tools though.) -- Gil |
From: Enrico F. <fra...@cs...> - 2002-05-26 22:24:17
|
On May 26, Andrew Choi writes: > > I have installed Enrico's mac-emacs and I wonder, if/how this > > emacs can be called from the command line. I use the absolute path > > name /Applications/Emacs.app/Contents/MacOS/Emacs somefile &. The > > startup looks ok (emacs appears with the file) but switching to > > the emacs is almost impossible. When I press cmd-tab, the > > mousecursor turns into a wheel. I type a (or some) letter(s) and > > nothing happens. Then I switch back to the terminal app and press > > return/enter and then suddenly the pressed letters appear in > > emacs. > > > > The mac-emacs does not accept any arguments from the command-line, > > does it? > > Currently there isn't a way to passed command-line options to Emacs > when it is run in GUI mode. Had you installed from CVS, this > information is in the mac/README file. Well, this is not completely true... My applescripts call emacs from a shell command. As an example, the following works perfectly: tcsh -c '/Applications/Emacs.app/Contents/MacOS/Emacs -rv -bg red myfile.tex &' The general idea is: tcsh -c '/Applications/Emacs.app/Contents/MacOS/Emacs OPTIONS &' where the ampersand should be before the quote. cheers -- e. Enrico Franconi - fra...@cs... University of Manchester - http://www.cs.man.ac.uk/~franconi/ Department of Computer Science - Phone: +44 (161) 275 6170 Manchester M13 9PL, UK - Fax: +44 (161) 275 6204 |
From: Andrew C. <ak...@sh...> - 2002-05-26 21:06:15
|
> I am doing something wrong in trying to download the sources > for 21.2.50. >=20 > In a terminal window, I give the commands: >=20 > cvs -d:pserver:an...@su...:/cvsroot/emacs login >=20 > [<enter> (for password)] > =A0 > cvs -z3 -d:pserver:an...@su...:/cvsroot/emacs co . >=20 > I cd to the top level folder that is downloaded. >=20 > .\configure seems to work OK >=20 > But "make" fails completely, as does "make bootstrap". >=20 > What am I missing? >=20 > Gil Hi Gil, It will help a lot if you describe how `make' has failed and attach the error messages. One possibility is you have X Window installed and you didn't do a `./configure --without-x'. It will also help if you state which version of OS X and developer tools you're using. Andrew. |
From: Gilbert H. <ha...@Pr...> - 2002-05-26 20:03:03
|
I am doing something wrong in trying to download the sources for 21.2.50. In a terminal window, I give the commands: cvs -d:pserver:an...@su...:/cvsroot/emacs login [<enter> (for password)] =A0 cvs -z3 -d:pserver:an...@su...:/cvsroot/emacs co . I cd to the top level folder that is downloaded. .\configure seems to work OK But "make" fails completely, as does "make bootstrap". What am I missing? Gil |
From: Patrick G. <gun...@ir...> - 2002-05-26 19:37:49
|
Andrew Choi <ak...@sh...> writes: Hello Andrew, > Currently there isn't a way to passed command-line options to Emacs > when it is run in GUI mode. Had you installed from CVS, this > information is in the mac/README file. actually it does take arguments (my file is loaded into emacs) but it behaves really strage. Patrick -- I'll fade into the darkness |
From: Andrew C. <ak...@sh...> - 2002-05-26 19:13:22
|
> Hi, > > I have installed Enrico's mac-emacs and I wonder, if/how this emacs > can be called from the command line. I use the absolute path name > /Applications/Emacs.app/Contents/MacOS/Emacs somefile &. The startup > looks ok (emacs appears with the file) but switching to the emacs is > almost impossible. When I press cmd-tab, the mousecursor turns into > a wheel. I type a (or some) letter(s) and nothing happens. Then I > switch back to the terminal app and press return/enter and then > suddenly the pressed letters appear in emacs. > > The mac-emacs does not accept any arguments from the command-line, > does it? > > Patrick Hi Patrick, Currently there isn't a way to passed command-line options to Emacs when it is run in GUI mode. Had you installed from CVS, this information is in the mac/README file. Andrew. |