From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#1254: 23.0.60; linum-mode display problem with variable-pitch font Date: Mon, 27 Oct 2008 17:58:54 -0400 Message-ID: <87bpx5g0o1.fsf@cyd.mit.edu> Reply-To: Chong Yidong , 1254@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1225145436 11676 80.91.229.12 (27 Oct 2008 22:10:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Oct 2008 22:10:36 +0000 (UTC) Cc: 1254@emacsbugs.donarmstrong.com, Markus Triska To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 27 23:11:37 2008 connect(): Connection refused Return-path: Envelope-to: geb-bug-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 1KuaJC-0007fG-AO for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Oct 2008 23:11:36 +0100 Original-Received: from localhost ([127.0.0.1]:53500 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KuaI4-0005VV-Cw for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Oct 2008 18:10:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KuaHs-0005LA-9q for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2008 18:10:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KuaHo-0005G5-9J for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2008 18:10:10 -0400 Original-Received: from [199.232.76.173] (port=42295 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KuaHo-0005Fx-4R for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2008 18:10:08 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:49893) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KuaHn-0004VB-J0 for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2008 18:10:08 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9RMA3qR008135; Mon, 27 Oct 2008 15:10:03 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9RM552i007046; Mon, 27 Oct 2008 15:05:05 -0700 X-Loop: don@donarmstrong.com Resent-From: Chong Yidong Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 27 Oct 2008 22:05:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1254 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1254-submit@emacsbugs.donarmstrong.com id=B1254.12251447324935 (code B ref 1254); Mon, 27 Oct 2008 22:05:05 +0000 Original-Received: (at 1254) by emacsbugs.donarmstrong.com; 27 Oct 2008 21:58:52 +0000 Original-Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9RLwnS6004929 for <1254@emacsbugs.donarmstrong.com>; Mon, 27 Oct 2008 14:58:51 -0700 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 9C78357E0B4; Mon, 27 Oct 2008 17:58:54 -0400 (EDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 27 Oct 2008 18:10:10 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:21952 Archived-At: > 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?