all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: ispell/hunspell/Windows: a fully-worked example
Date: Sat, 05 Apr 2014 11:13:23 +0300	[thread overview]
Message-ID: <83ioqo8a8s.fsf@gnu.org> (raw)
In-Reply-To: <867g74cld6.fsf@gmail.com>

> From: David Masterson <dsmasterson@gmail.com>
> Date: Fri, 04 Apr 2014 23:59:33 -0700
> 
> Eli Zaretskii <eliz@gnu.org> 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.



      reply	other threads:[~2014-04-05  8:13 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-03  7:39 ispell/hunspell/Windows: a fully-worked example djc
2014-04-04  7:41 ` djc
2014-04-04 10:29   ` AW
2014-04-04 10:42     ` Eli Zaretskii
2014-04-04 12:47       ` AW
2014-04-04 13:03         ` Eli Zaretskii
2014-04-04 14:00           ` AW
2014-04-04 14:30             ` AW
2014-04-04 21:56               ` Robert Thorpe
2014-04-05  6:49                 ` Eli Zaretskii
2014-04-05  9:43                   ` Robert Thorpe
     [not found]                 ` <mailman.18956.1396680552.10748.help-gnu-emacs@gnu.org>
2014-04-05  6:59                   ` David Masterson
2014-04-05  8:13                     ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83ioqo8a8s.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.