From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: filecache.el questions Date: Wed, 01 Oct 2008 12:04:28 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <864p3w457n.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1222880724 22504 80.91.229.12 (1 Oct 2008 17:05:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Oct 2008 17:05:24 +0000 (UTC) Cc: pbreton@cs.umb.edu To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 01 19:06:22 2008 connect(): Connection refused 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 1Kl598-0000hT-CK for ged-emacs-devel@m.gmane.org; Wed, 01 Oct 2008 19:05:54 +0200 Original-Received: from localhost ([127.0.0.1]:38380 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kl585-0002wD-FC for ged-emacs-devel@m.gmane.org; Wed, 01 Oct 2008 13:04:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kl580-0002ue-WF for emacs-devel@gnu.org; Wed, 01 Oct 2008 13:04:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kl57z-0002t8-Sw for emacs-devel@gnu.org; Wed, 01 Oct 2008 13:04:44 -0400 Original-Received: from [199.232.76.173] (port=59709 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kl57z-0002t5-Nk for emacs-devel@gnu.org; Wed, 01 Oct 2008 13:04:43 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:50037 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kl57z-0007Jf-EF for emacs-devel@gnu.org; Wed, 01 Oct 2008 13:04:43 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Kl57t-0004QZ-Lj for emacs-devel@gnu.org; Wed, 01 Oct 2008 17:04:37 +0000 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Oct 2008 17:04:37 +0000 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Oct 2008 17:04:37 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:weBR3FFW50ZNMXhYOOPB9mopKnw= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:104282 Archived-At: Hi, in using filecache.el I found two issues I have for now addressed on my own: 1) the file-cache-alist is never saved. This is a problem with large file sets (incidentally, it would be nice if Emacs had a native way of storing large data sets in an external database, as I mentioned). I wrote a serialization function that essentially dumps with prin1 and princ and reads back with eval. I also added a variable with the list of locations that should be scanned at startup. I wanted to ask if I should submit that as a patch. filecache.el seems pretty lean so I wasn't sure if I should add that kind of weight to it. 2) multiple alternatives are proposed sequentially (with repeated C-u C-TAB). For example, if hello.c is in /data and /data2: /tmp/hello.c[C-TAB] -> /data/hello.c[C-u C-TAB] -> /data2/hello.c[C-u C-TAB] The message displayed is just "1 of 2" and "2 of 2". I modified the message to say: 1 of 2 *1:/data/hello.c* 2:/data2/hello.c 2 of 2 1:/data/hello.c *2:/data2/hello.c* but that's just a hack, not as good as completing-read on the alternatives (this is why I'm not submitting a patch). Has completing-read been considered for the multiple matches case? Thanks Ted