From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Keiichiro Nagano (=?ISO-2022-JP?B?GyRCMUpMbjc9MGxPOhsoQg==?=) Newsgroups: gmane.emacs.devel Subject: Re: init_buffer PWD fix Date: Mon, 22 Apr 2002 17:26:29 +0900 Organization: Team Sodan (http://sodan.org/) Sender: emacs-devel-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1019464172 28244 127.0.0.1 (22 Apr 2002 08:29:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 22 Apr 2002 08:29:32 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16zZCW-0007LR-00 for ; Mon, 22 Apr 2002 10:29:32 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16zZD8-00072Z-00 for ; Mon, 22 Apr 2002 10:30:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16zZCL-0008FX-00; Mon, 22 Apr 2002 04:29:21 -0400 Original-Received: from fw1280219.kitanet.ne.jp ([210.237.128.219] helo=omni-engine.com) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16zZ9c-0008A8-00 for ; Mon, 22 Apr 2002 04:26:32 -0400 Original-Received: from bed.omni-engine.com (localhost [127.0.0.1]) by omni-engine.com (Postfix) with ESMTP id 63EE2E54D0; Mon, 22 Apr 2002 17:26:29 +0900 (JST) Original-To: Eli Zaretskii In-Reply-To: User-Agent: Wanderlust/2.9.9 (Unchained Melody) EMY/1.13.9 (Art is long, life is short) LIMIT/1.14.7 (Fujiidera) APEL/10.3 Emacs/21.2.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:3001 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3001 At Mon, 22 Apr 2002 11:01:27 +0300 (IDT), Eli Zaretskii wrote: > Thanks for the explanation. But I still don't see how this would cause a > specific failure in Emacs in some situation. Can you describe such a > specific failure, complete with the commands to type outside and inside > Emacs, and with analysis of what happens inside init_buffer in that case? For instance, 0. in bash shell... 1. gunzip and untar emacs-21.2.tar.gz and leim-21.2.tar.gz 2. cd to emacs-21.2/nt, and run ./configure.bat. If you have MSVC, configure.bat detects it and configure to use MSVC for compiling Emacs. 3. type nmake. After you have done temacs.exe and emacs.exe, You will get an error like this: "C:\home\tmp\emacs-21.2\leim/../src/obj-spd/i386/emacs.exe" -batch --no-init-file --no-site-file --multibyte -l C:/home/tmp/emacs-21.2/leim/../lisp/international/titdic-cnv --eval "(batch-titdic-convert t)" -dir quail ./CXTERM-DIC Warning: arch-dependent data dir (c:/emacs/bin/) does not exist. Warning: arch-independent data dir (c:/emacs/etc/) does not exist. Converting c:/home/tmp/emacs-21.2/nt/CXTERM-DIC to quail-package... Opening input file: no such file or directory, c:/home/tmp/emacs-21.2/nt/CXTERM-DIC NMAKE : fatal error U1077: '"C:\home\tmp\emacs-21.2\leim/../src/obj-spd/i386/emacs.exe"' : return code '0xffffffff' Stop. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\VC98\bin\nmake.exe"' : return code '0x2' Stop. Why c:/home/tmp/emacs-21.2/nt/CXTERM-DIC? CXTERM-DIC is at c:/home/tmp/emacs-21.2/leim. Because chdir ../leim is done in makefile, and Emacs uses wrong PWD c:/home/tmp/emacs-21.2/nt to open ./CXTERM-DIC. With the patch I post, this error will never happen. Same problems happen quite often with Emacs Lisp products, for example, T-gnus (http://lists.airs.net/semi-gnus/archive/200101/msg00057.html if you can read Japanese), whose 'Makefile's do chdir before try to invoke Emacs to byte-compile '*.el's, -- Keiichiro Nagano