public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Daniel Barclay <Daniel.Barclay@digitalfocus.com>
To: cygwin@sourceware.cygnus.com
Subject: how to set CYGWIN variable for Emacs
Date: Fri, 12 Jan 2001 08:11:00 -0000	[thread overview]
Message-ID: <3A5F2D02.2F64A150@digitalfocus.com> (raw)

What's the recommended way to set the CYGWIN environment variable
when running in an NTEmacs shell buffer?

The CygWin FAQ gives instructions at 
http://sources.redhat.com/cygwin/faq/faq.html#SEC54:

  ...you need to add the following code to your ~/.emacs or ~/_emacs file 
  in order to use bash. ... 

        ;; This assumes that Cygwin is installed in C:\cygwin (the
        ;; default) and that C:\cygwin\bin is not already in your
        ;; Windows Path (it generally should not be).
        ;;
        (setq exec-path (cons "C:/cygwin/bin" exec-path))
        (setenv "PATH" (concat "C:\\cygwin\\bin;" (getenv "PATH")))
        ;;
        ;; NT-emacs assumes a Windows command shell, which you change
        ;; here.
        ;;
        (setq process-coding-system-alist '(("bash" . undecided-unix)))
        (setq w32-quote-process-args ?\")
        (setq shell-file-name "bash")
        (setenv "SHELL" shell-file-name) 
        (setq explicit-shell-file-name shell-file-name) 
        ;;
        ;; This removes unsightly ^M characters that would otherwise
        ;; appear in the output of java applications.
        ;;
        (add-hook 'comint-output-filter-functions
                  'comint-strip-ctrl-m)


However, this seems to run bash directly, bypassing the cygwin.bat
file.

Should Emacs run cygwin.bat directly?  Should the CYGWIN variable be
set in some place other than cygwin.bat (e.g., in Emacs or in the
NT environment) so that it gets set even if cygwin.bat isn't run?

Thanks,
Daniel
-- 
Daniel Barclay
Digital Focus
Daniel.Barclay@digitalfocus.com

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

             reply	other threads:[~2001-01-12  8:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-12  8:11 Daniel Barclay [this message]
2001-01-12  8:26 ` Larry Hall (RFK Partners, Inc)
2001-01-12 11:43   ` Daniel Barclay
2001-01-12 12:01     ` Larry Hall (RFK Partners, Inc)
2001-01-12 13:14       ` David A. Cobb
2001-01-12 13:49         ` Larry Hall (RFK Partners, Inc)

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=3A5F2D02.2F64A150@digitalfocus.com \
    --to=daniel.barclay@digitalfocus.com \
    --cc=cygwin@sourceware.cygnus.com \
    /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.
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).