From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Info-insert-dir Date: Mon, 19 Mar 2007 17:57:18 -0400 Message-ID: References: <45FAF396.1030504@gmx.at> <45FD35C4.7060207@gmx.at> <45FE5CDD.3010909@gmx.at> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1174341597 32288 80.91.229.12 (19 Mar 2007 21:59:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Mar 2007 21:59:57 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 19 22:59:49 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 1HTPtL-0002TB-1s for ged-emacs-devel@m.gmane.org; Mon, 19 Mar 2007 22:59:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HTPup-0007l5-2I for ged-emacs-devel@m.gmane.org; Mon, 19 Mar 2007 17:01:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HTPuN-0007Yv-5x for emacs-devel@gnu.org; Mon, 19 Mar 2007 18:00:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HTPuM-0007YV-GE for emacs-devel@gnu.org; Mon, 19 Mar 2007 18:00:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HTPuM-0007YP-Cs for emacs-devel@gnu.org; Mon, 19 Mar 2007 17:00:50 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HTPsr-0002KE-9L for emacs-devel@gnu.org; Mon, 19 Mar 2007 17:59:17 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1HTPqw-00025X-7I; Mon, 19 Mar 2007 17:57:18 -0400 In-reply-to: <45FE5CDD.3010909@gmx.at> (message from martin rudalics on Mon, 19 Mar 2007 10:50:21 +0100) 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:68125 Archived-At: Probably. It's a customizable variable and `wid-edit' doesn't even check if the user puts valid directory names in there. It shouldn't check that. We do not try to stop users from putting nonexistent directory names into Lisp variables. (unless (file-exists-p default-directory) (setq default-directory (expand-file-name "~/"))) AFAICT this is the only occurrence of such a test in the entire Emacs sources. It might fail if default-directory equals the name of an existing non-directory file - an unlikely case, though. Perhaps it should verify that this is an existing directory. But isn't it a bit tedious to search for all occurrences of `call-process' etc? Couldn't such a check make it to `call-process', `start-process' ... It would be incorrect to change call-process to change the default directory on its own. Often the execution of a command depends on the current directory, so that if the current directory is nonexistent, an error is the right thing. We could make a subroutine which does this and calls call-process.