From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Shepherd Newsgroups: gmane.emacs.bugs Subject: bug#19256: 24.3; Bad interaction between calendar.el and pop-up-frames Date: Tue, 2 Dec 2014 18:40:55 +0000 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0122862673b9d105094012ca X-Trace: ger.gmane.org 1417546516 14404 80.91.229.3 (2 Dec 2014 18:55:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Dec 2014 18:55:16 +0000 (UTC) To: 19256@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 02 19:55:10 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1XvsbN-0003o6-QW for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Dec 2014 19:55:10 +0100 Original-Received: from localhost ([::1]:38319 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvsbN-0005vp-HQ for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Dec 2014 13:55:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvsbI-0005ul-DN for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2014 13:55:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XvsbG-0005af-Sl for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2014 13:55:04 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvsbG-0005ab-PU for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2014 13:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XvsbG-0002lx-K5 for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2014 13:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: David Shepherd Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Dec 2014 18:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19256 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.141754646710608 (code B ref -1); Tue, 02 Dec 2014 18:55:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Dec 2014 18:54:27 +0000 Original-Received: from localhost ([127.0.0.1]:52031 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xvsag-0002kz-Fp for submit@debbugs.gnu.org; Tue, 02 Dec 2014 13:54:27 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41817) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XvsO3-0002QP-B8 for submit@debbugs.gnu.org; Tue, 02 Dec 2014 13:41:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XvsO1-0001jA-O8 for submit@debbugs.gnu.org; Tue, 02 Dec 2014 13:41:23 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:32867) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvsO1-0001j4-Lz for submit@debbugs.gnu.org; Tue, 02 Dec 2014 13:41:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvsO0-0002Lw-1k for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2014 13:41:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XvsNx-0001id-Ac for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2014 13:41:19 -0500 Original-Received: from mail-wg0-x234.google.com ([2a00:1450:400c:c00::234]:45443) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvsNx-0001iQ-08 for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2014 13:41:17 -0500 Original-Received: by mail-wg0-f52.google.com with SMTP id a1so17882402wgh.39 for ; Tue, 02 Dec 2014 10:41:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=v7F31CMdj1DojKExX9VLJ4yrVJrO2lZn79u6r5UO7XE=; b=g+GaOuAemfQ0xI74yTEO2BMEEZzcWJtx59PEx2gkCgMZyDngQxP0xmvxrvzCw5MFXp yuyfdneT4xxCmoU+WnbA3xyxzEjMvrL8tGdAS8W9FV+SMBkoh6hZT93x/eALQCTIHjyk qOOEGPkQXgiWRVD4uStAbKc8vsM7DrhT4A5rOl1hmTseRAYQOvA2LXokctIwvFpHheR/ KS9E+QocLx/DbLl9BCD1drTYR47kxh04jHPZkCMlxz2efm9fxR8b1FY5n5lEpGZC8NoD jHO9efWfVzmrZHUnmWp/lWt2FfFOUX+mdTrTUxpLwWa3jT5vYTp5isoS2JUultThBKlv 7czw== X-Received: by 10.194.119.193 with SMTP id kw1mr913457wjb.37.1417545675682; Tue, 02 Dec 2014 10:41:15 -0800 (PST) Original-Received: by 10.194.236.133 with HTTP; Tue, 2 Dec 2014 10:40:55 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Tue, 02 Dec 2014 13:54:25 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:96811 Archived-At: --089e0122862673b9d105094012ca Content-Type: text/plain; charset=UTF-8 When pop-up-frames is non-nil and calendar is called a duplicate frame is created. To reproduce the issue do: (setq pop-up-frames 'graphic-only) (calendar) from a raw emacs -Q. This can be fixed by the following advice: (defadvice calendar (around disable-pop-up-frames activate) "Disable pop-up-frames while this is going on, otherwise we get extra useless frames." (let ((pop-up-frames 'nil)) ad-do-it)) so presumably all that is needed to fix the issue is a similar let block inside the calendar function. The output that generated by report-emacs-bug follows: In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7) of 2014-03-07 on lamiak, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Ubuntu 14.04.1 LTS Configured using: `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: ( s e t SPC p ' p o p - u p - f r a m e s SPC ' ' g r a p h i c - o n l y ) C-\ C-e C-g C-x C-e c a l e n d a r q ( c a l e n d a r ) C-x C-e s u b m i t b u g q r e p q o r t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. delete-backward-char: Text is read-only Quit [2 times] graphic-only byte-code: End of buffer [2 times] nil Making completion list... [2 times] Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode mule-util cal-move cal-menu easymenu calendar cal-loaddefs time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu 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 macroexp 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) --089e0122862673b9d105094012ca Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
When pop-up-frames is non-nil and calendar is called = a duplicate frame
is created.

