Thread: [Mac-emacs-users] Latest Mac OS X Emacs Source Now Available from Emacs CVS
Brought to you by:
akochoi
From: Andrew C. <ak...@sh...> - 2002-04-27 02:05:39
|
Hi Everyone, I have just merged my latest Emacs source for Mac OS X into the `head' branch of the Emacs CVS. The current version there is 21.2.50 (so it is newer than 21.2). To find out how access it, visit the following URL. http://savannah.gnu.org/projects/emacs/ After checking out the source directory, the standard procedure of `./configure', `make', and `make install' should be sufficient to build Emacs on Mac OS X. You will need to have installed the GNU texinfo package. More information can be found in the files mac/INSTALL and mac/README, and the Mac OS section of the on-line manual. I have not prepared a binary distribution yet but I should make this available soon. Suggestions and questions are welcome. Please send bug reports to gnu.emacs.bug or mail them to ema...@gn... as described in the file BUGS. Questions can be posted to gnu.emacs.help. Have fun! Andrew. |
From: Andrew C. <ak...@sh...> - 2002-04-27 16:01:30
|
> First of all, thanks a lot! There is a problem with bold and italic > faces. They are not shown at all. I attach grab of how the *faces* > buffer, so that you can get a better picture of what happens to me. I > tried different fonts with the same effect. > > cheers > -- e. > > [...image deleted...] Hi Enrico, Emacs does not recognize the Truetype fonts (including Monaco) as having bold, italic, and bold-italic variants. This can be fixed but the result will probably not work as well as expected because of the different widths used by the variants (italic characters in bounding boxes look sparse). In the mean time, -etl-fixed-medium-i-*16*, -etl-fixed-bold-r-*16*, etc. work well. Try installing the following font into your ~/Library/Fonts/ folder, or your System 9 Fonts folder. http://prdownloads.sourceforge.net/mac-emacs/GNU-Fonts.sea.bin Emacs is setup to look for them by default so you don't need to do anything to use them. Andrew. |
From: Enrico F. <fra...@yv...> - 2002-04-27 16:17:04
|
On April 27, Andrew Choi writes: > Emacs does not recognize the Truetype fonts (including Monaco) as > having bold, italic, and bold-italic variants. Thanks for the prompt response. Does this mean that when I put (setq default-frame-alist '((font . "-*-Courier-*-*-*-*-14-*-*-*-*-*-*-*"))) Emacs is actually using the TTF fonts rather than the postscript? Why was this working with your previous patches? :-) So, in general, what kind of fonts can I provide to Emacs? 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-04-27 16:50:14
|
> Thanks for the prompt response. Does this mean that when I put > (setq default-frame-alist > '((font . "-*-Courier-*-*-*-*-14-*-*-*-*-*-*-*"))) > Emacs is actually using the TTF fonts rather than the postscript? > Why was this working with your previous patches? :-) > So, in general, what kind of fonts can I provide to Emacs? Hi Enrico, It is not a matter of Truetype versus Postscript fonts; it is one of whether Emacs recognizes a font as having a bold/italic variant. The -ETL-* fonts are just bitmap fonts but they are specially handled in the X Font Specs emulation code to provide bold and italic variants for use by Emacs. Do bold and italic characters other than -ETL-* show up in my previous patch? I don't see how they could but I'll check this. Perhaps the best solution is to enable Emacs to use the bold and italic variants of fonts like Monaco and Courier. I'll take a look at how hard it will be to make that work. It probably isn't too hard. Bold will look fine, but I'm not sure about italics. Personally, I use -ETL-* all the time and they look very nice to me. -ETL-fixed-*16* also works great along side 16x16 Chinese characters! To see what fonts Emacs recognizes, use the function x-list-fonts. See the examples below to see how to use it. Andrew. ----- (setq eval-expression-print-length 100) 100 (x-list-fonts "*courier*14*") ("-apple-courier-medium-r-normal--14-140-75-75-m-140-mac-roman" "-apple-courier-medium-r-normal--14-140-75-75-m-140-mac-roman") (x-list-fonts "*monaco*14*") ("-apple-monaco-medium-r-normal--14-140-75-75-m-140-mac-roman" "-apple-monaco-medium-r-normal--14-140-75-75-m-140-mac-roman") (x-list-fonts "*fixed*16*") ("-etl-fixed-medium-r-normal--16-160-75-75-m-160-iso8859-8" "-sony-fixed-medium-r-normal--16-160-75-75-m-160-jisx0201.1976-0" "-etl-fixed-medium-r-normal--16-160-75-75-m-160-koi8-r" "-etl-fixed-medium-r-normal--16-160-75-75-m-160-iso8859-7" "-etl-fixed-medium-r-normal--16-160-75-75-m-160-iso8859-5" "-etl-fixed-medium-r-normal--16-160-75-75-m-160-iso8859-9" "-etl-fixed-medium-r-normal--16-160-75-75-m-160-iso8859-4" "-etl-fixed-medium-r-normal--16-160-75-75-m-160-iso8859-3" "-etl-fixed-medium-r-normal--16-160-75-75-m-160-iso8859-2" "-etl-fixed-bold-i-normal--16-160-75-75-m-160-iso8859-1" "-etl-fixed-medium-i-normal--16-160-75-75-m-160-iso8859-1" "-etl-fixed-bold-r-normal--16-160-75-75-m-160-iso8859-1" "-etl-fixed-medium-r-normal--16-160-75-75-m-160-iso8859-1" "-etl-fixed-medium-r-normal--16-160-75-75-m-160-viscii1.1-1" "-misc-fixed-medium-r-normal--16-160-75-75-m-160-mulelao-1" "-etl-fixed-medium-r-normal--16-160-75-75-m-160-tis620.2529-1") |
From: Enrico F. <fra...@yv...> - 2002-04-27 16:58:47
|
On April 27, Andrew Choi writes: > Do bold and italic characters other than -ETL-* show up in my > previous patch? I don't see how they could but I'll check this. Absolutely yes! I used many different fonts and all worked perfectly in both italic and bold. 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-04-27 21:22:25
|
> > Do bold and italic characters other than -ETL-* show up in my > > previous patch? I don't see how they could but I'll check this. > > Absolutely yes! I used many different fonts and all worked perfectly > in both italic and bold. It would help a lot if you can tell me which fonts other than -ETL-* do show up in italic and bold (Monaco and Courier?) and how you got it to work. Did you use set-frame-font? Did you customize a face? I've just checked the 21.1 version and could not get any bold or italic version of fonts other than -ETL-* to work. Also, just to make sure, you *are* referring to the 21.1 patch, right? Bold and italic worked on version 20.6 on Mac OS Classic because that had different font handling code. The 21.1 patch and the current CVS version, on the other hand, are not that different. |
From: David W. <da...@wh...> - 2002-05-13 19:14:48
|
On 4/26/02 7:05 PM, "Andrew Choi" <ak...@sh...> claimed: > After checking out the source directory, the standard procedure of > `./configure', `make', and `make install' should be sufficient to > build Emacs on Mac OS X. I had to do this: ./configure make bootstrap make make install All seemed to go fine doing that, but now my font settings don=B9t work. I have this in my ~/.emacs file: '(default ((t (:stipple nil :background "DarkSlateGrey" :foreground "Wheat= " :inverse-video nil :box nil :strike-through nil :overline nil :underline ni= l :slant normal :weight normal :height 135 :width normal :family "apple-andale-mono")))) It all seems to work except the font setting -- no apple-andale-mono. Switching back to 21.1, where it worked before, it doesn't work there, either! I sure would like to get this face back, because I intensely dislike the default font (no offence!). Regards, David --=20 David Wheeler AIM: dwTheory da...@wh... ICQ: 15726394 http://david.wheeler.net/ Yahoo!: dew7e Jabber: Th...@ja... |
From: Andrew C. <ak...@sh...> - 2002-05-13 22:05:26
|
> All seemed to go fine doing that, but now my font settings don=B9t = work. I > have this in my ~/.emacs file: >=20 > '(default ((t (:stipple nil :background "DarkSlateGrey" :foregroun= d "Wheat" > :inverse-video nil :box nil :strike-through nil :overline nil :unde= rline nil > :slant normal :weight normal :height 135 :width normal :family > "apple-andale-mono")))) >=20 > It all seems to work except the font setting -- no apple-andale-mon= o. > Switching back to 21.1, where it worked before, it doesn't work the= re, > either! There should be a space between `andale' and `mono' instead of a hyphen. You can see this by calling x-list-fonts, e.g., (x-list-fonts "*andale*") ("-apple-andale mono-medium-r-normal--0-0-75-75-m-0-mac-roman") =20 > I sure would like to get this face back, because I intensely dislik= e > the default font (no offence!). Do you mean -apple-monaco-* or -etl-fixed-*? The latter is the only font currently offering italics, bold, and bold italics. These look nice in Gnus and Rmail modes, among others. |
From: David W. <da...@wh...> - 2002-05-13 21:35:19
|
On 5/13/02 2:04 PM, "Andrew Choi" <ak...@sh...> claimed: > There should be a space between `andale' and `mono' instead of a > hyphen. Yes, that gets it working in 21.1 again, although it's a lot bigger than it was. It doesn't work in 21.2.50, though. > You can see this by calling x-list-fonts, e.g., > > (x-list-fonts "*andale*") > ("-apple-andale mono-medium-r-normal--0-0-75-75-m-0-mac-roman") There appears to be no such command -- at least, not that I can access: M-x x-list-fonts [no match] OTOH, list-fontsets works just fine: Fontset: -*-*-*-*-*-*-*-*-*-*-*-*-fontset-default Fontset: -etl-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-mac > Do you mean -apple-monaco-* or -etl-fixed-*? The latter is the only > font currently offering italics, bold, and bold italics. These look > nice in Gnus and Rmail modes, among others. -etl-fixed-*. I just use Emacs for hacking, and never noticed a need for bold or italics (I don't use Gnus or Rmail). At it just looks ugly to me. Maybe I'd like it better if it wasn't so damned big. Monaco looks fine in the Terminal.... Thanks, David -- David Wheeler AIM: dwTheory da...@wh... ICQ: 15726394 http://david.wheeler.net/ Yahoo!: dew7e Jabber: Th...@ja... |
From: Andrew C. <ak...@sh...> - 2002-05-14 14:15:43
|
> > There should be a space between `andale' and `mono' instead of a > > hyphen. > > Yes, that gets it working in 21.1 again, although it's a lot bigger > than it was. It doesn't work in 21.2.50, though. Specifying a font family for the default face doesn't seem to work if the font does not have italic and bold variants. You can try using (set-frame-font FONT-SPEC). > > You can see this by calling x-list-fonts, e.g., > > > > (x-list-fonts "*andale*") > > ("-apple-andale mono-medium-r-normal--0-0-75-75-m-0-mac-roman") > > There appears to be no such command -- at least, not that I can access: > > M-x x-list-fonts [no match] > > OTOH, list-fontsets works just fine: > > Fontset: -*-*-*-*-*-*-*-*-*-*-*-*-fontset-default > Fontset: -etl-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-mac That's because list-fontsets is an interactive function and x-list-fonts is not. Put the Lisp expression `(x-list-fonts "*andale*")' in a Lisp Interaction mode buffer such as *scratch* and hit C-j, or in any buffer and hit C-x C-e. |
From: David W. <da...@wh...> - 2002-05-14 16:01:52
|
On 5/14/02 7:14 AM, "Andrew Choi" <ak...@sh...> claimed: > Specifying a font family for the default face doesn't seem to work if > the font does not have italic and bold variants. Damn. This worked in 21.1. > You can try using (set-frame-font FONT-SPEC). I added this to ~/.emacs: (set-frame-font "-apple-andale mono-medium-r-normal--0-0-75-75-m-0-mac-roman") And it made no difference. > That's because list-fontsets is an interactive function and > x-list-fonts is not. Put the Lisp expression `(x-list-fonts > "*andale*")' in a Lisp Interaction mode buffer such as *scratch* and > hit C-j, or in any buffer and hit C-x C-e. Gotcha - thanks. David -- David Wheeler AIM: dwTheory da...@wh... ICQ: 15726394 http://david.wheeler.net/ Yahoo!: dew7e Jabber: Th...@ja... |
From: Andrew C. <ak...@sh...> - 2002-05-16 13:43:03
|
> > Specifying a font family for the default face doesn't seem to work if > > the font does not have italic and bold variants. > > Damn. This worked in 21.1. I don't see how it could have. > > You can try using (set-frame-font FONT-SPEC). > > I added this to ~/.emacs: > > (set-frame-font > "-apple-andale mono-medium-r-normal--0-0-75-75-m-0-mac-roman") > > And it made no difference. It works fine for me. Perhaps you can use set-frame-font interactively, i.e., M-x set-frame-font and use tab completion to see what fonts are available. It also helps if you can show me the output of (x-list-fonts "*andale*") |
From: David W. <da...@wh...> - 2002-05-16 15:42:56
|
On 5/16/02 6:42 AM, "Andrew Choi" <ak...@sh...> claimed: >> Damn. This worked in 21.1. > > I don't see how it could have. What can I say? I use it every day. > It works fine for me. Perhaps you can use set-frame-font > interactively, i.e., M-x set-frame-font and use tab completion to see > what fonts are available. Strange, now it works fine. Maybe I was wrong. Sorry about that. The only problem now is that the font is too big. I have the height set to 116 in the custom-set-faces command, and that creates a very nice size for andale-mono in 21. Can you tell me how I might make the face added with the set-frame-face command smaller? > It also helps if you can show me the output of > > (x-list-fonts "*andale*") Here it is: ("-apple-andale mono-medium-r-normal--0-0-75-75-m-0-mac-roman") Thanks for the help with this, Andrew. Regards, David -- David Wheeler AIM: dwTheory da...@wh... ICQ: 15726394 http://david.wheeler.net/ Yahoo!: dew7e Jabber: Th...@ja... |
From: Andrew C. <ak...@sh...> - 2002-05-17 13:31:51
|
> [...] The only problem now is that the font is too big. I have the > height set to 116 in the custom-set-faces command, and that creates > a very nice size for andale-mono in 21. Can you tell me how I might > make the face added with the set-frame-face command smaller? Using font specs like -apple-andale mono-medium-r-normal--10-0-75-75-m-0-mac-roman -apple-andale mono-medium-r-normal--11-0-75-75-m-0-mac-roman -apple-andale mono-medium-r-normal--12-0-75-75-m-0-mac-roman with set-frame-font should work, because Truetype fonts are treated as `scalable' fonts by Emacs. |
From: David W. <da...@wh...> - 2002-05-17 16:10:21
|
On 5/17/02 6:20 AM, "Andrew Choi" <ak...@sh...> claimed: > Using font specs like > > -apple-andale mono-medium-r-normal--10-0-75-75-m-0-mac-roman > -apple-andale mono-medium-r-normal--11-0-75-75-m-0-mac-roman > -apple-andale mono-medium-r-normal--12-0-75-75-m-0-mac-roman > > with set-frame-font should work, because Truetype fonts are treated as > `scalable' fonts by Emacs. Excellent -- that was it! Thanks. Just one more thing and I'll leave you alone. I've been setting cperl-mode like this: (autoload 'perl-mode "cperl-mode" "alternate mode for editing Perl programs" t) This doesn't work now, though. When I load a Perl file, Emacs says, 'File mode specification error: (error "Autoloading failed to define function perl-mode")'. Do you know how I might get this to work again? Thanks for all your help, Andrew. Regards, David -- David Wheeler AIM: dwTheory da...@wh... ICQ: 15726394 http://david.wheeler.net/ Yahoo!: dew7e Jabber: Th...@ja... |
From: Andrew C. <ak...@sh...> - 2002-05-17 17:22:53
|
> [...] I've been setting cperl-mode like this: > > (autoload 'perl-mode "cperl-mode" "alternate mode for editing Perl programs" > t) > > This doesn't work now, though. When I load a Perl file, Emacs says, > 'File mode specification error: (error "Autoloading failed to define > function perl-mode")'. Do you know how I might get this to work > again? Hi David, Do you want to load cperl-mode instead of perl-mode automatically when you visit a Perl file? If so the following is probably a better way to specify that. (setq auto-mode-alist (append '(("\\.\\([pP]\\([Llm]\\|erl\\)\\|al\\)\\'" . cperl-mode)) auto-mode-alist)) There's some more information on this in both the Emacs manual and Emacs Lisp manual. Andrew. |
From: David W. <da...@wh...> - 2002-05-17 21:51:06
|
On 5/17/02 10:16 AM, "Andrew Choi" <ak...@sh...> claimed: > (setq auto-mode-alist > (append > '(("\\.\\([pP]\\([Llm]\\|erl\\)\\|al\\)\\'" . cperl-mode)) > auto-mode-alist)) Thanks, that's what I was looking for. It was still loading perl-mode instead of cperl-mode for files without an extension but a #! line, but I figured out how to get it to load cperl-mode by using an alias. Here's what I have now, and it works great: (defalias 'perl-mode 'cperl-mode) (setq auto-mode-alist (append '(("\\.\\([pP]\\([Llm]\\|erl\\)\\|al\\|pod\\)\\'" . cperl-mode)) auto-mode-alist)) Thanks for the help! I'm a happy camper, now. Regards, David -- David Wheeler AIM: dwTheory da...@wh... ICQ: 15726394 http://david.wheeler.net/ Yahoo!: dew7e Jabber: Th...@ja... |