aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/ChangeLog
diff options
context:
space:
mode:
authorMichal Nazarewicz2014-06-05 16:42:07 +0200
committerMichal Nazarewicz2014-06-05 16:42:07 +0200
commit03d7d160c3c7f31f1fee84b1bdcd252a8cec7b99 (patch)
treea173a51f3eee0e4ab48b6770961819a95ebb9af1 /lisp/ChangeLog
parentdf344ab435c04aea5bb9261e6d2c349ab8f4fcea (diff)
downloademacs-03d7d160c3c7f31f1fee84b1bdcd252a8cec7b99.tar.gz
emacs-03d7d160c3c7f31f1fee84b1bdcd252a8cec7b99.zip
tildify.el: Rewrite `tildify-region' and co., add foreach function.
* lisp/textmodes/tildify.el (tildify-foreach-region-outside-env): New function which calls a callback on portions of the buffer that are outside of ignored environments. (tildify-build-regexp): Remove function since it is now incorporated in `tildify-foreach-region-outside-env' where it is optimised and simplified by the use of `mapconcat'. (tildify-tildify): Return number of substitutions made so that… (tildify-count): …can be removed. (tildify-find-env): Accept a new PAIRS argument which was previously looked up in `tildify-ignored-environments-alist' each time the function was called. With this change, the lookup is performed only once in `tildify-foreach-region-outside-env'. (tildify-region): Greatly simplify the function since now most of the work is done by `tildify-foreach-region-outside-env'. (tildify-mode-alist): Simplify slightly by avoiding if and setq and instead using or. * tests/automated/tildify-tests.el (tildify-test-find-env-end-re-bug) (tildify-test-find-env-group-index-bug): Update to support new signature of the `tildify-foreach-region-outside-env' function. Namely, it now takes pairs as an argument instead of looking it up in `tildify-ignored-environments-alist'.
Diffstat (limited to 'lisp/ChangeLog')
-rw-r--r--lisp/ChangeLog17
1 files changed, 17 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1a6b1cd517c..0abb367f5b8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,22 @@
12014-06-05 Michal Nazarewicz <mina86@mina86.com> 12014-06-05 Michal Nazarewicz <mina86@mina86.com>
2 2
3 * textmodes/tildify.el (tildify-foreach-region-outside-env): New
4 function which calls a callback on portions of the buffer that are
5 outside of ignored environments.
6 (tildify-build-regexp): Remove function since it is now
7 incorporated in `tildify-foreach-region-outside-env' where it is
8 optimised and simplified by the use of `mapconcat'.
9 (tildify-tildify): Return number of substitutions made so that…
10 (tildify-count): …can be removed.
11 (tildify-find-env): Accept a new PAIRS argument which was
12 previously looked up in `tildify-ignored-environments-alist' each
13 time the function was called. With this change, the lookup is
14 performed only once in `tildify-foreach-region-outside-env'.
15 (tildify-region): Greatly simplify the function since now most of
16 the work is done by `tildify-foreach-region-outside-env'.
17 (tildify-mode-alist): Simplify slightly by avoiding if and setq
18 and instead using or.
19
3 * textmodes/tildify.el (tildify-ignored-environments-alist): 20 * textmodes/tildify.el (tildify-ignored-environments-alist):
4 Optimise environments regexes 21 Optimise environments regexes
5 22