From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Davin Pearson" Newsgroups: gmane.emacs.help Subject: Re: (frame-width) is not accurate Date: 31 Mar 2007 01:16:02 -0700 Organization: http://groups.google.com Message-ID: <1175328962.276203.304560@l77g2000hsb.googlegroups.com> References: <1174961286.910387.307160@y80g2000hsf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1175330356 5054 80.91.229.12 (31 Mar 2007 08:39:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 31 Mar 2007 08:39:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 31 10:39:15 2007 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.50) id 1HXZ7A-0002nT-Jd for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Mar 2007 10:39:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HXZ9w-0003NV-1s for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Mar 2007 03:42:04 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!l77g2000hsb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: 60.234.164.158 Original-X-Trace: posting.google.com 1175328963 3169 127.0.0.1 (31 Mar 2007 08:16:03 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 31 Mar 2007 08:16:03 +0000 (UTC) In-Reply-To: <1174961286.910387.307160@y80g2000hsf.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.12) Gecko/20050919 Firefox/1.0.7,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: l77g2000hsb.googlegroups.com; posting-host=60.234.164.158; posting-account=Bn_6fA0AAAA1mf0ithIG_I4r1FOcs2it Original-Xref: shelby.stanford.edu gnu.emacs.help:146715 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:42319 Archived-At: On Mar 27, 2:08 pm, "Davin Pearson" wrote: > When I execute the function (frame-width) it returns the value 140 but > but by manually counting the maximum column I get the value 122. Why > doesn't (frame-width) return the correct value? I am using Windows > XP. Note that I have executed the following commands in my ~/.emacs > file: > > (progn > (set-default-font "-misc-fixed-medium-r-normal--10-*-*-*-c-60- > iso8859-1") > (set-frame-size (caadr (current-frame-configuration)) 140 43) > ) Just in case anybody was thinking about replying to my message, I have worked out how to get the function frame-width to return the correct value. It was something to do with the set-default-font command.