all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: Stephen Berman <stephen.berman@gmx.net>
Cc: 1254@emacsbugs.donarmstrong.com, Markus Triska <markus.triska@gmx.at>
Subject: bug#1254: 23.0.60; linum-mode display problem with variable-pitch font
Date: Mon, 27 Oct 2008 17:58:54 -0400	[thread overview]
Message-ID: <87bpx5g0o1.fsf@cyd.mit.edu> (raw)

> 1. emacs -Q
> 2. C-SPC M-< M-w C-y C-y C-y (copy the *scratch* text so the buffer has
> more than ten lines)
> 3. M-x variable-pitch-mode
> 4. M-x linum-mode
>
> The rightmost digits in the double digit line numbers are partly cut off

Currently, Emacs assumes that the pixel width of the left margin is
simply the width of the left margin, in character glyphs, times the
default width of a glyph in pixels.  This assumption obviously runs into
problems if you display a variable-width font in the left margin.

Fixing this in redisplay is not easy, and at this stage of the release
process I'd prefer not to touch that part of the code.  (For instance,
we can't just let the left margin have an arbitrary pixel width, because
window resizing assumes otherwise.)

I suggest a workaround: make the `linum' face inherit the face
"fixed-pitch".  Markus, WDYT?






             reply	other threads:[~2008-10-27 21:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-27 21:58 Chong Yidong [this message]
2008-10-28 12:30 ` bug#1254: 23.0.60; linum-mode display problem with variable-pitch font Markus Triska
2008-10-28 14:38   ` Stefan Monnier
2008-10-28 17:29     ` Chong Yidong
2008-10-28 17:35       ` Markus Triska
2008-10-28 19:19       ` Stefan Monnier
     [not found]   ` <mailman.2269.1225205413.25473.bug-gnu-emacs@gnu.org>
2008-10-28 15:45     ` Markus Triska
  -- strict thread matches above, loose matches on Subject: below --
2008-10-25 19:33 Stephen Berman

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=87bpx5g0o1.fsf@cyd.mit.edu \
    --to=cyd@stupidchicken.com \
    --cc=1254@emacsbugs.donarmstrong.com \
    --cc=markus.triska@gmx.at \
    --cc=stephen.berman@gmx.net \
    /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.