summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* FIX: 3598956 -- No new line in buildhtml.py "Processing directory" msggrubert2012-12-311-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7579 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add support for `imenu` and `which-func-mode`. Remember settingsmerten2012-09-2018-396/+784
| | | | | | | | | | | | | | | `which-func-modes` for this feature to work. Automated calculations of section title faces replaced by `defface`. Remove superfluous `rst-portable-mark-active-p`. Refactoring. Add support for `testcover`. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7515 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Allow running test_buildhtml.py from anywhere, also with Python 3.milde2012-09-031-19/+30
| | | | | | Fixes [ 3521167 ] and [ 3521168 ]. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7505 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added C-c C-a C-a to adjust section header adornment. This works withsmerten2012-07-3019-1174/+1634
| | | | | | | | | | all types of input methods. Fixed bug ID 3551316 (https://sourceforge.net/tracker/index.php?func=detail&aid=3551316&group_id=38414&atid=422030). git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7490 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* math, error_reporting, and urischemes moved to the utils package. milde2012-06-251-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7464 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Major merge with Emacs source tree. Docutils SVN version and Emacssmerten2012-06-164-546/+699
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | trunk are kept in sync from now on. New version is supposed to appear in Emacs 24.2. User visible changes: * Switch meaning of keybindings ``C-M-a`` and ``C-M-e`` They were wrong in the first place :-( . Sorry for changing bindings again. * Added faces `rst-transition` and `rst-adornment` New faces are used instead of directly using `font-lock-keyword-face`. * Improved customization of `rst-adornment-faces-alist` Hopefully this will not break existing customization. * Character syntax adopted to match plain text again Other code improvements suggested by Emacs developers: * Replaced use of `defun`\s from `cl.el` by own definitions * Improved lots and lots of comments and documentation strings including spelling fixes * Fixed version stuff * Improved some functions * Byte-compiling emits no warnings and works * Added tests Other improvements: * Default for customizing `rst-adornment-faces-alist` is now safe Thanks to Samuel Bronson for the patch. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7444 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Make tools/ compatible with both, Python 2 and 3 without 2to3-conversion.milde2012-06-136-56/+84
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7442 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Corrected version.smerten2012-04-291-4/+6
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7399 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* User visible changes:smerten2012-04-294-191/+460
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Symbols follow reStructuredText syntax more closely This implies that role and directive names with internal underscores, plus signs and colons are handled correctly. This is particularly important for Sphinx users where embedded colons are used frequently for this purpose. * `rst-compile-toolsets` is now customizable In addition the default value first looks for a `rst2*.py` and uses it if found or uses the `rst2*` command. Thanks to Emacs developers for this. * Use faces not variables for font-lock customization There are now customizable `rst-*` faces which are used. The old `rst-*-face` variables are still there but deprecated. Thanks to Emacs developers for this. * Font-locking revised again slightly Other changes: * Merge with the changes made in Emacs main line up to bazaar revision 106782 * Minor cleanup git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7398 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fixed the --prune & --ignore options of buildhtml.pygoodger2012-01-231-17/+15
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7323 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* change references to berlios to sourceforgegrubert2011-12-021-1/+1
| | | | | | | release.txt and the script in sandbox need rework though git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7233 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Work around http://bugs.python.org/issue10419milde2011-05-191-2/+1
| | | | | | Use a surrogate spelling for my name. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7038 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* New sub-module and test suite for error reporting.milde2011-05-191-9/+9
| | | | | | | | * Code to handle encoding/decoding errors when reporting exceptions. * Test and fix error reporting with problematic locale settings. (https://bugs.gentoo.org/show_bug.cgi?id=349101) git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7037 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Test and use robust the error printingmilde2011-05-111-10/+9
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7031 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* use error_encoding and ~_error_handler for printing to sys.stdoutmilde2011-05-061-5/+9
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7028 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* * Package versionsmerten2011-03-2010-410/+2906
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a package version in `rst-version`. For a release it's only the official version number, for development version in addition it contains the revision and timestamp. The package version is used for customizable variables according to Emacs standards. * Indentation and filling Indentation and filling is completely revised / new. The general idea is to determine tabs which make sense for reStructuredText and use them for indentation and filling. Like in other modes <tab> always indents the current line. If the current indentation is irregular the most likely tab for continuing the last block is used. If the indentation matches a tab already the indentation for the next tab in the list of possible tabs is used. The customization group `rst-indent` contains a couple of customizable variables to match different styles. Auto-fill uses these mechanism, too. Filling also uses these mechanisms. For most types of reStructuredText blocks <M-q> (`fill-paragraph`) does what you expect including filling of regions. These features should improve the experience of editing reStructuredText in Emacs much. Feedback on these features is welcome. * Improved paragraph recognition Most reStructuredText blocks are now recognized as paragraphs. Thus things like <C-down> (`forward-paragraph`) and friends work. This also influences filling. * Comment handling Comment handling is revised / new. <M-#> (`comment-region`) works and comments are treated correctly in filling. At the moment only one style for commenting regions is supported. Feedback on this feature is welcome. * Deprecated commands The following commands had never been bound to keys. It seems unlikely that they are used and for this reason they are deprecated starting with this release: * `rst-replace-lines` * `rst-join-paragraph` * `rst-force-fill-paragraph` * `rst-repeat-last-character` Feedback whether they are really used by someone is welcome. Otherwise they are removed at some point. * New customizable variables A couple of variables defined by `defvar` so far are now customizable: * `rst-adjust-hook` * `rst-new-adornment-down` * `rst-preferred-bullets` * New tests Lots of tests have been added. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6993 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* `rst-shift-region` now works like `indent-rigidly`. I.e. you can givesmerten2011-01-303-223/+537
| | | | | | | | | | | | | | | | | | | | | | | | | | a positive or negative argument to control direction and amount of reStructuredText indendation points you want to change indendation by. There is only one key binding on C-c C-r TAB. `rst-shift-region` does not fill any more - this should be left to the user. Variable `rst-shift-fill-region` is removed therefore. Debugging: `rst-compute-tabs` operates more consistently. `rst-shift-region` doesn't drop the region. `rst-indent-width` has been renamed from `rst-shift-basic-offset` and is customizable. `rst-preferred-adornments` has a proper customization type. General refactorings. Revised and added ideas. Added and improved lots of tests. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6713 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Compilation commands use and remove temporary files. Fixes bugsmerten2011-01-231-11/+7
| | | | | | | #2912890. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6647 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Refactoring: Font-lock code and section title handling functions sharesmerten2011-01-235-778/+918
| | | | | | | | | | | | | | | | functions. Also fixes problems with font-locking under `jit-lock-mode`. `jit-lock-mode` is kept as `font-lock-support-mode`. Support for `jit-lock-mode` has been debugged. For big blocks of comments and literal text using `jit-lock-mode` may result in slowing display down. Further work is needed here. Added, removed and adapted tests. Added ideas. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6646 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Modified `rst-font-lock-extend-region` so it not crashes Emacs anysmerten2011-01-132-47/+66
| | | | | | | | | | | | | | | | | more in some situations. Thanks to Stefan Monnier for analyzing the problem. Change of `rst-preferred-decorations` to `rst-preferred-adornments` is reflected by a `define-obsolete-variable-alias`. Thus older customizations should continue to work. Moved `rst-shift-region-left` to C-c C-r C-TAB which needs no translation to backtab. Minor refactorings. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6556 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Refactored adornment recognition for title adjustment. Includessmerten2010-12-224-196/+120
| | | | | | | | slightly different / improved behavior. As a side effect fixes bug #2972588. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6506 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Adapted to `(elisp)Tips and Conventions`. This includes anothersmerten2010-12-182-198/+228
| | | | | | | | | remapping of key bindings to use `\C-c \C-LETTER` instead of `\C-c LETTER` which are reserved for users. All final keys are also control keys now to simplify typing. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6504 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Deprecated keys are output properly.smerten2010-12-142-6/+15
| | | | | | | Added ideas. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6503 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Functional changessmerten2010-12-1215-2565/+4485
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ================== * `rst-insert-list` inserts new list or continues existing lists * Based on code by Wei-Wei Guo * Revised key bindings * Rebound nearly all bindings to make room in the keymap for further extensions and to bind them to the same keys as in other modes * New key bindings use a two step approach * Old bindings are still present but deprecated * Bindings are described with ^H * Improvements in regular expressions * `comment-start-skip` cares about indendation relative to explicit markup tag so such comments are filled properly * Shift region works with all kinds of valid item types * Paragraph starts recognize list item types and no longer allows ">" prefixes * Other improvements * Bullets are no longer customizable and contain all bullets supported by reST * `rst-toc-update` sets point correctly * `rst-bullet-list-region` uses `rst-preferred-bullets` Refactorings ============ * Regular expressions are handled by own infrastructure so they become much more comprehensible * Revised tests * Introduced `ert` as a test framework * Added support for `ert` based tests * Refactored existing tests to use `ert` * Added tests for regular expression refactoring * Added tests for inserting items * Added tests for toc insertion * Improved structure of some functions * Replaced "decoration" and derivatives to "adornment" so the wording is now the same everywhere * Made a couple of reST structures explicit in `defconst`\s * Removed Emacs backward compatibility code * Added `IDEAS.rst` git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6501 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Move orphaned "newlatex" writer to the sandbox.milde2010-12-071-25/+0
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6496 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Improvements in fontification:smerten2010-11-062-117/+138
| | | | | | | | | | | | | | | | | * Comments are always fontified correctly * Line blocks are supported * `jit-lock-mode` is still not usable * `rst-font-lock-extend-region` is used as suggested by main Emacs developers but needs compilation Refactorings: * Replaced some occurences of `current-prefix-arg' * Removed dead code * Modified `tests-runner.el` to work as a filter, too git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6473 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* XeTeX writer update/bugfix/completionmilde2010-09-211-0/+27
| | | | | | | | rst2xetex.py front end, install xetex writer with setup.py, no hyphenation in literal text. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6431 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Debugging: Empty comment lines are treated correctly.smerten2010-08-161-383/+370
| | | | | | | | | | | Merged changes from Emacs 23.1 into main development line. However: * Kept code for `font-lock-support-mode` * Marked a few places with "EmacsMainDevelopment" git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6390 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [ 3001100 ] does not handle spaces in filenames (thanks to Jakub Wilk)milde2010-08-131-3/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6389 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Inline markup is constrained to a length of 1000 characters to pacifysmerten2010-08-071-5/+12
| | | | | | | | regular expression matcher. Fixes "Stack overflow in regexp matcher" occuring occasionally in complicated documents. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6383 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* add BUG commentsgrubert2010-07-101-3/+4
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6373 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* remove python2.2 supportgrubert2010-07-101-10/+6
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6371 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix: --local now stops recursiongrubert2010-07-102-8/+10
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6370 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add copyright headergrubert2010-07-101-0/+4
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6369 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix: /usr/bin/env in first linegrubert2010-07-101-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6368 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* add test for build_html ignoring --localgrubert2010-07-101-0/+87
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6367 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* add option --dry-run for testing purposegrubert2010-07-091-1/+5
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6366 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Install auxiliary scripts under docutils/tools instead of the binary path.milde2010-03-091-3/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6262 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Include buildhtml.py and rst_quicktest.py in package_data[\\\scripts\']milde2010-03-051-3/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6259 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Move manpage writer out of sandbox.grubert2009-08-181-0/+26
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6085 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Reset window configuration after displaying TOC.smerten2009-05-211-4/+6
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5954 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Negative prefix argument always works for `rst-adjust-decoration`.smerten2009-05-211-5/+5
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5953 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* rst2latex.py: More specific web link in descriptionmilde2009-04-161-3/+6
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5905 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Misc updates after initial checkindkuhlman2009-01-072-57/+9
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5839 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* rst.el: Applied patch from darklord@timehorse.com for parameterized TOC support.blais2009-01-011-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5837 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fixed batch tests for rst.el (thanks to Jeffrey C. Jacobs for notifying they ↵blais2009-01-012-9/+16
| | | | | | were broken) git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5836 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added rst2odt/odtwriter to the main branch.dkuhlman2008-12-262-0/+145
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5834 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix: os.walk patchgrubert2008-12-011-1/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5741 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Prepare for python 3.0: use os.walk instead os.path.walk.grubert2008-11-301-1/+4
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5739 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added linksgoodger2008-11-261-2/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5730 929543f6-e4f2-0310-98a6-ba3bd3dd1d04