From debbugs-submit-bounces@debbugs.gnu.org Wed May 12 23:18:44 2010 Received: (at submit) by debbugs.gnu.org; 13 May 2010 03:18:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCOwd-00035v-6x for submit@debbugs.gnu.org; Wed, 12 May 2010 23:18:43 -0400 Received: from mail-pz0-f197.google.com ([209.85.222.197]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCORV-0002rG-J9 for submit@debbugs.gnu.org; Wed, 12 May 2010 22:46:34 -0400 Received: by pzk35 with SMTP id 35so474217pzk.0 for ; Wed, 12 May 2010 19:46:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=Co1DhJeAuAuwq2WhQDGcx/50uj0XK2IQD9YYUiuk3Kg=; b=Vbv7jCZaUdnfdPzuIvBYyzIT4Llj31hl/uiivat0f4dEwNGtgCygkk4LrQ9vX/4GRh 5H9WyzUGQ785ziUOcvL6boKnALyWr2pxFs5+legSAUpiIgUe5q2qVckju2nul/uPRLEw eFGUYD8cnpx6pBDz29l4o0RNnw6JV0Ssg0xf8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=CXEypN5EAyPztkrzHztINhtYh1/OjuoYyACRpKC1kNts1MQ39e4kY46i8apshObJpT XiLXxPETttklpDgewlMOVkjv66CPWD0cR0FEvsELZM6G2+F1KcEhuZ3tpMjXgVkVo9Pp uOEnHmMJF9nIiVUDn/cceZyyFjth0zmbHhPPw= MIME-Version: 1.0 Received: by 10.142.207.15 with SMTP id e15mr6022781wfg.14.1273718789281; Wed, 12 May 2010 19:46:29 -0700 (PDT) Received: by 10.143.163.2 with HTTP; Wed, 12 May 2010 19:46:29 -0700 (PDT) Date: Wed, 12 May 2010 19:46:29 -0700 X-Google-Sender-Auth: 4AlWiVUbyrG9XKThHpvPjU-6wmI Message-ID: Subject: OSX: Emacs.app is loading files specified by relative pathname twice From: Roy Liu To: submit@debbugs.gnu.org Content-Type: multipart/alternative; boundary=000e0cd25856fa96f7048670c33a X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 12 May 2010 23:18:41 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.3 (-) --000e0cd25856fa96f7048670c33a Content-Type: text/plain; charset=UTF-8 Package: emacs Version: 23.2 I've noticed strange loading behavior for Emacs.app when I wrap it with a script: #!/bin/bash /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs "$@" Here are my observations: 1) For files specified with --find-file and --find and --visit, loading goes fine. 2) For files specified with absolute paths, loading is also fine. 3) For files specified with relative pathnames, things start getting weird. For example, loading "a/b/c/d.txt" will load the desired file, but it will then try to load "a/b/c/a/b/c/d.txt", which clearly doesn't exist. It's as if directory "a/b/c" has been added to some sort of search path (in addition to $PWD) in which emacs then relatively searches for "a/b/c/d.txt", thus resulting in the joined result "a/b/c/a/b/c/d.txt". I don't know if this should be a bug, since the desired usage of Emacs.app is to run through the window manager (some form of "open"), which is a sheltered environment. I've built Emacs.app from MacPorts, which, from what I can tell, introduces no special modifications or patches, and so I believe that this defect is repeatable. -Roy --000e0cd25856fa96f7048670c33a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Package: emacs
Version: 23.2

I've noticed = strange loading behavior for Emacs.app when I wrap it with a script:
<= div>

#!/bin/bash

/App= lications/MacPorts/Emacs.app/Contents/MacOS/Emacs "$@"


Here are my observations:
1) F= or files specified with --find-file and --find and --visit, loading goes fi= ne.
2) For files specified with absolute paths, loading is also f= ine.
3) For files specified with relative pathnames, things start getting w= eird. =C2=A0For example, loading "a/b/c/d.txt" will load the desi= red file, but it will then try to load "a/b/c/a/b/c/d.txt", which= clearly doesn't exist. =C2=A0It's as if directory "a/b/c"= ; has been added to some sort of search path (in addition to $PWD) in which= emacs then relatively searches for "a/b/c/d.txt", thus resulting= in the joined result "a/b/c/a/b/c/d.txt".

I don't know if this should be a bug, since the des= ired usage of Emacs.app is to run through the window manager (some form of = "open"), which is a sheltered environment.
I've bui= lt Emacs.app from MacPorts, which, from what I can tell, introduces no spec= ial modifications or patches, and so I believe that this defect is repeatab= le.

-Roy

--000e0cd25856fa96f7048670c33a-- From debbugs-submit-bounces@debbugs.gnu.org Sun May 16 04:37:55 2010 Received: (at 6179) by debbugs.gnu.org; 16 May 2010 08:37:55 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ODZMB-00075Q-9E for submit@debbugs.gnu.org; Sun, 16 May 2010 04:37:55 -0400 Received: from mail-pv0-f172.google.com ([74.125.83.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ODZM9-00075L-SP for 6179@debbugs.gnu.org; Sun, 16 May 2010 04:37:54 -0400 Received: by pvg11 with SMTP id 11so1061500pvg.3 for <6179@debbugs.gnu.org>; Sun, 16 May 2010 01:37:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=T+yOcTu5IaFdH/ZexhYPWHxc231OMyNCYT+NOQUiGVA=; b=v/mQrNvk26xPvBKFLZQ/MMpBMDWi1L/jjxE2ldjTtoXf0NDIbHLP/HJSECnZCi5QNs HBP1s9eYvsGmfOO929+mXBSsQcBvuW5DN/9EIttaZLycbdrzkHIauLAhdZvRFByWeasS Z6Pb6RR71U4fswoORrteixIoAQZfcerZa9La4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=mKQwsmn3z/6BGKFs8DJ6HEt9mQCrUe+mQ7DmFMfFgAktw3J8340x28IFm2oiFKiG1Z xv2JHtiJYxRMg8T/Izy7Emmkq6c3EIawPTkSb8mMTqlZ7of3DjNnHXuT+QE1/devhY9T VknUvAxSpEm0Y3qnsEMUeNt3sHk1Um5zmrths= MIME-Version: 1.0 Received: by 10.142.195.4 with SMTP id s4mr2402908wff.38.1273999075592; Sun, 16 May 2010 01:37:55 -0700 (PDT) Received: by 10.143.163.2 with HTTP; Sun, 16 May 2010 01:37:55 -0700 (PDT) Date: Sun, 16 May 2010 01:37:55 -0700 X-Google-Sender-Auth: Wc6p_SmmFjoSidvc_TLYQ9UqC7c Message-ID: Subject: Addendum From: Roy Liu To: 6179@debbugs.gnu.org Content-Type: multipart/alternative; boundary=000e0cd1449c584beb0486b20651 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 6179 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.3 (-) --000e0cd1449c584beb0486b20651 Content-Type: text/plain; charset=UTF-8 I dug into the problem further, and this patch seems to be dealing with the problem: --- lisp/term/ns-win.el.orig 2010-05-15 17:14:55.000000000 -0700 +++ lisp/term/ns-win.el 2010-05-15 17:15:00.000000000 -0700 @@ -785,7 +785,7 @@ "Do a `find-file' with the `ns-input-file' as argument." (interactive) (let ((f) (file) (bufwin1) (bufwin2)) - (setq f (file-truename (car ns-input-file))) + (setq f (car ns-input-file)) (setq ns-input-file (cdr ns-input-file)) (setq file (find-file-noselect f)) (setq bufwin1 (get-buffer-window file 'visible)) @@ -802,8 +802,7 @@ (select-window bufwin2) (find-file f)) (ns-pop-up-frames - (ns-hide-emacs 'activate) - (let ((pop-up-frames t)) (pop-to-buffer file nil))) + (ns-hide-emacs 'activate)) (t (ns-hide-emacs 'activate) (find-file f))))) Documents/build/macports/a Unfortunately, since I am no Emacs-app expert, I can't tell you in clear terms what it does exactly. Perhaps a guru can elucidate. -Roy --000e0cd1449c584beb0486b20651 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I dug into the problem further, and this patch seems to be dealing with the= problem:


