* Ediff error -- Permission denied (Win8)
@ 2013-08-01 20:30 Yeşim Erke-Magent
2013-08-01 21:38 ` Óscar Fuentes
` (5 more replies)
0 siblings, 6 replies; 15+ messages in thread
From: Yeşim Erke-Magent @ 2013-08-01 20:30 UTC (permalink / raw)
To: help-gnu-emacs
It has been years I used Emacs so when I needed to compare 2 text files (they are VBA macros, but I saved them with .txt extension. I installed emacs (version 24.3.1) and used "Compare (Ediff)" under "Tools" menu. Then selected "Two files" and I receive
"Searching for program: permission denied, diff"
I then open the files and tried to compare 2 buffers, but it didn't make any difference.
I have 64-bit Win8 on my PC and emacs' directory is under Users directory, not Program Files. Could this be a problem?
BTW, I also installed GNU grep, but couldn't manage to run it through command line. I then tried using grep under Tools of emacs and it didn't work either.
I wish I had Unix running on my machine!
I will appreciate any suggestions.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Ediff error -- Permission denied (Win8)
2013-08-01 20:30 Ediff error -- Permission denied (Win8) Yeşim Erke-Magent
@ 2013-08-01 21:38 ` Óscar Fuentes
2013-08-01 23:39 ` Stefan Monnier
` (4 subsequent siblings)
5 siblings, 0 replies; 15+ messages in thread
From: Óscar Fuentes @ 2013-08-01 21:38 UTC (permalink / raw)
To: help-gnu-emacs
Yeşim Erke-Magent <yesim.ev@gmail.com> writes:
> It has been years I used Emacs so when I needed to compare 2 text
> files (they are VBA macros, but I saved them with .txt extension. I
> installed emacs (version 24.3.1) and used "Compare (Ediff)" under
> "Tools" menu. Then selected "Two files" and I receive
>
> "Searching for program: permission denied, diff"
>
> I then open the files and tried to compare 2 buffers, but it didn't make any difference.
Do you have `diff' installed?
> I have 64-bit Win8 on my PC and emacs' directory is under Users
> directory, not Program Files. Could this be a problem?
No.
> BTW, I also installed GNU grep, but couldn't manage to run it through
> command line. I then tried using grep under Tools of emacs and it
> didn't work either.
Is `grep' on a directory listed on the PATH environment variable? How do
you obtained and installed `grep'? Same for `diff'.
Please note that under Windows you either install the executables on a
directory already listed on PATH or (better) you add to PATH the
directory where you installed the executable (when you wish to execute
that executables from other executables.)
You can set PATH from the OS Control Panel or from your .emacs. See the
documentation for `setenv' function and for `exec-path' variable.
Also, Emacs has variables for finding certain programs on user-specified
places or with special names. For grep, there is the variable
`grep-program'.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Ediff error -- Permission denied (Win8)
2013-08-01 20:30 Ediff error -- Permission denied (Win8) Yeşim Erke-Magent
2013-08-01 21:38 ` Óscar Fuentes
@ 2013-08-01 23:39 ` Stefan Monnier
[not found] ` <mailman.2342.1375400381.12400.help-gnu-emacs@gnu.org>
` (3 subsequent siblings)
5 siblings, 0 replies; 15+ messages in thread
From: Stefan Monnier @ 2013-08-01 23:39 UTC (permalink / raw)
To: help-gnu-emacs
> I wish I had Unix running on my machine!
Do you need help with that?
Stefan
^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <mailman.2342.1375400381.12400.help-gnu-emacs@gnu.org>]
* Re: Ediff error -- Permission denied (Win8)
[not found] ` <mailman.2342.1375400381.12400.help-gnu-emacs@gnu.org>
@ 2013-08-02 4:44 ` Rustom Mody
2013-08-02 20:11 ` Yeşim Erke-Magent
2013-08-02 20:07 ` Yeşim Erke-Magent
1 sibling, 1 reply; 15+ messages in thread
From: Rustom Mody @ 2013-08-02 4:44 UTC (permalink / raw)
To: help-gnu-emacs
On Friday, August 2, 2013 5:09:16 AM UTC+5:30, Stefan Monnier wrote:
> > I wish I had Unix running on my machine!
>
> Do you need help with that?
Since this seems to be such a FAQ, attempting to say something. Hopefully more windows-aware folks will amend.
Many people using windows find need for unix-ish facilities/features/feel.
Setting up native windows emacs is a first (but not last!) step.
cygwin is considered a full-featured but somewhat heavyweight answer to this need
mingw is a somewhat lighter solution.
Some comparison here http://stackoverflow.com/questions/771756/what-is-the-difference-between-cygwin-and-mingw
You can also set up diff/grep etc alone.
[I believe Eli has posted the link a few days back...]
Other solutions:
Win+Linux side-by-side: Make your system multibootable with grub.
This is an old solution. In my most recent bundled-with-win-8 laptop, copying files from ubuntu and windows is not working as it used to. Seems to be a uefi/gpt problem.
Windows-inside-linux: wubi can be installed as a normal windows program inside windows and was quite popular but again seems to be suffering gpt/uefi related problems.
Linux-in-VM-in-windows: I know some friends who swear by VMware. No experience myself.
Wine: windows emulator inside linux. Will run many (not all!) windows programs on a vanilla gnu/linux
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Ediff error -- Permission denied (Win8)
2013-08-02 4:44 ` Rustom Mody
@ 2013-08-02 20:11 ` Yeşim Erke-Magent
0 siblings, 0 replies; 15+ messages in thread
From: Yeşim Erke-Magent @ 2013-08-02 20:11 UTC (permalink / raw)
To: help-gnu-emacs
On Friday, August 2, 2013 12:44:24 AM UTC-4, Rustom Mody wrote:
> On Friday, August 2, 2013 5:09:16 AM UTC+5:30, Stefan Monnier wrote:
>
> > > I wish I had Unix running on my machine!
>
> >
>
> > Do you need help with that?
>
>
>
> Since this seems to be such a FAQ, attempting to say something. Hopefully more windows-aware folks will amend.
>
>
>
> Many people using windows find need for unix-ish facilities/features/feel.
>
>
>
> Setting up native windows emacs is a first (but not last!) step.
>
> cygwin is considered a full-featured but somewhat heavyweight answer to this need
>
> mingw is a somewhat lighter solution.
>
>
>
> Some comparison here http://stackoverflow.com/questions/771756/what-is-the-difference-between-cygwin-and-mingw
>
>
>
> You can also set up diff/grep etc alone.
>
> [I believe Eli has posted the link a few days back...]
>
>
>
> Other solutions:
>
> Win+Linux side-by-side: Make your system multibootable with grub.
>
> This is an old solution. In my most recent bundled-with-win-8 laptop, copying files from ubuntu and windows is not working as it used to. Seems to be a uefi/gpt problem.
>
>
>
> Windows-inside-linux: wubi can be installed as a normal windows program inside windows and was quite popular but again seems to be suffering gpt/uefi related problems.
>
>
>
> Linux-in-VM-in-windows: I know some friends who swear by VMware. No experience myself.
>
>
>
> Wine: windows emulator inside linux. Will run many (not all!) windows programs on a vanilla gnu/linux
I installed cygwin after receiving a reply to my question. I added it to the Environment Variable, PATH (please see my previous comment) but cannot still make it work. I guess the major problem is I can hardly remember Unix commands as well as Emacs as it has been over a decade I used them.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Ediff error -- Permission denied (Win8)
[not found] ` <mailman.2342.1375400381.12400.help-gnu-emacs@gnu.org>
2013-08-02 4:44 ` Rustom Mody
@ 2013-08-02 20:07 ` Yeşim Erke-Magent
1 sibling, 0 replies; 15+ messages in thread
From: Yeşim Erke-Magent @ 2013-08-02 20:07 UTC (permalink / raw)
To: help-gnu-emacs
On Thursday, August 1, 2013 7:39:16 PM UTC-4, Stefan Monnier wrote:
> > I wish I had Unix running on my machine!
>
>
>
> Do you need help with that?
>
>
>
>
>
> Stefan
Stefan, thanks for your offer, but I guess I will pass having Unix on our PC for the moment
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Ediff error -- Permission denied (Win8)
2013-08-01 20:30 Ediff error -- Permission denied (Win8) Yeşim Erke-Magent
` (2 preceding siblings ...)
[not found] ` <mailman.2342.1375400381.12400.help-gnu-emacs@gnu.org>
@ 2013-08-02 5:47 ` Eli Zaretskii
[not found] ` <mailman.2337.1375393123.12400.help-gnu-emacs@gnu.org>
[not found] ` <mailman.2361.1375422778.12400.help-gnu-emacs@gnu.org>
5 siblings, 0 replies; 15+ messages in thread
From: Eli Zaretskii @ 2013-08-02 5:47 UTC (permalink / raw)
To: help-gnu-emacs
> Date: Thu, 1 Aug 2013 13:30:24 -0700 (PDT)
> From: Yeşim Erke-Magent <yesim.ev@gmail.com>
>
> It has been years I used Emacs so when I needed to compare 2 text files (they are VBA macros, but I saved them with .txt extension. I installed emacs (version 24.3.1) and used "Compare (Ediff)" under "Tools" menu. Then selected "Two files" and I receive
>
> "Searching for program: permission denied, diff"
>
> I then open the files and tried to compare 2 buffers, but it didn't make any difference.
Please tell what do the following 2 commands produce in Emacs:
M-: (executable-find "diff") RET
M-: (executable-find "grep") RET
^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <mailman.2337.1375393123.12400.help-gnu-emacs@gnu.org>]
* Re: Ediff error -- Permission denied (Win8)
[not found] ` <mailman.2337.1375393123.12400.help-gnu-emacs@gnu.org>
@ 2013-08-02 20:06 ` Yeşim Erke-Magent
2013-08-02 23:14 ` Drew Adams
0 siblings, 1 reply; 15+ messages in thread
From: Yeşim Erke-Magent @ 2013-08-02 20:06 UTC (permalink / raw)
To: help-gnu-emacs
On Thursday, August 1, 2013 5:38:13 PM UTC-4, Óscar Fuentes wrote:
> Yeşim Erke-Magent <yesim.ev@gmail.com> writes:
>
>
>
> > It has been years I used Emacs so when I needed to compare 2 text
>
> > files (they are VBA macros, but I saved them with .txt extension. I
>
> > installed emacs (version 24.3.1) and used "Compare (Ediff)" under
>
> > "Tools" menu. Then selected "Two files" and I receive
>
> >
>
> > "Searching for program: permission denied, diff"
>
> >
>
> > I then open the files and tried to compare 2 buffers, but it didn't make any difference.
>
>
>
> Do you have `diff' installed?
>
>
>
> > I have 64-bit Win8 on my PC and emacs' directory is under Users
>
> > directory, not Program Files. Could this be a problem?
>
>
>
> No.
>
>
>
> > BTW, I also installed GNU grep, but couldn't manage to run it through
>
> > command line. I then tried using grep under Tools of emacs and it
>
> > didn't work either.
>
>
>
> Is `grep' on a directory listed on the PATH environment variable? How do
>
> you obtained and installed `grep'? Same for `diff'.
>
>
>
> Please note that under Windows you either install the executables on a
>
> directory already listed on PATH or (better) you add to PATH the
>
> directory where you installed the executable (when you wish to execute
>
> that executables from other executables.)
>
>
>
> You can set PATH from the OS Control Panel or from your .emacs. See the
>
> documentation for `setenv' function and for `exec-path' variable.
>
>
>
> Also, Emacs has variables for finding certain programs on user-specified
>
> places or with special names. For grep, there is the variable
>
> `grep-program'.
Ediff already came with GNU Emacs (under the Tools menu). Like emacs, I downloaded GNU Grep. Also, I installed cygwin. I added the new directories in PATH ( I found it through)
Control Panel -> System and Security -> System -> Advanced System Settings (pops up System Properties window) -> Advanced -> Environment Variables
After installing cygwin I tried Ediff, I got a new warning
cygwin warning:
MS-DOS style path detected: d:\Temp\Macro1.txt
Preferred POSIX equivalent is: /cygdrive/d/Temp/Macro1.txt
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
I tried to figure out what to do, but I don't know how to set up the environment variable.
^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <mailman.2361.1375422778.12400.help-gnu-emacs@gnu.org>]
* Re: Ediff error -- Permission denied (Win8)
[not found] ` <mailman.2361.1375422778.12400.help-gnu-emacs@gnu.org>
@ 2013-08-02 20:19 ` Yeşim Erke-Magent
2013-08-03 7:43 ` Eli Zaretskii
0 siblings, 1 reply; 15+ messages in thread
From: Yeşim Erke-Magent @ 2013-08-02 20:19 UTC (permalink / raw)
To: help-gnu-emacs
Hi Eli,
You may have seen from my above posting that I haven't used Emacs for a loooong while, but here is the info you wanted
>
> M-: (executable-find "diff") RET --> d:/cgywin64/bin/diff.exe
>
> M-: (executable-find "grep") RET --> d:/cgywin64/bin/grep.exe
>
I added d:/cgywin64/bin in the environment variable "Path" Does this help?
Thanks,
Yesim
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Ediff error -- Permission denied (Win8)
2013-08-02 20:19 ` Yeşim Erke-Magent
@ 2013-08-03 7:43 ` Eli Zaretskii
2015-03-09 10:39 ` dbbd
0 siblings, 1 reply; 15+ messages in thread
From: Eli Zaretskii @ 2013-08-03 7:43 UTC (permalink / raw)
To: help-gnu-emacs
> Date: Fri, 2 Aug 2013 13:19:31 -0700 (PDT)
> From: Yeşim Erke-Magent <yesim.ev@gmail.com>
>
> > M-: (executable-find "diff") RET --> d:/cgywin64/bin/diff.exe
> >
> > M-: (executable-find "grep") RET --> d:/cgywin64/bin/grep.exe
> >
>
> I added d:/cgywin64/bin in the environment variable "Path" Does this help?
Does the problem happen when you invoke Emacs as "emacs -Q"? If it
doesn't, then something in your .emacs init file might be the culprit.
If the problem happens in "emacs -Q" as well, type
M-x set-variable RET debug-on-error RET t RET
then invoke Ediff again. You should get a Lisp backtrace in a
separate window. Post that backtrace here.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Ediff error -- Permission denied (Win8)
2013-08-03 7:43 ` Eli Zaretskii
@ 2015-03-09 10:39 ` dbbd
2015-03-09 16:34 ` Eli Zaretskii
0 siblings, 1 reply; 15+ messages in thread
From: dbbd @ 2015-03-09 10:39 UTC (permalink / raw)
To: Help-gnu-emacs
Hi Eli,
thanks for this post. In fact, I have the same permission denied problem
(emacs 24.3 under windows7, cygwin installed and added to windows path, diff
working in DOS-terminal; problem still present if I log in as
Administrator). So I followed your advice, and here is the backtrack:
Debugger entered--Lisp error: (file-error "Searching for program"
"permission denied" "diff")
call-process("diff" nil #<buffer *ediff-diff<2>*> nil "c:\\Program Files
(x86)\\GNU\\emacs-24.3\\README" "c:\\Program Files
(x86)\\GNU\\emacs-24.3\\README.W32")
apply(call-process "diff" nil #<buffer *ediff-diff<2>*> nil ("c:\\Program
Files (x86)\\GNU\\emacs-24.3\\README" "c:\\Program Files
(x86)\\GNU\\emacs-24.3\\README.W32"))
ediff-exec-process("diff" #<buffer *ediff-diff<2>*> synchronize "--binary"
"c:\\Program Files (x86)\\GNU\\emacs-24.3\\README" "c:\\Program Files
(x86)\\GNU\\emacs-24.3\\README.W32")
ediff-make-diff2-buffer(#<buffer *ediff-diff<2>*> "c:\\Program Files
(x86)\\GNU\\emacs-24.3\\README" "c:\\Program Files
(x86)\\GNU\\emacs-24.3\\README.W32")
ediff-setup-diff-regions("c:\\Program Files
(x86)\\GNU\\emacs-24.3\\README" "c:\\Program Files
(x86)\\GNU\\emacs-24.3\\README.W32" nil)
ediff-setup(#<buffer README> "c:/Program Files
(x86)/GNU/emacs-24.3/README" #<buffer README.W32> "c:/Program Files
(x86)/GNU/emacs-24.3/README.W32" nil nil nil ((ediff-job-name .
ediff-files)) nil)
ediff-files-internal("c:/Program Files (x86)/GNU/emacs-24.3/README"
"c:/Program Files (x86)/GNU/emacs-24.3/README.W32" nil nil ediff-files)
ediff-files("c:/Program Files (x86)/GNU/emacs-24.3/README" "c:/Program
Files (x86)/GNU/emacs-24.3/README.W32")
call-interactively(ediff-files nil nil)
Any idea why the permission could be denied coming from emacs, but diff runs
fine when started directly in the DOS terminal?
Thanks a lot in advance!
--
View this message in context: http://emacs.1067599.n5.nabble.com/Ediff-error-Permission-denied-Win8-tp293844p351770.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Ediff error -- Permission denied (Win8)
2015-03-09 10:39 ` dbbd
@ 2015-03-09 16:34 ` Eli Zaretskii
2015-03-13 11:44 ` dbbd
0 siblings, 1 reply; 15+ messages in thread
From: Eli Zaretskii @ 2015-03-09 16:34 UTC (permalink / raw)
To: Help-gnu-emacs
> Date: Mon, 9 Mar 2015 03:39:36 -0700 (MST)
> From: dbbd <danybraun@free.fr>
>
> thanks for this post. In fact, I have the same permission denied problem
> (emacs 24.3 under windows7, cygwin installed and added to windows path, diff
> working in DOS-terminal; problem still present if I log in as
> Administrator). So I followed your advice, and here is the backtrack:
>
> Debugger entered--Lisp error: (file-error "Searching for program"
> "permission denied" "diff")
> call-process("diff" nil #<buffer *ediff-diff<2>*> nil "c:\\Program Files (x86)\\GNU\\emacs-24.3\\README" "c:\\Program Files (x86)\\GNU\\emacs-24.3\\README.W32")
Does this happen with any 2 files anywhere on your system, or just
files in that directory?
Also, please start by searching all your directories on PATH and on
exec-path for a file or directory called 'diff', with or without any
extensions, and see if you find one.
> Any idea why the permission could be denied coming from emacs, but diff runs
> fine when started directly in the DOS terminal?
Is this a Cygwin Diff or a native Windows Diff program? If Cygwin, do
you really invoke it from cmd.exe, or do you invoke it from the Cygwin
Bash shell?
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Ediff error -- Permission denied (Win8)
2015-03-09 16:34 ` Eli Zaretskii
@ 2015-03-13 11:44 ` dbbd
2015-03-13 15:25 ` Eli Zaretskii
0 siblings, 1 reply; 15+ messages in thread
From: dbbd @ 2015-03-13 11:44 UTC (permalink / raw)
To: Help-gnu-emacs
Thanks for the reply, Eli.
I tried to diff files in several directories, and I got always the same
permission denied error.
I have c:\cygwin\bin in my PATH, and win7's Search finds diff.exe in
c:\cygwin\bin
Also, if I eval-expression (getenv "PATH") in emacs, it does contain
"C:\\cygwin\\bin".
How do I get the value of exec-path? I thought PATH was copied into it
anyhow. If I eval-expression (getenv "exec-path") it returns nil, but
presumably this is not the right way of getting the value of exec-path?
The diff that works is the cygwin diff. I evoke it directly from cmd.exe,
not in the cygwin bash shell.
--
View this message in context: http://emacs.1067599.n5.nabble.com/Ediff-error-Permission-denied-Win8-tp293844p352050.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Ediff error -- Permission denied (Win8)
2015-03-13 11:44 ` dbbd
@ 2015-03-13 15:25 ` Eli Zaretskii
0 siblings, 0 replies; 15+ messages in thread
From: Eli Zaretskii @ 2015-03-13 15:25 UTC (permalink / raw)
To: Help-gnu-emacs
> Date: Fri, 13 Mar 2015 04:44:34 -0700 (MST)
> From: dbbd <danybraun@free.fr>
>
> I have c:\cygwin\bin in my PATH, and win7's Search finds diff.exe in
> c:\cygwin\bin
What about this, if typed inside Emacs:
M-: (executable-find "diff") RET
What does it produce?
> How do I get the value of exec-path?
Like with any Emacs variable: "C-h v exec-path RET".
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2015-03-13 15:25 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-01 20:30 Ediff error -- Permission denied (Win8) Yeşim Erke-Magent
2013-08-01 21:38 ` Óscar Fuentes
2013-08-01 23:39 ` Stefan Monnier
[not found] ` <mailman.2342.1375400381.12400.help-gnu-emacs@gnu.org>
2013-08-02 4:44 ` Rustom Mody
2013-08-02 20:11 ` Yeşim Erke-Magent
2013-08-02 20:07 ` Yeşim Erke-Magent
2013-08-02 5:47 ` Eli Zaretskii
[not found] ` <mailman.2337.1375393123.12400.help-gnu-emacs@gnu.org>
2013-08-02 20:06 ` Yeşim Erke-Magent
2013-08-02 23:14 ` Drew Adams
[not found] ` <mailman.2361.1375422778.12400.help-gnu-emacs@gnu.org>
2013-08-02 20:19 ` Yeşim Erke-Magent
2013-08-03 7:43 ` Eli Zaretskii
2015-03-09 10:39 ` dbbd
2015-03-09 16:34 ` Eli Zaretskii
2015-03-13 11:44 ` dbbd
2015-03-13 15:25 ` Eli Zaretskii
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).