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: 9006@debbugs.gnu.org, stephen.berman@gmx.net
Subject: bug#9006: 24.0.50; Abort in unshow_buffer/kill-buffer
Date: Sun, 10 Jul 2011 10:59:53 +0200	[thread overview]
Message-ID: <4E196A09.1090303@gmx.at> (raw)
In-Reply-To: <83box3nywx.fsf@gnu.org>

 > How is vertical-motion relevant to the user typing C-g?

I suppose because `vertical-motion' can do all sorts of nasty things,
probably during fontification or scanning pbm images ...

 > And why does this code normally works, if it is wrong?  What am I
 > missing?

Which code?  The tabbar code "normally works" because it's not
interrupted by C-g.  `vertical-motion' "normally works" because it works
on the buffer shown in the selected window.  In the present case we (1)
temporarily show another buffer in the selected window and (2) interrupt
its execution in a state where that other buffer is still shown in that
window.

 >> Allowing to kill a temporary buffer while it's shown in a window just to
 >> calculate how far `vertical-motion' would go if the buffer were shown in
 >> a window is asking for trouble.
 >
 > I don't understand how come vertical-motion ended up calling Lisp, as
 > this Lisp backtrace shows:
 >
 >> Lisp Backtrace:
 >> "set-window-buffer" (0xbfff66d4)
 >> "set-window-buffer-start-and-point" (0xbfff6854)
 >> "byte-code" (0xbfff6964)
 >> "switch-to-prev-buffer" (0xbfff6c54)
 >> "replace-buffer-in-windows" (0xbfff6dec)
 >> "kill-buffer" (0xbfff6eb4)
 >> "and" (0xbfff6fa8)
 >> "vertical-motion" (0xbfff7d24)
 >
 > And why does that Lisp code call kill-buffer?

I suppose it's, as Stephen pointed out, that after `vertical-motion'
exited forcefully, exiting `with-temp-buffer' tries to find another
buffer to show in that window.  Obviously, this should not happen
because `vertical-motion' should have cleaned up its state before ...

martin





      reply	other threads:[~2011-07-10  8:59 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-05 23:20 bug#9006: 24.0.50; Abort in unshow_buffer/kill-buffer Stephen Berman
2011-07-06  9:25 ` martin rudalics
2011-07-06 19:19   ` Stephen Berman
2011-07-07  8:23     ` martin rudalics
2011-07-07  9:32       ` Stephen Berman
2011-07-07 15:47         ` martin rudalics
2011-07-08 23:03           ` Stephen Berman
2011-07-09  8:44             ` martin rudalics
2011-07-09 11:57               ` Stephen Berman
2011-07-09 13:01                 ` martin rudalics
2011-07-09 16:27                   ` Stephen Berman
2011-07-09 16:54                     ` Stephen Berman
2011-07-10  8:59                       ` martin rudalics
2011-07-10 10:25                         ` Stephen Berman
2011-07-10 13:30                           ` martin rudalics
2011-07-10 20:31                             ` Stephen Berman
2011-07-11 19:14                               ` martin rudalics
2011-07-11 20:04                                 ` Stephen Berman
2011-07-12  8:36                                   ` martin rudalics
2011-07-12  8:51                                     ` Stephen Berman
2011-07-13  6:53                                     ` Stephen Berman
2011-07-13  7:24                                       ` Eli Zaretskii
2011-07-13  8:00                                         ` Stephen Berman
2011-07-13 10:03                                           ` Eli Zaretskii
2011-07-13 11:40                                             ` Stephen Berman
2011-07-13  8:37                                       ` martin rudalics
2011-07-13 10:05                                         ` Eli Zaretskii
2011-07-13 11:54                                           ` martin rudalics
2011-07-13 12:20                                             ` Stephen Berman
2011-07-13 11:39                                         ` Stephen Berman
2011-07-14  8:35                                       ` martin rudalics
2011-07-15 21:05                                         ` Stephen Berman
2011-07-10  8:58                     ` martin rudalics
2011-07-09 12:44               ` Stephen Berman
2011-07-09 13:01                 ` martin rudalics
2011-07-09 17:31               ` Eli Zaretskii
2011-07-10  8:59                 ` martin rudalics [this message]

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=4E196A09.1090303@gmx.at \
    --to=rudalics@gmx.at \
    --cc=9006@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=stephen.berman@gmx.net \
    /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.