From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: columns displayed on one line in frame / window Date: Fri, 5 Jun 2009 08:40:17 -0700 Message-ID: <8548E7CE4DBE4C96AA496AECB512B41B@us.oracle.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1244218643 27307 80.91.229.12 (5 Jun 2009 16:17:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jun 2009 16:17:23 +0000 (UTC) To: "'Mickey Ferguson'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 05 18:17:20 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 1MCc6Z-00006R-L6 for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Jun 2009 18:17:19 +0200 Original-Received: from localhost ([127.0.0.1]:45281 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MCc6Y-00081x-Nl for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Jun 2009 12:17:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MCc09-0001u0-QI for help-gnu-emacs@gnu.org; Fri, 05 Jun 2009 12:10:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MCc05-0001lD-33 for help-gnu-emacs@gnu.org; Fri, 05 Jun 2009 12:10:41 -0400 Original-Received: from [199.232.76.173] (port=59830 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MCc04-0001ks-Rc for help-gnu-emacs@gnu.org; Fri, 05 Jun 2009 12:10:36 -0400 Original-Received: from acsinet12.oracle.com ([141.146.126.234]:65273) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MCc04-0000F4-4h for help-gnu-emacs@gnu.org; Fri, 05 Jun 2009 12:10:36 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by acsinet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n55G9BuH000468 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 5 Jun 2009 16:09:12 GMT Original-Received: from abhmt001.oracle.com (abhmt001.oracle.com [141.146.116.10]) by acsinet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n55GBVnQ023955; Fri, 5 Jun 2009 16:11:33 GMT Original-Received: from dradamslap1 (/141.144.72.122) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 05 Jun 2009 08:40:18 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Thread-Index: AcnlX/lcYByA4lp4QDS2VijcJ91bWQAkohWQ X-Source-IP: abhmt001.oracle.com [141.146.116.10] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090204.4A294376.034A:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 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:64973 Archived-At: > 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. Are you sure? Go to the character that you think is in column 80 and hit `C-x ='. Does it say that the char is at column 80? If so, and assuming that the characters in question are of the default size for the frame, then please report a bug. However, bugs are no longer being fixed in Emacs 21, so you might want to upgrade to Emacs 22.3 and check that the same problem exists. Most helpful of all would be to install the Emacs 23 pretest and check that. > 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 Yes. But the actual displayed width of a frame can include such things as the fringe, a scroll bar, and frame borders. The available area for text display should, though, be `frame-width' characters wide. If it is not, something is wrong. Which characters? Characters of fixed width and of the `default' face for the frame in question. > 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? Sounds like a bug. When you report it, be sure to give a clear recipe that starts with `emacs -q --no-site-file'. That is, do not test only using your .emacs.