From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kosorukoff Subject: [PATCH] Fix capture to make it save the point location Date: Thu, 1 May 2014 19:00:40 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=047d7b41c25c55178f04f8612748 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wg2me-0001MM-Kn for emacs-orgmode@gnu.org; Thu, 01 May 2014 22:01:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wg2md-0006qG-IU for emacs-orgmode@gnu.org; Thu, 01 May 2014 22:01:04 -0400 Received: from mail-oa0-x236.google.com ([2607:f8b0:4003:c02::236]:55933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wg2md-0006pn-Ba for emacs-orgmode@gnu.org; Thu, 01 May 2014 22:01:03 -0400 Received: by mail-oa0-f54.google.com with SMTP id j17so74958oag.13 for ; Thu, 01 May 2014 19:01:02 -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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --047d7b41c25c55178f04f8612748 Content-Type: multipart/alternative; boundary=047d7b41c25c55178b04f8612746 --047d7b41c25c55178b04f8612746 Content-Type: text/plain; charset=UTF-8 Hello: this is another small patch to org-capture.el to make sure that after completion it returns to the same place from where it was invoked. This way users won't loose track of where they were before capturing something. The minimal setup to reproduce the case where capture fails to return to the place of its invocation is attached. Best, Alex --047d7b41c25c55178b04f8612746 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello:

this is another smal= l patch to org-capture.el to make sure that after completion it returns to = the same place from where it was invoked. This way users won't loose tr= ack of where they were before capturing something. The minimal setup to rep= roduce the case where capture fails to return to the place of its invocatio= n is attached.

Best,
Alex
--047d7b41c25c55178b04f8612746-- --047d7b41c25c55178f04f8612748 Content-Type: text/x-patch; charset=US-ASCII; name="0001-fix-org-capture-error-The-mark-is-not-set-now-so-the.patch" Content-Disposition: attachment; filename="0001-fix-org-capture-error-The-mark-is-not-set-now-so-the.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_huotwcd90 RnJvbSBhYzUwYTUzMDBlMzVkN2FiZDVmNTAzMTcwNjliMmE3OTVmZGU0YWQ4IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBBbGV4IEtvc29ydWtvZmYgPGFsZXhAM2Zvcm0uY29tPgpEYXRl OiBNb24sIDE3IE1hciAyMDE0IDEyOjU2OjA5IC0wNzAwClN1YmplY3Q6IFtQQVRDSF0gZml4IG9y Zy1jYXB0dXJlIGVycm9yICJUaGUgbWFyayBpcyBub3Qgc2V0IG5vdywgc28gdGhlcmUgaXMgbm8g cmVnaW9uIgoKLS0tCiBsaXNwL29yZy5lbCB8ICAgIDIgKy0KIDEgZmlsZXMgY2hhbmdlZCwgMSBp bnNlcnRpb25zKCspLCAxIGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL2xpc3Avb3JnLmVsIGIv bGlzcC9vcmcuZWwKaW5kZXggZGM0ZjJjYy4uYmM1YTY5ZSAxMDA2NDQKLS0tIGEvbGlzcC9vcmcu ZWwKKysrIGIvbGlzcC9vcmcuZWwKQEAgLTE0NjExLDcgKzE0NjExLDcgQEAgV2hlbiBKVVNULUFM SUdOIGlzIG5vbi1uaWwsIG9ubHkgYWxpZ24gdGFncy4KIFdoZW4gSlVTVC1BTElHTiBpcyAnaWdu b3JlLWNvbHVtbiwgYWxpZ24gdGFncyB3aXRob3V0IHRyeWluZyB0byBzZXQKIHRoZSBjb2x1bW4g YnkgaWdub3JpbmcgaW52aXNpYmxlIHRleHQuIgogICAoaW50ZXJhY3RpdmUgIlAiKQotICAoaWYg KGFuZCAob3JnLXJlZ2lvbi1hY3RpdmUtcCkgb3JnLWxvb3Atb3Zlci1oZWFkbGluZXMtaW4tYWN0 aXZlLXJlZ2lvbikKKyAgKGlmIChhbmQgKG1hcmsgdCkgKG9yZy1yZWdpb24tYWN0aXZlLXApIG9y Zy1sb29wLW92ZXItaGVhZGxpbmVzLWluLWFjdGl2ZS1yZWdpb24pCiAgICAgICAobGV0ICgoY2wg KGlmIChlcSBvcmctbG9vcC1vdmVyLWhlYWRsaW5lcy1pbi1hY3RpdmUtcmVnaW9uICdzdGFydC1s ZXZlbCkKIAkJICAgICdyZWdpb24tc3RhcnQtbGV2ZWwgJ3JlZ2lvbikpCiAJICAgIG9yZy1sb29w LW92ZXItaGVhZGxpbmVzLWluLWFjdGl2ZS1yZWdpb24pCi0tIAoxLjcuMC40Cgo= --047d7b41c25c55178f04f8612748 Content-Type: text/x-emacs-lisp; charset=US-ASCII; name="capmove.el" Content-Disposition: attachment; filename="capmove.el" Content-Transfer-Encoding: base64 X-Attachment-Id: f_huotwqjb1 OzsgY2FwbW92ZS5lbCBvcmctbW9kZSBjYXB0dXJlIG1vdmluZyB0aGUgcG9pbnQgaW4gYSBidWZm ZXIKOzsgJCBlbWFjcyAtUSAtbCBjYXBmYWlsLmVsCgoodW5sZXNzIHdpbmRvdy1zeXN0ZW0KICAo aW5zZXJ0ICJUaGlzIHRlc3QgbmVlZHMgd2luZG93LXN5c3RlbSwgZXhpdGluZy4uLiIpCiAgKHNs ZWVwLWZvciAzKQogIChraWxsLWVtYWNzKSkKCihzZXRxIGluaGliaXQtc3BsYXNoLXNjcmVlbiB0 KQooYWRkLXRvLWxpc3QgJ2xvYWQtcGF0aCAifi8uZW1hY3MuZC9vcmcvbGlzcCIpCihyZXF1aXJl ICdvcmcpCihzZXRxIG9yZy1jYXB0dXJlLXRlbXBsYXRlcwogICAgICAnKCgidCIgIlRvZG8iIGVu dHJ5IChmaWxlICJ0b2RvLm9yZyIpICIqIFRPRE8gJV57VGl0bGV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