From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kosorukoff Subject: [PATCH] Fix: Capture abort: (error: The mark is not set now, so there is no region) Date: Fri, 25 Apr 2014 17:06:30 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=047d7bd6c5e8e48c5504f7e6dbec Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wdq8q-0001Mi-Vm for emacs-orgmode@gnu.org; Fri, 25 Apr 2014 20:06:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wdq8p-0000Lp-F7 for emacs-orgmode@gnu.org; Fri, 25 Apr 2014 20:06:52 -0400 Received: from mail-ob0-x236.google.com ([2607:f8b0:4003:c01::236]:56838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wdq8p-0000La-8K for emacs-orgmode@gnu.org; Fri, 25 Apr 2014 20:06:51 -0400 Received: by mail-ob0-f182.google.com with SMTP id uy5so5081602obc.27 for ; Fri, 25 Apr 2014 17:06:50 -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 --047d7bd6c5e8e48c5504f7e6dbec Content-Type: multipart/alternative; boundary=047d7bd6c5e8e48c5104f7e6dbea --047d7bd6c5e8e48c5104f7e6dbea Content-Type: text/plain; charset=UTF-8 I noticed a regression in the capture functionality after upgrading org. Capture fails with error in subj Here is a simple config to reproduce the problem and a patch that fixes it. emacs -q -l capfail.el Best, Alex --047d7bd6c5e8e48c5104f7e6dbea Content-Type: text/html; charset=UTF-8
I noticed a regression in the capture functionality after upgrading org. Capture fails with error in subj

Here is a simple config to reproduce the problem and a patch that fixes it.

emacs -q -l capfail.el

Best,
Alex
--047d7bd6c5e8e48c5104f7e6dbea-- --047d7bd6c5e8e48c5504f7e6dbec 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_hug4zvd20 RnJvbSBhYzUwYTUzMDBlMzVkN2FiZDVmNTAzMTcwNjliMmE3OTVmZGU0YWQ4IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBBbGV4IEtvc29ydWtvZmYgPGFsZXhAM2Zvcm0uY29tPgpEYXRl OiBNb24sIDE3IE1hciAyMDE0IDEyOjU2OjA5IC0wNzAwClN1YmplY3Q6IFtQQVRDSF0gZml4IG9y Zy1jYXB0dXJlIGVycm9yICJUaGUgbWFyayBpcyBub3Qgc2V0IG5vdywgc28gdGhlcmUgaXMgbm8g cmVnaW9uIgoKLS0tCiBsaXNwL29yZy5lbCB8ICAgIDIgKy0KIDEgZmlsZXMgY2hhbmdlZCwgMSBp bnNlcnRpb25zKCspLCAxIGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL2xpc3Avb3JnLmVsIGIv bGlzcC9vcmcuZWwKaW5kZXggZGM0ZjJjYy4uYmM1YTY5ZSAxMDA2NDQKLS0tIGEvbGlzcC9vcmcu ZWwKKysrIGIvbGlzcC9vcmcuZWwKQEAgLTE0NjExLDcgKzE0NjExLDcgQEAgV2hlbiBKVVNULUFM SUdOIGlzIG5vbi1uaWwsIG9ubHkgYWxpZ24gdGFncy4KIFdoZW4gSlVTVC1BTElHTiBpcyAnaWdu b3JlLWNvbHVtbiwgYWxpZ24gdGFncyB3aXRob3V0IHRyeWluZyB0byBzZXQKIHRoZSBjb2x1bW4g YnkgaWdub3JpbmcgaW52aXNpYmxlIHRleHQuIgogICAoaW50ZXJhY3RpdmUgIlAiKQotICAoaWYg KGFuZCAob3JnLXJlZ2lvbi1hY3RpdmUtcCkgb3JnLWxvb3Atb3Zlci1oZWFkbGluZXMtaW4tYWN0 aXZlLXJlZ2lvbikKKyAgKGlmIChhbmQgKG1hcmsgdCkgKG9yZy1yZWdpb24tYWN0aXZlLXApIG9y Zy1sb29wLW92ZXItaGVhZGxpbmVzLWluLWFjdGl2ZS1yZWdpb24pCiAgICAgICAobGV0ICgoY2wg KGlmIChlcSBvcmctbG9vcC1vdmVyLWhlYWRsaW5lcy1pbi1hY3RpdmUtcmVnaW9uICdzdGFydC1s ZXZlbCkKIAkJICAgICdyZWdpb24tc3RhcnQtbGV2ZWwgJ3JlZ2lvbikpCiAJICAgIG9yZy1sb29w LW92ZXItaGVhZGxpbmVzLWluLWFjdGl2ZS1yZWdpb24pCi0tIAoxLjcuMC40Cgo= --047d7bd6c5e8e48c5504f7e6dbec Content-Type: text/x-emacs-lisp; charset=US-ASCII; name="capfail.el" Content-Disposition: attachment; filename="capfail.el" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hug50qen1 OzsgY2FwZmFpbC5lbCBvcmctbW9kZSBjYXB0dXJlIGZhaWx1cmUgd2hlbiByZWdpb24gaXMgYWN0 aXZlCjs7ICQgZW1hY3MgLXEgLWwgY2FwZmFpbC5lbAoKKHNldHEgaW5oaWJpdC1zcGxhc2gtc2Ny ZWVuIHQpCihhZGQtdG8tbGlzdCAnbG9hZC1wYXRoICJ+Ly5lbWFjcy5kL29yZy9saXNwIikKKHJl cXVpcmUgJ29yZykKCihzZXRxIG9yZy1jYXB0dXJlLXRlbXBsYXRlcwogICAgICAnKCgidCIgIlRv ZG8iIGVudHJ5IChmaWxlICJ0ZXN0Lm9yZyIpCiAgICAgICAgICIqIFRPRE8gVGVzdCAlXmdcbiAg JT8iKSkpCgooZGVmaW5lLWtleSBnbG9iYWwtbWFwIChrYmQgIkMtYyBjIikgJ29yZy1jYXB0dXJl KQoKKGZpbmQtZmlsZSAidGVzdC5vcmciKQooaW5zZXJ0CiAiU2VsZWN0IHNvbWUgdGV4dCB0byBt YWtlIGEgcmVnaW9uLCB0aGVuIHRyeSBDLWMgYyB0XG50ZXN0XG4iCiAiRW1hY3MgMjMuMS4xLzIz LjMuMS8yNC4xLzI0LjIgJiBPcmctbW9kZSB2ZXJzaW9uIDguMi42IHJlc3VsdDpcbiIKICJDYXB0 dXJlIGFib3J0OiAoZXJyb3I6IFRoZSBtYXJrIGlzIG5vdCBzZXQgbm93LCBzbyB0aGVyZSBpcyBu byByZWdpb24pXG4iKQoKKHByb3ZpZGUgJ2NhcGZhaWwpCgo= --047d7bd6c5e8e48c5504f7e6dbec--