From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Russ P." Newsgroups: gmane.emacs.help Subject: Re: setting font size Date: Tue, 2 Nov 2010 11:44:50 -0700 (PDT) Organization: http://groups.google.com Message-ID: <87ffa262-6669-4080-b017-5c69da9c6603@j18g2000yqd.googlegroups.com> References: <45258d6d-5531-45e7-a218-78dc573a7b9e@e14g2000yqe.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1291954791 5900 80.91.229.12 (10 Dec 2010 04:19:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 04:19:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 10 05:19:47 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQuSP-0002Xo-JP for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Dec 2010 05:19:46 +0100 Original-Received: from localhost ([127.0.0.1]:41282 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQuOx-00032e-0P for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 23:16:11 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!j18g2000yqd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 54 Original-NNTP-Posting-Host: 128.102.146.44 Original-X-Trace: posting.google.com 1288723490 16164 127.0.0.1 (2 Nov 2010 18:44:50 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 2 Nov 2010 18:44:50 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j18g2000yqd.googlegroups.com; posting-host=128.102.146.44; posting-account=QXgf4wkAAADkKLOneY6DWJPpPelAjS0c User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.0.15) Gecko/2009101600 Firefox/3.0.15,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:182157 X-Mailman-Approved-At: Thu, 09 Dec 2010 20:23:34 -0500 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:77323 Archived-At: On Nov 1, 6:50=A0pm, Jason Rumney wrote: > On Nov 2, 2:33=A0am, "Russ P." wrote: > > > Using the same .emacs file that I use on Red Hat, I get a ridiculously > > large font on the Ubuntu Emacs. =A0The only lines in my .emacs file tha= t > > I think could have an effect on font size are these: > > > (add-hook 'font-lock-mode-hook #'(lambda()(use-local-map nil))) > > (custom-set-faces '(default ((t (:size "14pt" :family "Courier 10 > > Pitch"))) t)) > > (set-face-attribute 'default nil :family "Courier 10 Pitch") > > (set-face-attribute 'default (selected-frame) :height 130) > > The second line above is setting your font to a huge 14pt. The forth > line is resetting it to a slightly less huge 13pt. > > I'd suggest removing the last two lines and setting the font through > customize, where you can see the results as you set it. > > Apparently your Red Hat installation must be getting your monitor dpi > wrong if it is not displaying 14 and 13pt fonts at a large size. Thanks for the suggestion, but I already tried commenting out those lines and it made no difference. Then I figured the problem could be that my .emacs file is just not executing to completion, but now I am pretty sure it is. I find it frustrating that the same (or close to the same) version of Emacs with the exact same .emacs file behaves completely differently on two different Linux distributions (Red Hat and Ubuntu). I've never had this kind of problem with XEmacs. I've also had other problems with Emacs that I never had with XEmacs in over 20 years of using it. For example, I reported here a few weeks ago that Emacs is FAR slower than XEmacs for remote operation. Others here helped me with a nice workaround for that problem (sshfs), but it is still not a good indication of the Emacs software quality. Here is another little thing that bothers me about Emacs, and this one is probably my own little pecadillo. XEmacs has a nice little pull- down menu item for setting the font size directly. Emacs apparently does not have that, so I have to sit and try to guess how to do it. I knew a few weeks ago, but I forgot. But the point is, why should I have to remember? Why not just make it simple, as in XEmacs? The only reason I have to use Emacs is that I want to use ENSIME (an IDE for Scala). Were it not for that, I would surely just stay with XEmacs. I get no pleasure from saying that, I'm just reporting my experience. I certainly don't mean to offend anyone here, because I will probably need your help in the future! I just hope the problems with Emacs can be corrected. Russ P.