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: Tue, 28 Oct 2008 13:29:25 -0400 Message-ID: <87d4hk4oi2.fsf@cyd.mit.edu> References: <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 1225216229 31833 80.91.229.12 (28 Oct 2008 17:50:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Oct 2008 17:50:29 +0000 (UTC) Cc: 1254@emacsbugs.donarmstrong.com, Stephen Berman , Markus Triska To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 28 18:51:30 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 1Kusj4-0003Em-2L for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Oct 2008 18:51:30 +0100 Original-Received: from localhost ([127.0.0.1]:40102 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kushx-0003H5-Ua for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Oct 2008 13:50:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kushl-0003By-CJ for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2008 13:50:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kushj-0003BV-Te for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2008 13:50:08 -0400 Original-Received: from [199.232.76.173] (port=52007 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kushj-0003BE-EL for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2008 13:50:07 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:44111) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kushi-000730-TD for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2008 13:50:07 -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 m9SHo3w2008404; Tue, 28 Oct 2008 10:50:04 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9SHZ2wP004828; Tue, 28 Oct 2008 10:35:02 -0700 X-Loop: don@donarmstrong.com Resent-From: Chong Yidong Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 28 Oct 2008 17:35:02 +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.12252149633599 (code B ref 1254); Tue, 28 Oct 2008 17:35:02 +0000 Original-Received: (at 1254) by emacsbugs.donarmstrong.com; 28 Oct 2008 17:29:23 +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 m9SHTKaT003593 for <1254@emacsbugs.donarmstrong.com>; Tue, 28 Oct 2008 10:29:21 -0700 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 862BA57E0B2; Tue, 28 Oct 2008 13:29:25 -0400 (EDT) In-Reply-To: (Stefan Monnier's message of "Tue, 28 Oct 2008 10:38:19 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 28 Oct 2008 13:50:08 -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:21977 Archived-At: Stefan Monnier writes: >> I cannot reproduce the problem with X11 on OSX and thus cannot test >> this. Would it work to interpret the margin width in terms of the >> broadest glyph in a font, so other packages would benefit too? > > Not only that's not really possible with the current code's limitations, > but it would also be a bad idea: in most fonts the widest glyph is > pretty hideously wide, so you'd end up with margins that are much > too wide. I looked at this some more. Apparently, the workaround of making the linum face fixed pitch doesn't work, because the margin width always uses the default glyph width. Apparently, the default glyph width is too narrow when using some variable-pitch fonts (in my case, DejaVu Sans). I don't know any completely satisfactory way to resolve this. One possible workaround is for linume.el to provide an option to add an extra column to the margin width.