From: Eli Zaretskii <eliz@gnu.org>
To: Constantine Vetoshev <vetoshev@gmail.com>
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: Sat, 04 Oct 2014 10:08:44 +0300 [thread overview]
Message-ID: <83vbo0gvlv.fsf@gnu.org> (raw)
In-Reply-To: <CA+CaSqpE81g9ZDPovffC51YUX+BdggtcjboGOs0i9WwptKLDNg@mail.gmail.com>
> From: Constantine Vetoshev <vetoshev@gmail.com>
> Date: Fri, 3 Oct 2014 13:53:03 -0700
> Cc: martin rudalics <rudalics@gmx.at>, 18601@debbugs.gnu.org
>
> On Fri, Oct 3, 2014 at 11:36 AM, Eli Zaretskii <eliz@gnu.org> wrote:
> > I think you should correct term-window-width to subtract 1 from the
> > width when any fringe has zero width, not just the right fringe.
>
> I think I understand. How about this?
>
> (defun term-window-width ()
> (if (and (not (featurep ‘xemacs))
> (display-graphic-p)
> overflow-newline-into-fringe
> (/= (frame-parameter nil ‘right-fringe) 0)
> (/= (frame-parameter nil ‘left-fringe) 0))
> (window-body-width)
> (1- (window-body-width))))
>
> That does make the problem go away.
That's what I meant, yes.
next prev parent reply other threads:[~2014-10-04 7:08 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
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 [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83vbo0gvlv.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=18601@debbugs.gnu.org \
--cc=vetoshev@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.