From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#13113: 24.3.50; `x-create-frames' raises error trying to eval `directory-files' (???) Date: Fri, 07 Dec 2012 20:42:58 +0200 Message-ID: <83wqwtn1ot.fsf@gnu.org> References: <26644883476B4EF2B79E867B8DFA30C2@us.oracle.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1354905836 13462 80.91.229.3 (7 Dec 2012 18:43:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Dec 2012 18:43:56 +0000 (UTC) Cc: 13113@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 07 19:44:09 2012 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 1Th2u3-0004kP-Va for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Dec 2012 19:44:04 +0100 Original-Received: from localhost ([::1]:58437 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Th2tr-0006bn-Rn for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Dec 2012 13:43:51 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Th2tm-0006bb-OZ for bug-gnu-emacs@gnu.org; Fri, 07 Dec 2012 13:43:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Th2ti-0008Vd-Ds for bug-gnu-emacs@gnu.org; Fri, 07 Dec 2012 13:43:46 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48976) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Th2ti-0008VZ-AT for bug-gnu-emacs@gnu.org; Fri, 07 Dec 2012 13:43:42 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Th2u1-00017q-TD for bug-gnu-emacs@gnu.org; Fri, 07 Dec 2012 13:44:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Dec 2012 18:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13113 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13113-submit@debbugs.gnu.org id=B13113.13549058224288 (code B ref 13113); Fri, 07 Dec 2012 18:44:01 +0000 Original-Received: (at 13113) by debbugs.gnu.org; 7 Dec 2012 18:43:42 +0000 Original-Received: from localhost ([127.0.0.1]:59227 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Th2th-000176-PO for submit@debbugs.gnu.org; Fri, 07 Dec 2012 13:43:42 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:42132) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Th2te-00016v-7T for 13113@debbugs.gnu.org; Fri, 07 Dec 2012 13:43:39 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MEO00300BSLOJ00@a-mtaout21.012.net.il> for 13113@debbugs.gnu.org; Fri, 07 Dec 2012 20:43:16 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MEO003OIC04O120@a-mtaout21.012.net.il>; Fri, 07 Dec 2012 20:43:16 +0200 (IST) In-reply-to: <26644883476B4EF2B79E867B8DFA30C2@us.oracle.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:68127 Archived-At: > From: "Drew Adams" > Date: Fri, 7 Dec 2012 08:30:52 -0800 > > This is with my setup, not emacs -Q. > > I added a call to `(debug)' in a section of my code that is eval'd during > application of a completion function for file names. Below is what happened. > > What should have happened: *Backtrace* opens in a separate, special-display > frame (because "*Backtrace*" matches my value of `special-display-regexps'). Is it possible to have a recipe starting with "emacs -Q" > Apparently, when Emacs tried to create the frame it ran into some problems in > `x-create-frame'. Why `x-create-frame' would call `directory-files' on > "~/.emacs.d/auto-save-list/" I have no idea. Evidently, because of this: (and auto-save-list-file-prefix (file-directory-p (file-name-directory auto-save-list-file-prefix)) (directory-files (file-name-directory auto-save-list-file-prefix) nil (concat "\\`" (regexp-quote (file-name-nondirectory auto-save-list-file-prefix))) t)) which is a fragment from menu-bar.el: (bindings--define-key menu [recover-session] '(menu-item "Recover Crashed Session" recover-session :enable (and auto-save-list-file-prefix (file-directory-p (file-name-directory auto-save-list-file-prefix)) (directory-files (file-name-directory auto-save-list-file-prefix) nil (concat "\\`" (regexp-quote (file-name-nondirectory auto-save-list-file-prefix))) t)) :help "Recover edits from a crashed session")) > And why that should raise this error, and what this error means, I > also have no idea. This means nothing to me - what is going on > here? My crystal ball says that directory traversal functions were invoked recursively, somehow. This is not supported on Windows, or at least that's my reading of the code. However, it's hard to be sure without a test case. > BTW, why is Emacs suddenly formatting the `report-emacs-bug' text I wrote? I > copied (`M-w') and yanked (`C-y') the backtrace into that report buffer, then > pasted, after `C-c C-c', from the clipboard into my mail client (Outlook), as > usual. But now it seems that each line gets split at the same position and > `=' is added. > > Is this a new feature? Is there a way to turn it off or otherwise control it? > Why `='? It's called "quoted-printable". I have no idea how Emacs decided to do that.