From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: cygwin+imagemagick+emacsW32 causes Windows Vista to report program crash Date: Sun, 7 Jun 2009 09:52:07 -0700 (PDT) Organization: http://groups.google.com Message-ID: <36411871-291c-4351-a97d-0f07ef05fd87@g1g2000yqh.googlegroups.com> References: <79ec923a-4f0b-45b0-82dd-3345027a19ec@f19g2000yqo.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1244402614 16939 80.91.229.12 (7 Jun 2009 19:23:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Jun 2009 19:23:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 07 21:23:32 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MDNxr-0003D5-CS for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Jun 2009 21:23:31 +0200 Original-Received: from localhost ([127.0.0.1]:44266 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MDNxq-0003Xi-Fp for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Jun 2009 15:23:30 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!g1g2000yqh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 74 Original-NNTP-Posting-Host: 76.102.12.87 Original-X-Trace: posting.google.com 1244393527 3644 127.0.0.1 (7 Jun 2009 16:52:07 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 7 Jun 2009 16:52:07 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: g1g2000yqh.googlegroups.com; posting-host=76.102.12.87; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.30 Safari/530.5, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:169786 comp.emacs:98222 X-Mailman-Approved-At: Sun, 07 Jun 2009 15:23:07 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65017 Archived-At: On Jun 7, 2:13 am, Lennart Borgman wrote: > On Sun, Jun 7, 2009 at 2:21 AM, Xah Lee wrote: > > got a very odd problem that's driving me nuts. > > > in cygwin prompt, i can call one of imagemagick's command and get > > result. > > > However, while in emacsw32 shell, identical call results Windows Vista > > poppig up a window telling me some app crashed. > > > Anyone got some idea what's wrong? > > Different paths. At the cygwin prompt you have imagemagick's > convert.exe first in path. > > At a cmd prompt you by default have windows convert.exe in the path. > (There is a which utility you can get from gnuwin32.) > > So I do not think this is related to EmacsW32. If it is then please > give me more information. Hi Len, Thanks! You solved my problem. I'm aware of Window's convert.exe ... my path problem is a bit subtle... but from youp reply, i compared my $PATH in cygwin terminal and $PATH in emacsW32's cygwin-shell, seeing that they are different, then i set emacsW32's cygwin-shell's $PATH to the same as the $PATH shown in cygwin terminal, then the problem is solved. For the record, here's the value of $PATH in cygwin terminal (reformatted for readibility): /usr/local/bin /usr/bin /bin /usr/X11R6/bin /cygdrive/c/Windows/system32 /cygdrive/c/Windows /cygdrive/c/Windows/System32/Wbem /cygdrive/c/hp/bin/Python /cygdrive/c/Program Files (x86)/ATI Technologies/ATI.ACE/Core-Static /cygdrive/c/Program Files (x86)/QuickTime/QTSystem/ Here's the value of $PATH in emacsW32 cygwin-shell: /usr/bin /cygdrive/c/Program Files (x86)/Emacs/emacs/bin/ /cygdrive/c/Program Files/Microsoft IntelliType Pro/ /cygdrive/c/Windows/system32 /cygdrive/c/Windows /cygdrive/c/Windows/System32/Wbem /cygdrive/c/hp/bin/Python /cygdrive/c/Program Files (x86)/ATI Technologies/ATI.ACE/Core-Static /cygdrive/c/Program Files (x86)/QuickTime/QTSystem/ The interesting thing is that imagemagick's convert is in /usr/bin, so, while in emacsW32's cygwin-shell, i can do =E2=80=9Cwhich convert=E2=80= =9D and it reports the right program. So, apparantly, subsequent paths much have fucked things up. This probably also mean that /usr/bin/convert relies on other pieces to work. (same goes for imagemagick's =E2=80=9Cidentify=E2= =80=9D command.) Thanks again Lennart. I owe you one. Xah =E2=88=91 http://xahlee.org/ =E2=98=84