all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: yorwba <yorwb4@gmail.com>
Cc: 28346@debbugs.gnu.org
Subject: bug#28346: 24.5; Emacs hangs when terminal becomes smaller than set margin
Date: Mon, 04 Sep 2017 18:32:19 +0300	[thread overview]
Message-ID: <83efrm32f0.fsf@gnu.org> (raw)
In-Reply-To: <0cffd11a-a66d-c872-76e8-af4aaf21c9ca@gmail.com> (message from yorwba on Mon, 4 Sep 2017 17:49:25 +0800)

> From: yorwba <yorwb4@gmail.com>
> Date: Mon, 4 Sep 2017 17:49:25 +0800
> 
> This bug only appears when Emacs is run in a terminal emulator that
> allows changing the window size.
> 
> Steps to reproduce:
> 
> 1. Run `emacs -nw -Q` in a small terminal window
> 2. Evaluate (setq width (window-width (get-buffer-window (current-buffer))))
>    The value is 74 in my case.
> 3. Enlarge the terminal window (I go fullscreen with 150 columns).
> 4. Evaluate (set-window-margins (get-buffer-window (current-buffer)) 0 width)
> 5. Resize the terminal emulator window back to the original size (or smaller).
> 6. The terminal goes blank and no longer reacts to input.
> 
> Attaching gdb and using finish to end all terminating functions, I found that
> it gets stuck in move_it_vertically_backwards (in xdisp.c). It keeps taking
> the goto move_further_back without actually moving further back.
> 
> I believe that this is caused by incorrectly adjusting the margins when the
> total available width changes.

Thanks, but please also show the C backtrace from the place where
Emacs hangs, it's an important part of the problem.





  reply	other threads:[~2017-09-04 15:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-04  9:49 bug#28346: 24.5; Emacs hangs when terminal becomes smaller than set margin yorwba
2017-09-04 15:32 ` Eli Zaretskii [this message]
     [not found]   ` <5211a085-f1ea-5aeb-21e0-1a4143d5ebaf@gmail.com>
2017-09-04 15:46     ` 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=83efrm32f0.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=28346@debbugs.gnu.org \
    --cc=yorwb4@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.