summaryrefslogtreecommitdiff
path: root/docutils/tools/editors
Commit message (Collapse)AuthorAgeFilesLines
* Fix trailing whitespace (non-Python files).milde2022-01-292-2/+2
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8995 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Change http://docutils.sourceforge.net -> https://docutils.sourceforge.iomilde2022-01-202-6/+6
| | | | | | Patch by Adam Turner. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8956 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* More changes to https://sourceforge.netmilde2022-01-201-1/+1
| | | | | | Patch by Adam Turner git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8955 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Change http://docutils.sf.net -> https://docutils.sourceforge.iomilde2022-01-201-1/+1
| | | | | | Patch by Adam Turner. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8954 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix spellingmilde2021-10-223-6/+6
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8860 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Use default encoding (utf8) for documentation in tools/editors/emacs.milde2020-02-062-21/+19
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8483 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Debug: `rst-forward-indented-block` starts at searching at next linesmerten2017-01-082-19/+55
| | | | | | | | again. Fixes fontification of comments continuing on the same line they started. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8015 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Lots of refactorings and a few minor improvements.smerten2017-01-0326-2332/+3844
| | | | | | | | | | | | | | | | | | | | User visible improvements and changes: * Improve and debug `rst-forward-section` and `rst-backward-section`. * Auto-enumeration may be used with all styles for list insertion. * Improve and debug `rst-toc-insert`. * Adapt change in Emacs to use customization group `text` instead of `wp`. * Bind `n` and `p` in `rst-toc-mode`. * `z` in `toc-mode` returns to the previous window configuration. * Require Emacs version >= 24.1. Lots of refactorings including: * Silence byte compiler. * Use lexical binding. * Use `cl-lib`. * Add tests and raise test coverage. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8011 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Major refactoring:smerten2016-07-3124-1923/+7280
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Introduce classes `rst-Ado', `rst-Hdr', `rst-Ttl' and `rst-Stn' representing reStructuredText section header concepts. * Introduce use case approach for systematic testing of section header adjustment (files `tests/adjust-uc.el` and `tests/adjust-uc_doc.rst`). * Revise and refactor some old code. * Add lots of unit tests. * Replace `set (make-local-variable 'VAR)` by `setq-local VAR`. * Fix minor bugs. Minor feature changes and fixes: * Link final newline in a toc buffer so navigating at the end of the line works. * Improve section header adjustment slightly. * Integrate and update tutorial. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7963 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Replaced macros `rst-iterate-leftmost-...` by new functionsmerten2015-12-282-113/+625
| | | | | | | | | | | | | | | | `rst-apply-indented-blocks`. Refactored `rst-enumerate-region`, `rst-bullet-list-region` and `rst-line-block-region` to use `rst-apply-indented-blocks`. Improved `rst-enumerate-region` and `rst-bullet-list-region` to not indent empty lines and not indent lines before indented block. Debugged those commands to not run into endless loops on blocks at the end of a buffer missing a final newline. Improved `rst-line-block-region` to not kill indentation. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7931 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Update tutorial.smerten2015-10-043-131/+318
| | | | | | | | | | | Works with `electric-indent-mode` switched on globally in Emacs 24.4. Includes changes made in Emacs tree matching Emacs commit ``db828f62f6f17414fbbc3206dac123dc73dd6055`` of 2015-09-21 16:51:20 (GMT). git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7925 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* change link to vim vst plugin (bug #242)grubert2014-10-211-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7774 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@7515 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@7490 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@7444 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Corrected version.smerten2012-04-291-4/+6
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@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@7398 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@7233 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@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@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@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@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@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@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@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@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@6501 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@6473 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@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@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@6383 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@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@5953 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@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@5836 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added linksgoodger2008-11-261-2/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5730 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* rst.el: Fixed usage of toolsets.blais2008-09-221-4/+8
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5648 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Set indentation mode correctly.smerten2008-07-161-1/+4
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5598 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Integrated patch fromsmerten2008-07-161-3/+24
| | | | | | | https://sourceforge.net/tracker/?func=detail&atid=422030&aid=1994493&group_id=38414 git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5597 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Improved font-lock code to use a better `PRE-MATCH-FORM`. As a resultsmerten2008-07-161-177/+144
| | | | | | | | performance is no longer a problem. `rst-mode-lazy` is no longer needed. `font-lock-support-mode` is currently switched off. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5596 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Reverted patch wrongly attributed to me.smerten2008-07-161-10/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5595 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Applied patch to rst.el from SMerten.blais2008-07-071-2/+10
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5591 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Refixed font-lock-support mode once again to work with more Emacssmerten2008-05-191-1/+2
| | | | | | | versions. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5556 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Updates from working version before moving into emacs.blais2008-04-191-9/+26
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5542 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Refixed font-lock-support mode to work with more Emacs versions.smerten2008-02-261-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5520 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* rst.el: Added rst-minor-mode, to be used along mail-mode and other modes ↵blais2008-01-281-6/+30
| | | | | | derived from text-mode. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5506 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* rst.el: removed junkblais2008-01-121-8/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5497 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* rst.el: bug fixblais2007-12-151-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5472 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* rst.el: bug fixesblais2007-12-101-3/+12
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5471 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* rst.el: Some fixes due to code review from Emacs dev.blais2007-12-061-78/+58
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5468 929543f6-e4f2-0310-98a6-ba3bd3dd1d04