From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Mickey Ferguson" Newsgroups: gmane.emacs.help Subject: columns displayed on one line in frame / window Date: Thu, 4 Jun 2009 15:01:10 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C9E55F.F8513881" X-Trace: ger.gmane.org 1244209468 26945 80.91.229.12 (5 Jun 2009 13:44:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jun 2009 13:44:28 +0000 (UTC) To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 05 15:44:26 2009 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 1MCZia-0002JS-Pw for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Jun 2009 15:44:25 +0200 Original-Received: from localhost ([127.0.0.1]:52656 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MCZia-000759-9q for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Jun 2009 09:44:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MCMtd-0005ib-ID for help-gnu-emacs@gnu.org; Thu, 04 Jun 2009 20:02:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MCMtX-0005dm-Ho for help-gnu-emacs@gnu.org; Thu, 04 Jun 2009 20:02:56 -0400 Original-Received: from [199.232.76.173] (port=52853 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MCMQM-0006Xf-A4 for help-gnu-emacs@gnu.org; Thu, 04 Jun 2009 19:32:42 -0400 Original-Received: from mail.plantcml.com ([67.151.52.22]:53867 helo=plantcml.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MCKzt-0004SK-VG for help-gnu-emacs@gnu.org; Thu, 04 Jun 2009 18:01:18 -0400 Original-Received: from ([172.16.4.102]) by mail.plantcml.com with ESMTP id 8YS9KF1.4568735; Thu, 04 Jun 2009 14:54:21 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: thread-topic: columns displayed on one line in frame / window Thread-Index: AcnlX/lcYByA4lp4QDS2VijcJ91bWQ== X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-Mailman-Approved-At: Fri, 05 Jun 2009 09:41:21 -0400 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:64964 Archived-At: This is a multi-part message in MIME format. ------_=_NextPart_001_01C9E55F.F8513881 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I have emacs 21.3.1 running on XP SP3. When I evaluate the expression using M-: (Meta-colon), =20 (frame-width) =20 it returns 72. However, if I look at the number of columns I can display before the line wraps, it's actually 80. Isn't frame-width supposed to be the same as the number of columns that can fit on one line? (I'm using a fixed-width font, specifically =20 (set-default-font "-raster-Terminal-bold-r-normal-normal-12-90-96-96-c-*-ms-oemlatin") =20 Likewise, if I set the frame width with =20 (set-frame-width (selected-frame) 72) =20 it sets up the window so that 80 columns fit on one line. What gives? Or is there another function I should use to obtain the number of columns that fit on one line, and likewise, another function to set how many fit on one line? ------_=_NextPart_001_01C9E55F.F8513881 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I have emacs 21.3.1 running on XP SP3.  When I evaluate the expression using M-: = (Meta-colon),

 

    (frame-width)

 

it returns 72.  = However, if I look at the number of columns I can display before the line wraps, it's actually 80.  Isn't = frame-width supposed to be the same as the number of columns that can fit on one line?  (I'm using a fixed-width font, = specifically

 

  (set-default-font "-raster-Terminal-bold-r-normal-normal-12-90-96-96-c-*-ms-oemlatin&q= uot;)

 

Likewise, if I set the frame width with

 

    (set-frame-width (selected-frame) 72)

 

it sets up the window so that 80 columns fit on one line.  What gives?  Or is there another function I should use to obtain the number of columns that fit on one line, and likewise, another function to set how = many fit on one line?

------_=_NextPart_001_01C9E55F.F8513881--