From: David Kastrup <dak@gnu.org>
Subject: xasserts and vertical motion.
Date: Mon, 21 Feb 2005 00:08:58 +0100 [thread overview]
Message-ID: <x5brae6d85.fsf@lola.goethe.zz> (raw)
There are now several xasserts in the vertical motion routines that
are supposed to check for some assumptions about progress made on
display. I strongly recommend taking them out.
a) they are causing frequent aborts in normal editing operations. At
a time where one has to refer people to the trunk Emacs for quite a
bit of functionality that feels somewhat unfortunate.
b) they don't check for _structural_ incoherence (namely that Emacs'
internal data structures are not garbled), but for _visual_
incoherence. But for debugging this one needs information about what
kind of things happen on the screen at the time, and just in what
manner some expectations might get violated. This is much easier to
get when Emacs remains operative and gets a chance to _display_ the
result of the operation instead of committing suicide. After all, one
can then repeat the process and narrow down just what causes it. And
it significantly widens the audience that can help with debugging. It
is much easier to describe what happens on the screen than to pick
apart the data structures in an aborting Emacs (which are not usually
accessible with most compilers and the standard compiler flags for
optimization, anyway).
Those xasserts that replace visual cues with an aborting Emacs do not
just make using Emacs for serious work harder, but they also actively
_hinder_ debugging possibly occuring display problems.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next reply other threads:[~2005-02-20 23:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-20 23:08 David Kastrup [this message]
2005-02-21 9:04 ` xasserts and vertical motion Kim F. Storm
2005-02-22 8:42 ` Richard Stallman
2005-03-01 14:57 ` David Kastrup
2005-03-03 2:27 ` Richard Stallman
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=x5brae6d85.fsf@lola.goethe.zz \
--to=dak@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.