all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Mickey Ferguson'" <MFerguson@plantcml.com>, <help-gnu-emacs@gnu.org>
Subject: RE: columns displayed on one line in frame / window
Date: Fri, 5 Jun 2009 08:40:17 -0700	[thread overview]
Message-ID: <8548E7CE4DBE4C96AA496AECB512B41B@us.oracle.com> (raw)
In-Reply-To: <B7C31281351E1646814F4A6E3A15895C059748@costarica.peinet.peinc.com>

> 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.





  reply	other threads:[~2009-06-05 15:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-04 22:01 columns displayed on one line in frame / window Mickey Ferguson
2009-06-05 15:40 ` Drew Adams [this message]
2009-06-05 17:28   ` Mickey Ferguson
2009-06-05 17:48     ` Drew Adams
2009-06-05 20:34   ` Mickey Ferguson
2009-06-05 21:28     ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8548E7CE4DBE4C96AA496AECB512B41B@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=MFerguson@plantcml.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.