1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-27 07:41:28 -08:00
emacs/lisp/textmodes
Michal Nazarewicz 03d7d160c3 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'.
2014-06-05 16:42:07 +02:00
..
.gitignore
artist.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
bib-mode.el Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00
bibtex-style.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
bibtex.el * textmodes/bibtex.el (bibtex-biblatex-entry-alist): Update required/optional 2014-02-27 22:51:04 -08:00
conf-mode.el * lisp/font-lock.el (font-lock-flush, font-lock-ensure): New functions. 2014-05-28 23:45:29 -04:00
css-mode.el lisp/textmodes/css-mode.el: Fix typo in comment. 2014-03-16 04:48:56 +01:00
dns-mode.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
enriched.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
fill.el Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00
flyspell.el Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00
ispell.el Use file-accessible-directory-p in some more places 2014-05-09 00:02:00 -07:00
makeinfo.el Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00
nroff-mode.el Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00
page-ext.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
page.el Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00
paragraphs.el Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00
picture.el Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00
po.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
refbib.el Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00
refer.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
refill.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
reftex-auc.el Manage reftex's internal autoloads automatically 2014-03-28 20:53:32 -04:00
reftex-cite.el Manage reftex's internal autoloads automatically 2014-03-28 20:53:32 -04:00
reftex-dcr.el Manage reftex's internal autoloads automatically 2014-03-28 20:53:32 -04:00
reftex-global.el Manage reftex's internal autoloads automatically 2014-03-28 20:53:32 -04:00
reftex-index.el Manage reftex's internal autoloads automatically 2014-03-28 20:53:32 -04:00
reftex-parse.el Merge from emacs-24; up to 2014-05-04T21:18:30Z!eggert@cs.ucla.edu 2014-05-04 12:37:56 -07:00
reftex-ref.el Improve reftex-format-special 2014-05-25 19:40:54 +02:00
reftex-sel.el Manage reftex's internal autoloads automatically 2014-03-28 20:53:32 -04:00
reftex-toc.el Use window-total-width' instead of window-width'. 2014-04-04 14:10:22 +02:00
reftex-vars.el Add `Texinfo' entry to reftex-label-alist-builtin. 2014-01-06 12:15:42 +01:00
reftex.el Auto-commit of loaddefs files. 2014-05-26 06:21:18 -04:00
remember.el Some remember doc 2014-02-19 00:34:45 -08:00
rst.el * lisp/textmodes/rst.el (electric-pair-pairs): Declare. 2014-04-28 11:04:49 -04:00
sgml-mode.el Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00
table.el Spelling fixes. 2014-01-05 22:25:30 -08:00
tex-mode.el Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00
texinfmt.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
texinfo.el Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00
texnfo-upd.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
text-mode.el Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00
tildify.el tildify.el: Rewrite `tildify-region' and co., add foreach function. 2014-06-05 16:42:07 +02:00
two-column.el Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
underline.el Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00