unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Alan Third <alan@idiocy.org>
Cc: ja.nguyen@gmail.com, 23755@debbugs.gnu.org
Subject: bug#23755: 25.0.95; Emacs 25.0.95 Line number is in fringe
Date: Fri, 17 Jun 2016 23:14:24 +0300	[thread overview]
Message-ID: <83lh23bmjj.fsf@gnu.org> (raw)
In-Reply-To: <20160617174134.GA68643@breton.holly.idiocy.org> (message from Alan Third on Fri, 17 Jun 2016 18:41:34 +0100)

> Date: Fri, 17 Jun 2016 18:41:34 +0100
> From: Alan Third <alan@idiocy.org>
> Cc: James Nguyen <ja.nguyen@gmail.com>, 23755@debbugs.gnu.org
> 
> >   emacs -Q
> >   (add-to-list 'load-path "/path/to/smart-mode-line-master")
> >   (load-library "smart-mode-line")
> >   (sml/setup)
> >   (dolist (sym '(mode-line mode-line-inactive))
> >         (set-face-attribute
> >          sym nil
> >          :box `(:line-width 2 :color ,(face-attribute `,sym :background))))
> > 
> > I see no display problems in the mode line after the above.
> 
> I just tried this on the NS port and it leaves stuff behind.

Then I guess it's either NS-specific or specific to the fonts you are
using.

> Aside from that, the digits seem to be placed wrongly. Sometimes
> they're fine, other times they're all wonky. I've attached a
> screenshot where it's displaying 404, but it looks like the 0 is too
> far left, and the second 4 is cut off, and another screenshot after I
> paged down and you can still see the left edge of the zero.

So what, the NS port cannot even display text correctly?

> I don't know how to tell what font it is, but I suspect it's
> variable-width and Emacs doesn't notice when they change size.

That cannot be true in general, since Emacs displays variable-pitch
fonts correctly since v21.1.

> For example, the misplaced 0 in 404 occurs after scrolling from a
> number starting with 3, and the 3 appears to be narrower than the
> 4. The second digit doesn't move right to compensate for the larger
> first digit.

That can only happen if the font lies to Emacs about the dimensions of
the character glyphs.

> Changing line-width to 1 in your code fixes it.

Which means the font does NOT lie, and thus the fact that some
characters are narrower than others is NOT the reason.





  parent reply	other threads:[~2016-06-17 20:14 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-12 17:19 bug#23755: 25.0.95; Emacs 25.0.95 Line number is in fringe ja.nguyen
2016-06-12 17:48 ` Eli Zaretskii
     [not found]   ` <6D7D3844-4E4A-4341-8F9C-DE18481480F5@gmail.com>
2016-06-12 19:53     ` Eli Zaretskii
2016-06-12 21:50       ` Alan Third
2016-06-12 22:03         ` James Nguyen
2016-06-13  4:00         ` Eli Zaretskii
2016-06-13  4:01           ` James Nguyen
2016-06-13 13:48             ` Eli Zaretskii
2016-06-16 15:17               ` Eli Zaretskii
2016-06-16 15:30                 ` James Nguyen
2016-06-17  5:50                 ` James Nguyen
2016-06-17  7:21                   ` Eli Zaretskii
2016-06-17 13:15                     ` James Nguyen
2016-06-17 17:41                     ` Alan Third
2016-06-17 17:48                       ` James Nguyen
2016-06-17 17:58                         ` Alan Third
2016-06-17 19:56                           ` James Nguyen
2016-06-17 20:16                             ` Eli Zaretskii
2016-06-17 23:17                               ` bug#23755: [PATCH] Move text line right when in box (bug#23755) Alan Third
2016-06-18  8:22                                 ` Eli Zaretskii
2016-06-26  0:34                                   ` Alan Third
2016-06-17 20:14                       ` Eli Zaretskii [this message]
2016-06-13  7:18           ` bug#23755: 25.0.95; Emacs 25.0.95 Line number is in fringe Alan Third
2016-06-13 13:50             ` 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=83lh23bmjj.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=23755@debbugs.gnu.org \
    --cc=alan@idiocy.org \
    --cc=ja.nguyen@gmail.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).