X-Loop: help-debbugs@HIDDEN Subject: bug#12123: References: <probmtut73.fsf@HIDDEN> In-Reply-To: <probmtut73.fsf@HIDDEN> Resent-From: chad <yandros@HIDDEN> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 05 Apr 2013 17:31:01 +0000 Resent-Message-ID: <handler.12123.B12123.136518304315473 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 12123 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 12123 <at> debbugs.gnu.org Received: via spool by 12123-submit <at> debbugs.gnu.org id=B12123.136518304315473 (code B ref 12123); Fri, 05 Apr 2013 17:31:01 +0000 Received: (at 12123) by debbugs.gnu.org; 5 Apr 2013 17:30:43 +0000 Received: from localhost ([127.0.0.1]:35812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1UOATK-00041U-Aj for submit <at> debbugs.gnu.org; Fri, 05 Apr 2013 13:30:42 -0400 Received: from dmz-mailsec-scanner-8.mit.edu ([18.7.68.37]:62603) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <yandros@HIDDEN>) id 1UOATI-00041M-0B for 12123 <at> debbugs.gnu.org; Fri, 05 Apr 2013 13:30:40 -0400 X-AuditID: 12074425-b7fec6d000007584-b6-515f097bb9d1 Received: from mailhub-auth-1.mit.edu ( [18.9.21.35]) by dmz-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP id C2.8D.30084.B790F515; Fri, 5 Apr 2013 13:27:23 -0400 (EDT) Received: from outgoing.mit.edu (OUTGOING-AUTH-1.MIT.EDU [18.9.28.11]) by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id r35HRMMq012070 for <12123 <at> debbugs.gnu.org>; Fri, 5 Apr 2013 13:27:23 -0400 Received: from [10.0.1.10] (c-98-247-148-125.hsd1.wa.comcast.net [98.247.148.125]) (authenticated bits=0) (User authenticated as yandros@HIDDEN) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id r35HRKS6032330 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for <12123 <at> debbugs.gnu.org>; Fri, 5 Apr 2013 13:27:22 -0400 From: chad <yandros@HIDDEN> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: <1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN> Date: Fri, 5 Apr 2013 10:27:21 -0700 Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) X-Mailer: Apple Mail (2.1503) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrFIsWRmVeSWpSXmKPExsUixCmqrFvNGR9ocPmjmsWn21NYHBg9Lk7a xxzAGMVlk5Kak1mWWqRvl8CVcWvRepaCn4wVi288ZWpgvMPYxcjJISFgItHY0sgOYYtJXLi3 nq2LkYtDSGAfo8T/T7vAioQEzjBKvFhfDWE/YpKY8Vqpi5GDg01ABqhBAyTMLKAlcePfSyYI W1ti2cLXzCC2sICQxJmXm8HivAJWEr9uvgfbxSKgIvHw3VpWEFtEQFKiqfkhG0SNnsS1b1+h 7pGVeP38DcsERr5ZSFbMQrJiFpKWBYzMqxhlU3KrdHMTM3OKU5N1i5MT8/JSi3Qt9HIzS/RS U0o3MYICjN1FdQfjhENKhxgFOBiVeHgtbscFCrEmlhVX5h5ilORgUhLl5WaLDxTiS8pPqcxI LM6ILyrNSS0+xCjBwawkwiv7HKicNyWxsiq1KB8mJc3BoiTOeyPlpr+QQHpiSWp2ampBahFM VoaDQ0mCt4EDaKhgUWp6akVaZk4JQpqJgxNkOA/QcG2QGt7igsTc4sx0iPwpRmOOtotPXjNy TFr18jWjEEtefl6qlDjvJJAbBUBKM0rz4KbBksQrRnGg54R5vUEG8gATDNy8V0CrmIBWTb0b DbKqJBEhJdXAaJOXfdpM3dB6q0VIy/yjbdb7RB08+vZ7X73SkMf3y/u68alT3OH7Ehc61n/X 4zq/8ONyP/O0fM66RTdnbOO+VX0ihUMx5POuLZpTj202+63hvr+M89BDzor0TkGeDwnfUk48 4mxfwXLnziSGqd94by8KKijkPyW5eWUal/OBdYJ/3cTV3+9JVWIpzkg01GIuKk4EANYEFOPt AgAA X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -5.0 (-----) Web searching suggests approaches for several specific platforms (GNU/Linux, FreeBSD, Solaris, macosx, and Windows) that might be useful: = http://stackoverflow.com/questions/1023306/finding-current-executables-pat= h-without-proc-self-exe=
X-Loop: help-debbugs@HIDDEN Subject: bug#12123: Resent-From: Glenn Morris <rgm@HIDDEN> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 05 Apr 2013 17:36:01 +0000 Resent-Message-ID: <handler.12123.B12123.136518332016041 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 12123 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 12123 <at> debbugs.gnu.org Received: via spool by 12123-submit <at> debbugs.gnu.org id=B12123.136518332016041 (code B ref 12123); Fri, 05 Apr 2013 17:36:01 +0000 Received: (at 12123) by debbugs.gnu.org; 5 Apr 2013 17:35:20 +0000 Received: from localhost ([127.0.0.1]:35837 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1UOAXo-0004Ae-Fz for submit <at> debbugs.gnu.org; Fri, 05 Apr 2013 13:35:20 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:54154) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <rgm@HIDDEN>) id 1UOAXn-0004AY-Gm for 12123 <at> debbugs.gnu.org; Fri, 05 Apr 2013 13:35:19 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from <rgm@HIDDEN>) id 1UOAUc-0007me-Q9; Fri, 05 Apr 2013 13:32:02 -0400 From: Glenn Morris <rgm@HIDDEN> References: <probmtut73.fsf@HIDDEN> <1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN> X-Spook: nuclear Ruby Ridge BATF Islam Abduganievich Karimov X-Ran: <ei"a[Sd=A}}>aW-JIdU`wDR-MuOBs:mrya}bVTg}ka*M}|L$Hw(>agS^Z\E`p1New>8^M X-Hue: yellow X-Attribution: GM Date: Fri, 05 Apr 2013 13:32:02 -0400 In-Reply-To: <1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN> (chad's message of "Fri, 5 Apr 2013 10:27:21 -0700") Message-ID: <vbbo9sg9yl.fsf@HIDDEN> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.6 (------) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -9.3 (---------) chad wrote: > Web searching suggests approaches for several specific platforms > (GNU/Linux, FreeBSD, Solaris, macosx, and Windows) that might be > useful: > > http://stackoverflow.com/questions/1023306/finding-current-executables-path-without-proc-self-exe I don't think this is an issue. We've already got invocation-directory, which is probably good enough in 99.9+% of cases. Unless people do obscure things to hide the executable, in which case they just don't get to use a relocatable Emacs.
X-Loop: help-debbugs@HIDDEN Subject: bug#12123: Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 05 Apr 2013 17:54:01 +0000 Resent-Message-ID: <handler.12123.B12123.136518440721252 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 12123 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: chad <yandros@HIDDEN>, Paul Eggert <eggert@HIDDEN> Cc: 12123 <at> debbugs.gnu.org Reply-To: Eli Zaretskii <eliz@HIDDEN> Received: via spool by 12123-submit <at> debbugs.gnu.org id=B12123.136518440721252 (code B ref 12123); Fri, 05 Apr 2013 17:54:01 +0000 Received: (at 12123) by debbugs.gnu.org; 5 Apr 2013 17:53:27 +0000 Received: from localhost ([127.0.0.1]:35866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1UOApL-0005Wi-4p for submit <at> debbugs.gnu.org; Fri, 05 Apr 2013 13:53:27 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:51288) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <eliz@HIDDEN>) id 1UOApH-0005WW-1K for 12123 <at> debbugs.gnu.org; Fri, 05 Apr 2013 13:53:25 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MKS00E00MSSJ600@HIDDEN> for 12123 <at> debbugs.gnu.org; Fri, 05 Apr 2013 20:48:31 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MKS00E95MSUAL50@HIDDEN>; Fri, 05 Apr 2013 20:48:31 +0300 (IDT) Date: Fri, 05 Apr 2013 20:48:33 +0300 From: Eli Zaretskii <eliz@HIDDEN> In-reply-to: <1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN> X-012-Sender: halo1@HIDDEN Message-id: <83txnkeumm.fsf@HIDDEN> References: <probmtut73.fsf@HIDDEN> <1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN> X-Spam-Score: -1.2 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -1.2 (-) > From: chad <yandros@HIDDEN> > Date: Fri, 5 Apr 2013 10:27:21 -0700 > > Web searching suggests approaches for several specific platforms > (GNU/Linux, FreeBSD, Solaris, macosx, and Windows) that might be > useful: > > http://stackoverflow.com/questions/1023306/finding-current-executables-path-without-proc-self-exe The Windows method mentioned there is exactly what Emacs already uses on Windows. Anyway, I see that gnulib has a progreloc module whose purpose is to make program relocatable. Perhaps Paul (CC'ed) could import it and use it in callproc.c to do what Stefan suggested.
X-Loop: help-debbugs@HIDDEN Subject: bug#12123: Resent-From: Paul Eggert <eggert@HIDDEN> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 06 Apr 2013 06:51:02 +0000 Resent-Message-ID: <handler.12123.B12123.136523105331252 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 12123 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 12123 <at> debbugs.gnu.org, chad <yandros@HIDDEN> Received: via spool by 12123-submit <at> debbugs.gnu.org id=B12123.136523105331252 (code B ref 12123); Sat, 06 Apr 2013 06:51:02 +0000 Received: (at 12123) by debbugs.gnu.org; 6 Apr 2013 06:50:53 +0000 Received: from localhost ([127.0.0.1]:36216 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1UOMxh-000881-5W for submit <at> debbugs.gnu.org; Sat, 06 Apr 2013 02:50:53 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:49206) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <eggert@HIDDEN>) id 1UOMxe-00087s-1j for 12123 <at> debbugs.gnu.org; Sat, 06 Apr 2013 02:50:51 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 8344C39E8109; Fri, 5 Apr 2013 23:47:29 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dHh0qxoWbzUP; Fri, 5 Apr 2013 23:47:29 -0700 (PDT) Received: from [192.168.1.9] (pool-71-189-154-249.lsanca.fios.verizon.net [71.189.154.249]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 3517C39E8105; Fri, 5 Apr 2013 23:47:29 -0700 (PDT) Message-ID: <515FC500.1080609@HIDDEN> Date: Fri, 05 Apr 2013 23:47:28 -0700 From: Paul Eggert <eggert@HIDDEN> Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 References: <probmtut73.fsf@HIDDEN> <1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN> <83txnkeumm.fsf@HIDDEN> In-Reply-To: <83txnkeumm.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -3.9 (---) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -6.6 (------) On 04/05/2013 10:48 AM, Eli Zaretskii wrote: > Perhaps Paul (CC'ed) could import it and > use it in callproc.c to do what Stefan suggested. That sounds like it might work, yes, but it's nontrivial. I've never used that module myself.
X-Loop: help-debbugs@HIDDEN Subject: bug#12123: Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 06 Apr 2013 08:27:02 +0000 Resent-Message-ID: <handler.12123.B12123.13652367697197 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 12123 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Paul Eggert <eggert@HIDDEN> Cc: 12123 <at> debbugs.gnu.org, yandros@HIDDEN Reply-To: Eli Zaretskii <eliz@HIDDEN> Received: via spool by 12123-submit <at> debbugs.gnu.org id=B12123.13652367697197 (code B ref 12123); Sat, 06 Apr 2013 08:27:02 +0000 Received: (at 12123) by debbugs.gnu.org; 6 Apr 2013 08:26:09 +0000 Received: from localhost ([127.0.0.1]:36267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1UOORt-0001s2-BR for submit <at> debbugs.gnu.org; Sat, 06 Apr 2013 04:26:09 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:40004) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <eliz@HIDDEN>) id 1UOORr-0001ru-1p for 12123 <at> debbugs.gnu.org; Sat, 06 Apr 2013 04:26:08 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MKT00C00QVFK800@HIDDEN> for 12123 <at> debbugs.gnu.org; Sat, 06 Apr 2013 11:22:46 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MKT00CL3R9UGR40@HIDDEN>; Sat, 06 Apr 2013 11:22:43 +0300 (IDT) Date: Sat, 06 Apr 2013 11:22:46 +0300 From: Eli Zaretskii <eliz@HIDDEN> In-reply-to: <515FC500.1080609@HIDDEN> X-012-Sender: halo1@HIDDEN Message-id: <83fvz4dq5l.fsf@HIDDEN> References: <probmtut73.fsf@HIDDEN> <1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN> <83txnkeumm.fsf@HIDDEN> <515FC500.1080609@HIDDEN> X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -1.2 (-) > Date: Fri, 05 Apr 2013 23:47:28 -0700 > From: Paul Eggert <eggert@HIDDEN> > CC: chad <yandros@HIDDEN>, 12123 <at> debbugs.gnu.org > > On 04/05/2013 10:48 AM, Eli Zaretskii wrote: > > Perhaps Paul (CC'ed) could import it and > > use it in callproc.c to do what Stefan suggested. > > That sounds like it might work, yes, but it's > nontrivial. I've never used that module myself. Then perhaps we could just borrow the ideas from progreloc.c.
X-Loop: help-debbugs@HIDDEN Subject: bug#12123: Resent-From: Paul Eggert <eggert@HIDDEN> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 06 Apr 2013 20:39:01 +0000 Resent-Message-ID: <handler.12123.B12123.136528071514268 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 12123 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 12123 <at> debbugs.gnu.org, yandros@HIDDEN Received: via spool by 12123-submit <at> debbugs.gnu.org id=B12123.136528071514268 (code B ref 12123); Sat, 06 Apr 2013 20:39:01 +0000 Received: (at 12123) by debbugs.gnu.org; 6 Apr 2013 20:38:35 +0000 Received: from localhost ([127.0.0.1]:37303 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1UOZsg-0003i4-I6 for submit <at> debbugs.gnu.org; Sat, 06 Apr 2013 16:38:35 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:44160) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <eggert@HIDDEN>) id 1UOZsf-0003hy-4i for 12123 <at> debbugs.gnu.org; Sat, 06 Apr 2013 16:38:33 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id BB49239E8106; Sat, 6 Apr 2013 13:35:09 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oYeXf+TlgjnJ; Sat, 6 Apr 2013 13:35:09 -0700 (PDT) Received: from [192.168.1.9] (pool-71-189-154-249.lsanca.fios.verizon.net [71.189.154.249]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 7023639E8100; Sat, 6 Apr 2013 13:35:09 -0700 (PDT) Message-ID: <516086FD.4000003@HIDDEN> Date: Sat, 06 Apr 2013 13:35:09 -0700 From: Paul Eggert <eggert@HIDDEN> Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 References: <probmtut73.fsf@HIDDEN> <1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN> <83txnkeumm.fsf@HIDDEN> <515FC500.1080609@HIDDEN> <83fvz4dq5l.fsf@HIDDEN> In-Reply-To: <83fvz4dq5l.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -3.9 (---) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -6.6 (------) On 04/06/2013 01:22 AM, Eli Zaretskii wrote: > Then perhaps we could just borrow the ideas from progreloc.c. That sounds like more work than using the Gnulib module, I expect.
X-Loop: help-debbugs@HIDDEN Subject: bug#12123: Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 07 Apr 2013 02:46:01 +0000 Resent-Message-ID: <handler.12123.B12123.136530273219005 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 12123 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Paul Eggert <eggert@HIDDEN> Cc: 12123 <at> debbugs.gnu.org, yandros@HIDDEN Reply-To: Eli Zaretskii <eliz@HIDDEN> Received: via spool by 12123-submit <at> debbugs.gnu.org id=B12123.136530273219005 (code B ref 12123); Sun, 07 Apr 2013 02:46:01 +0000 Received: (at 12123) by debbugs.gnu.org; 7 Apr 2013 02:45:32 +0000 Received: from localhost ([127.0.0.1]:37606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1UOfbo-0004wU-DN for submit <at> debbugs.gnu.org; Sat, 06 Apr 2013 22:45:32 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:47574) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <eliz@HIDDEN>) id 1UOfbk-0004wK-Fq for 12123 <at> debbugs.gnu.org; Sat, 06 Apr 2013 22:45:29 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MKV00M005ZMB200@HIDDEN> for 12123 <at> debbugs.gnu.org; Sun, 07 Apr 2013 05:42:02 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MKV00M4L6629140@HIDDEN>; Sun, 07 Apr 2013 05:42:02 +0300 (IDT) Date: Sun, 07 Apr 2013 05:42:08 +0300 From: Eli Zaretskii <eliz@HIDDEN> In-reply-to: <516086FD.4000003@HIDDEN> X-012-Sender: halo1@HIDDEN Message-id: <83r4incb9b.fsf@HIDDEN> References: <probmtut73.fsf@HIDDEN> <1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN> <83txnkeumm.fsf@HIDDEN> <515FC500.1080609@HIDDEN> <83fvz4dq5l.fsf@HIDDEN> <516086FD.4000003@HIDDEN> X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -1.2 (-) > Date: Sat, 06 Apr 2013 13:35:09 -0700 > From: Paul Eggert <eggert@HIDDEN> > CC: yandros@HIDDEN, 12123 <at> debbugs.gnu.org > > On 04/06/2013 01:22 AM, Eli Zaretskii wrote: > > Then perhaps we could just borrow the ideas from progreloc.c. > > That sounds like more work than using the Gnulib module, > I expect. Not necessarily. progreloc.c is relatively short, and is really just a series of platform-dependent methods to find the absolute file name of the running program. The MS-Windows method used there is already being used in Emacs, and most of the infrastructure for relocating a directory is already in place.
X-Loop: help-debbugs@HIDDEN Subject: bug#12123: Resent-From: Glenn Morris <rgm@HIDDEN> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 07 Apr 2013 18:37:02 +0000 Resent-Message-ID: <handler.12123.B12123.136535978415030 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 12123 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 12123 <at> debbugs.gnu.org, yandros@HIDDEN, Paul Eggert <eggert@HIDDEN> Received: via spool by 12123-submit <at> debbugs.gnu.org id=B12123.136535978415030 (code B ref 12123); Sun, 07 Apr 2013 18:37:02 +0000 Received: (at 12123) by debbugs.gnu.org; 7 Apr 2013 18:36:24 +0000 Received: from localhost ([127.0.0.1]:38726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1UOuRz-0003uM-Ul for submit <at> debbugs.gnu.org; Sun, 07 Apr 2013 14:36:24 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:36198) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <rgm@HIDDEN>) id 1UOuRx-0003uF-Rj for 12123 <at> debbugs.gnu.org; Sun, 07 Apr 2013 14:36:22 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from <rgm@HIDDEN>) id 1UOuOZ-0004Tb-Le; Sun, 07 Apr 2013 14:32:51 -0400 From: Glenn Morris <rgm@HIDDEN> References: <probmtut73.fsf@HIDDEN> <1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN> <83txnkeumm.fsf@HIDDEN> <515FC500.1080609@HIDDEN> <83fvz4dq5l.fsf@HIDDEN> <516086FD.4000003@HIDDEN> <83r4incb9b.fsf@HIDDEN> X-Spook: unclassified Abu Ghraib Dateline Etacs Lon Horiuchi X-Ran: zhXDX_|%,ci,7~6-x^;C!;>fAEmz0V^XX):fN9A7Kl-@cbYyR'P'nk@r^'I)=P'*OE|}l{ X-Hue: magenta X-Attribution: GM Date: Sun, 07 Apr 2013 14:32:51 -0400 In-Reply-To: <83r4incb9b.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 07 Apr 2013 05:42:08 +0300") Message-ID: <2xfvz2i430.fsf@HIDDEN> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -7.4 (-------) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -9.3 (---------) Eli Zaretskii wrote: >> > Then perhaps we could just borrow the ideas from progreloc.c. >> >> That sounds like more work than using the Gnulib module, >> I expect. > > Not necessarily. progreloc.c is relatively short, and is really just > a series of platform-dependent methods to find the absolute file name > of the running program. The MS-Windows method used there is already > being used in Emacs, and most of the infrastructure for relocating a > directory is already in place. I must be missing something, because AFAICS, invocation-directory has already solved this problem. What cases are not already handled that are relevant and need extra code adding from progreloc.c?
X-Loop: help-debbugs@HIDDEN Subject: bug#12123: Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 07 Apr 2013 19:12:02 +0000 Resent-Message-ID: <handler.12123.B12123.136536188518268 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 12123 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Glenn Morris <rgm@HIDDEN> Cc: 12123 <at> debbugs.gnu.org, yandros@HIDDEN, eggert@HIDDEN Reply-To: Eli Zaretskii <eliz@HIDDEN> Received: via spool by 12123-submit <at> debbugs.gnu.org id=B12123.136536188518268 (code B ref 12123); Sun, 07 Apr 2013 19:12:02 +0000 Received: (at 12123) by debbugs.gnu.org; 7 Apr 2013 19:11:25 +0000 Received: from localhost ([127.0.0.1]:38784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1UOuzt-0004ka-Cn for submit <at> debbugs.gnu.org; Sun, 07 Apr 2013 15:11:25 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:39917) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <eliz@HIDDEN>) id 1UOuzr-0004kT-HW for 12123 <at> debbugs.gnu.org; Sun, 07 Apr 2013 15:11:24 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MKW00C00FGT1B00@HIDDEN> for 12123 <at> debbugs.gnu.org; Sun, 07 Apr 2013 22:06:25 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MKW00BBLFQOSU70@HIDDEN>; Sun, 07 Apr 2013 22:06:25 +0300 (IDT) Date: Sun, 07 Apr 2013 22:06:32 +0300 From: Eli Zaretskii <eliz@HIDDEN> In-reply-to: <2xfvz2i430.fsf@HIDDEN> X-012-Sender: halo1@HIDDEN Message-id: <8338v2cg93.fsf@HIDDEN> References: <probmtut73.fsf@HIDDEN> <1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN> <83txnkeumm.fsf@HIDDEN> <515FC500.1080609@HIDDEN> <83fvz4dq5l.fsf@HIDDEN> <516086FD.4000003@HIDDEN> <83r4incb9b.fsf@HIDDEN> <2xfvz2i430.fsf@HIDDEN> X-Spam-Score: -1.2 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -1.2 (-) > From: Glenn Morris <rgm@HIDDEN> > Cc: Paul Eggert <eggert@HIDDEN>, 12123 <at> debbugs.gnu.org, yandros@HIDDEN > Date: Sun, 07 Apr 2013 14:32:51 -0400 > > I must be missing something, because AFAICS, invocation-directory has > already solved this problem. What cases are not already handled that are > relevant and need extra code adding from progreloc.c? Code in emacs.c that sets invocation-directory relies on argv[0] to either be an absolute file name, or relative to cwd, or a base name without leading directories that can be found on PATH. But on Posix platforms, argv[0] can be anything, while on Windows argv[0] might be neither absolute nor on PATH. progreloc.c solves this in platform-specific ways. E.g., on GNU/Linux, it looks at /proc/PID/exe.
X-Loop: help-debbugs@HIDDEN Subject: bug#12123: Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 07 Apr 2013 19:46:01 +0000 Resent-Message-ID: <handler.12123.B12123.136536393821267 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 12123 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: rgm@HIDDEN Cc: 12123 <at> debbugs.gnu.org, yandros@HIDDEN, eggert@HIDDEN Reply-To: Eli Zaretskii <eliz@HIDDEN> Received: via spool by 12123-submit <at> debbugs.gnu.org id=B12123.136536393821267 (code B ref 12123); Sun, 07 Apr 2013 19:46:01 +0000 Received: (at 12123) by debbugs.gnu.org; 7 Apr 2013 19:45:38 +0000 Received: from localhost ([127.0.0.1]:38818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1UOvX0-0005Wy-7S for submit <at> debbugs.gnu.org; Sun, 07 Apr 2013 15:45:38 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:48711) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <eliz@HIDDEN>) id 1UOvWy-0005Wq-20 for 12123 <at> debbugs.gnu.org; Sun, 07 Apr 2013 15:45:37 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MKW00C00H9WF700@HIDDEN> for 12123 <at> debbugs.gnu.org; Sun, 07 Apr 2013 22:42:06 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MKW00CGDHE30U90@HIDDEN>; Sun, 07 Apr 2013 22:42:04 +0300 (IDT) Date: Sun, 07 Apr 2013 22:42:11 +0300 From: Eli Zaretskii <eliz@HIDDEN> In-reply-to: <8338v2cg93.fsf@HIDDEN> X-012-Sender: halo1@HIDDEN Message-id: <831uamcelo.fsf@HIDDEN> References: <probmtut73.fsf@HIDDEN> <1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN> <83txnkeumm.fsf@HIDDEN> <515FC500.1080609@HIDDEN> <83fvz4dq5l.fsf@HIDDEN> <516086FD.4000003@HIDDEN> <83r4incb9b.fsf@HIDDEN> <2xfvz2i430.fsf@HIDDEN> <8338v2cg93.fsf@HIDDEN> X-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -1.2 (-) > Date: Sun, 07 Apr 2013 22:06:32 +0300 > From: Eli Zaretskii <eliz@HIDDEN> > Cc: 12123 <at> debbugs.gnu.org, yandros@HIDDEN, eggert@HIDDEN > > Code in emacs.c that sets invocation-directory relies on argv[0] to > either be an absolute file name, or relative to cwd, or a base name > without leading directories that can be found on PATH. Btw, even if these conditions _are_ true, I still don't see how can we find /usr/libexec/emacs/VERSION/CONFIG/, /usr/share/emacs/VERSION/lisp/ using the fact that Emacs was invoked from /usr/bin/. Which part of the code knows about VERSION and CONFIG part and looks for them? All I see is that we look for lib-src and etc, but that's only good to detect that we are being run from the build directory, not from where we are installed. What am I missing?
X-Loop: help-debbugs@HIDDEN Subject: bug#12123: Resent-From: Glenn Morris <rgm@HIDDEN> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 08 Apr 2013 02:05:02 +0000 Resent-Message-ID: <handler.12123.B12123.136538666223157 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 12123 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 12123 <at> debbugs.gnu.org, yandros@HIDDEN, eggert@HIDDEN Received: via spool by 12123-submit <at> debbugs.gnu.org id=B12123.136538666223157 (code B ref 12123); Mon, 08 Apr 2013 02:05:02 +0000 Received: (at 12123) by debbugs.gnu.org; 8 Apr 2013 02:04:22 +0000 Received: from localhost ([127.0.0.1]:39113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1UP1RW-00061R-Kg for submit <at> debbugs.gnu.org; Sun, 07 Apr 2013 22:04:22 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:42339) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <rgm@HIDDEN>) id 1UP1RU-00061L-Nb for 12123 <at> debbugs.gnu.org; Sun, 07 Apr 2013 22:04:21 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from <rgm@HIDDEN>) id 1UP1O6-0004dx-3i; Sun, 07 Apr 2013 22:00:50 -0400 From: Glenn Morris <rgm@HIDDEN> References: <probmtut73.fsf@HIDDEN> <1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN> <83txnkeumm.fsf@HIDDEN> <515FC500.1080609@HIDDEN> <83fvz4dq5l.fsf@HIDDEN> <516086FD.4000003@HIDDEN> <83r4incb9b.fsf@HIDDEN> <2xfvz2i430.fsf@HIDDEN> <8338v2cg93.fsf@HIDDEN> <831uamcelo.fsf@HIDDEN> X-Spook: CIDA MDA Vince Foster Ermes Exon Shell Roswell Saudi X-Ran: Lg~U"'\"j|+s0KxExe\-rBH}f\_4\%~zVo{q0AWk<0xj#,9yh%gU+Q6!fMS5)XH2?u-~Cx X-Hue: white X-Attribution: GM Date: Sun, 07 Apr 2013 22:00:49 -0400 In-Reply-To: <831uamcelo.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 07 Apr 2013 22:42:11 +0300") Message-ID: <828v4tok6m.fsf@HIDDEN> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.6 (------) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -9.3 (---------) Eli Zaretskii wrote: > Btw, even if these conditions _are_ true, I still don't see how can we > find /usr/libexec/emacs/VERSION/CONFIG/, /usr/share/emacs/VERSION/lisp/ > using the fact that Emacs was invoked from /usr/bin/. Which part of > the code knows about VERSION and CONFIG part and looks for them? All I > see is that we look for lib-src and etc, but that's only good to detect > that we are being run from the build directory, not from where we are > installed. What am I missing? Well yes, that's the point of this report. No-one has implemented a relocatable Emacs installation for general POSIX platforms. Solving those problems is part of it. A relocatable Emacs would not be installed as you describe above, it would (I imagine) be installed similar to the way the NS build is, under a single top-level directory.
X-Loop: help-debbugs@HIDDEN Subject: bug#12123: Resent-From: Glenn Morris <rgm@HIDDEN> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 08 Apr 2013 02:07:02 +0000 Resent-Message-ID: <handler.12123.B12123.136538677123327 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 12123 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 12123 <at> debbugs.gnu.org, yandros@HIDDEN, eggert@HIDDEN Received: via spool by 12123-submit <at> debbugs.gnu.org id=B12123.136538677123327 (code B ref 12123); Mon, 08 Apr 2013 02:07:02 +0000 Received: (at 12123) by debbugs.gnu.org; 8 Apr 2013 02:06:11 +0000 Received: from localhost ([127.0.0.1]:39117 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1UP1TG-00064C-VR for submit <at> debbugs.gnu.org; Sun, 07 Apr 2013 22:06:11 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:42364) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <rgm@HIDDEN>) id 1UP1TE-000643-Ig for 12123 <at> debbugs.gnu.org; Sun, 07 Apr 2013 22:06:09 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from <rgm@HIDDEN>) id 1UP1Pq-0000Lj-1g; Sun, 07 Apr 2013 22:02:38 -0400 From: Glenn Morris <rgm@HIDDEN> References: <probmtut73.fsf@HIDDEN> <1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN> <83txnkeumm.fsf@HIDDEN> <515FC500.1080609@HIDDEN> <83fvz4dq5l.fsf@HIDDEN> <516086FD.4000003@HIDDEN> <83r4incb9b.fsf@HIDDEN> <2xfvz2i430.fsf@HIDDEN> <8338v2cg93.fsf@HIDDEN> X-Spook: bank bomb Blowpipe Israel Perl-RSA $400 million in gold X-Ran: @ym`?V!2?,W#>^bcOp?BlX\@85FSXm.>1xa/5<Pl'X:2@/Q+\3@k)GbB78)DIu~]&y1zlr X-Hue: green X-Attribution: GM Date: Sun, 07 Apr 2013 22:02:37 -0400 In-Reply-To: <8338v2cg93.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 07 Apr 2013 22:06:32 +0300") Message-ID: <lk4nfhok3m.fsf@HIDDEN> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -7.4 (-------) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -9.3 (---------) Eli Zaretskii wrote: > Code in emacs.c that sets invocation-directory relies on argv[0] to > either be an absolute file name, or relative to cwd, or a base name > without leading directories that can be found on PATH. As I said, I think this will cover 99.9+% of cases. Anyone trying to do anything more obscure just doesn't get to use a relocatable Emacs, IMO. But of course if you want a totally general solution, go ahead.
X-Loop: help-debbugs@HIDDEN Subject: bug#12123: Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 08 Apr 2013 02:49:01 +0000 Resent-Message-ID: <handler.12123.B12123.136538928527387 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 12123 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Glenn Morris <rgm@HIDDEN> Cc: 12123 <at> debbugs.gnu.org, yandros@HIDDEN, eggert@HIDDEN Reply-To: Eli Zaretskii <eliz@HIDDEN> Received: via spool by 12123-submit <at> debbugs.gnu.org id=B12123.136538928527387 (code B ref 12123); Mon, 08 Apr 2013 02:49:01 +0000 Received: (at 12123) by debbugs.gnu.org; 8 Apr 2013 02:48:05 +0000 Received: from localhost ([127.0.0.1]:39167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1UP27p-00077d-89 for submit <at> debbugs.gnu.org; Sun, 07 Apr 2013 22:48:05 -0400 Received: from mtaout23.012.net.il ([80.179.55.175]:63928) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <eliz@HIDDEN>) id 1UP27m-00077G-Ip for 12123 <at> debbugs.gnu.org; Sun, 07 Apr 2013 22:48:03 -0400 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MKX005000KL8E00@HIDDEN> for 12123 <at> debbugs.gnu.org; Mon, 08 Apr 2013 05:44:31 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MKX005670Y77G20@HIDDEN>; Mon, 08 Apr 2013 05:44:31 +0300 (IDT) Date: Mon, 08 Apr 2013 05:44:39 +0300 From: Eli Zaretskii <eliz@HIDDEN> In-reply-to: <828v4tok6m.fsf@HIDDEN> X-012-Sender: halo1@HIDDEN Message-id: <83y5ctbv1k.fsf@HIDDEN> References: <probmtut73.fsf@HIDDEN> <1B611D1D-B0AB-4E06-A8C4-EF89E5093154@HIDDEN> <83txnkeumm.fsf@HIDDEN> <515FC500.1080609@HIDDEN> <83fvz4dq5l.fsf@HIDDEN> <516086FD.4000003@HIDDEN> <83r4incb9b.fsf@HIDDEN> <2xfvz2i430.fsf@HIDDEN> <8338v2cg93.fsf@HIDDEN> <831uamcelo.fsf@HIDDEN> <828v4tok6m.fsf@HIDDEN> X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -1.2 (-) > From: Glenn Morris <rgm@HIDDEN> > Cc: 12123 <at> debbugs.gnu.org, yandros@HIDDEN, eggert@HIDDEN > Date: Sun, 07 Apr 2013 22:00:49 -0400 > > Eli Zaretskii wrote: > > > Btw, even if these conditions _are_ true, I still don't see how can we > > find /usr/libexec/emacs/VERSION/CONFIG/, /usr/share/emacs/VERSION/lisp/ > > using the fact that Emacs was invoked from /usr/bin/. Which part of > > the code knows about VERSION and CONFIG part and looks for them? All I > > see is that we look for lib-src and etc, but that's only good to detect > > that we are being run from the build directory, not from where we are > > installed. What am I missing? > > Well yes, that's the point of this report. No-one has implemented a > relocatable Emacs installation for general POSIX platforms. Solving > those problems is part of it. A relocatable Emacs would not be installed > as you describe above, it would (I imagine) be installed similar to the > way the NS build is, under a single top-level directory. The example above is still under a single top-level directory, called '/usr' (a.k.a. ${prefix}). Relocating just means changing ${prefix} after Emacs was built.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.