From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "davex" Newsgroups: gmane.emacs.help Subject: Re: Elisp newbie trying a derived mode (clarifying intent) Date: 28 Sep 2006 18:49:26 -0700 Organization: http://groups.google.com Message-ID: <1159494566.323253.174670@m73g2000cwd.googlegroups.com> References: <1159470167.933570.91970@b28g2000cwb.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1159497640 13465 80.91.229.2 (29 Sep 2006 02:40:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 29 Sep 2006 02:40:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 29 04:40:39 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GT8Ie-0000gl-Mo for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Sep 2006 04:40:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GT8Id-0007dn-B2 for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Sep 2006 22:40:27 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!m73g2000cwd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: 72.70.144.144 Original-X-Trace: posting.google.com 1159494572 11258 127.0.0.1 (29 Sep 2006 01:49:32 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 29 Sep 2006 01:49:32 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20060629 Firefox/1.0.4 (Debian package 1.0.4-2sarge9),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: m73g2000cwd.googlegroups.com; posting-host=72.70.144.144; posting-account=Li68cQ0AAABE3Qi4IjR_9K1h0o1I60bk Original-Xref: shelby.stanford.edu gnu.emacs.help:142089 Original-To: help-gnu-emacs@gnu.org 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:37709 Archived-At: Kevin Rodgers wrote: > davex wrote: > > Hello all, my first post here, and I've recently started coding elisp. > > I want a simple method of interactively selecting multiple files or > > directories, and passing the selection list to an external program. > > My first thought was to tweak dired mode, so that I could just navigate --- tweak = make a derived mode based on dired, with added functions --(davex) > > around dirs, marking files and dirs that I want (with 'm') and then > > have a special key call dired-do-shell-command with something to > > append each marked entry to a text file. --- let me clarify the above--I'd like to make this simple to use regularly, hence have a single keystroke call dired-do-shell-command, with the correct shell command (to write out the filename) hard-coded-- i suppose i could do this as a keyboard macro, but if I can do a derived mode in a clean concise way, I could apply this skill elsewhere. Am I on the right track? Is a derived mode a common useful solution? ---(davex) > > > > Question: is there something simpler than dired to tweak? All I really > > need is the directory navigation and marking capability. > > Why do you need to tweak anything at all, since dired already provides > all that? > > -- > Kevin