Mercurial > emacs
comparison lisp/textmodes/bibtex.el @ 92217:301d82bab982
* textmodes/bibtex.el: Remove support for hideshow minor mode as
it duplicates the bibtex support in progmodes/hideshow.el.
* progmodes/hideshow.el (hs-special-modes-alist): Allow bibtex
entry that do not start at the beginning of a line.
author | Roland Winkler <Roland.Winkler@physik.uni-erlangen.de> |
---|---|
date | Mon, 25 Feb 2008 19:49:23 +0000 |
parents | d490a1f4c1b9 |
children | 1d8a03656f39 |
comparison
equal
deleted
inserted
replaced
92216:f6fa050c615a | 92217:301d82bab982 |
---|---|
1289 "Alist mapping entry types to their sorting index. | 1289 "Alist mapping entry types to their sorting index. |
1290 Auto-generated from `bibtex-sort-entry-class'. | 1290 Auto-generated from `bibtex-sort-entry-class'. |
1291 Used when `bibtex-maintain-sorted-entries' is `entry-class'.") | 1291 Used when `bibtex-maintain-sorted-entries' is `entry-class'.") |
1292 | 1292 |
1293 | 1293 |
1294 ;; Support for hideshow minor mode | |
1295 (defun bibtex-hs-forward-sexp (arg) | |
1296 "Replacement for `forward-sexp' to be used by `hs-minor-mode'. | |
1297 ARG is ignored." | |
1298 (if (looking-at "@\\S(*\\s(") | |
1299 (goto-char (1- (match-end 0)))) | |
1300 (forward-sexp 1)) | |
1301 | |
1302 (add-to-list | |
1303 'hs-special-modes-alist | |
1304 '(bibtex-mode "@\\S(*\\s(" "\\s)" nil bibtex-hs-forward-sexp nil)) | |
1305 | |
1306 | |
1307 (defun bibtex-parse-association (parse-lhs parse-rhs) | 1294 (defun bibtex-parse-association (parse-lhs parse-rhs) |
1308 "Parse a string of the format <left-hand-side = right-hand-side>. | 1295 "Parse a string of the format <left-hand-side = right-hand-side>. |
1309 The functions PARSE-LHS and PARSE-RHS are used to parse the corresponding | 1296 The functions PARSE-LHS and PARSE-RHS are used to parse the corresponding |
1310 substrings. These functions are expected to return nil if parsing is not | 1297 substrings. These functions are expected to return nil if parsing is not |
1311 successful. If the returned values of both functions are non-nil, | 1298 successful. If the returned values of both functions are non-nil, |