unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 6933@debbugs.gnu.org
Subject: bug#6933: 24.0.50; fringe-mode value of `half' is broken
Date: Sat, 28 Aug 2010 11:45:36 +0300	[thread overview]
Message-ID: <83r5hjktvz.fsf@gnu.org> (raw)
In-Reply-To: <97A7C2F12C894D59986BE445D664437A@us.oracle.com>

> From: "Drew Adams" <drew.adams@oracle.com>
> 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.





  reply	other threads:[~2010-08-28  8:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-28  0:16 bug#6933: 24.0.50; fringe-mode value of `half' is broken Drew Adams
2010-08-28  8:45 ` Eli Zaretskii [this message]
2010-08-28 15:15   ` Drew Adams
2010-09-04 18:34   ` Chong Yidong
2010-09-17 21:14     ` Eli Zaretskii
     [not found]       ` <6CD1E6A595C84B3FA8C2AFE4EAC376BE@us.oracle.com>
2010-09-18  9:49         ` Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=83r5hjktvz.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=6933@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).