diff options
| author | Richard M. Stallman | 1998-06-30 06:55:03 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-06-30 06:55:03 +0000 |
| commit | e326384cdaf490940cb472b26257a299ee109bad (patch) | |
| tree | 372a7aa97f90fb4e9f3449268307e7585670f0a4 /lisp | |
| parent | 470a48acec9bc783cb3c885a5088f0716249bd67 (diff) | |
| download | emacs-e326384cdaf490940cb472b26257a299ee109bad.tar.gz emacs-e326384cdaf490940cb472b26257a299ee109bad.zip | |
(bibtex-hide-entry-bodies): When entry
bodies are hidden, the last entry is no longer omitted.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/textmodes/bibtex.el | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el index 9ef23d7d74b..2d9e6764c5e 100644 --- a/lisp/textmodes/bibtex.el +++ b/lisp/textmodes/bibtex.el | |||
| @@ -3005,19 +3005,15 @@ If mark is active it counts entries in region, if not in whole buffer." | |||
| 3005 | With prefix argument ARG, show all text." | 3005 | With prefix argument ARG, show all text." |
| 3006 | (interactive "P") | 3006 | (interactive "P") |
| 3007 | (save-excursion | 3007 | (save-excursion |
| 3008 | (bibtex-beginning-of-first-entry) | ||
| 3009 | (let ((buffer-read-only nil)) | 3008 | (let ((buffer-read-only nil)) |
| 3010 | (if arg | 3009 | (if arg |
| 3011 | (subst-char-in-region (point) (point-max) ?\r ?\n t) | 3010 | (subst-char-in-region (point-min) (point-max) ?\r ?\n t) |
| 3012 | (while (not (eobp)) | 3011 | (let ((pos (point-max))) |
| 3013 | (subst-char-in-region | 3012 | (goto-char (point-max)) |
| 3014 | (point) | 3013 | (while (re-search-backward "^@" nil t) |
| 3015 | (progn | 3014 | (subst-char-in-region (point) pos ?\n ?\r t) |
| 3016 | (re-search-forward "[\n\r]@" nil t) | 3015 | (if (not (bobp)) (forward-char -1)) |
| 3017 | (forward-line -1) | 3016 | (setq pos (point))))) |
| 3018 | (point)) | ||
| 3019 | ?\n ?\r t) | ||
| 3020 | (forward-line 1))) | ||
| 3021 | (setq selective-display (not arg))))) | 3017 | (setq selective-display (not arg))))) |
| 3022 | 3018 | ||
| 3023 | (defun bibtex-sort-buffer () | 3019 | (defun bibtex-sort-buffer () |