mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(reftex-access-scan-info): Error out in a
buffer not visiting a file.
This commit is contained in:
parent
2fdf44570f
commit
489632ba4f
1 changed files with 5 additions and 0 deletions
|
|
@ -1228,6 +1228,11 @@ This enforces rescanning the buffer on next use."
|
|||
;; But, when RESCAN is -1, don't rescan even if docstruct is empty.
|
||||
;; When FILE is non-nil, parse only from that file.
|
||||
|
||||
;; Error out in a buffer without a file.
|
||||
(if (and reftex-mode
|
||||
(not (buffer-file-name)))
|
||||
(error "RefTeX works only in buffers visiting a file."))
|
||||
|
||||
;; Make sure we have the symbols tied
|
||||
(if (eq reftex-docstruct-symbol nil)
|
||||
;; Symbols are not yet tied: Tie them.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue