From mboxrd@z Thu Jan 1 00:00:00 1970 From: Skip Collins Subject: [PATCH] Ensure test files are opened in Emacs in test-org/fuzzy-links Date: Mon, 10 Apr 2017 10:57:31 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001a1145d108081456054cd133ca Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cxalO-0006s7-V6 for emacs-orgmode@gnu.org; Mon, 10 Apr 2017 10:57:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cxalO-0006fT-3Q for emacs-orgmode@gnu.org; Mon, 10 Apr 2017 10:57:55 -0400 Received: from mail-qk0-x22d.google.com ([2607:f8b0:400d:c09::22d]:34083) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cxalN-0006dw-Vl for emacs-orgmode@gnu.org; Mon, 10 Apr 2017 10:57:54 -0400 Received: by mail-qk0-x22d.google.com with SMTP id p68so89389381qke.1 for ; Mon, 10 Apr 2017 07:57:52 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: Org Mode --001a1145d108081456054cd133ca Content-Type: text/plain; charset=UTF-8 On Fri, Apr 7, 2017 at 11:47 AM, Skip Collins wrote: > On Thu, Mar 30, 2017 at 6:50 AM, Nicolas Goaziou wrote: >> Thank you. Unfortunately, there is not much to do with this. Could you >> do some debugging when running the faulty test? It may come from >> something in your configuration. > > I think I figured it out. During the fuzzy-links test, > org-open-at-point is invoked to open a file that was created with > org-test-with-temp-text-in-file. The temp file does not have a .org > extension. As a result, my mac attempts to open the file outside of > emacs, which produces an unexpected result. The solution is to pass an > argument to org-open-at-point, which ensures that the file is opened > in emacs. A patch is attached. --001a1145d108081456054cd133ca Content-Type: application/octet-stream; name="0001-Ensure-test-files-are-opened-in-Emacs-in-test-org-fu.patch" Content-Disposition: attachment; filename="0001-Ensure-test-files-are-opened-in-Emacs-in-test-org-fu.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_j1c8ppgk1 RnJvbSA2YzNhZDY2MjgwZWRjMTBhNjgzYmRmZDRlNzMwMDMzZDVmNTQxNzIxIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBTa2lwIENvbGxpbnMgPHNraXAuY29sbGluc0BnbWFpbC5jb20+ CkRhdGU6IEZyaSwgNyBBcHIgMjAxNyAxMTo0MTo0NyAtMDQwMApTdWJqZWN0OiBbUEFUQ0hdIEVu c3VyZSB0ZXN0IGZpbGVzIGFyZSBvcGVuZWQgaW4gRW1hY3MgaW4gdGVzdC1vcmcvZnV6enktbGlu a3MKCi0tLQogdGVzdGluZy9saXNwL3Rlc3Qtb3JnLmVsIHwgNCArKy0tCiAxIGZpbGUgY2hhbmdl ZCwgMiBpbnNlcnRpb25zKCspLCAyIGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL3Rlc3Rpbmcv bGlzcC90ZXN0LW9yZy5lbCBiL3Rlc3RpbmcvbGlzcC90ZXN0LW9yZy5lbAppbmRleCBiMWQ0NDQ5 ZWYuLjMzNjFhNjlhNSAxMDA2NDQKLS0tIGEvdGVzdGluZy9saXNwL3Rlc3Qtb3JnLmVsCisrKyBi L3Rlc3RpbmcvbGlzcC90ZXN0LW9yZy5lbApAQCAtMjI5Miw3ICsyMjkyLDcgQEAgRm9vIEJhcgog ICAgICAgIChpbnNlcnQgKGZvcm1hdCAiW1tmaWxlOiVzOjpsaW5lMSBsaW5lMl1dIiBmaWxlKSkK ICAgICAgICAoYmVnaW5uaW5nLW9mLWxpbmUpCiAgICAgICAgKGxldCAoKG9yZy1saW5rLXNlYXJj aC1tdXN0LW1hdGNoLWV4YWN0LWhlYWRsaW5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