From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: don@donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#1374: marked as done (23.0.60; directory-files unexpectedly non-nil) Date: Sat, 6 Dec 2008 17:10:04 -0800 Message-ID: References: <87d4g44x27.fsf@cyd.mit.edu> <20081119040109.AFF45BBF1F9@mt-computer.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1228612204-23672-0" X-Trace: ger.gmane.org 1228612235 5707 80.91.229.12 (7 Dec 2008 01:10:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Dec 2008 01:10:35 +0000 (UTC) To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 07 02:11:38 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L98BN-0000hZ-TU for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Dec 2008 02:11:38 +0100 Original-Received: from localhost ([127.0.0.1]:36995 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L98AC-00079H-VS for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Dec 2008 20:10:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L98A7-00078L-Jm for bug-gnu-emacs@gnu.org; Sat, 06 Dec 2008 20:10:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L98A6-00077H-5U for bug-gnu-emacs@gnu.org; Sat, 06 Dec 2008 20:10:18 -0500 Original-Received: from [199.232.76.173] (port=58200 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L98A5-000770-Oa for bug-gnu-emacs@gnu.org; Sat, 06 Dec 2008 20:10:17 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:41458) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L98A4-0001pS-OR for bug-gnu-emacs@gnu.org; Sat, 06 Dec 2008 20:10:17 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB71AE1U024443; Sat, 6 Dec 2008 17:10:14 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mB71A4V9023786; Sat, 6 Dec 2008 17:10:04 -0800 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com X-Emacs-PR-Message: closed 1374 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:23019 Archived-At: This is a multi-part message in MIME format... ------------=_1228612204-23672-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Sat, 06 Dec 2008 20:02:24 -0500 with message-id <87d4g44x27.fsf@cyd.mit.edu> and subject line Re: 23.0.60; directory-files unexpectedly non-nil has caused the Emacs bug report #1374, regarding 23.0.60; directory-files unexpectedly non-nil to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact don@donarmstrong.com immediately.) --=20 1374: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D1374 Emacs Bug Tracking System Contact don@donarmstrong.com with problems ------------=_1228612204-23672-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.8 required=4.0 tests=AWL,BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 19 Nov 2008 04:01:19 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAJ41GTn019905 for ; Tue, 18 Nov 2008 20:01:17 -0800 Received: from mx10.gnu.org ([199.232.76.166]:35633) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1L2eFX-0005zG-MN for emacs-pretest-bug@gnu.org; Tue, 18 Nov 2008 23:01:07 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1L2eFd-0001aT-BU for emacs-pretest-bug@gnu.org; Tue, 18 Nov 2008 23:01:15 -0500 Received: from mail.gmx.net ([213.165.64.20]:41319) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1L2eFc-0001aJ-QB for emacs-pretest-bug@gnu.org; Tue, 18 Nov 2008 23:01:13 -0500 Received: (qmail invoked by alias); 19 Nov 2008 04:01:10 -0000 Received: from chello062178240212.3.14.tuwien.teleweb.at (EHLO mt-computer.local) [62.178.240.212] by mail.gmx.net (mp003) with SMTP; 19 Nov 2008 05:01:10 +0100 X-Authenticated: #4064391 X-Provags-ID: V01U2FsdGVkX1/9UjoYnQn9jsl6R8uvOnTGhlCi981SUDGeu3H0EW OdtmGXOJRVgjV+ Received: by mt-computer.local (Postfix, from userid 502) id AFF45BBF1F9; Wed, 19 Nov 2008 05:01:09 +0100 (CET) From: Markus Triska To: emacs-pretest-bug@gnu.org Subject: 23.0.60; directory-files unexpectedly non-nil Message-Id: <20081119040109.AFF45BBF1F9@mt-computer.local> Date: Wed, 19 Nov 2008 05:01:09 +0100 (CET) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.5 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Let ~/tmp be initially empty, and create these 7 files in it via: for i in 0085-ottosson.ps.gz 0091-lindgren.ps.gz \ 0104-pettersson-carlsson.ps.gz 0108-carlsson.ps.gz \ 0118-lindgren.ps.gz 1076.pdf apl_slides.pdf; do touch $i; done As expected, (directory-files "~/tmp" nil "nonexistent") then yields "nil". However, after I evaluate (in emacs -Q) the forms: (defun my-log (start end old) (write-region (point-min) (point-min) "/tmp/my-log-file.tmp" t 'silent)) (add-hook 'after-change-functions 'my-log) the new result of (directory-files "~/tmp" nil "nonexistent") is unexpectedly: ("apl_slides.pdf") using OSX. In Ubuntu Intrepid, the new result is, again unexpectedly: ("1076.pdf") In GNU Emacs 23.0.60.2 (i386-apple-darwin8.11.1, GTK+ Version 2.12.9) of 2008-11-05 on mt-computer.local Windowing system distributor `The XFree86 Project, Inc', version 11.0.40400000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t ------------=_1228612204-23672-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.0 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1374-done) by emacsbugs.donarmstrong.com; 7 Dec 2008 01:02:24 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB712L6K021653 for <1374-done@emacsbugs.donarmstrong.com>; Sat, 6 Dec 2008 17:02:22 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id 4C04457E1D1; Sat, 6 Dec 2008 20:02:24 -0500 (EST) From: Chong Yidong To: Markus Triska Cc: 1374-done@emacsbugs.donarmstrong.com Subject: Re: 23.0.60; directory-files unexpectedly non-nil Date: Sat, 06 Dec 2008 20:02:24 -0500 Message-ID: <87d4g44x27.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii This bug arose because the after-change-functions were triggered in the code conversion work buffer, whereas directory-files assumed that decoding a file name does not run arbitrary elisp code (otherwise, a compiled regexp gets corrupted). I've changed it so that inhibit-modification-hooks is disabled in the code conversion buffer. Thanks for the bug report. ------------=_1228612204-23672-0--