From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: Re: Find and open or create file based on date Date: Tue, 04 Sep 2007 06:12:27 -0400 Message-ID: <46DD2F8B.2010200@speakeasy.net> References: <1188881270.682310.165470@57g2000hsv.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1188900808 10079 80.91.229.12 (4 Sep 2007 10:13:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Sep 2007 10:13:28 +0000 (UTC) To: Chris L , GNU Emacs List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 04 12:13:22 2007 Return-path: Envelope-to: geh-help-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 1ISVPD-0007EN-VC for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Sep 2007 12:13:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISVPB-0001ab-PY for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Sep 2007 06:13:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ISVOl-0001Yu-K6 for help-gnu-emacs@gnu.org; Tue, 04 Sep 2007 06:12:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ISVOh-0001XC-KT for help-gnu-emacs@gnu.org; Tue, 04 Sep 2007 06:12:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISVOg-0001WS-Vt for help-gnu-emacs@gnu.org; Tue, 04 Sep 2007 06:12:39 -0400 Original-Received: from mail3.sea5.speakeasy.net ([69.17.117.5]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ISVOe-0003Nl-9y for help-gnu-emacs@gnu.org; Tue, 04 Sep 2007 06:12:37 -0400 Original-Received: (qmail 7002 invoked from network); 4 Sep 2007 10:12:33 -0000 Original-Received: from dsl093-011-017.cle1.dsl.speakeasy.net (HELO [192.168.0.26]) (gebser@[66.93.11.17]) (envelope-sender ) by mail3.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 4 Sep 2007 10:12:33 -0000 User-Agent: Thunderbird 2.0.0.0 (X11/20070326) In-Reply-To: <1188881270.682310.165470@57g2000hsv.googlegroups.com> X-Enigmail-Version: 0.95.3 OpenPGP: id=45796D04 X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:47189 Archived-At: On 09/04/2007 12:47 AM somebody named Chris L wrote: > I'm looking for a function that will go to a specified directory and > look for a file with the name based on the current date and time (such > as 2007-09-03.txt) and open it (or create and open it if it does not > exist). > > I know almost no lisp, so any pointers would be welcome. > > c I've been doing just this for several years now. Prompted by your questions, I (finally) put the code on emacswiki. See: .