From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: chad Newsgroups: gmane.emacs.bugs Subject: bug#14888: 24.3.50; Prompting for theme safety when restoring frames Date: Wed, 17 Jul 2013 00:37:24 -0500 Message-ID: <2CEAD59E-39D4-418B-8C54-E3A4D2063A03@mit.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1374039492 5790 80.91.229.3 (17 Jul 2013 05:38:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Jul 2013 05:38:12 +0000 (UTC) To: 14888@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 17 07:38:12 2013 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 1UzKRH-0004ua-FQ for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Jul 2013 07:38:11 +0200 Original-Received: from localhost ([::1]:43917 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzKRG-0003hK-SV for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Jul 2013 01:38:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzKRB-0003h4-Fs for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2013 01:38:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UzKR8-0006IB-FA for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2013 01:38:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37208) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzKR8-0006I3-BP for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2013 01:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UzKR8-0000cV-2p for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2013 01:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: chad Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Jul 2013 05:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14888 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.13740394582349 (code B ref -1); Wed, 17 Jul 2013 05:38:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Jul 2013 05:37:38 +0000 Original-Received: from localhost ([127.0.0.1]:59757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UzKQj-0000bo-A2 for submit@debbugs.gnu.org; Wed, 17 Jul 2013 01:37:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44963) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UzKQg-0000bX-Oj for submit@debbugs.gnu.org; Wed, 17 Jul 2013 01:37:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UzKQX-0006BJ-Ab for submit@debbugs.gnu.org; Wed, 17 Jul 2013 01:37:29 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:43239) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzKQX-0006BF-7S for submit@debbugs.gnu.org; Wed, 17 Jul 2013 01:37:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzKQS-0003ff-Rg for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2013 01:37:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UzKQO-00069p-3L for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2013 01:37:20 -0400 Original-Received: from dmz-mailsec-scanner-2.mit.edu ([18.9.25.13]:43236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzKQN-00069d-V0 for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2013 01:37:16 -0400 X-AuditID: 1209190d-b7f078e000000937-c0-51e62d8a4171 Original-Received: from mailhub-auth-4.mit.edu ( [18.7.62.39]) by dmz-mailsec-scanner-2.mit.edu (Symantec Messaging Gateway) with SMTP id FE.27.02359.B8D26E15; Wed, 17 Jul 2013 01:37:15 -0400 (EDT) Original-Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id r6H5bERP032514 for ; Wed, 17 Jul 2013 01:37:14 -0400 Original-Received: from [192.168.5.55] ([38.96.222.254]) (authenticated bits=0) (User authenticated as yandros@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id r6H5bBOj001904 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Wed, 17 Jul 2013 01:37:13 -0400 X-Mailer: Apple Mail (2.1508) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrBIsWRmVeSWpSXmKPExsUixG6nrtut+yzQ4N8xZovvB6ocGD3appkF MEZx2aSk5mSWpRbp2yVwZbxqeMFa8EGhYu7K1SwNjDukuxg5OSQETCRWfZvMCGGLSVy4t56t i5GLQ0hgH6PEoSsX2UESQgJnGSXOrRSGSBxgkng/cwZTFyMHB5uADFCHBkgNs4CWxI1/L5kg bHmJ7W/nMIPYwgJOEncbH7CB2LwCVhLbT68Hm8kioCqx5c1uMFtEQFLi651WVogaPYml/+Yw goyXEJCV2Pk7aQIj3ywkG2Yh2TALSccCRuZVjLIpuVW6uYmZOcWpybrFyYl5ealFukZ6uZkl eqkppZsYQcHFKcm7g/HdQaVDjAIcjEo8vBPCngYKsSaWFVfmHmKU5GBSEuUVVnsWKMSXlJ9S mZFYnBFfVJqTWnyIUYKDWUmEt1oDKMebklhZlVqUD5OS5mBREud9+vRsoJBAemJJanZqakFq EUxWhoNDSYLXRgeoUbAoNT21Ii0zpwQhzcTBCTKcB2i4KUgNb3FBYm5xZjpE/hSjMUfHg63v GTmez932nlGIJS8/L1VKnDdGG6hUAKQ0ozQPbhosQbxiFAd6Tpg3FKSKB5hc4Oa9AlrFBLSq efZjkFUliQgpqQZGrba7bg3Stw8xG6tp79/g5uDMqj/j0wLugIYrR5cXslQwuXWZPuAt2/CG b0V9mz1zsjJ3YaRYFrvhEUW346Z6rKGKUmxnuNU+Ptdp6G6XuKcv17B2U9UVT4F3gVvuL8nL im0SXbkhx8BstmHtxndVqiYLPu+wthBeHKj/ivGNeMFVnZLsOCWW4oxEQy3mouJE X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:76412 Archived-At: In GNU Emacs 24.3.50.1 (x86_64-apple-darwin12.4.0, NS apple-appkit-1187.39) of 2013-07-16 on protip.local Bzr revision: 109393 yandros@mit.edu-20130716152907-8gapsvc5ipkj17mp Windowing system distributor `Apple', version 10.3.1187 Configured using: `configure --with-ns --enable-checking' Important settings: locale-coding-system: nil default enable-multibyte-characters: t When emacs prompts the user during startup (to ask if a theme is safe to load) while it is trying to restore a previous session's window layout (with the new features in desktop-save-mode), emacs sometimes never actually creates a window. Juanma has already changed the related code, but asked me to file a report so that future versions can be checked. Using today's bzr tip, I do NOT see the problem. Note that the revision info listed in `Bzr revision' above doesn't match the revision that triggers the problem. To reproduce the problem, you will need a theme that emacs does not consider safe. I tested with zenburn and naquadah, but any non-trusted theme will do. Because the problem uses saved theme and desktop state, it can't easily be reproduced with emacs -Q. Once problematic config files are generated, they can be saved and reused later for testing. 1.) Move personal configuration aside, including desktop file and custom file. 2.) Place your non-trusted theme in the clean user-emacs-directory. 3.) M-x customize-variable RET desktop-save-mode RET and enable desktop-save-mode. Save changes for future sessions. 3.) M-x customize-theme RET and enable your untrusted theme. Mark the theme as safe for future sessions. Save changes for future sessions. 4.) Quit emacs. 5.) Manually remove the entry for custom-safe-themes from the clean user-init-file. 6.) Restart emacs. In GNU Emacs 24.3.50.1 (x86_64-apple-darwin12.4.0, NS apple-appkit-1187.39) of 2013-07-16 on protip.local Bzr revision: 109393 yandros@mit.edu-20130716152907-8gapsvc5ipkj17mp Windowing system distributor `Apple', version 10.3.1187 Configured using: `configure --with-ns --enable-checking' Important settings: locale-coding-system: nil default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: desktop-save-mode: t icomplete-mode: t which-function-mode: t recentf-mode: t savehist-mode: t delete-selection-mode: t minibuffer-electric-default-mode: t auto-image-file-mode: t show-paren-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t temp-buffer-resize-mode: t line-number-mode: t transient-mark-mode: t Features: (shadow sort flyspell ispell nadvice 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 hl-line dired vc-git pp eldoc help-fns adaptive-wrap-autoloads debbugs-autoloads info paredit-autoloads zenburn-autoloads package saveplace zenburn-theme cus-edit desktop cus-start cus-load icomplete which-func imenu recentf tree-widget wid-edit cl-loaddefs cl-lib easymenu savehist delsel minibuf-eldef image-file paren pcase y-mac y-modeline y-frame y-keybindings y-hacks time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-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 ns multi-tty emacs)