unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Constantine Vetoshev <vetoshev@gmail.com>
To: martin rudalics <rudalics@gmx.at>
Cc: 18601@debbugs.gnu.org
Subject: bug#18601: 24.3.94; set-fringe-mode with left fringe 0 breaks window width calculations on Mac OS
Date: Thu, 2 Oct 2014 12:22:51 -0700	[thread overview]
Message-ID: <CA+CaSqpxUmJptv2fpLbDN3fLR5QKGx5zVxwYoZFcbjYGiodccQ@mail.gmail.com> (raw)
In-Reply-To: <542D9D0F.5020002@gmx.at>

[-- Attachment #1: Type: text/plain, Size: 2555 bytes --]

On Thu, Oct 2, 2014 at 11:44 AM, martin rudalics <rudalics@gmx.at> wrote:
> Did it work after #16470 was fixed?

Yes. There was no problem after #16470 was fixed. Nor was there a
problem in the last pretest, 24.3.93. The problem appeared after I
installed 24.3.94.

> Please post the results of `window--dump-frame' for both the (0 . 2) and
> the (1 . 2) fringes frame.  I suppose the frame has only one window.

Yes, there is only one window and one frame. Running with -Q.

After (set-fringe-mode '(0 . 2)), executing (window--dump-frame) puts
the following contents into *window-frame-dump*:

frame pixel: 600 x 494   cols/lines: 86 x 35   units: 7 x 14
frame text pixel: 574 x 490   cols/lines: 82 x 35
tool: 0  scroll: 15  fringe: 7  border: 2  right: 0  bottom: 0

#<window 3 on *scratch*>   parent: nil
pixel left: 0   top: 0   size: 596 x 476   new: 238
char left: 0   top: 0   size: 85 x 34   new: 17
normal: 1.0 x 1.0   new: 0.5
body pixel: 574 x 462   char: 82 x 33
width left fringe: 0  left margin: 0  right margin: 0
width right fringe: 7  scroll-bar: 15  divider: 0
height header-line: 0  mode-line: 14  divider: 0

#<window 4 on  *Minibuf-0*>   parent: nil
pixel left: 0   top: 476   size: 596 x 14   new: 0
char left: 0   top: 34   size: 596 x 1   new: 1
normal: 1.0 x 1.0   new: 0
body pixel: 574 x 14   char: 82 x 1
width left fringe: 0  left margin: 0  right margin: 0
width right fringe: 7  scroll-bar: 15  divider: 0
height header-line: 0  mode-line: 0  divider: 0

After (set-fringe-mode '(1 . 2)), executing (window--dump-frame) puts
the following contents into *window-frame-dump*:

frame pixel: 600 x 494   cols/lines: 86 x 35   units: 7 x 14
frame text pixel: 574 x 490   cols/lines: 82 x 35
tool: 0  scroll: 15  fringe: 7  border: 2  right: 0  bottom: 0

#<window 3 on *scratch*>   parent: nil
pixel left: 0   top: 0   size: 596 x 476   new: 238
char left: 0   top: 0   size: 85 x 34   new: 17
normal: 1.0 x 1.0   new: 0.5
body pixel: 574 x 462   char: 82 x 33
width left fringe: 3  left margin: 0  right margin: 0
width right fringe: 4  scroll-bar: 15  divider: 0
height header-line: 0  mode-line: 14  divider: 0

#<window 4 on  *Minibuf-0*>   parent: nil
pixel left: 0   top: 476   size: 596 x 14   new: 0
char left: 0   top: 34   size: 596 x 1   new: 1
normal: 1.0 x 1.0   new: 0
body pixel: 574 x 14   char: 82 x 1
width left fringe: 3  left margin: 0  right margin: 0
width right fringe: 4  scroll-bar: 15  divider: 0
height header-line: 0  mode-line: 0  divider: 0

I'm attaching two screenshots which show what happens.

[-- Attachment #2: fringe-0-bad-output.png --]
[-- Type: image/png, Size: 44285 bytes --]

[-- Attachment #3: fringe-1-good-output.png --]
[-- Type: image/png, Size: 44234 bytes --]

  reply	other threads:[~2014-10-02 19:22 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-02  8:38 bug#18601: 24.3.94; set-fringe-mode with left fringe 0 breaks window width calculations on Mac OS Constantine Vetoshev
2014-10-02 18:44 ` martin rudalics
2014-10-02 19:22   ` Constantine Vetoshev [this message]
2014-10-02 19:51     ` Eli Zaretskii
2014-10-02 20:37       ` martin rudalics
2014-10-03  6:19         ` Eli Zaretskii
2014-10-03  6:55           ` martin rudalics
2014-10-03  6:54     ` martin rudalics
2014-10-03 17:55       ` Constantine Vetoshev
2014-10-03 18:36         ` Eli Zaretskii
2014-10-03 20:53           ` Constantine Vetoshev
2014-10-04  7:08             ` Eli Zaretskii
2014-10-04 17:45               ` Constantine Vetoshev
2014-10-04 18:49                 ` Eli Zaretskii
2014-10-04 20:48                   ` Constantine Vetoshev
2014-10-06  6:49                     ` martin rudalics
2014-10-06 15:10                       ` 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=CA+CaSqpxUmJptv2fpLbDN3fLR5QKGx5zVxwYoZFcbjYGiodccQ@mail.gmail.com \
    --to=vetoshev@gmail.com \
    --cc=18601@debbugs.gnu.org \
    --cc=rudalics@gmx.at \
    /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).