From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leonard Randall Subject: Re: Feature Request. org-bibtex-tags-are-keywords inherit tags Date: Fri, 18 Apr 2014 10:02:10 +0100 Message-ID: References: <8761m89go7.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=047d7b33cea6a78e9d04f74d67cb Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wb4gW-00067G-QC for emacs-orgmode@gnu.org; Fri, 18 Apr 2014 05:02:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wb4gV-0001ZG-Bg for emacs-orgmode@gnu.org; Fri, 18 Apr 2014 05:02:12 -0400 Received: from mail-oa0-x234.google.com ([2607:f8b0:4003:c02::234]:51415) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wb4gV-0001ZA-5K for emacs-orgmode@gnu.org; Fri, 18 Apr 2014 05:02:11 -0400 Received: by mail-oa0-f52.google.com with SMTP id l6so1543362oag.39 for ; Fri, 18 Apr 2014 02:02:10 -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 --047d7b33cea6a78e9d04f74d67cb Content-Type: multipart/alternative; boundary=047d7b33cea6a78e9a04f74d67c9 --047d7b33cea6a78e9a04f74d67c9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I =E2=80=8B t was indeed easier than I had thought. I tested the modified function on my reading list file and it works as expected under most conditions (It plays well with other variables etc.). The only exception was the previously mentioned issue with nonstandard bibtex types. If I have time this weekend, I will try to look into this problem. (I think it might be time to break down and actually learn lisp.) Attached is the requested diff. In addition to adding the new variable `org-bibtex-tags-inherit' and editing the function `org-bibtex-headline', I modified a couple of customize doc strings to reflect the change. I also edited one doc string that seemed to refer to an old variable that is no longer in use. On 17 April 2014 15:25, Bastien wrote: > Hi Leonard, > > Leonard Randall writes: > > > Unfortunately, my knowledge of lisp is particularly rudimentary so I > > can't offer to do it myself. > > I think you certainly underestimate yourself and can start hacking :) > > 1. install Git on your machine > 2. ~$ git clone git://orgmode.org/org-mode.git > 3. ~$ cd org-mode/ > 4. Edit lisp/org-bibtex.el > 5. Use C-x C-e at the end of the edited functions and check it works > > When you're done, simple C-x v =3D in the edited buffer, C-x o to go to > that buffer, then save it and send it to us. > > Otherwise let's wait someone with a better understanding than mine > can hack it together. But I'm sure you can give us something that > will be useful enough. > > Best, > > -- > Bastien > --047d7b33cea6a78e9a04f74d67c9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



I
t= was indeed easier than I had thought. I tested the modified function on my= reading list file and it works as expected under most conditions (It plays= well with other variables etc.). The only exception was the previously men= tioned issue with nonstandard bibtex types. If I have time this weekend, I = will try to look into this problem. (I think it might be time to break down= and actually learn lisp.)

Attached is the requested diff. In addition = to adding the new variable `org-bibtex-tags-inherit' and editing the fu= nction `org-bibtex-headline', I modified a couple of customize doc stri= ngs to reflect the change. I also edited one doc string that seemed to refe= r to an old variable that is no longer in use.


On 17 April 2014 15:25, Bastien <bzg@gnu.= org> wrote:
Hi Leonard,

Leonard Randall <leonard.a.randall@gmail.com> writes:

> Unfortunately, my knowledge of lisp is particularly rudimentary so I > can't offer to do it myself.

I think you certainly underestimate yourself and can start hacking :)=

1. install Git on your machine
2. ~$ git clone git://orgmode.org/org-mode.git
3. ~$ cd org-mode/
4. Edit lisp/org-bibtex.el
5. Use C-x C-e at the end of the edited functions and check it works

When you're done, simple C-x v =3D in the edited buffer, C-x o to go to=
that buffer, then save it and send it to us.

Otherwise let's wait someone with a better understanding than mine
can hack it together. =C2=A0But I'm sure you can give us something that=
will be useful enough.

Best,

--
=C2=A0Bastien


--047d7b33cea6a78e9a04f74d67c9-- --047d7b33cea6a78e9d04f74d67cb Content-Type: text/plain; charset=US-ASCII; name="org-bibtexpatch.diff" Content-Disposition: attachment; filename="org-bibtexpatch.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hu58x0630 ZGlmZiAtLWdpdCBhL2xpc3Avb3JnLWJpYnRleC5lbCBiL2xpc3Avb3JnLWJpYnRleC5lbAppbmRl eCBlZDY0NWU1Li44NDhkMGU0IDEwMDY0NAotLS0gYS9saXNwL29yZy1iaWJ0ZXguZWwKKysrIGIv bGlzcC9vcmctYmlidGV4LmVsCkBAIC0yNzAsMjAgKzI3MCwzMSBAQCB3aXRoIHVuZGVyc2NvcmVz LCBhbmQgY2hhcmFjdGVycyB0aGF0IGFyZSBub3QgcGVybWl0dGVkIGluIG9yZwogdGFncyB3aWxs IGJlIHJlbW92ZWQuCiAKIElmIHQsIGxvY2FsIHRhZ3MgaW4gYW4gb3JnIGVudHJ5IHdpbGwgYmUg ZXhwb3J0ZWQgYXMgYQotY29tbWEtc2VwYXJhdGVkIHN0cmluZyBvZiBrZXl3b3JkcyB3aGVuIGV4 cG9ydGVkIHRvIGJpYnRleC4gIFRhZ3MKLWRlZmluZWQgaW4gYG9yZy1iaWJ0ZXgtdGFncycgb3Ig YG9yZy1iaWJ0ZXgtbm8tZXhwb3J0LXRhZ3MnIHdpbGwKLW5vdCBiZSBleHBvcnRlZC4iCitjb21t YS1zZXBhcmF0ZWQgc3RyaW5nIG9mIGtleXdvcmRzIHdoZW4gZXhwb3J0ZWQgdG8gYmlidGV4LiBJ ZgorYG9yZy1iaWJ0ZXgtaW5oZXJpdC10YWdzJyBpcyB0LCBpbmhlcml0ZWQgdGFncyB3aWxsIGFs c28gYmUKK2V4cG9ydGVkIGFzIGtleXdvcmRzLiBUYWdzIGRlZmluZWQgaW4gYG9yZy1iaWJ0ZXgt dGFncycgb3IKK2BvcmctYmlidGV4LW5vLWV4cG9ydC10YWdzJyB3aWxs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