diff options
| -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 () |