From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@gmx.net (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.devel Subject: Re: Custom question: different default values for different environments? Date: Tue, 29 Apr 2003 17:40:25 +0200 Organization: University of Duisburg, Germany Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <84znm98g7q.fsf@lucy.is.informatik.uni-duisburg.de> References: <843ck4jdkw.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1051631522 24835 80.91.224.249 (29 Apr 2003 15:52:02 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 29 Apr 2003 15:52:02 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Apr 29 17:51:52 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19AXOa-0006RR-00 for ; Tue, 29 Apr 2003 17:51:52 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19AXXI-0002pt-00 for ; Tue, 29 Apr 2003 18:00:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19AXNv-0006Ak-02 for emacs-devel@quimby.gnus.org; Tue, 29 Apr 2003 11:51:11 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19AXNN-0005mG-00 for emacs-devel@gnu.org; Tue, 29 Apr 2003 11:50:37 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19AXLM-0005Db-00 for emacs-devel@gnu.org; Tue, 29 Apr 2003 11:48:40 -0400 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19AXId-0004iy-00 for emacs-devel@gnu.org; Tue, 29 Apr 2003 11:45:43 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19AXGm-0005jM-00 for ; Tue, 29 Apr 2003 17:43:48 +0200 Mail-Followup-To: emacs-devel@gnu.org X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19AXEs-0005ZP-00 for ; Tue, 29 Apr 2003 17:41:50 +0200 Original-Lines: 27 Original-X-Complaints-To: usenet@main.gmane.org In-Reply-To: (Richard Stallman's message of "Mon, 28 Apr 2003 19:38:36 -0400") Mail-Copies-To: never User-Agent: Gnus/5.09002 (Oort Gnus v0.20) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:1OdEBeJpy2A74IyFob8OHztkf6I= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13550 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13550 Richard Stallman writes: > There is a defcustom tramp-methods which is a long (nested) list. Its > default value contains "rsh" on most systems, but "remsh" on some > systems. > > The default value could be nil meaning "Use the proper default shell", > and that default could be stored in another variable which is initialized > based on the system type and not user-customizable. > > I think that solves all the problems you mentioned. I'm afraid I didn't tell the whole story. (I didn't think it would be relevant.) Actually, nil already has a meaning, and the string can assume other values besides "rsh"/"remsh": "ssh", "ssh1", "ssh2". (Those occur in the default value.) After some discussion among the Tramp developers, it turns out that it is probably best to just have two entries everywhere: one entry mentioning rsh and another entry mentioning remsh. This means that users have to know whether their system uses rsh or remsh, but at least Emacs does what they say. -- file-error; Data: (Opening input file no such file or directory ~/.signature)