From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#2030: 23.0.60; doc string of dired-guess-shell-alist-user Date: Mon, 11 Jul 2011 15:48:52 +0200 Message-ID: References: <000c01c97e57$3c19ad20$0200a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1310395519 26989 80.91.229.12 (11 Jul 2011 14:45:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Jul 2011 14:45:19 +0000 (UTC) Cc: 2030@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 11 16:45:14 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QgHjW-0000QQ-2p for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Jul 2011 16:45:14 +0200 Original-Received: from localhost ([::1]:59904 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgHjU-0005w5-Oh for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Jul 2011 10:45:13 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgH0r-0002XH-M7 for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 09:59:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QgH0p-0007AB-TG for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 09:59:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgH0p-0007A4-Jd for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 09:59:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QgH0o-0007TW-GI; Mon, 11 Jul 2011 09:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jul 2011 13:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 2030 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 2030-submit@debbugs.gnu.org id=B2030.131039269328651 (code B ref 2030); Mon, 11 Jul 2011 13:59:02 +0000 Original-Received: (at 2030) by debbugs.gnu.org; 11 Jul 2011 13:58:13 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgH00-0007S0-Qg for submit@debbugs.gnu.org; Mon, 11 Jul 2011 09:58:13 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgGzv-0007RP-Pb for 2030@debbugs.gnu.org; Mon, 11 Jul 2011 09:58:09 -0400 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1QgGzk-00010o-Ic; Mon, 11 Jul 2011 15:57:56 +0200 In-Reply-To: <000c01c97e57$3c19ad20$0200a8c0@us.oracle.com> (Drew Adams's message of "Sat, 24 Jan 2009 11:09:08 -0800") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Wire's _Red Barked Tree_: "Please Take" X-Hashcash: 1:23:110711:drew.adams@oracle.com::ZmWe4k10kSG1hq1N:00000000000000000000000000000000000000000L2w X-Hashcash: 1:23:110711:2030@debbugs.gnu.org::ISAHXqbJbzseaBIg:00000000000000000000000000000000000000000p8N5 X-MailScanner-ID: 1QgGzk-00010o-Ic MailScanner-NULL-Check: 1310997476.6807@hYnIjHR7wN1Gn41LysyZIQ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 11 Jul 2011 09:59:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org 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 Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:48562 Archived-At: "Drew Adams" writes: > The doc string should suggest that users use Customize. It should not > use a complex `setq' example as its only illustration: > > (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")))) I think complicated variables are best served with non-Customize examples. I've rewritten it to use a quote instead of all the `list' operations, which should make it clearer. > This example is in any case incorrect - "\\.bar\'" should be "\\.bar\\'". This was apparently fixed already. > If it's felt that an example of a _value_ for this option is needed, > then it's OK to show that directly: > > (("\\.foo\\'" "foo-command") ; unconditional rule > ("\\.bar\\'" ; conditional rule > (if (some-sexp) "bar-command-1" "bar-command-2"))) > > But there is absolutely no reason to show setting the value using > `setq', especially since the expression evaluated by `setq' is 100% > constant. I disagree. A complete `setq' is convenient to cut and paste. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/