From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Mathias Dahl" Newsgroups: gmane.emacs.devel Subject: Re: [dieter@duenenhof-wilhelm.de: image-dired (tumme) database file not existing] Date: Thu, 19 Jul 2007 17:03:09 +0200 Message-ID: <7dbe73ed0707190803s2e4d341bxad6368085041af21@mail.gmail.com> References: <87y7hcxz5x.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1184857403 14709 80.91.229.12 (19 Jul 2007 15:03:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Jul 2007 15:03:23 +0000 (UTC) Cc: dieter@duenenhof-wilhelm.de, emacs-devel@gnu.org To: "Thien-Thi Nguyen" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 19 17:03:18 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IBXXB-0007Cv-9V for ged-emacs-devel@m.gmane.org; Thu, 19 Jul 2007 17:03:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IBXXB-00021b-11 for ged-emacs-devel@m.gmane.org; Thu, 19 Jul 2007 11:03:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IBXX7-0001zd-7w for emacs-devel@gnu.org; Thu, 19 Jul 2007 11:03:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IBXX5-0001yA-Q8 for emacs-devel@gnu.org; Thu, 19 Jul 2007 11:03:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IBXX5-0001y6-Id for emacs-devel@gnu.org; Thu, 19 Jul 2007 11:03:11 -0400 Original-Received: from mu-out-0910.google.com ([209.85.134.191]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IBXX4-0005Kg-V1 for emacs-devel@gnu.org; Thu, 19 Jul 2007 11:03:11 -0400 Original-Received: by mu-out-0910.google.com with SMTP id g7so661270muf for ; Thu, 19 Jul 2007 08:03:09 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bVVNfCdgryhoTWNtDF7bCY2UfltRK5z2eBkAPaU0aaeU02xHt1qaFF8/zE9pSu4Jqplsu8yCFu36lKQhj9gUeIc9+fKFyrs5+UkFm63pJxNWDlx6LiISymGyFBMBqXghObnrF9iI8WVXwEiXhJLDuojZY+8ExhQvoMwGRdl/bLg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bgcaSMxtnPPCfqDX/6AiTN+oD+NOw5+HLK3nkSa0ocPfPRPZMw68RgH8l5e6N4Lvg/Ha5o14lMF24NPuVAoIZjZkJtcxMTldtxJnko0nHIQfhxElpUYc2xsuCOa+mtoGldpkAij2xqCSkuwTfpHRzKkU5pjCKFw+HD8z/UR0WJ8= Original-Received: by 10.82.112.16 with SMTP id k16mr3422153buc.1184857389530; Thu, 19 Jul 2007 08:03:09 -0700 (PDT) Original-Received: by 10.82.117.9 with HTTP; Thu, 19 Jul 2007 08:03:09 -0700 (PDT) In-Reply-To: <87y7hcxz5x.fsf@ambire.localdomain> Content-Disposition: inline X-detected-kernel: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:75125 Archived-At: > below is a quick patch (against the trunk). > here is a ChangeLog entry: > does this give good results? I haven't tested the patch yet but it looks okay. I had a different idea in mind, however: Instead of making each function make sure a db file exist, why not change code like this: (find-file image-dired-db-file) into this: (find-file (image-dired-db-file)) And inside that new defun basically do what you did in your new function. I did not follow very closely the recent discussions about Emacs' data directory so I don't remember if anything useful came out of it that could be used here.