From: Lawrence Mitchell <wence@gmx.li>
To: emacs-pretest-bug@gnu.org
Subject: bug#1073: 23.0.60; Bad interaction between compilation-scroll-output and dedicated windows
Date: Fri, 03 Oct 2008 10:20:21 +0100 [thread overview]
Message-ID: <?fnord?y3h6skre827e.fsf@ID-97657.user.individual.net> (raw)
In GNU Emacs 23.0.60.3 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2008-09-24 on lamacq.ph.ed.ac.uk
Windowing system distributor `The X.Org Foundation', version 11.0.60802000
configured using `configure '-C' '--prefix=/scratch/s0198183/applications/emacs-trunk/' 'CFLAGS=-ggdb3 -O0' '--without-rsvg''
If an Emacs frame is split into multiple windows (two will do) of
which one is dedicated and compilation-scroll-output is t then
`compile' in the non-dedicated window will end up moving point.
Steps to reproduce:
emacs -Q --eval \
'(progn
(split-window-vertically)
(set-window-dedicated-p (selected-window) t)
(switch-to-buffer-other-window "*test*")
(insert initial-scratch-message)
(goto-char (point-min))
(setq compilation-scroll-output t)
(compile "echo \"test\"")
(kill-buffer "*compilation*"))'
Note how point is left at the /end/ of the buffer *test* rather
than the beginning. This appears to be a problem with a mismatch
between what `selected-window' and `current-buffer' return.
When this code in `compilation-start' is executed:
(if (buffer-local-value 'compilation-scroll-output outbuf)
(save-selected-window
(select-window outwin)
(goto-char (point-max))))
outwin is #<window 13 on *compilation*>
and after the select-window call (selected-window) is #<window 13
on *compilation*>. However, at this point (current-buffer)
returns *test*, rather than *compilation*.
Cheers,
Lawrence
--
Lawrence Mitchell <wence@gmx.li>
next reply other threads:[~2008-10-03 9:20 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <48E74069.6000809@gmx.at>
2008-10-03 9:20 ` Lawrence Mitchell [this message]
2008-10-03 12:36 ` bug#1073: 23.0.60; Bad interaction between compilation-scroll-output and dedicated windows martin rudalics
2008-10-03 13:01 ` Lawrence Mitchell
2008-10-03 13:18 ` martin rudalics
2008-10-03 15:48 ` Lawrence Mitchell
2008-10-03 13:18 ` Lennart Borgman (gmail)
2008-10-03 13:42 ` martin rudalics
2008-10-03 13:46 ` Lennart Borgman (gmail)
2008-10-03 14:29 ` martin rudalics
2008-10-03 14:49 ` Lennart Borgman (gmail)
2008-10-05 0:54 ` Stefan Monnier
2008-10-05 18:58 ` martin rudalics
2008-10-04 10:15 ` bug#1073: marked as done (23.0.60; Bad interaction between compilation-scroll-output and dedicated windows) Emacs bug Tracking System
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='?fnord?y3h6skre827e.fsf@ID-97657.user.individual.net' \
--to=wence@gmx.li \
--cc=1073@emacsbugs.donarmstrong.com \
--cc=emacs-pretest-bug@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).