--- lisp/term/ns-win.el.or= ig =C2=A0 =C2=A02010-05-15 17:14:55.000000000 -0700
+++ lisp/term= /ns-win.el 2010-05-15 17:15:00.000000000 -0700
@@ -785,7 +785,7 @@
=C2=A0=C2=A0 "Do a `find-file' = with the `ns-input-file' as argument."
=C2=A0=C2=A0 (int= eractive)
=C2=A0=C2=A0 (let ((f) (file) (bufwin1) (bufwin2))
- =C2=A0 =C2=A0(setq f (file-truename (car ns-input-file)))
+ =C2=A0 =C2=A0(setq f (car ns-input-file))
=C2=A0=C2=A0 =C2= =A0 (setq ns-input-file (cdr ns-input-file))
=C2=A0=C2=A0 =C2=A0 = (setq file (find-file-noselect f))
=C2=A0=C2=A0 =C2=A0 (setq bufw= in1 (get-buffer-window file 'visible))
@@ -802,8 +802,7 @@
=C2=A0=C2=A0 =C2=A0 =C2=A0 (select-window buf= win2)
=C2=A0=C2=A0 =C2=A0 =C2=A0 (find-file f))
=C2=A0= =C2=A0 =C2=A0 =C2=A0(ns-pop-up-frames
- =C2=A0 =C2=A0 =C2=A0(ns-h= ide-emacs 'activate)
- =C2=A0 =C2=A0 =C2=A0(let ((pop-up-fram= es t)) (pop-to-buffer file nil)))
+ =C2=A0 =C2=A0 =C2=A0(ns-hide-emacs 'activate))
=C2=A0= =C2=A0 =C2=A0 =C2=A0(t
=C2=A0=C2=A0 =C2=A0 =C2=A0 (ns-hide-emacs = 'activate)
=C2=A0=C2=A0 =C2=A0 =C2=A0 (find-file f)))))
=
Documents/build/macports/a


Unfortunately, since I am no Emacs-app expert, I can't tell you in= clear terms what it does exactly. =C2=A0Perhaps a guru can elucidate.

-Roy

--000e0cd1449c584beb0486b20651-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 20 00:18:56 2011 Received: (at control) by debbugs.gnu.org; 20 Jan 2011 05:18:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pfmv9-0005FY-Rj for submit@debbugs.gnu.org; Thu, 20 Jan 2011 00:18:56 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pfmv8-0005FN-Od for control@debbugs.gnu.org; Thu, 20 Jan 2011 00:18:55 -0500 Received: from localhost ([127.0.0.1]:59709) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pfn2e-0000K7-Ht; Thu, 20 Jan 2011 00:26:40 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19767.51088.12266.333565@fencepost.gnu.org> Date: Thu, 20 Jan 2011 00:26:40 -0500 From: Glenn Morris To: control Subject: emacs X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: red X-Ran: @>;@g#dasY89v,Ao,G6nX2\8)WdM#\t%[H4o*+t75>_UE&_;W-zW|k&oq4y3{YBuXd}Y~m X-Debbugs-No-Ack: yes X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) merge 6179 7872 From unknown Wed Jun 18 23:05:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 24 Feb 2011 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 26 18:32:10 2011 Received: (at control) by debbugs.gnu.org; 26 Feb 2011 23:32:10 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PtTcQ-0002ML-4x for submit@debbugs.gnu.org; Sat, 26 Feb 2011 18:32:10 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PtTcO-0002MA-H8 for control@debbugs.gnu.org; Sat, 26 Feb 2011 18:32:09 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1PtTcJ-0004n4-1D for control@debbugs.gnu.org; Sat, 26 Feb 2011 18:32:03 -0500 Date: Sat, 26 Feb 2011 18:32:03 -0500 Message-Id: Subject: control message for bug 8127 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) unarchive 6179 forcemerge 6179 8127 From unknown Wed Jun 18 23:05:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 27 Mar 2011 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator