all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 38966@debbugs.gnu.org
Subject: bug#38966: 27.0.60; Assertion failure in set_cursor_from_row
Date: Tue, 7 Jan 2020 18:38:54 +0100	[thread overview]
Message-ID: <4bd36f48-089a-df2a-4860-1c50a5a6815e@gmx.at> (raw)
In-Reply-To: <83o8vfcl30.fsf@gnu.org>

 > I thought we were talking about windows with zero lines of text.  One
 > text line is fine, and should not cause any trouble to the current
 > display code.  When testing my patch, I used your code to resized the
 > window to a single 1-pixel high line of text, and saw no problems,
 > including with displaying the cursor.

We are miscommunicating here.  In your previous post you said that

 > >  > I don't expect to have a window that has no lines showing text.  I
 > >  > believe we don't allow creation/resizing of windows to such a small
 > >  > size?  If that's not guaranteed, I'm okay with adding an assertion
 > >  > somewhere, but that would be a separate problem: we never expected
 > >  > such a calamity even before tab-lines were added.
 > >
 > > We did.
 >
 > OK, let me rephrase: _I_ didn't, okay?  IOW, the display code doesn't,
 > and AFAIR never did.
 >
 > (For some reason I seem to make people angry today, and you seem to be
 > one of them.  Apologies -- I don't know for what.)

With my test-popup-2 code you can make the lower window one line high,
hit F2 and get a window without text and cursor.  Which means that the
display code (inadvertently maybe) already does produce and handle
windows with zero lines of text.  I still don't understand why you
thought I was angry when I reported that behavior.

 > I think we should keep that assertion as long as we don't make the
 > code DTRT with such text-less windows.  That assertion only affects
 > developers anyway.  The right time for removing the assertion is when
 > we modify the code to support windows with no text rows.

Agreed.

martin





  reply	other threads:[~2020-01-07 17:38 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-06  9:19 bug#38966: 27.0.60; Assertion failure in set_cursor_from_row martin rudalics
2020-01-06 17:14 ` Eli Zaretskii
2020-01-06 19:06   ` martin rudalics
2020-01-06 19:50     ` Eli Zaretskii
2020-01-07  9:52       ` martin rudalics
2020-01-07 16:01         ` Eli Zaretskii
2020-01-07 17:38           ` martin rudalics [this message]
2020-01-07 17:48             ` Eli Zaretskii
2020-01-07 18:23               ` martin rudalics
2020-01-07 18:36                 ` Eli Zaretskii
2020-01-07 18:58                   ` martin rudalics
2020-01-07 19:06                     ` 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=4bd36f48-089a-df2a-4860-1c50a5a6815e@gmx.at \
    --to=rudalics@gmx.at \
    --cc=38966@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /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.