Re: Emacs 24 with tramp on windows 7 can't find plink

Eli Zaretskii <[email protected]>
Newsgroups gmane.emacs.windows
Message-ID <[email protected]>
> From: Andy Moreton <[email protected]>
> Date: Tue, 11 Mar 2014 14:50:24 +0000
> 
> (when (eq system-type 'windows-nt)
>   (let ((dir (expand-file-name "PuTTY" (or (getenv "ProgramFiles(x86)")
>                                            (getenv "ProgramFiles")))))
>     (add-to-list 'exec-path dir)
>     (let ((case-fold-search t) (path (getenv "PATH")))
>       (unless (string-match (regexp-quote dir) path)
>         (setenv "PATH" (concat dir path-separator path))))))

I again recommend to change PATH directly, instead of doing the above.
Changing PATH will avoid confusion when invoking putty, plink, pscp,
etc. from other programs (e.g., git or svn) and from the command line.

IOW, if you use PuTTY, it makes sense to make it available all over
the system, not just from Emacs.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.