To reproduce the issue do:

= =C2=A0=C2=A0=C2=A0 (setq pop-up-frames 'graphic-only)
=C2=A0=C2=A0= =C2=A0 (calendar)

from a raw emacs -Q.

This can be fixed by t= he following advice:

=C2=A0=C2=A0=C2=A0 (defadvice calendar (around = disable-pop-up-frames activate)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "Dis= able pop-up-frames while this is going on, otherwise we get
=C2=A0=C2=A0= =C2=A0 extra useless frames."
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (let (= (pop-up-frames 'nil))
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ad-= do-it))

so presumably all that is needed to fix the issue is a simil= ar let block
inside the calendar function.


The output t= hat generated by report-emacs-bug follows:

In GNU Emacs 24.3.1 = (x86_64-pc-linux-gnu, GTK+ Version 3.10.7)
=C2=A0of 2014-03-07 on lamiak= , modified by Debian
Windowing system distributor `The X.Org Foundation&= #39;, version 11.0.11501000
System Description:=C2=A0=C2=A0=C2=A0 Ubuntu= 14.04.1 LTS

Configured using:
=C2=A0`configure '--build'= 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu'=C2=A0'--prefix=3D/usr' '--sharedstatedir=3D/var/lib' '= ;--libexecdir=3D/usr/lib'
=C2=A0'--localstatedir=3D/var/lib'= '--infodir=3D/usr/share/info'
=C2=A0'--mandir=3D/usr/share/= man' '--with-pop=3Dyes'
=C2=A0'--enable-locallisppath=3D= /etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/sh= are/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-l= isp'
=C2=A0'--with-crt-dir=3D/usr/lib/x86_64-linux-gnu' '= ;--with-x=3Dyes'
=C2=A0'--with-x-toolkit=3Dgtk3' '--with= -toolkit-scroll-bars'
=C2=A0'build_alias=3Dx86_64-linux-gnu'= 'CFLAGS=3D-g -O2 -fstack-protector
=C2=A0--param=3Dssp-buffer-size= =3D4 -Wformat -Werror=3Dformat-security -Wall'
=C2=A0'LDFLAGS=3D= -Wl,-Bsymbolic-functions -Wl,-z,relro'
=C2=A0'CPPFLAGS=3D-D_FORT= IFY_SOURCE=3D2''

Important settings:
=C2=A0 value of $LAN= G: en_GB.UTF-8
=C2=A0 locale-coding-system: utf-8-unix
=C2=A0 default= enable-multibyte-characters: t

Major mode: Lisp Interaction

= Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 mouse-wheel-mode= : t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-na= me-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mo= de: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
= =C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0= line-number-mode: t
=C2=A0 transient-mark-mode: t

Recent input:<= br><menu> <backspace> ( s e t SPC p <backspace> ' p o=
p - u p - f r a m e s SPC ' <backspace> ' g r a p h
= i c - o n l y ) C-\ C-e C-g C-x C-e <down> <down> <menu> =
c a l e n d a r <return> q <return> ( c a l e n d a
r )= <up> <end> <down> C-x C-e <down-mouse-1> <mouse= -movement>
<mouse-movement> <drag-mouse-1> <down-mous= e-1> <mouse-1>
<menu> s u b m i t <tab> <C-back= space> b u g <tab>
<tab> <switch-frame> q <swit= ch-frame> <C-backspace>
<C-backspace> r e p <tab> = <switch-frame> q <switch-frame>
o r t <tab> <retur= n>

Recent messages:
For information about GNU Emacs and the GN= U system, type C-h C-a.
delete-backward-char: Text is read-only
Quit = [2 times]
graphic-only
byte-code: End of buffer [2 times]
nil
M= aking completion list... [2 times]

Load-path shadows:
None found.=

Features:
(shadow sort gnus-util mail-extr emacsbug message form= at-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2= 231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums = mm-util
mail-prsvr mail-utils help-mode mule-util cal-move cal-menu easy= menu
calendar cal-loaddefs time-date tooltip ediff-hook vc-hooks
lisp= -float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt
fri= nge tabulated-list newcomment lisp-mode register page menu-bar
rfn-eshad= ow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu font= -core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai t= ai-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 macroexp files t= ext-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 gt= k x-toolkit x multi-tty emacs)
--089e0122862673b9d105094012ca--