mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 20:32:00 -08:00
(bibtex-hide-entry-bodies): When entry
bodies are hidden, the last entry is no longer omitted.
This commit is contained in:
parent
470a48acec
commit
e326384cda
1 changed files with 7 additions and 11 deletions
|
|
@ -3005,19 +3005,15 @@ If mark is active it counts entries in region, if not in whole buffer."
|
|||
With prefix argument ARG, show all text."
|
||||
(interactive "P")
|
||||
(save-excursion
|
||||
(bibtex-beginning-of-first-entry)
|
||||
(let ((buffer-read-only nil))
|
||||
(if arg
|
||||
(subst-char-in-region (point) (point-max) ?\r ?\n t)
|
||||
(while (not (eobp))
|
||||
(subst-char-in-region
|
||||
(point)
|
||||
(progn
|
||||
(re-search-forward "[\n\r]@" nil t)
|
||||
(forward-line -1)
|
||||
(point))
|
||||
?\n ?\r t)
|
||||
(forward-line 1)))
|
||||
(subst-char-in-region (point-min) (point-max) ?\r ?\n t)
|
||||
(let ((pos (point-max)))
|
||||
(goto-char (point-max))
|
||||
(while (re-search-backward "^@" nil t)
|
||||
(subst-char-in-region (point) pos ?\n ?\r t)
|
||||
(if (not (bobp)) (forward-char -1))
|
||||
(setq pos (point)))))
|
||||
(setq selective-display (not arg)))))
|
||||
|
||||
(defun bibtex-sort-buffer ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue