| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8995 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
| |
Patch by Adam Turner.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8956 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
| |
Patch by Adam Turner
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8955 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
| |
Patch by Adam Turner.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8954 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8860 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8483 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
`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
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7774 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
`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
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7399 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
#2912890.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@6647 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
Added ideas.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@6503 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
==================
* `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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@6389 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5954 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5953 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5837 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
| |
were broken)
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5836 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5730 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5648 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5598 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5595 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5591 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
| |
versions.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5556 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5542 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5520 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
| |
derived from text-mode.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5506 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5497 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5472 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5471 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5468 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|