Discussion:
[Docutils-users] New version V1.5.0 of rst.el
Stefan Merten
2016-07-31 14:55:26 UTC
Permalink
Hi!

Today I uploaded a new version of `rst.el` - the reStructuredText
major mode for Emacs. This is a very big patch which is basically a
major refactoring introducing some abstractions reflecting
reStructuredText concepts.

Indeed I developed this for some years now and I'm using the current
version for quite some time. Given this and the array of unit tests I
added I consider this version production ready.

I also pushed this version to the Emacs development tree but at the
moment have no idea in which Emacs version it will finally appear. May
be it is 25.2.

Please find the log entry for this version below.


Grüße

Stefan

=== 8< === 8< === 8< === 8< === 8< === 8< === 8< === 8< === 8< === 8< ===

Major refactoring:

* 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.
Oleksandr Gavenko
2016-08-03 19:28:43 UTC
Permalink
Post by Stefan Merten
Today I uploaded a new version of `rst.el` - the reStructuredText
major mode for Emacs. This is a very big patch which is basically a
major refactoring introducing some abstractions reflecting
reStructuredText concepts.
Hi! I actively use rst.el (which come with official Emacs).

Only one downside I have. For one long file (700 KiB, 20 kLOC).

When I open it I have 2-5 sec delay first time and when I mark line as header
(C-c C-= / M-x rst-adjust) it take 1-2 sec to complete action.

File has near 660 headers (notes for future blog posts).

I have not tried new version yet.
--
http://defun.work/
Stefan Merten
2016-08-04 18:18:22 UTC
Permalink
Hi Oleksandr!
Post by Oleksandr Gavenko
Hi! I actively use rst.el (which come with official Emacs).
Over the time different versions of rst.el have been bundled with
official Emacs versions. In more recent versions of rst.el you could
try ``C-h v rst-version`` for the version you are using.
Post by Oleksandr Gavenko
Only one downside I have. For one long file (700 KiB, 20 kLOC).
When I open it I have 2-5 sec delay first time and when I mark line as header
(C-c C-= / M-x rst-adjust) it take 1-2 sec to complete action.
File has near 660 headers (notes for future blog posts).
I guess you are using font locking. Some years ago with the help of
Emacs developers I spent some effort to enable using `jit-lock-mode`.
Please check ``C-h v font-lock-support-mode``. The value should be
`jit-lock-mode` (the default).

If that makes a difference then fine. If not you may send me your file
by private mail. You may want to use rot13 for privacy reasons.

You can also try loading your file without font locking switched on.
This should not result in any delay.
Post by Oleksandr Gavenko
I have not tried new version yet.
There should be no changes in this regard.


Grüße

Stefan

Loading...