From mboxrd@z Thu Jan 1 00:00:00 1970 From: Skip Collins Subject: Re: [BUG] org-link-search fails if search string contains new lines Date: Fri, 7 Apr 2017 11:47:28 -0400 Message-ID: References: <87zig8vt48.fsf@fastmail.fm> <87inmvwynd.fsf@fastmail.fm> <87k27bj6hd.fsf@nicolasgoaziou.fr> <87r31gqnql.fsf@nicolasgoaziou.fr> <87mvc3nime.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=94eb2c05c8be31e029054c958cad Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55137) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwW75-0006do-JK for emacs-orgmode@gnu.org; Fri, 07 Apr 2017 11:47:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cwW74-00015p-KQ for emacs-orgmode@gnu.org; Fri, 07 Apr 2017 11:47:51 -0400 Received: from mail-yb0-x22c.google.com ([2607:f8b0:4002:c09::22c]:34873) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cwW74-00015e-G4 for emacs-orgmode@gnu.org; Fri, 07 Apr 2017 11:47:50 -0400 Received: by mail-yb0-x22c.google.com with SMTP id f204so17971633ybc.2 for ; Fri, 07 Apr 2017 08:47:50 -0700 (PDT) In-Reply-To: <87mvc3nime.fsf@nicolasgoaziou.fr> 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 --94eb2c05c8be31e029054c958cad Content-Type: text/plain; charset=UTF-8 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. --94eb2c05c8be31e029054c958cad 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_j18058qo0 RnJvbSA2YzNhZDY2MjgwZWRjMTBhNjgzYmRmZDRlNzMwMDMzZDVmNTQxNzIxIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBTa2lwIENvbGxpbnMgPHNraXAuY29sbGluc0BnbWFpbC5jb20+ CkRhdGU6IEZyaSwgNyBBcHIgMjAxNyAxMTo0MTo0NyAtMDQwMApTdWJqZWN0OiBbUEFUQ0hdIEVu c3VyZSB0ZXN0IGZpbGVzIGFyZSBvcGVuZWQgaW4gRW1hY3MgaW4gdGVzdC1vcmcvZnV6enktbGlu a3MKCi0tLQogdGVzdGluZy9saXNwL3Rlc3Qtb3JnLmVsIHwgNCArKy0tCiAxIGZpbGUgY2hhbmdl ZCwgMiBpbnNlcnRpb25zKCspLCAyIGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL3Rlc3Rpbmcv bGlzcC90ZXN0LW9yZy5lbCBiL3Rlc3RpbmcvbGlzcC90ZXN0LW9yZy5lbAppbmRleCBiMWQ0NDQ5 ZWYuLjMzNjFhNjlhNSAxMDA2NDQKLS0tIGEvdGVzdGluZy9saXNwL3Rlc3Qtb3JnLmVsCisrKyBi L3Rlc3RpbmcvbGlzcC90ZXN0LW9yZy5lbApAQCAtMjI5Miw3ICsyMjkyLDcgQEAgRm9vIEJhcgog ICAgICAgIChpbnNlcnQgKGZvcm1hdCAiW1tmaWxlOiVzOjpsaW5lMSBsaW5lMl1dIiBmaWxlKSkK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