unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Joost Kremers <joostkremers@yahoo.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Anyone knows how to do dvd/book collection management in Emacs?
Date: 2 Apr 2007 21:03:30 GMT	[thread overview]
Message-ID: <slrnf12rrl.6e8.joostkremers@j.kremers4.news.arnhem.chello.nl> (raw)
In-Reply-To: mailman.1679.1175532801.7795.help-gnu-emacs@gnu.org

CHENG Gao wrote:
[ebib]
> And I have a problem now.
> I dont like Customize, so instead I add my entry type for movie in my
> init.el like this:
>
> ,----
>| (require 'ebib)
>| (global-set-key "\C-ce" 'ebib)
>| (add-to-list 'ebib-entry-types '(movie                                             
>|      (name director actors actress producer year dvd-type audio subtitle time) 
>|      (rating comment))) 
> `----
>
> Here I have to use require instead of autoload for purpose of altering
> value of ebib-entry-types.

yes, because the variable ebib-entry-types is only defined when ebib.el is
loaded.

> Then I create from scratch my dvd file by:
> M-x ebib RET
> o ~/.emacs.d/dvd.bib RET
> a -- input my first entry "the-merchant-of-venice:2004" (Movie The
> Merchant of Venice is released in 2004. I use name:year as key).
> And since default type is "article", I press "e" on type, and I can not
> change it to "movie". TAB shows no "movie" in list.
>
> So instead of adding my type directly into ebib.el, what should I do?
> Anything I did is wrong?

well, ebib-entry-types is unfortunately not a variable you can set
directly, because two other variables have to be set on the basis of
it. therefore, it's better to use the customisation interface.

however, if you really don't want to, you could do it by putting the
following in .emacs (after loading ebib.el):

(ebib-set-entry-types-hash 'ebib-entry-types
			   (cons '(movie
				   (name director actors actress producer year dvd-type audio subtitle time) 
				   (rating comment))
				 ebib-entry-types))

> Thanks for your good job. Though I have no idea about bibtex, I think
> ebib is cool and useful.

thanks. :-)

-- 
Joost Kremers                                      joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)

  parent reply	other threads:[~2007-04-02 21:03 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1628.1175336066.7795.help-gnu-emacs@gnu.org>
2007-04-01  2:04 ` Anyone knows how to do dvd/book collection management in Emacs? Chris McMahan
2007-04-01  4:49   ` Tim X
2007-04-01  5:42     ` CHENG Gao
2007-04-01  5:19   ` CHENG Gao
2007-04-01 10:23     ` Lennart Borgman (gmail)
     [not found]   ` <mailman.1637.1175405014.7795.help-gnu-emacs@gnu.org>
2007-04-01  9:25     ` Thien-Thi Nguyen
2007-04-02 13:51 ` Joost Kremers
2007-04-02 15:40   ` CHENG Gao
     [not found]   ` <mailman.1674.1175528725.7795.help-gnu-emacs@gnu.org>
2007-04-02 16:15     ` Joost Kremers
2007-04-02 16:49       ` CHENG Gao
     [not found]       ` <mailman.1679.1175532801.7795.help-gnu-emacs@gnu.org>
2007-04-02 21:03         ` Joost Kremers [this message]
2007-04-04 16:25           ` CHENG Gao
2007-04-03  8:32       ` Tim X
2007-04-03 14:28 ` dsoliver
2007-03-31 10:11 CHENG Gao
2007-03-31 15:01 ` Xavier Maillard
2007-04-02 16:51   ` CHENG Gao
2007-03-31 18:09 ` Eric Hanchrow
     [not found] ` <mailman.1634.1175365578.7795.help-gnu-emacs@gnu.org>
2007-04-01  1:46   ` thorne
2007-04-01 18:30     ` Charles philip Chan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=slrnf12rrl.6e8.joostkremers@j.kremers4.news.arnhem.chello.nl \
    --to=joostkremers@yahoo.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).