GNU bug report logs -
#1073
23.0.60; Bad interaction between compilation-scroll-output and dedicated windows
Previous Next
Reported by: Lawrence Mitchell <wence <at> gmx.li>
Date: Fri, 3 Oct 2008 09:30:02 UTC
Severity: normal
Done: martin rudalics <rudalics <at> gmx.at>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
This is an automatic notification regarding your bug report
which was filed against the emacs package:
#1073: 23.0.60; Bad interaction between compilation-scroll-output and dedicated windows
It has been closed by martin rudalics <rudalics <at> gmx.at>.
Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact martin rudalics <rudalics <at> gmx.at> by
replying to this email.
--
1073: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=1073
Emacs Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
I checked in a slightly different fix. Please have a look.
Thanks, martin.
[Message part 3 (message/rfc822, inline)]
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 <at> gmx.li>
This bug report was last modified 16 years and 234 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.