X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/8f6fe36e1ad23834e9b772e8fcdfe85d5eb47356..f10533854f4c7bb54247a11981191bf37b70cb36:/packages/wcheck-mode/wcheck-mode.el diff --git a/packages/wcheck-mode/wcheck-mode.el b/packages/wcheck-mode/wcheck-mode.el index bb61dd02c..c97f09b87 100644 --- a/packages/wcheck-mode/wcheck-mode.el +++ b/packages/wcheck-mode/wcheck-mode.el @@ -7,7 +7,7 @@ ;; Created: 2009-07-04 ;; URL: https://github.com/tlikonen/wcheck-mode ;; Keywords: text spell check languages ispell -;; Version: 2016.1.5 +;; Version: 2016.1.30 ;; This program is free software: you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by @@ -360,12 +360,12 @@ regexp-end The default values for the regular expressions are - \\=\\<'* (regexp-start) + \\=\\<\\='* (regexp-start) \\w+? (regexp-body) - '*\\=\\> (regexp-end) + \\='*\\=\\> (regexp-end) Effectively they match a series of word characters defined in - the effective syntax table. Single quotes (') at the start + the effective syntax table. Single quotes (\\=') at the start and end of a word are excluded. This is probably a good thing when using `wcheck-mode' as a spelling checker. @@ -377,7 +377,7 @@ regexp-discard to define exceptions to the `regexp-body' match. The default value is - \\`'+\\' + \\\\=`\\='+\\\\=' which discards the body string if it consists only of single quotes. This was chosen as the default because the default @@ -623,10 +623,10 @@ Here's an example value for the variable: (connection . nil) (face . wcheck-default-face) (syntax . text-mode-syntax-table) - (regexp-start . \"\\\\=\\<'*\") + (regexp-start . \"\\\\=\\<\\='*\") (regexp-body . \"\\\\w+?\") - (regexp-end . \"'*\\\\=\\>\") - (regexp-discard . \"\\\\`'+\\\\'\") + (regexp-end . \"\\='*\\\\=\\>\") + (regexp-discard . \"\\\\\\=`\\='+\\\\\\='\") (case-fold . nil) (read-or-skip-faces ((emacs-lisp-mode c-mode) read @@ -1388,7 +1388,10 @@ areas, including invisible ones. Otherwise skip invisible text." (when font-lock-mode (save-excursion - (jit-lock-fontify-now (min beg end) (max beg end)))) + (funcall (if (fboundp 'font-lock-ensure) + #'font-lock-ensure + #'font-lock-fontify-region) + (min beg end) (max beg end)))) (wcheck--with-language-data (language (wcheck--buffer-data-get :buffer buffer :language))