GNU bug report logs -
#12034
24.1.50; pp-display-expression may select deleted window
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12034 in the body.
You can then email your comments to 12034 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12034
; Package
emacs
.
(Mon, 23 Jul 2012 14:12:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Christopher Schmidt <christopher <at> ch.ristopher.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 23 Jul 2012 14:12:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
In pp-display-expression there is this sexp:
(let ((temp-buffer-show-function old-show-function)
(old-selected (selected-window))
(window (display-buffer buf)))
^^^^^^^^^^^^^^^^^^^^
(goto-char (point-min)) ; expected by some hooks ...
(make-frame-visible (window-frame window))
(unwind-protect
(progn
(select-window window)
(run-hooks 'temp-buffer-show-hook))
(select-window old-selected)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(message "See buffer %s." out-buffer-name)))
An user may implement an overriding action for display-buffer that could
delete old-selected.
[pp-display-expression.diff (text/x-diff, inline)]
=== modified file 'lisp/ChangeLog'
--- lisp/ChangeLog 2012-07-22 21:14:12 +0000
+++ lisp/ChangeLog 2012-07-23 12:49:21 +0000
@@ -1,3 +1,8 @@
+2012-07-23 Christopher Schmidt <christopher <at> ch.ristopher.com>
+
+ * emacs-lisp/pp.el (pp-display-expression): Select old selected
+ window only if it is still live (Bug#).
+
2012-07-22 Vincent Belaïche <vincentb1 <at> users.sourceforge.net>
* ses.el (ses-cell-formula-aset): New macro.
=== modified file 'lisp/emacs-lisp/pp.el'
--- lisp/emacs-lisp/pp.el 2012-02-05 02:09:35 +0000
+++ lisp/emacs-lisp/pp.el 2012-07-23 12:44:07 +0000
@@ -110,7 +110,8 @@
(progn
(select-window window)
(run-hooks 'temp-buffer-show-hook))
- (select-window old-selected)
+ (when (window-live-p old-selected)
+ (select-window old-selected))
(message "See buffer %s." out-buffer-name)))
(message "%s" (buffer-substring (point-min) (point)))
))))))
[Message part 3 (text/plain, inline)]
Christopher
Reply sent
to
martin rudalics <rudalics <at> gmx.at>
:
You have taken responsibility.
(Wed, 25 Jul 2012 09:55:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Christopher Schmidt <christopher <at> ch.ristopher.com>
:
bug acknowledged by developer.
(Wed, 25 Jul 2012 09:55:01 GMT)
Full text and
rfc822 format available.
Message #10 received at 12034-done <at> debbugs.gnu.org (full text, mbox):
> In pp-display-expression there is this sexp:
>
> (let ((temp-buffer-show-function old-show-function)
> (old-selected (selected-window))
> (window (display-buffer buf)))
> ^^^^^^^^^^^^^^^^^^^^
> (goto-char (point-min)) ; expected by some hooks ...
> (make-frame-visible (window-frame window))
> (unwind-protect
> (progn
> (select-window window)
> (run-hooks 'temp-buffer-show-hook))
> (select-window old-selected)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> (message "See buffer %s." out-buffer-name)))
>
> An user may implement an overriding action for display-buffer that could
> delete old-selected.
Patch applied, bug closed.
Thanks, martin
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 22 Aug 2012 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 22 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.