From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: M-x shell fails in tramp buffer Date: Wed, 22 Aug 2007 21:58:20 +0200 Message-ID: <87ejhvbaub.fsf@gmx.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187812901 10714 80.91.229.12 (22 Aug 2007 20:01:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Aug 2007 20:01:41 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: "Chris Moore" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 22 22:01:39 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 1INwOU-0005Q9-Un for ged-emacs-devel@m.gmane.org; Wed, 22 Aug 2007 22:01:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INwNe-0004UD-Ub for ged-emacs-devel@m.gmane.org; Wed, 22 Aug 2007 16:00:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1INwLR-0002ry-Uk for emacs-devel@gnu.org; Wed, 22 Aug 2007 15:58:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1INwLQ-0002qg-H3 for emacs-devel@gnu.org; Wed, 22 Aug 2007 15:58:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INwLQ-0002qU-Dw for emacs-devel@gnu.org; Wed, 22 Aug 2007 15:58:24 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1INwLQ-0001TH-4H for emacs-devel@gnu.org; Wed, 22 Aug 2007 15:58:24 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1INwPP-0007tN-TM for emacs-pretest-bug@gnu.org; Wed, 22 Aug 2007 16:02:31 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1INwLP-0001TB-Gv for emacs-pretest-bug@gnu.org; Wed, 22 Aug 2007 15:58:23 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1INwLP-0001T1-20 for emacs-pretest-bug@gnu.org; Wed, 22 Aug 2007 15:58:23 -0400 Original-Received: (qmail invoked by alias); 22 Aug 2007 19:58:21 -0000 Original-Received: from p57A2394D.dip0.t-ipconnect.de (EHLO localhost.local) [87.162.57.77] by mail.gmx.net (mp057) with SMTP; 22 Aug 2007 21:58:21 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/D5clYoA7DYQaPHaBy3Ysldn6vsGQR6RfxJlxpIS Ft8bIN/K7sKSZq In-Reply-To: (Chris Moore's message of "Tue, 21 Aug 2007 11:44:53 +0200") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-Detected-Kernel: Linux 2.6 (newer, 1) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) 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:76983 gmane.emacs.pretest.bugs:19584 Archived-At: "Chris Moore" writes: > Visit some FTP site: > > "C-x d /anonymous@ftp.gnu.org:/ RET" > > Then try running a shell: > > "M-x shell RET" > > I see a backtrace: > > Debugger entered--Lisp error: (wrong-type-argument processp nil) > process-coding-system(nil) > comint-exec-1("shell" # "/bin/bash" ("--noediting" "-i")) comint-exec-1 uses start-file-process now, which starts a process depending on the file name handler responsible for default-directory. ange-ftp is not able to start a process; it always returns nil for start-file-process. I've added a check in comint-exec-1 to raise an error if start-file-process returns nil. Additionally, if you start "shell" with a prefix argument, and default-directory is a remote file name, you will be prompted now to change the value of default-directory. "C-u M-x shell RET" shall be reasonable now if you are on a remote FTP site. Best regards, Michael.