summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorTassilo Horn <tsdh@gnu.org>2013-01-21 13:14:56 +0100
committerTassilo Horn <tsdh@gnu.org>2013-01-21 13:14:56 +0100
commite6aff855cef0ef5e20336bd4c08085ba8308fdbc (patch)
treed6cbe1f7dafc904c1a056228638f3ddee6c56c4e /lisp
parentc84b08818d3f9d2d44094b3700f4f413dc2f1792 (diff)
downloademacs-e6aff855cef0ef5e20336bd4c08085ba8308fdbc.tar.gz
emacs-e6aff855cef0ef5e20336bd4c08085ba8308fdbc.tar.bz2
emacs-e6aff855cef0ef5e20336bd4c08085ba8308fdbc.zip
* textmodes/reftex-cite.el (reftex-format-citation): Add format
chars for note (%N) and url (%U). * textmodes/reftex-vars.el (reftex-cite-format): Document them.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/textmodes/reftex-cite.el2
-rw-r--r--lisp/textmodes/reftex-vars.el12
3 files changed, 14 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 194c76b28ca..60a69ad0236 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
+2013-01-21 Tassilo Horn <tsdh@gnu.org>
+
+ * textmodes/reftex-cite.el (reftex-format-citation): Add format
+ chars for note (%N) and url (%U).
+ * textmodes/reftex-vars.el (reftex-cite-format): Document them.
+
2013-01-21 Juri Linkov <juri@jurta.org>
* frame.el: Bind `f10' in `esc-map' to `toggle-frame-maximized'
diff --git a/lisp/textmodes/reftex-cite.el b/lisp/textmodes/reftex-cite.el
index 3b294e62b01..079101b56ee 100644
--- a/lisp/textmodes/reftex-cite.el
+++ b/lisp/textmodes/reftex-cite.el
@@ -1043,6 +1043,7 @@ While entering the regexp, completion on knows citation keys is possible.
((= l ?k) (reftex-get-bib-field "key" entry))
((= l ?m) (reftex-get-bib-field "month" entry))
((= l ?n) (reftex-get-bib-field "number" entry))
+ ((= l ?N) (reftex-get-bib-field "note" entry))
((= l ?o) (reftex-get-bib-field "organization" entry))
((= l ?p) (reftex-get-bib-field "pages" entry))
((= l ?P) (car (split-string
@@ -1050,6 +1051,7 @@ While entering the regexp, completion on knows citation keys is possible.
"[- .]+")))
((= l ?s) (reftex-get-bib-field "school" entry))
((= l ?u) (reftex-get-bib-field "publisher" entry))
+ ((= l ?U) (reftex-get-bib-field "url" entry))
((= l ?r) (reftex-get-bib-field "address" entry))
((= l ?t) (reftex-get-bib-field "title" entry))
((= l ?T) (reftex-abbreviate-title
diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el
index db08ca3a514..2a5c9c55866 100644
--- a/lisp/textmodes/reftex-vars.el
+++ b/lisp/textmodes/reftex-vars.el
@@ -1125,12 +1125,12 @@ In the format, the following percent escapes will be expanded.
%e Works like %a, but on list of editor names. (%2e and %E work a well)
It is also possible to access all other BibTeX database fields:
-%b booktitle %c chapter %d edition %h howpublished
-%i institution %j journal %k key %m month
-%n number %o organization %p pages %P first page
-%r address %s school %u publisher %t title
-%v volume %y year
-%B booktitle, abbreviated %T title, abbreviated
+%b booktitle %c chapter %d edition %h howpublished
+%i institution %j journal %k key %m month
+%n number %N note %o organization %p pages
+%P first page %r address %s school %u publisher
+%U url %t title %v volume %y year
+%B booktitle, abbreviated %T title, abbreviated
Usually, only %l is needed. The other stuff is mainly for the echo area
display, and for (setq reftex-comment-citations t).