From mboxrd@z Thu Jan 1 00:00:00 1970 From: Max Mouratov Subject: [PATCH] org: Prevent loss of `re-search-forward' results Date: Thu, 29 Aug 2019 23:03:06 +0500 Message-ID: <1054971006.20190829230306@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------04E0780EB2987DAB5" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:41019) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3OlM-0007kT-ME for emacs-orgmode@gnu.org; Thu, 29 Aug 2019 14:03:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i3OlL-0005NE-IQ for emacs-orgmode@gnu.org; Thu, 29 Aug 2019 14:03:12 -0400 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]:46043) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i3OlL-0005L7-4h for emacs-orgmode@gnu.org; Thu, 29 Aug 2019 14:03:11 -0400 Received: by mail-lf1-x12c.google.com with SMTP id r134so2348087lff.12 for ; Thu, 29 Aug 2019 11:03:10 -0700 (PDT) Received: from [192.168.1.4] (94.41.24.173.dynamic.ufanet.ru. [94.41.24.173]) by smtp.gmail.com with ESMTPSA id t16sm495971lfp.38.2019.08.29.11.03.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Aug 2019 11:03:07 -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: emacs-orgmode@gnu.org ------------04E0780EB2987DAB5 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello! I got burned by this issue while implementing a custom link handler. ------------04E0780EB2987DAB5 Content-Type: application/octet-stream; name="0001-org-Prevent-loss-of-re-search-forward-results.patch" Content-transfer-encoding: base64 Content-Disposition: attachment; filename="0001-org-Prevent-loss-of-re-search-forward-results.patch" RnJvbSBlMGEzOWE2YzI2NGEyZTlkN2UxMTk2N2RhNDcwZmE4MDZkZjFjZWI3IE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBNYXggTW91cmF0b3YgPG1tb3VyYXRvdkBnbWFpbC5j b20+CkRhdGU6IFRodSwgMjkgQXVnIDIwMTkgMjI6NDg6MjIgKzA1MDAKU3ViamVjdDogW1BB VENIXSBvcmc6IFByZXZlbnQgbG9zcyBvZiBgcmUtc2VhcmNoLWZvcndhcmQnIHJlc3VsdHMK Ciogb3JnLmVsIChvcmctYWN0aXZhdGUtbGlua3MpOiBgbWF0Y2gtYmVnaW5uaW5nJyBhbmQg YG1hdGNoLWVuZGAgc2hvdWxkCmJlIGNhbGxlZCBzaG9ydGx5IGFmdGVyIGByZS1zZWFyY2gt Zm9yd2FyZCcuIE90aGVyd2lzZSwgdGhleSBtYXkgcmV0dXJuCnZhbHVlcyBjb3JyZXNwb25k aW5nIHRvIGEgZGlmZmVyZW50IGludm9jYXRpb24gb2YgYHJlLXNlYXJjaC1mb3J3YXJkJy4K ClRJTllDSEFOR0UKLS0tCiBsaXNwL29yZy5lbCB8IDYgKysrLS0tCiAxIGZpbGUgY2hhbmdl ZCwgMyBpbnNlcnRpb25zKCspLCAzIGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL2xpc3Av b3JnLmVsIGIvbGlzcC9vcmcuZWwKaW5kZXggZGI5NTdhMTEyLi41M2NjNjk2NmYgMTAwNjQ0 Ci0tLSBhL2xpc3Avb3JnLmVsCisrKyBiL2xpc3Avb3JnLmVsCkBAIC01MTUxLDYgKzUxNTEs OCBAQCBUaGlzIGluY2x1ZGVzIGFuZ2xlLCBwbGFpbiwgYW5kIGJyYWNrZXQgbGlua3MuIgog ICAgICh3aGlsZSAocmUtc2VhcmNoLWZvcndhcmQgb3JnLWxpbmstYW55LXJlI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