From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 08 10:04:28 2012 Received: (at submit) by debbugs.gnu.org; 8 Jun 2012 14:04:28 +0000 Received: from localhost ([127.0.0.1]:35081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Scznf-0001va-NG for submit@debbugs.gnu.org; Fri, 08 Jun 2012 10:04:28 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41173) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ScznK-0001uh-4q for submit@debbugs.gnu.org; Fri, 08 Jun 2012 10:04:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sczkq-000083-HV for submit@debbugs.gnu.org; Fri, 08 Jun 2012 10:01:41 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:46314) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sczkq-00007p-Eo for submit@debbugs.gnu.org; Fri, 08 Jun 2012 10:01:32 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sczkg-000689-8C for bug-gnu-emacs@gnu.org; Fri, 08 Jun 2012 10:01:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SczkV-0008Ru-7u for bug-gnu-emacs@gnu.org; Fri, 08 Jun 2012 10:01:21 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:13152) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SczkV-0008OA-0a for bug-gnu-emacs@gnu.org; Fri, 08 Jun 2012 10:01:11 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArMGAG6Zu09MCpw9/2dsb2JhbABEojIBkV6BCIJyEwFLDwQhARwNVYdwmFKhN4shggeDHAOjM4FYgwWBQw X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="190633602" Received: from 76-10-156-61.dsl.teksavvy.com (HELO pastel.home) ([76.10.156.61]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 08 Jun 2012 10:01:08 -0400 Received: by pastel.home (Postfix, from userid 20848) id CE788599D1; Fri, 8 Jun 2012 10:01:07 -0400 (EDT) From: Stefan Monnier To: bug-gnu-emacs@gnu.org Subject: Special display is not dedicated any more Date: Fri, 08 Jun 2012 10:01:07 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) Package: Emacs Version: 24.1.50 Something's wrong with the way the `dedicated' bit is set: % src/emacs -Q --eval '(setq special-display-regexps (quote ("\\*.*\\*")))' C-h v values RET M-: (window-dedicated-p nil) RET q The M-: shows that the window is not marked dedicated as it should. And the `q' shows the consequence: rather than hiding the frame, Emacs switches to some other buffer. This was probably introduced in the last couple weeks. Stefan In GNU Emacs 24.1.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of 2012-06-08 on pastel Bzr revision: 99998 monnier@iro.umontreal.ca-20120608062034-qwjto7k7pguuvj53 Windowing system distributor `The X.Org Foundation', version 11.0.11201902 Configured using: `configure 'CFLAGS=-Wall -Wno-pointer-sign -DUSE_LISP_UNION_TYPE -DSYNC_INPUT -DENABLE_CHECKING -DXASSERTS -DFONTSET_DEBUG -g -O0' '--with-tiff=no'' Important settings: value of $LANG: fr_CH.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: InactiveMinibuffer Minor modes in effect: electric-pair-mode: t electric-indent-mode: t url-handler-mode: t global-reveal-mode: t reveal-mode: t auto-insert-mode: t savehist-mode: t minibuffer-electric-default-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: (only . t) Recent input: C-e C-e M-x r e p o - e m Recent messages: Starting new Ispell process [/usr/bin/aspell::american] ... For information about GNU Emacs and the GNU system, type C-h C-a. [2 times] nil Loading vc-bzr...done Followed link to /home/monnier/share/etc/emacs/X11.el Loading cl-indent...done Package cust-print is obsolete! Mark saved where search started delete-backward-char: Text is read-only Load-path shadows: None found. Features: (sort mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils multi-isearch xscheme trace testcover scheme unsafep re-builder shadow inf-lisp ielm pp comint ansi-color ring gmm-utils ert find-func ewoc debug elp edebug cust-print cus-edit cus-start cus-load wid-edit vc-bzr filecache server noutline outline easy-mmode flyspell ispell eldoc checkdoc thingatpt help-mode view prog-mode load-dir electric url-handlers url-parse auth-source warnings eieio byte-opt bytecomp byte-compile cconv gnus-util mm-util mail-prsvr password-cache url-vars reveal autoinsert uniquify advice help-fns advice-preload time-date savehist minibuf-eldef disp-table adaptive-wrap-autoloads all-autoloads company-autoloads csv-mode-autoloads debbugs-autoloads djvu-autoloads ediprolog-autoloads eldoc-eval-autoloads epoch-view-autoloads f90-interface-browser-autoloads ioccur-autoloads jgraph-mode-autoloads js2-mode-autoloads lmc-autoloads load-dir-autoloads markchars-autoloads memory-usage-autoloads minimap-autoloads muse-autoloads info easymenu oauth2-autoloads quarter-plane-autoloads rainbow-mode-autoloads register-list-autoloads shen-mode-autoloads sisu-mode-autoloads svg-clock-autoloads undo-tree-autoloads uni-confusables-autoloads windresize-autoloads xclip-autoloads package proof-site proof-autoloads cl-macs cl cl-lib cl-loaddefs pg-vars bbdb-autoloads agda2 tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe macroexp tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 08 14:20:51 2012 Received: (at 11651) by debbugs.gnu.org; 8 Jun 2012 18:20:51 +0000 Received: from localhost ([127.0.0.1]:35313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sd3nm-0007jm-Nx for submit@debbugs.gnu.org; Fri, 08 Jun 2012 14:20:50 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:33978) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1Sd3nk-0007jc-4F for 11651@debbugs.gnu.org; Fri, 08 Jun 2012 14:20:49 -0400 Received: (qmail invoked by alias); 08 Jun 2012 18:18:26 -0000 Received: from 62-47-37-248.adsl.highway.telekom.at (EHLO [62.47.37.248]) [62.47.37.248] by mail.gmx.net (mp024) with SMTP; 08 Jun 2012 20:18:26 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19Eoq98+X9EslpPG45elESPyccxXybNsN2oKSUBCj kd0BGPqSGxmD+A Message-ID: <4FD241EB.70306@gmx.at> Date: Fri, 08 Jun 2012 20:18:19 +0200 From: martin rudalics MIME-Version: 1.0 To: Stefan Monnier Subject: Re: bug#11651: Special display is not dedicated any more References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11651 Cc: 11651@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > Something's wrong with the way the `dedicated' bit is set: > > % src/emacs -Q --eval '(setq special-display-regexps (quote ("\\*.*\\*")))' > C-h v values RET > M-: (window-dedicated-p nil) RET > q > > The M-: shows that the window is not marked dedicated as it should. > And the `q' shows the consequence: rather than hiding the frame, Emacs > switches to some other buffer. > > This was probably introduced in the last couple weeks. Indeed. I was fooled by a comment in `special-display-popup-frame'. The old code had (let* ((frame (with-current-buffer buffer (make-frame (append args special-display-frame-alist)))) (window (frame-selected-window frame))) (display-buffer-record-window 'frame window buffer) ;; FIXME: Use window--display-buffer-2? (set-window-buffer window buffer) ;; Reset list of WINDOW's previous buffers to nil. (set-window-prev-buffers window nil) (set-window-dedicated-p window t) window))))) but `make-frame' already puts BUFFER into the new frame so the `set-window-buffer' is silly. I changed this to (let ((frame (with-current-buffer buffer (make-frame (append args special-display-frame-alist))))) (window--display-buffer buffer (frame-selected-window frame) 'frame t)))))) but `window--display-buffer' detected that BUFFER was already displayed in the new window and decided not to deal with it. Can you try replacing the snippet by (let* ((frame (with-current-buffer buffer (make-frame (append args special-display-frame-alist)))) (window (frame-selected-window frame))) (display-buffer-record-window 'frame window buffer) (set-window-dedicated-p window t) window))))) martin From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 09 06:16:01 2012 Received: (at 11651-done) by debbugs.gnu.org; 9 Jun 2012 10:16:01 +0000 Received: from localhost ([127.0.0.1]:35785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SdIi8-0007us-U3 for submit@debbugs.gnu.org; Sat, 09 Jun 2012 06:16:01 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:41687) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SdIi7-0007ul-HW for 11651-done@debbugs.gnu.org; Sat, 09 Jun 2012 06:16:00 -0400 Received: (qmail invoked by alias); 09 Jun 2012 10:13:33 -0000 Received: from 62-47-38-115.adsl.highway.telekom.at (EHLO [62.47.38.115]) [62.47.38.115] by mail.gmx.net (mp071) with SMTP; 09 Jun 2012 12:13:33 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX182EQYs0Jk2JfMZbIMZNxf7V5YuPlTpu3M6Q2v/ZZ fgvC1Ohl3afY4W Message-ID: <4FD321D1.4010507@gmx.at> Date: Sat, 09 Jun 2012 12:13:37 +0200 From: martin rudalics MIME-Version: 1.0 To: 11651-done@debbugs.gnu.org Subject: Re: bug#11651: Special display is not dedicated any more References: <4FD241EB.70306@gmx.at> In-Reply-To: <4FD241EB.70306@gmx.at> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11651-done Cc: Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) I comitted the fix proposed earlier. martin From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 09 16:03:29 2012 Received: (at 11651-done) by debbugs.gnu.org; 9 Jun 2012 20:03:29 +0000 Received: from localhost ([127.0.0.1]:36246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SdRse-0005lm-RV for submit@debbugs.gnu.org; Sat, 09 Jun 2012 16:03:29 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:41699) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SdRsb-0005le-RP for 11651-done@debbugs.gnu.org; Sat, 09 Jun 2012 16:03:26 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu09MCpw9/2dsb2JhbABEtBGBCIIVAQEEAVYjBQsLNBIUGA0kiBwFugmQRAOjM4FYgwU X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="190849204" Received: from 76-10-156-61.dsl.teksavvy.com (HELO pastel.home) ([76.10.156.61]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 09 Jun 2012 16:00:58 -0400 Received: by pastel.home (Postfix, from userid 20848) id B29F4599D6; Sat, 9 Jun 2012 16:00:57 -0400 (EDT) From: Stefan Monnier To: martin rudalics Subject: Re: bug#11651: Special display is not dedicated any more Message-ID: References: <4FD241EB.70306@gmx.at> <4FD321D1.4010507@gmx.at> Date: Sat, 09 Jun 2012 16:00:57 -0400 In-Reply-To: <4FD321D1.4010507@gmx.at> (martin rudalics's message of "Sat, 09 Jun 2012 12:13:37 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11651-done Cc: 11651-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > I comitted the fix proposed earlier. Thanks, it does fix my use case, Stefan From unknown Sun Sep 07 18:03:25 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 08 Jul 2012 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator