Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
45cb4eb4
Commit
45cb4eb4
authored
Apr 06, 2009
by
Roland Winkler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(bibtex-format-entry, bibtex-search-crossref): Allow OPT prefix for
name of crossref field.
parent
45f8cb0c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
lisp/ChangeLog
lisp/ChangeLog
+6
-0
lisp/textmodes/bibtex.el
lisp/textmodes/bibtex.el
+3
-2
No files found.
lisp/ChangeLog
View file @
45cb4eb4
2009-04-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
* textmodes/bibtex.el (bibtex-format-entry)
(bibtex-search-crossref): Allow OPT prefix for name of crossref
field.
2009-04-06 Sam Steingold <sds@gnu.org>
* simple.el (completion-list-mode-map): Bind "q" to quit-window,
...
...
lisp/textmodes/bibtex.el
View file @
45cb4eb4
...
...
@@ -1932,7 +1932,8 @@ Formats current entry according to variable `bibtex-entry-format'."
;; Do we have a crossref key?
(
goto-char
(
point-min
))
(
if
(
setq
bounds
(
bibtex-search-forward-field
"crossref"
))
(
if
(
setq
bounds
(
bibtex-search-forward-field
"\\(OPT\\)?crossref"
))
(
let
((
text
(
bibtex-text-in-field-bounds
bounds
t
)))
(
unless
(
equal
""
text
)
(
setq
crossref-key
text
))))
...
...
@@ -3521,7 +3522,7 @@ for a crossref key, t otherwise."
(
end
(
cdr
(
bibtex-valid-entry
t
)))
(
_
(
unless
end
(
error
"Not inside valid entry"
)))
(
beg
(
match-end
0
))
; set by `bibtex-valid-entry'
(
bounds
(
bibtex-search-forward-field
"crossref"
end
))
(
bounds
(
bibtex-search-forward-field
"
\\(OPT\\)?
crossref"
end
))
case-fold-search
best
temp
crossref-key
)
(
if
bounds
(
setq
crossref-key
(
bibtex-text-in-field-bounds
bounds
t
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment