From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neon Absentius Newsgroups: gmane.emacs.help Subject: Re: change of variable name in 21.4 Date: Sat, 3 Sep 2005 12:03:38 +0000 Message-ID: <20050903120338.GE14524@SDF.LONESTAR.ORG> References: <87k6hy37ew.fsf@wash.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-7 X-Trace: sea.gmane.org 1125750980 21434 80.91.229.2 (3 Sep 2005 12:36:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 3 Sep 2005 12:36:20 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 03 14:36:17 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EBXEV-0006Hd-Ge for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Sep 2005 14:34:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EBXIj-0002UO-A5 for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Sep 2005 08:39:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EBX1c-0004wS-8E for help-gnu-emacs@gnu.org; Sat, 03 Sep 2005 08:21:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EBX1W-0004sm-AZ for help-gnu-emacs@gnu.org; Sat, 03 Sep 2005 08:21:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EBX1V-0004lq-6J for help-gnu-emacs@gnu.org; Sat, 03 Sep 2005 08:21:29 -0400 Original-Received: from [192.94.73.21] (helo=sdf.lonestar.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EBWnw-00035Q-Kn for help-gnu-emacs@gnu.org; Sat, 03 Sep 2005 08:07:29 -0400 Original-Received: from sdf.lonestar.org (IDENT:absent@otaku.freeshell.org [192.94.73.2]) by sdf.lonestar.org (8.13.1/8.12.10) with ESMTP id j83C3diE005402 for ; Sat, 3 Sep 2005 12:03:39 GMT Original-Received: (from absent@localhost) by sdf.lonestar.org (8.13.1/8.12.8/Submit) id j83C3cNr021766 for help-gnu-emacs@gnu.org; Sat, 3 Sep 2005 12:03:38 GMT Original-To: help-gnu-emacs@gnu.org Mail-Followup-To: Neon Absentius , help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <87k6hy37ew.fsf@wash.edu> User-Agent: Mutt/1.4.2.1i 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:29188 Archived-At: On Sat, Sep 03, 2005 at 06:03:03PM +1000, Baloff wrote: > Hello > > I have been trying to find the name of the variable to change file > association with an application. according to the book I am reading > it is called Dired-view-command-alist. but not in emacs 21.4a-1 under > Debian. does any one know what the name of the variable is. > I tried C-h [a to z] for no avail. > ,----[ C-h v dired-guess-shell-alist-user RET ] | dired-guess-shell-alist-user's value is shown below. | | Documentation: | User-defined alist of rules for suggested commands. | These rules take precedence over the predefined rules in the variable | `dired-guess-shell-alist-default' (to which they are prepended). | | Each element of this list looks like | | (REGEXP COMMAND...) | | where each COMMAND can either be a string or a lisp expression that evaluates | to a string. If several COMMANDs are given, the first one will be the default | and the rest will be added temporarily to the history and can be retrieved | with M-x previous-history-element (M-p) . | | You can set this variable in your ~/.emacs. For example, to add rules for | `.foo' and `.bar' files, write | | (setq dired-guess-shell-alist-user | (list (list "\\.foo\\'" "FOO-COMMAND");; fixed rule | ;; possibly more rules ... | (list "\\.bar\'";; rule with condition test | '(if condition | "BAR-COMMAND-1" | "BAR-COMMAND-2")))) | | You can customize this variable. | | Defined in `dired-x'. | | Value: | (("\\.pdf$" "xpdf * &") | ("\\.pdf\\.gz$" "zxpdf * &") | ("\\.dvi$" "xdvi * &") | ("\\.ps$" "gv --spartan * &") | ("\\.eps$" "gv --spartan * &") | ("\\.ps\\.gz$" "gv --spartan * &") | ("\\.rtf$" "ted * &") | ("\\.jpeg$" "display * &") | ("\\.jpg$" "display * &") | ("\\.gif$" "display * &") | ("\\.png$" "display * &")) `---- > thanks > > > LocalWords: Dired alist -- Most precious among the relics remaining of Peter's skeleton in the Vatican are 29 fragments of one of his skulls. (St. Peter's other skull is preserved in a reliquary at the Cathedral of St. John Lateran.) -- Frank R. Zindler, "Of Bones and Boners"