From: Edward Welbourne <eddy@opera.com>
To: rms@gnu.org
Cc: bug-gnu-emacs@gnu.org
Subject: Re: kill-compilation failing when there are several compilation buffers
Date: Tue, 07 Aug 2007 11:13:54 +0200 [thread overview]
Message-ID: <E1IIL8U-0001Ur-8E@whorl> (raw)
In-Reply-To: <E1IG6ut-0005MU-52@fencepost.gnu.org> (message from Richard Stallman on Wed, 01 Aug 2007 01:38:39 -0400)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2103 bytes --]
Hi again,
> C-c C-k ought to kill the current buffer's compilation if you are in a
> compilation buffer. If that doesn't reliably work, but is a bug.
OK, now successfully reproduced: I started two compiles in separate
buffers, inadvertently using the same command in both (forgot to
history-back one of them !) and the command I'd used was the right
command for the buffer I started second, so I went to the one I'd
started first, which was in fact *compilation*, and C-c C-k'd in it;
but the later-started compilation got killed instead.
So this *is* a bug.
> Does this patch fix it?
No. I put your replacement defun into a temp-buffer, removed its !
markers, C-c C-e'd it and set about re-testing in my handy pair of
compile buffers. C-c C-k is now broken: I get <quote>
and: Wrong number of arguments: #[nil "ÀÁ!" [local-variable-p compilation-locs] 2 ("/usr/share/emacs/22.1/lisp/progmodes/compile.elc" . 48467)], 1
</quote> in *Messages* - which is puzzling, given that <quote src="*temp*">
(defun compilation-find-buffer (&optional avoid-current)
"Return a compilation buffer.
If AVOID-CURRENT is nil, and
the current buffer is a compilation buffer, return it.
If AVOID-CURRENT is non-nil, return the current buffer
only as a last resort."
(if (and (compilation-buffer-internal-p (current-buffer))
(not avoid-current))
(current-buffer)
(next-error-find-buffer avoid-current 'compilation-buffer-internal-p)))
</quote> the changed code quite plainly supplies (and CONDITIONS ...)
with two arguments, compatible with what C-h f says about it. Then
again, I don't understand anything the error message says after the
second :
gah - rmail wants to know what coding system to use, so I guess it's
about to mangle that *Message* line. It currently says:
and: Wrong number of arguments: #[nil "\300\301!\207" [local-variable-p compilation-locs] 2 ("/usr/share/emacs/22.1/lisp/progmodes/compile.elc" . 48467)], 1
except that the three escapes in "\300\301!\207" are actually single
characters, not the escape sequence as which they display (in blue).
Eddy.
next prev parent reply other threads:[~2007-08-07 9:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-31 18:25 kill-compilation failing when there are several compilation buffers Edward Welbourne
2007-08-01 5:38 ` Richard Stallman
2007-08-01 7:44 ` Edward Welbourne
2007-08-07 9:13 ` Edward Welbourne [this message]
2007-08-07 9:30 ` Edward Welbourne
2007-08-07 20:12 ` Richard Stallman
[not found] ` <mailman.4188.1185946583.32220.bug-gnu-emacs@gnu.org>
[not found] ` <jwvodhr2kc7.fsf-monnier+gnu.emacs.bug@gnu.org>
2007-08-01 19:43 ` Juri Linkov
2007-08-02 15:36 ` Stefan Monnier
2007-08-02 16:17 ` next-error-find-buffer (was: kill-compilation failing when there are several compilation buffers) Stefan Monnier
2007-08-02 20:45 ` next-error-find-buffer Ted Zlatanov
2007-08-03 3:38 ` next-error-find-buffer (was: kill-compilation failing when there are several compilation buffers) Richard Stallman
2007-08-03 18:19 ` next-error-find-buffer Juri Linkov
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=E1IIL8U-0001Ur-8E@whorl \
--to=eddy@opera.com \
--cc=bug-gnu-emacs@gnu.org \
--cc=rms@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.