[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex f2138e9a74 33/77: New option for saving auto par
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex f2138e9a74 33/77: New option for saving auto parsed information (bug#55511) |
Date: |
Fri, 26 Aug 2022 16:06:35 -0400 (EDT) |
branch: externals/auctex
commit f2138e9a748dd1a227c7b7290c7725508f65486c
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>
New option for saving auto parsed information (bug#55511)
* tex.el (TeX-auto-save-aggregate): New option. When non-nil, save
parsed information in "auto" subdirectory of master
directory. (Traditional behavior)
When nil, save in each @file{auto} subdirectory of the parsed file.
---
doc/auctex.texi | 20 ++++++++++++++------
tex.el | 15 ++++++++++++++-
2 files changed, 28 insertions(+), 7 deletions(-)
diff --git a/doc/auctex.texi b/doc/auctex.texi
index 8952785383..a2a0452555 100644
--- a/doc/auctex.texi
+++ b/doc/auctex.texi
@@ -4305,7 +4305,7 @@ all files in the document. This means that you will get
from each file,
for example, completion for all labels defined anywhere in the document.
@AUCTeX{} will create the @file{auto} directory automatically if
-@code{TeX-auto-save} is non-nil. Without it, the files in the document
+@code{TeX-auto-save} is non-@code{nil}. Without it, the files in the document
will not know anything about each other, except for the name of the
master file. @xref{Automatic Local}.
@@ -5080,15 +5080,14 @@ These correspond to the personal @TeX{} macros.
@cindex Local style directory
@AUCTeX{} can update the style information about a file each time you
-save it, and it will do this if the directory @code{TeX-auto-local}
-exists. @code{TeX-auto-local} is by default set to @samp{"auto"}, so
-simply creating an @file{auto} directory will enable automatic saving of
-style information.
+save it if @code{TeX-auto-save} option is enabled. Saved information will
+be stored in the directory @code{TeX-auto-local}, set to @samp{"auto"} by
+default.
The advantage of doing this is that macros, labels, etc.@: defined in any
file in a multifile document will be known in all the files in the
document. The disadvantage is that saving will be slower. To disable,
-set @code{TeX-auto-local} to nil.
+set @code{TeX-auto-local} to @code{nil}.
@defopt TeX-style-local
Directory containing hand generated @TeX{} information.
@@ -5102,6 +5101,15 @@ Directory containing automatically generated @TeX{}
information.
These correspond to @TeX{} macros found in the current directory.
@end defopt
+@defopt TeX-auto-save-aggregate
+When non-@code{nil}, save parsed information in @file{auto} subdirectory
+of master directory.
+
+Otherwise, save in each @file{auto} subdirectory of the parsed file.
+
+Subdirectory name is actually taken from @code{TeX-auto-local}.
+@end defopt
+
@node Style Files
@section Writing Your Own Style Support
@cindex Style files
diff --git a/tex.el b/tex.el
index 46a23abdc7..bd1454f681 100644
--- a/tex.el
+++ b/tex.el
@@ -3963,6 +3963,17 @@ Generated by `TeX-auto-add-type'.")
:group 'TeX-parse
:type 'boolean)
+(defcustom TeX-auto-save-aggregate t
+ "When non-nil, save parsed information in one directory.
+Each style file of automatically parsed information is saved in
+\"auto\" subdirectory of master file.
+
+When nil, saves in each \"auto\" subdirectory.
+
+Subdirectory name is actually taken from `TeX-auto-local'."
+ :group 'TeX-parse
+ :type 'boolean)
+
(defun TeX-auto-write ()
"Save all relevant TeX information from the current buffer."
(if TeX-auto-untabify
@@ -3973,7 +3984,9 @@ Generated by `TeX-auto-add-type'.")
(file-name-as-directory TeX-auto-local)
(TeX-strip-extension nil TeX-all-extensions t)
".el")
- (TeX-master-directory)))
+ (if TeX-auto-save-aggregate
+ (TeX-master-directory)
+ default-directory)))
(dir (file-name-directory file)))
;; Create auto directory if possible.
(if (not (file-exists-p dir))
- [elpa] externals/auctex 9a3078e510 68/77: Fix comments and doc strings, (continued)
- [elpa] externals/auctex 9a3078e510 68/77: Fix comments and doc strings, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 3447aa75c3 32/77: ; Further fixes about single quotes in docstrings, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 30f7a1ca68 63/77: Don't use void function texinfo-outline-level, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex fade32d568 54/77: Don't break line inside \verb-like macro (bug#56160), Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 9b5cf4b550 27/77: Fix insertion of second optional argument, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 39e0062235 46/77: Introduce face and keyword class for underlined text, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex d1d1bd819d 47/77: Control the opening and closing braces during insertion, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 6e25d11aa6 44/77: Add comment, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex ce4bb7c1b6 58/77: ; * style/doc.el: Delete spurious `declare-function'., Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 06db9e302b 75/77: Add new style/tcolorboxlib-theorems.el, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex f2138e9a74 33/77: New option for saving auto parsed information (bug#55511),
Tassilo Horn <=
- [elpa] externals/auctex 4486056d50 16/77: Add new style/ltcaption.el, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 019bcc9cc3 48/77: ; * style/proc.el: Fix a typo., Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 7d7e563862 34/77: * doc/changes.texi: Add NEWS item for the previous commit., Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 8404fe8b18 17/77: Provide generic completion functions, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex b377080c80 50/77: Add notification about xelatex in preview-latex doc, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex fe15af59d0 76/77: Merge remote-tracking branch 'origin/master' into externals/auctex, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 19a2607b42 73/77: Unbreak building with Emacs 29 after obsoleting autoload.el, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex e194656ce2 28/77: Let RefTeX recognize labels in user defined environments, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 87b24d0963 45/77: Add support for the Sioyek document viewer, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 23f4040c9d 57/77: Add new test, Tassilo Horn, 2022/08/26