From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: consspam@gmail.com Newsgroups: gmane.emacs.help Subject: problems with filesets Date: Thu, 09 Aug 2007 12:10:18 -0000 Organization: http://groups.google.com Message-ID: <1186661418.538099.152020@b79g2000hse.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1186665573 24804 80.91.229.12 (9 Aug 2007 13:19:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Aug 2007 13:19:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 09 15:19:30 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 1IJ7vG-0003NX-02 for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Aug 2007 15:19:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IJ7vF-00060V-Ai for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Aug 2007 09:19:29 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.stanford.edu!postnews.google.com!b79g2000hse.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 68 Original-NNTP-Posting-Host: 81.225.222.29 Original-X-Trace: posting.google.com 1186661418 6367 127.0.0.1 (9 Aug 2007 12:10:18 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 9 Aug 2007 12:10:18 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: b79g2000hse.googlegroups.com; posting-host=81.225.222.29; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Original-Xref: shelby.stanford.edu gnu.emacs.help:150860 X-Mailman-Approved-At: Thu, 09 Aug 2007 09:19:14 -0400 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:46437 Archived-At: Hello! I tried to address my problem at comp.emacs without much success (no one answered...), so I try again at this group instead: I have problems when defining a fileset from different paths. For example: I want fileset "myfileset" to consist of all files in ~/ src0/ and ~/src1/. Now it seems I've got 3 alternatives when setting the variable 'filesets-data': 1) Use ':files' and specifically name each file in a list (easiest to do in the Customize buffer by typing filesets-edit): (setq filesets-data '(("myfileset" (:files "~/src0/file0.txt" "~/src0/ file1.txt" "~/src1/file0.txt")))) ;...and so on This is a really bad alternative, since I then have to edit the variable 'filesets-data' each time I add a file in my folders. The very reason I'm looking into Emacs is to get away from unintelligent approaches. 2) Use ':pattern' and according to the docs specify a DIR and a PATTERN (regexp): (setq filesets-data '(("myfileset" (:pattern "~/src0/" "^.+\\.txt $")))) Better, but there are some problems with this approach: a) It seems I can only specify 1 dir. If that is true it's useless. I need several arbitrary dirs. The docs states "PATTERN is a regular expression comprising path and file pattern -- e.g. 'PATH/^REGEXP$'. Note the `^' at the beginning of the file name pattern." b) This implies that I could use a regexp in PATTERN to sort of solve my problem: (setq filesets-data '(("myfileset" (:pattern "~/" "src./^.+\\.txt $")))) but that simply doesn't work. When executing filesets-open, nothing happens with no error message. c) I wrote "sort of" above, because even if it did work, it wouldn't solve the problem of arbitrary dirs like ~/src0/ and ~/babba/hubbba/ src1/ (maybe with nasty regexp - but who wants to walk the unreadable- path when its better to just list them instead?) d) what is it with the doc-remark "...Note the `^' at the beginning of the file name pattern."? It's very unlogical and it works fine without it. What am I missing? 3) Use ':tree' and according to the docs specify a ROOT-DIR and a PATTERN and set some magic variable filters-dirs-flag: a) What is the difference between using :pattern and :tree? b) What does the magic variable filters-dirs-flag do? c) When testing: (setq filesets-data '(("test" (:tree "~/src0/" "^.+\\.txt$") (:filter- dirs-flag t)))) the error message "does not exist" is displayed. What am I doing wrong? Multiple filehandling is an important feature for me in my choice of text editor. If someone could help me with this final thing (otherwise Emacs is of course the obvious winner), you have won a lifetime Emacs- advocate :)