From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: mode-line with Tramp Date: Tue, 17 Jul 2007 14:32:28 +0200 Message-ID: References: <18065.63231.612402.142669@kahikatea.snap.net.nz> <18066.3981.316891.841594@kahikatea.snap.net.nz> <18066.59645.564793.472461@kahikatea.snap.net.nz> <87k5t88258.fsf@gmx.de> <18068.35413.238789.960586@kahikatea.snap.net.nz> <878x9m6825.fsf@gmx.de> <18069.23173.327298.566469@kahikatea.snap.net.nz> <18070.44458.968610.559681@kahikatea.snap.net.nz> <87myxyhvku.fsf@gmx.de> <18075.64647.459220.644967@kahikatea.snap.net.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1184675587 20226 80.91.229.12 (17 Jul 2007 12:33:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 17 Jul 2007 12:33:07 +0000 (UTC) Cc: emacs-devel@gnu.org To: Nick Roberts Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 17 14:33:06 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IAmEj-0002Hr-Pa for ged-emacs-devel@m.gmane.org; Tue, 17 Jul 2007 14:33:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IAmEj-0006Jj-8h for ged-emacs-devel@m.gmane.org; Tue, 17 Jul 2007 08:33:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IAmEA-00063w-OJ for emacs-devel@gnu.org; Tue, 17 Jul 2007 08:32:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IAmE9-000635-HG for emacs-devel@gnu.org; Tue, 17 Jul 2007 08:32:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IAmE9-00062w-4Z for emacs-devel@gnu.org; Tue, 17 Jul 2007 08:32:29 -0400 Original-Received: from mailrelay2.alcatel.de ([194.113.59.96]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IAmE8-00052i-Lc for emacs-devel@gnu.org; Tue, 17 Jul 2007 08:32:29 -0400 Original-Received: from slbhab.alcatel.de (slbhab.bln.sel.alcatel.de [149.204.63.218]) by mailrelay2.alcatel.de (8.13.4/8.13.4/ICT) with ESMTP id l6HCWNMX032629; Tue, 17 Jul 2007 14:32:23 +0200 In-Reply-To: <18075.64647.459220.644967@kahikatea.snap.net.nz> (Nick Roberts's message of "Tue, 17 Jul 2007 11:17:27 +1200") User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux) X-Scanned-By: MIMEDefang 2.51 on 149.204.45.73 X-detected-kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:74980 Archived-At: Nick Roberts writes: > > (add-hook 'find-file-hooks 'tramp-minor-mode t) > > It's a bit misleading because tramp-minor-mode doesn't have any keybindings > so it's not a real minor-mode. Also for dired, GUD buffer etc. this shows > nothing. Oh, it was just code I've taken from Tramp 2.0. There was a "real" Tramp minor mode, including key bindings, because it offered alternative implementations for `compile' etc. > I think conditioning on (file-remote-p default-directory) was the right idea. > > How about something like this for binding.el: [...] > And %R (not implemented yet) works a bit like %*: print R or hyphen depending > on whether (file-remote-p default-directory) is true or not. I don't know whether it is OK to call pure Lisp functions in decode_mode_spec. Besides of this, it looks natural to me. And one could also think about a host indication %h, which is a candidate for frame-title-format or header-line-format. However, I'm rather chary with changes in xdisp.c, bindings.el etc, because I don't know whether they are accepted by the majority. Best regards, Michael.