From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jeffrey DeLeo Newsgroups: gmane.emacs.help Subject: Re: Comint and windows Date: Thu, 05 Nov 2015 10:26:20 -0800 Message-ID: <87bnb8nvzn.fsf@JUbuntu.dharma.lan> References: <4b118c46-2d1a-4547-b889-02153639a401@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1446751240 17337 80.91.229.3 (5 Nov 2015 19:20:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Nov 2015 19:20:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 05 20:20:33 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZuQ5I-0003yJ-En for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Nov 2015 20:20:32 +0100 Original-Received: from localhost ([::1]:34879 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuQ5H-0007JF-Qe for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Nov 2015 14:20:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuQ57-0007J7-Nv for help-gnu-emacs@gnu.org; Thu, 05 Nov 2015 14:20:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZuQ54-0000rm-I8 for help-gnu-emacs@gnu.org; Thu, 05 Nov 2015 14:20:21 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:43975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuQ54-0000rZ-BB for help-gnu-emacs@gnu.org; Thu, 05 Nov 2015 14:20:18 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZuQ4x-0003h3-UY for help-gnu-emacs@gnu.org; Thu, 05 Nov 2015 20:20:12 +0100 Original-Received: from 173-228-85-118.dsl.dynamic.fusionbroadband.com ([173.228.85.118]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Nov 2015 20:20:11 +0100 Original-Received: from JeffreyDeLeo by 173-228-85-118.dsl.dynamic.fusionbroadband.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Nov 2015 20:20:11 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 78 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 173-228-85-118.dsl.dynamic.fusionbroadband.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5.50 (gnu/linux) Cancel-Lock: sha1:soqDHfH4YAbe0wY5RzqHdDmouM0= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107954 Archived-At: I used to use emacs regularly on Windows, along with cygwin. I no longer do. I did use shell and other processes successfully, this is from my .emacs on Windows. I can't say what is relevant anymore, though. #+BEGIN_SRC emacs-lisp (defun my-shell-setup () "For Cygwin bash under Emacs 20" (setq comint-scroll-show-maximum-output 'this) (make-variable-buffer-local 'comint-completion-addsuffix)) (setq shell-file-name "bash") (setenv "SHELL" shell-file-name) (setq explicit-shell-file-name shell-file-name) (setq explicit-shell-args '("--login" "-i")) (setq shell-command-switch "-ic") (setq explicit-bash-args '("--noediting")) (setq comint-completion-addsuffix t) ;(setq comint-process-echoes t) ;; reported that this is no longer needed (setq comint-eol-on-send t) (setq w32-quote-process-args ?\") (setq shell-mode-hook 'my-shell-setup) ;; Prevent issues with the Windows null device (NUL) ;; when using cygwin find with rgrep. (defadvice grep-compute-defaults (around grep-compute-defaults-advice-null-device) "Use cygwin's /dev/null as the null-device." (let ((null-device "/dev/null")) ad-do-it)) (ad-activate 'grep-compute-defaults) #+END_SRC