From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: [patch] 21.3 dired.el direx-aux.el dired-read-shell-command and default values Date: Mon, 09 Feb 2004 11:51:11 -0700 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <4027D69F.6060508@yahoo.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1076353109 24030 80.91.224.253 (9 Feb 2004 18:58:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 9 Feb 2004 18:58:29 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 09 19:58:09 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AqGbh-0004qe-00 for ; Mon, 09 Feb 2004 19:58:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AqGYE-0007wt-1X for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Feb 2004 13:54:34 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AqGVf-0007LR-OP for bug-gnu-emacs@prep.ai.mit.edu; Mon, 09 Feb 2004 13:51:55 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AqGV7-00079E-MG for bug-gnu-emacs@prep.ai.mit.edu; Mon, 09 Feb 2004 13:51:53 -0500 Original-Received: from [130.59.10.2] (helo=chx400.switch.ch) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AqGV6-00077l-Nb for bug-gnu-emacs@prep.ai.mit.edu; Mon, 09 Feb 2004 13:51:20 -0500 Original-Received: from mail.fu-berlin.de ([160.45.11.165]) by chx400.switch.ch with esmtp (Exim 3.20 #1) id 1AqGV4-0005Bj-00 for gnu-emacs-bug@moderators.isc.org; Mon, 09 Feb 2004 19:51:18 +0100 Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Mon, 9 Feb 2004 19:51:17 +0100 (MET) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Mon, 9 Feb 2004 19:51:17 +0100 (MET) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 33 X-Orig-NNTP-Posting-Host: 170.207.51.80 X-Orig-X-Trace: news.uni-berlin.de 1076352676 37878638 D 170.207.51.80 ([82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:6920 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:6920 Jari Aalto+mail.linux wrote: > In regard to this mail, here are patches for generally framework > of this kind. The command offered depends on file extension. > > From: Dan Jacobson jidanni.org> > Subject: make .pod trigger perldoc > Newsgroups: gnu.emacs.bug > To: bug-gnu-emacs gnu.org > Date: 2004-02-04 06:07 ke EET > Message-ID: gnu.org> > > Make perldoc the default dired-do-shell-command when encountering > .pod files. > > 2004-02-07 Sat Jari Aalto poboxes.com> > > * dired.el (dired-shell-command-list): New user variable. > > * dired-aux.el (dired-read-shell-command-default-command): New. > (dired-read-shell-command): Consult > `dired-read-shell-command-default-command' and offer default if > any. Dan can get the behavior he desires by installing dired-x as documented and adding a ("\\.pod\\'" "perldoc") entry to dired-guess-shell-alist-user. If it is a bug that this is not configured by default, then you should just patch dired-x.el and add that entry to dired-guess-shell-alist-default, instead of defining a new variable and hacking up dired-aux.el. -- Kevin Rodgers