[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-devel] Cleaning functionality
From: |
Ralf Angeli |
Subject: |
[AUCTeX-devel] Cleaning functionality |
Date: |
Sun, 05 Feb 2006 15:51:00 +0100 |
As mentioned on the general mailing list I had a little bit of code
for cleaning generated files I wanted to generalize. Attached you can
find a patch showing what has become of it.
There are a few things which may be worth discussing:
I decided to use regular expressions for matching suffixes of files to
be deleted in order to be able to support stuff like makeinfo
splitting info files or texi2html splitting HTML files. The resulting
customization options may not be easily understandable by users not
familiar with regular expressions. Consequently we could provide the
option to use a list of suffixes instead of a regular expression and
use such a list in the "easy" cases like (La)TeX and ConTeXt modes as
default.
The word "Clean" in the command list shadows "Check" and "ConTeXt".
"Purge" would shadow "Print". Any better suggestions?
Calling `TeX-clean' from `TeX-command-list' is accomplished with a
dedicated wrapper function `TeX-run-clean' similar to how we do it
with `TeX-run-ispell'. I don't really like to introduce another
special case, so how about making it possible that the second element
of an item in `TeX-command-list' can be a function which will be
called by a hypothetical `TeX-run-function' function? For example for
"Clean" you could have
("Clean" TeX-clean TeX-run-function nil t :help "Remove generated files")
and for "Spell"
("Spell" (lambda () (TeX-ispell-document "")) TeX-run-function nil t
:help "Spell-check the document")
Note that this is just an idea, I still have to check if this will
actually work.
--
Ralf
txt84EudcKd2v.txt
Description: Text Data
- [AUCTeX-devel] Cleaning functionality,
Ralf Angeli <=
- [AUCTeX-devel] Re: Cleaning functionality, Reiner Steib, 2006/02/05
- [AUCTeX-devel] Re: Cleaning functionality, Ralf Angeli, 2006/02/06
- Re: [AUCTeX-devel] Re: Cleaning functionality, Ralf Angeli, 2006/02/06
- Re: [AUCTeX-devel] Re: Cleaning functionality, David Kastrup, 2006/02/06
- Re: [AUCTeX-devel] Re: Cleaning functionality, Ralf Angeli, 2006/02/06
- [AUCTeX-devel] Re: Cleaning functionality, Ralf Angeli, 2006/02/06
[AUCTeX-devel] Re: Cleaning functionality, Ralf Angeli, 2006/02/07