From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#6933: 24.0.50; fringe-mode value of `half' is broken Date: Sat, 28 Aug 2010 11:45:36 +0300 Message-ID: <83r5hjktvz.fsf@gnu.org> References: <97A7C2F12C894D59986BE445D664437A@us.oracle.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1282986580 13724 80.91.229.12 (28 Aug 2010 09:09:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 28 Aug 2010 09:09:40 +0000 (UTC) Cc: 6933@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 28 11:09:39 2010 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.69) (envelope-from ) id 1OpHPu-0007hw-Il for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Aug 2010 11:09:38 +0200 Original-Received: from localhost ([127.0.0.1]:39922 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OpHPt-0000dE-MC for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Aug 2010 05:09:37 -0400 Original-Received: from [140.186.70.92] (port=50741 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OpHPn-0000d4-Up for bug-gnu-emacs@gnu.org; Sat, 28 Aug 2010 05:09:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OpHPm-0005kD-KY for bug-gnu-emacs@gnu.org; Sat, 28 Aug 2010 05:09:31 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41556) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OpHPm-0005k7-Hs for bug-gnu-emacs@gnu.org; Sat, 28 Aug 2010 05:09:30 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OpH09-0006bu-UK; Sat, 28 Aug 2010 04:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Aug 2010 08:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6933 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6933-submit@debbugs.gnu.org id=B6933.128298496825402 (code B ref 6933); Sat, 28 Aug 2010 08:43:01 +0000 Original-Received: (at 6933) by debbugs.gnu.org; 28 Aug 2010 08:42:48 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OpGzv-0006bf-Q0 for submit@debbugs.gnu.org; Sat, 28 Aug 2010 04:42:47 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OpGzs-0006ba-LY for 6933@debbugs.gnu.org; Sat, 28 Aug 2010 04:42:46 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0L7U00L00SK3EG00@a-mtaout20.012.net.il> for 6933@debbugs.gnu.org; Sat, 28 Aug 2010 11:43:36 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.127.93.239]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L7U00LRPTKL9G50@a-mtaout20.012.net.il>; Sat, 28 Aug 2010 11:43:34 +0300 (IDT) In-reply-to: <97A7C2F12C894D59986BE445D664437A@us.oracle.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 28 Aug 2010 04:43:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org 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:39797 Archived-At: > From: "Drew Adams" > Date: Fri, 27 Aug 2010 17:16:26 -0700 > > emacs -Q > > M-x fringe-mode > Enter `half'. > > The fringe values (both left and right) should each be 5, according to > the code and comments. Instead, it is still 8, as shown by > (frame-parameters). There is no difference in behavior between `half' > and `default'. Dunno whether this is Windows-specific. This happens because fringe.el has this customization form for "half" in the defcustom for fringe-mode: (const :tag "Half width" (5 . 5)) And the doc string for fringe-mode says this, among the rest: This command may round up the left and right width specifications to ensure that their sum is a multiple of the character width of a frame. So 5 is rounded up to 8, and the rest is history. I don't know why the values are 5 instead of 4. The default fringe width is 8 on all GUI displays, so half of that should have been 4, not 5. Maybe I'm missing some subtlety here. Can someone please check on X whether (fringe-mode '(4 . 4)) does TRT? If it does, I think we should use 4 instead of 5 in the above defcustom.