From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John J Foerch Newsgroups: gmane.emacs.devel Subject: bug in calendar-exit (calendar-hide-window) Date: Thu, 21 Jun 2012 18:08:27 -0400 Message-ID: <87zk7wwc6c.fsf@hecubus.retroj.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1340316541 23406 80.91.229.3 (21 Jun 2012 22:09:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Jun 2012 22:09:01 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 22 00:09:00 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ShpYc-0004bJ-Q9 for ged-emacs-devel@m.gmane.org; Fri, 22 Jun 2012 00:08:54 +0200 Original-Received: from localhost ([::1]:37162 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShpYc-0005KH-Kt for ged-emacs-devel@m.gmane.org; Thu, 21 Jun 2012 18:08:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShpYa-0005Jo-3p for emacs-devel@gnu.org; Thu, 21 Jun 2012 18:08:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ShpYY-0002eN-Fj for emacs-devel@gnu.org; Thu, 21 Jun 2012 18:08:51 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:47417) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShpYY-0002e4-9E for emacs-devel@gnu.org; Thu, 21 Jun 2012 18:08:50 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ShpYS-0004AE-Ez for emacs-devel@gnu.org; Fri, 22 Jun 2012 00:08:44 +0200 Original-Received: from 35.sub-75-198-57.myvzw.com ([75.198.57.35]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Jun 2012 00:08:44 +0200 Original-Received: from jjfoerch by 35.sub-75-198-57.myvzw.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Jun 2012 00:08:44 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 35 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 35.sub-75-198-57.myvzw.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:vFx+vk8iwRYBCPFpu2X3fDzaRsY= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:151077 Archived-At: Hello, In calendar, under a configuration like the following, calendar-exit kills the frame instead of just the window containing the calendar: (setq pop-up-windows nil pop-up-frames t special-display-buffer-names '(("*Calendar*" (same-frame . t))) display-buffer-mark-dedicated 'weak) Under this configuration, pop-up-frames are used, with windows dedicated to their buffers, but the calendar is opened in the current frame, not a new frame. Calendar-hide-window seems to assume that whenever dedicated windows are being used, it is okay to delete or iconify a frame: (cond ... ((and (display-multi-frame-p) (window-dedicated-p window)) (if calendar-remove-frame-by-deleting (delete-frame (window-frame window)) (iconify-frame (window-frame window)))) ... ) M-x version: GNU Emacs 23.4.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2012-04-07 on trouble, modified by Debian Any thoughts for a solution? Thank you -- John Foerch