From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleh Subject: Re: org-mode automatically sets bookmarks org-capture-last-stored etc. Date: Thu, 18 Jul 2013 14:42:50 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=047d7b339e074e735204e1c88ca4 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UznXp-0000pw-NC for emacs-orgmode@gnu.org; Thu, 18 Jul 2013 08:42:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UznXn-0006Fk-3S for emacs-orgmode@gnu.org; Thu, 18 Jul 2013 08:42:53 -0400 Received: from mail-vc0-x22a.google.com ([2607:f8b0:400c:c03::22a]:52329) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UznXm-0006Fd-SZ for emacs-orgmode@gnu.org; Thu, 18 Jul 2013 08:42:50 -0400 Received: by mail-vc0-f170.google.com with SMTP id hf12so2289091vcb.1 for ; Thu, 18 Jul 2013 05:42:50 -0700 (PDT) In-Reply-To: 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 --047d7b339e074e735204e1c88ca4 Content-Type: multipart/alternative; boundary=047d7b339e074e734f04e1c88ca2 --047d7b339e074e734f04e1c88ca2 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Jul 18, 2013 at 2:41 PM, Oleh wrote: > Since there's no reaction, I'll just show my view of how it could be done. > I attach the patch. > > regards, > Oleh > > > On Thu, Jul 18, 2013 at 10:34 AM, Oleh wrote: > >> Hi all, >> >> I'd like to point out that it's inconvenient for me >> that org stores the bookmarks "org-capture-last-stored", >> "org-refile-last-stored" and "org-capture-last-stored-marker" when I do >> capture/refile. >> I'd like an option to turn them off selectively. >> Also it would be nice to customize the default names of these bookmarks. >> >> For the moment, I've just disabled in the source the >> "org-capture-last-stored-marker" >> and renamed the others to "oc: org-capture-last-stored-marker" and "or: >> org-refile-last-stored". >> But messing with the source is not a permanent solution. >> >> >> regards, >> Oleh >> >> >> >> > --047d7b339e074e734f04e1c88ca2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable



On Thu, Jul 18, 2013 at 2:41 PM, Oleh <<= a href=3D"mailto:ohwoeowho@gmail.com" target=3D"_blank">ohwoeowho@gmail.com= > wrote:
Since there's= no reaction, I'll just show my view of how it could be done.
= I attach the patch.

regards,
Oleh


On Thu, Jul 18, 2013 at 10:34 AM, Oleh <= span dir=3D"ltr"><ohwoeowho@gmail.com> wrote:
Hi all,

I'd= like to point out that it's inconvenient for me
that org stor= es the bookmarks "org-capture-last-stored", "org-refile-last= -stored" and "org-capture-last-stored-marker" when I do capt= ure/refile.
I'd like an option to turn them off selectively.
Also it= would be nice to customize the default names of these bookmarks.

For the moment, I've just disabled in the source the "org-capt= ure-last-stored-marker"
and renamed the others to "oc:=A0 org-capture-last-stored-m= arker" and "or:=A0 org-refile-last-stored".
Bu= t messing with the source is not a permanent solution.

regards,
Oleh





--047d7b339e074e734f04e1c88ca2-- --047d7b339e074e735204e1c88ca4 Content-Type: application/octet-stream; name="0001-org.el-added-org-bookmark-names-plist.patch" Content-Disposition: attachment; filename="0001-org.el-added-org-bookmark-names-plist.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hj9y8grv0 RnJvbSAxYTVhMGU2MTI0NzRlMDg4MWQ5YmQ1YTZmOWYzOTI4MTliNGM5ZTI4IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBvbGVoIDx3YXZlQG1haWwudWE+CkRhdGU6IFRodSwgMTggSnVs IDIwMTMgMTQ6Mzc6NTkgKzAyMDAKU3ViamVjdDogW1BBVENIXSBvcmcuZWw6IGFkZGV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KLQkJICAgICAgKGJvb2ttYXJrLXNldCAib3JnLWNh cHR1cmUtbGFzdC1zdG9yZWQtbWFya2VyIikpCisJCSAgICAobGV0ICgoYm9va21hcmstbmFtZSAo cGxpc3QtZ2V0IG9yZy1ib29rbWFyay1uYW1lcy1wbGlzdCA6bGFzdC1jYXB0dXJlLW1hcmtlcikp KQorCQkgICAgICAod2hlbiBib29rbWFyay1uYW1lCisJCQkod2l0aC1kZW1vdGVkLWVycm9ycwor CQkJICAoYm9va21hcmstc2V0IGJvb2ttYXJrLW5hbWUpKSkpCiAJCSAgICAobW92ZS1tYXJrZXIg b3JnLWNhcHR1cmUtbGFzdC1zdG9yZWQtbWFya2VyIChwb2ludCkpKQogCQkgIChpZiAoZmJvdW5k cCAnZGVhY3RpdmF0ZS1tYXJrKSAoZGVhY3RpdmF0ZS1tYXJrKSkKIAkJICAocnVuLWhvb2tzICdv cmctYWZ0ZXItcmVmaWxlLWluc2VydC1ob29rKSkpKQotLSAKMS44LjEuMgoK --047d7b339e074e735204e1c88ca4--