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, 4 Apr 2014 12:31:12 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b414e60d8c9c304f635da97 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WW2L4-0006qe-6t for emacs-orgmode@gnu.org; Fri, 04 Apr 2014 07:31:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WW2L3-0000f8-02 for emacs-orgmode@gnu.org; Fri, 04 Apr 2014 07:31:14 -0400 Received: from mail-oa0-x22e.google.com ([2607:f8b0:4003:c02::22e]:57032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WW2L2-0000f4-Oz for emacs-orgmode@gnu.org; Fri, 04 Apr 2014 07:31:12 -0400 Received: by mail-oa0-f46.google.com with SMTP id i7so3417467oag.33 for ; Fri, 04 Apr 2014 04:31:12 -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 --047d7b414e60d8c9c304f635da97 Content-Type: text/plain; charset=ISO-8859-1 Hi, I apologize, for the last short post. The keybinding for new headline in org-mode sends an email in gmail. Let us try this again. Right now when you run org-bibtex with org-bibtex-tags-are-keywords set to true, only the tags assigned directly to the headline are converted. So, for instance, if I run org bibtex on a file set up like this. #+---------------------EXAMPLE-------------------------------------------- * Journal articles on Authortity :auth: ** Kant's Mature View of Legal Authority :Kant: :PROPERTIES: (bib info here) :END: #+-----------------------END-EXAMPLE-------------------------------------- The .bib file that is exported only inherits the second tag `:Kant:' Having tag inheritance would be very useful for organizing large bibliographies. This would give people the convenience of managing and organizing the files in org-mode, but still allow them to use some of the convenient features of gui based bibtex browsers. It would also allow people to share their bibliographies, along with their tags with colleagues who have not yet been converted to using org-mode. This relevant behavior is controlled by the function org-bibtex-headline in org-bibtex.el. I can change the behavior on my machine by changing `org-get-local-tags-at' to `org-get-tags-at' in my local version of org-bibtex.el. This of course does not fix the bug I mentioned last week. (Bug: Error with org-bibtex export with tags when using custom bibtypes )However the cases where the original org-bibtex works this function works as well. Of course not everyone would want this on all of the time. However it seems like it would not be too hard to make a variable such as `org-bibtex-tags-are-keywords-inherit' and modify `org-bibtex-headline' so that you can toggle tag inheritance. Unfortunately, my knowledge of lisp is particularly rudimentary so I can't offer to do it myself. Let me know what you think Thanks so much, Leonard On Fri, Apr 4, 2014 at 11:43 AM, Leonard Randall < leonard.a.randall@gmail.com> wrote: > Hi, > Right now when you run org-bibtex with org-bibtex-tags-are-keywords set to > true, only the tags assigned directly to the headline are converted. So for > instance if run org bibtex on a file set up like this. > * Authority :auth: > ** Kant's Views on authority :Kant: > :properties: > (bibliography info here) > :end: > This behavior is controlled by the function org-bibtex-headline in > org-bibtex.el. I can change the behavior on my machine by changing > `org-get-local-tags-at' to `org-get-tags-at' in > --047d7b414e60d8c9c304f635da97 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,
I apologize, for the last short p= ost. The keybinding for new headline in org-mode sends an email in gmail. L= et us try this again.

Righ= t now when you run org-bibtex with org-bibtex-tags-are-keywords
set to true, only the tags assigned = directly to the headline are
converted. So, for instance, if I run org bibtex on a file set = up like
this.
#+---------------------EXAMPLE----------------= ----------------------------
* Journal articles on Authortity =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0:auth:<= /span>
** Kant's Mature View of Legal Authority =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0:Kant:=A0
:PROPERTIES:=A0
(bib info here)
<= div class=3D"gmail_default">:END:
#+-----------------------END-EXAMPLE= --------------------------------------

= The .bib file that is exported only inherits the second tag `:Kant:'
Having tag inheritance would be very= useful for organizing large
bibliographies. This would give people the convenience of manag= ing and
organizing the files in org-mode, bu= t still allow them to use some of
the convenient features of gui based bibtex browsers. It would al= so
allow people t= o share their bibliographies, along with their tags with
colleagues who have not yet been con= verted to using org-mode.
<= font face=3D"courier new, monospace">
This relevant be= havior is controlled by the function
org-bibtex-headline in org-bibtex.el. I can change the behavior o= n
my machine by c= hanging `org-get-local-tags-at' to `org-get-tags-at'<= /div>
in my local version of org-bibtex.el= . This of course does not fix
the bug I mentioned last week. (Bug: Error with org-bi= btex export with tags when using custom bibtypes)However the cases where the original
org-bibtex works this function works= as well. Of course not everyone
would want this on all of the time. However it seems like it woul= d not be
too hard= to make a variable such as=A0`org-bibtex-tag= s-are-keywords-inherit' and modify=A0`org-bibtex= -headline' so that you can toggle tag inheritance.
Unfortunately, my knowledge of lisp = is particularly rudimentary so I can't offer to do it myself.
Let me know what you think
Thanks so much,
Leonard



On Fri, Apr 4, 2014 at 11:43 AM, Leonard Randall <leonard.a.randall@gmail.com> wrote:
Hi,
Right now when you run org-bibtex with org-bibtex-tags-are-keywords set to = true, only the tags assigned directly to the headline are converted. So for= instance if run org bibtex on a file set up like this.
* = Authority =A0:auth:
** Kant's Views on authority :Kant:=A0
:properties:=A0
(bibliography info here)
:end:
This behavior is controlled by the function org-bibtex-headline in org-bibt= ex.el. I can change the behavior on my machine by changing `org-get-local-t= ags-at' to `org-get-tags-at' in

--047d7b414e60d8c9c304f635da97--