From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: org-read-date with pop-up-frames set to t Date: Wed, 03 Dec 2014 14:37:21 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwA7U-0000z8-QP for emacs-orgmode@gnu.org; Wed, 03 Dec 2014 08:37:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XwA7O-0003zy-ON for emacs-orgmode@gnu.org; Wed, 03 Dec 2014 08:37:28 -0500 Received: from mx1.polytechnique.org ([129.104.30.34]:41331) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwA7O-0003z1-IF for emacs-orgmode@gnu.org; Wed, 03 Dec 2014 08:37:22 -0500 Received: from top.local (charm-wifi.irisa.fr [131.254.66.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id C9FB9140CD3C8 for ; Wed, 3 Dec 2014 14:37:20 +0100 (CET) In-Reply-To: (Alan Schmitt's message of "Sun, 30 Nov 2014 16:47:37 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2014-11-30 16:47, Alan Schmitt writes: > Hello, > > I'm experimenting with using frames instead of windows, and I'm seeing > some strange behavior with `org-read-date'. Here is an ECM starting from > an emacs -Q (with an emacs 24.4 and the bundled org): > > #+begin_src emacs-lisp > (setq pop-up-frames t) > (setq frame-auto-hide-function 'delete-frame) > > (require 'org) > (org-read-date) > #+end_src > > When evaluating the `org-read-date' function, a new frame opens (great) > with two windows, the bottom one being the calendar window. > > Question 1: is it possible just to have the calendar window in the new > frame? > > When I select a date, I see the selected date echoed in the minibuffer > (the function has returned a value), but the frame and the two windows > stay there, and I have to manually delete the frame to get back where > I was. > > Question 2: is there a way to delete this frame when I'm done selecting > the date? As a follow-up, I discussed this with a friend who understand emacs-lisp much better than I do. Here is what he said about `org-read-date': > It uses (save-excursion (save-window-excursion...)), but that > does not save the selected frame (save which frame was selected). > Also, it does not remove frame *Calendar* because it uses only > (bury-buffer "*Calendar*"). It should perhaps use something > like `frame-auto-hide-function' as well. I can start looking into this. Would a patch around these issues be considered? Thanks, Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBCgAGBQJUfxIRAAoJEAQNCjtO0uXHuesIALaWj9ifoEwqlAWM3Lh4T4j6 ZlszuFWS/LYeWOAppMvHaeqPnzkchFgC3g5GqEs450F364x1QoC+jitwshyCk/Gm gLF2dcrfE0nPfhBkvD9y7x0h08FK99uA0SjGCJTnKZbR5Ax5WGJ8ZLQii5UJrmsl Hsw1TSU1TyXD6h5jNYPcUK0T5n6pD+9tMkgSTuQsI3wS5xuj8fv1NkisOqAR+HUQ aGFv/zJKw1LszmAlunOABbJL8El70XRtwWJswpDAcWk4QCxqy3X/KAloykrjU6yj cvRDp2H4LmNfKCoc2SO0VmMUcyMAHaQn6LiXa8PDqsrJBZen2Tw16K2Dscd+mwI= =MqcN -----END PGP SIGNATURE----- --=-=-=--