From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Problems with Emacs CVS Head in MacOS (Carbon) Date: Thu, 16 Jun 2005 12:57:36 +0200 Message-ID: References: <42B14942.1010703@alfarrabio.di.uminho.pt> <7e98d6cf1290b98d59f2f17f864e8d2c@Web.DE> <42B153CD.9060208@alfarrabio.di.uminho.pt> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1118920696 18973 80.91.229.2 (16 Jun 2005 11:18:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Jun 2005 11:18:16 +0000 (UTC) Cc: emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 16 13:18:08 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DisNV-0005U0-PQ for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Jun 2005 13:17:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DisSu-0007gn-EG for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Jun 2005 07:23:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dis9e-000433-FV for help-gnu-emacs@gnu.org; Thu, 16 Jun 2005 07:03:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dis9Y-0003zS-73 for help-gnu-emacs@gnu.org; Thu, 16 Jun 2005 07:03:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dis9W-0003uH-Fu for help-gnu-emacs@gnu.org; Thu, 16 Jun 2005 07:03:18 -0400 Original-Received: from [217.72.192.224] (helo=smtp06.web.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1Dis5m-00048i-32 for help-gnu-emacs@gnu.org; Thu, 16 Jun 2005 06:59:26 -0400 Original-Received: from [84.245.189.61] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.105 #291) id 1Dis42-0003AC-00; Thu, 16 Jun 2005 12:57:39 +0200 In-Reply-To: <42B153CD.9060208@alfarrabio.di.uminho.pt> Original-To: =?ISO-8859-1?Q?Alberto_Manuel_Brand=E3o_Sim=F5es?= X-Mailer: Apple Mail (2.622) X-Sender: Peter_Dyballa@web.de X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:27499 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27499 Am 16.06.2005 um 12:26 schrieb Alberto Manuel Brand=E3o Sim=F5es: > No. Is there any way where I can find a howto or tutorial? > Not yet, because Carbon Emacs is an impasse (Unicode Emacs 23 will use=20= ATSUI). Generally you check the functions' documentation and get lost=20 in it. (After years of this abuse you might feel different.) First you'll need to know what your Mac is offering: M-x set-frame-font=20= TAB TAB and go to the *Completions* buffer. Save it to a name you've=20 checked and even better: set and put into a register before (if you try=20= to expand some file name the *Completions* buffer's contents will be=20 overwritten with new contents). Now you can start to write an Elisp file with a contents like (notice=20 the two different functions): (create-fontset-from-fontset-spec "-*-andale = mono-medium-r-*-*-0-*-*-*-*-*-fontset-10pt_andale_mono, latin-iso8859-1:-*-andale=20 mono-medium-r-normal--10-100-75-75-m-100-mac-roman, latin-iso8859-2:-*-andale=20 mono-medium-r-normal--10-100-75-75-m-100-mac-roman, latin-iso8859-3:-*-andale=20 mono-medium-r-normal--10-100-75-75-m-100-mac-roman, latin-iso8859-4:-*-andale=20 mono-medium-r-normal--10-100-75-75-m-100-mac-roman, cyrillic-iso8859-5:-*-andale=20 mono-medium-r-normal--10-100-75-75-m-100-mac-roman, arabic-iso8859-6:-*-andale=20 mono-medium-r-normal--10-100-75-75-m-100-mac-roman, greek-iso8859-7:-*-andale=20 mono-medium-r-normal--10-100-75-75-m-100-mac-roman, hebrew-iso8859-8:-*-andale=20 mono-medium-r-normal--10-100-75-75-m-100-mac-roman, latin-iso8859-9:-*-andale=20 mono-medium-r-normal--10-100-75-75-m-100-mac-roman, latin-iso8859-12:-*-andale=20 mono-medium-r-normal--10-100-75-75-m-100-mac-roman, latin-iso8859-13:-*-andale=20 mono-medium-r-normal--10-100-75-75-m-100-mac-roman, latin-iso8859-14:-*-andale=20 mono-medium-r-normal--10-100-75-75-m-100-mac-roman, latin-iso8859-15:-*-andale=20 mono-medium-r-normal--10-100-75-75-m-100-mac-roman, latin-iso8859-16:-*-andale=20 mono-medium-r-normal--10-100-75-75-m-100-mac-roman, mac-roman-lower:-*-andale=20 mono-medium-r-normal--10-100-75-75-m-100-mac-roman, mac-roman-upper:-*-andale=20 mono-medium-r-normal--10-100-75-75-m-100-mac-roman, mule-unicode-0100-24ff:-*-andale=20 mono-medium-r-normal--10-100-75-75-m-100-mac-roman, mule-unicode-2500-33ff:-*-andale=20 mono-medium-r-normal--10-100-75-75-m-100-mac-roman, mule-unicode-e000-ffff:-*-andale=20 mono-medium-r-normal--10-100-75-75-m-100-mac-roman, iso10646-1:-*-andale=20 mono-medium-r-normal--10-100-75-75-m-100-mac-roman, ascii:-*-andale=20 mono-medium-r-normal--10-100-75-75-m-100-mac-roman" ) ; (create-fontset-from-mac-roman-font=20 "-*-monaco-medium-r-*-*-9-*-*-*-*-*-mac-roman" = nil=20 "09pt_Mmonaco") (create-fontset-from-mac-roman-font=20 "-*-monaco-medium-r-*-*-10-*-*-*-*-*-mac-roman" = nil=20 "10pt_Mmonaco") (create-fontset-from-mac-roman-font=20 "-*-monaco-medium-r-*-*-11-*-*-*-*-*-mac-roman" = nil=20 "11pt_Mmonaco") The first function only uses the bitmaps provided in the font suitcases=20= (.dfont files in Mac OS X), i.e. you can set different size values but=20= in the end you have always the same size on screen -- except Carbon=20 Emacs chooses to take some non-existing glyph from another font! This=20 one can be right-sized then. This function was intended to support=20 non-Mac encodings, but it fails IMO. The second function does a better job in sizes. It too fails for=20 non-Mac encodings. The ``M=B4=B4 in the fontset names was chosen to make=20= them distinct and to see immediately how they were defined (with=20 Minimal effort). Could be you need to set for these to work (defvar scalable-fonts-allowed t) Finish the Elisp file with (provide 'site-fontsets-carbon) put it in the load-path (C-h v load-path RET) outside the application=20 bundle and put into .emacs: (require 'site-fontsets-carbon) in a clause for not launching it in Terminal. GNU Emacs compiled for=20 X11 supports Unicode glyphs *much* better! Have you found transparancy?=20= (setq mac-transparency-alpha 80) There is also this (archive is slow): ------------------------------- Info -------------------------------- List Post: List Archives: -- Greetings Pete Real Time, adj.: Here and now, as opposed to fake time, which only occurs there = and=20 then.