[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cscope on windows

From: Thorsten Bonow
Subject: Re: cscope on windows
Date: Fri, 27 Mar 2009 15:51:19 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux)

>>>>> "minesh" == minesh varmas <address@hidden> writes:

    minesh> i installed cscope in windows xp using cygwin.  in emacs i get the
    minesh> cscope menu, but when i try to build the index file i get this
    minesh> error "apply: Searching for program: no such file or directory,
    minesh> cscope-indexer"

    minesh> i put the cscope-indexer script in "C:\rhcygwin\usr\bin" and the
    minesh> cscope binary is located in "C:\rhcygwin\usr\local\bin"

    minesh> how can i get cscope to work in emacs on windows?

    minesh> many thanks.


its been a long time since I used Cygwin and Emacs together on Windoze, but my
guess is that Emacs defaults to using the cmd.exe coming with Windoze instead
of cygwins bash(.exe) shell.

The Windoze PATH Variable doesn't include the cygwin directories and so the
cscope binary and indexer script can't be found. (why rhcygwin? Is this the

Try adding 

(setq explicit-shell-file-name "bash.exe")
;; For subprocesses invoked via the shell
;; (e.g., "shell -c command")
(setq shell-file-name explicit-shell-file-name)

to your Emacs configuration file to use bash instead of cmd.exe.

Hope this helps.


"No amount of googling and copying and pasting can replace the
intellectual flexibility developed by reading whole books."
Alan Gibbons (The Observer, 23.11.08: 'Top authors say books beat
googling' by Liz Lightfoot)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]