unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Markus Triska <markus.triska@gmx.at>
To: emacs-pretest-bug@gnu.org
Subject: bug#1374: 23.0.60; directory-files unexpectedly non-nil
Date: Wed, 19 Nov 2008 05:01:09 +0100 (CET)	[thread overview]
Message-ID: <20081119040109.AFF45BBF1F9@mt-computer.local> (raw)


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






             reply	other threads:[~2008-11-19  4:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87d4g44x27.fsf@cyd.mit.edu>
2008-11-19  4:01 ` Markus Triska [this message]
2008-12-07  1:10   ` bug#1374: marked as done (23.0.60; directory-files unexpectedly non-nil) Emacs bug Tracking System

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081119040109.AFF45BBF1F9@mt-computer.local \
    --to=markus.triska@gmx.at \
    --cc=1374@emacsbugs.donarmstrong.com \
    --cc=emacs-pretest-bug@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).