From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: ispell/hunspell/Windows: a fully-worked example Date: Sat, 05 Apr 2014 11:13:23 +0300 Message-ID: <83ioqo8a8s.fsf@gnu.org> References: <87zjk0zrl6.fsf@robertthorpeconsulting.com> <867g74cld6.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1396685618 1936 80.91.229.3 (5 Apr 2014 08:13:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Apr 2014 08:13:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 05 10:13:31 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WWLjH-0007Xu-1G for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Apr 2014 10:13:31 +0200 Original-Received: from localhost ([::1]:53699 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWLjG-0005Qv-GM for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Apr 2014 04:13:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWLix-0005ON-RB for help-gnu-emacs@gnu.org; Sat, 05 Apr 2014 04:13:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WWLir-0000ds-VF for help-gnu-emacs@gnu.org; Sat, 05 Apr 2014 04:13:11 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:48886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWLir-0000dU-Mv for help-gnu-emacs@gnu.org; Sat, 05 Apr 2014 04:13:05 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0N3J00H00T5LV000@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Sat, 05 Apr 2014 11:13:04 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N3J00H54THRN760@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Sat, 05 Apr 2014 11:13:04 +0300 (IDT) In-reply-to: <867g74cld6.fsf@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96996 Archived-At: > From: David Masterson > Date: Fri, 04 Apr 2014 23:59:33 -0700 > > Eli Zaretskii writes: > > > Emacs never searches for things "in the current directory", it always > > fully resolves file names relative to the current buffer's value of > > default-directory, before passing them to system-call APIs. The > > "Start in" directory set by the desktop shortcut only affects the > > *scratch* buffer; every other buffer will have some other directory as > > its default one. E.g., buffers that visit files have that file's > > directory as their default-directory. > > > > So I wonder whether you could show a real-life case where this problem > > is indeed at work. I think such cases don't really exist, except when > > you evaluate expressions in *scratch*. > > The OP is using the typical use-case. Emacs will indeed start with the > default-directory set to the value of "Start In" for the Windows icon. > Any buffer created will inherit this value and, then, may set a new > value. Correction: (almost) all buffers set a new value for default-directory. It is not easy to find buffers that don't, if they at all exist. > Therefore, the real-life case is that, if you go into dired, you > may not be in what you were expecting... Dired asks for the directory to edit. If you go to Dired from *scratch*, and if you accept the default without changing it, you will indeed get the listing of the directory where Emacs started. But I fail to see how this is related to the OP, whose problem was to find the correct speller on PATH. And even in the above case, the directory where you run Dired is explicitly shown in the prompt, so the user should see it and understand what she is doing. > The answer to the OP is to set the "Start In" property of the Windows > icon for Emacs to something that will always be appropriate (like the > Documents directory in your \Users directory). And my answer to the OP is that the value of "Start in" hardly matters, although setting to something other than the directory of another Emacs version definitely cannot do any harm.