HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fdf445
)
(reftex-access-scan-info): Error out in a
author
Carsten Dominik
<dominik@science.uva.nl>
Tue, 1 Feb 2005 12:39:39 +0000
(12:39 +0000)
committer
Carsten Dominik
<dominik@science.uva.nl>
Tue, 1 Feb 2005 12:39:39 +0000
(12:39 +0000)
buffer not visiting a file.
lisp/textmodes/reftex.el
patch
|
blob
|
blame
|
history
diff --git
a/lisp/textmodes/reftex.el
b/lisp/textmodes/reftex.el
index
318279b
..
49485c2
100644
(file)
--- a/
lisp/textmodes/reftex.el
+++ b/
lisp/textmodes/reftex.el
@@
-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.