From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#1374: 23.0.60; directory-files unexpectedly non-nil Date: Wed, 19 Nov 2008 05:01:09 +0100 (CET) Message-ID: <20081119040109.AFF45BBF1F9@mt-computer.local> Reply-To: Markus Triska , 1374@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1227067826 6848 80.91.229.12 (19 Nov 2008 04:10:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Nov 2008 04:10:26 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 19 05:11:29 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 1L2ePZ-0004cs-2g for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Nov 2008 05:11:29 +0100 Original-Received: from localhost ([127.0.0.1]:48772 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2eOQ-0004mI-Kv for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Nov 2008 23:10:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L2eOL-0004la-Lk for bug-gnu-emacs@gnu.org; Tue, 18 Nov 2008 23:10:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L2eOK-0004l8-TB for bug-gnu-emacs@gnu.org; Tue, 18 Nov 2008 23:10:13 -0500 Original-Received: from [199.232.76.173] (port=34412 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2eOK-0004l5-Ng for bug-gnu-emacs@gnu.org; Tue, 18 Nov 2008 23:10:12 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:46338) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L2eOK-0002OE-Dr for bug-gnu-emacs@gnu.org; Tue, 18 Nov 2008 23:10:12 -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 mAJ4A9AA022592; Tue, 18 Nov 2008 20:10:09 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mAJ4A4Nh022037; Tue, 18 Nov 2008 20:10:04 -0800 X-Loop: don@donarmstrong.com Resent-From: Markus Triska Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 19 Nov 2008 04:10:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1374 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122706727919912 (code B ref -1); Wed, 19 Nov 2008 04:10:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 19 Nov 2008 04:01:19 +0000 Original-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 Original-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 Original-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 Original-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 Original-Received: (qmail invoked by alias); 19 Nov 2008 04:01:10 -0000 Original-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+ Original-Received: by mt-computer.local (Postfix, from userid 502) id AFF45BBF1F9; 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) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 18 Nov 2008 23:10:13 -0500 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:22486 gmane.emacs.pretest.bugs:23369 Archived-At: 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