[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 285/352: Make "syntax" and "case-fold" effective with "program" f
From: |
Stefan Monnier |
Subject: |
[elpa] 285/352: Make "syntax" and "case-fold" effective with "program" function |
Date: |
Mon, 07 Jul 2014 14:05:00 +0000 |
monnier pushed a commit to branch master
in repository elpa.
commit 0452e81ed896686b1134cb473c1cadac325c3457
Author: Teemu Likonen <address@hidden>
Date: Sun Jul 3 17:23:59 2011 +0300
Make "syntax" and "case-fold" effective with "program" function
Language options "syntax" and "case-fold" are now effective when the
checker "program" function is called.
---
wcheck-mode.el | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/wcheck-mode.el b/wcheck-mode.el
index 585af9f..7f8d65d 100644
--- a/wcheck-mode.el
+++ b/wcheck-mode.el
@@ -1011,7 +1011,7 @@ process which handles BUFFER. Each string in STRINGS is
sent as
separate line."
(wcheck-with-language-data
(nil (wcheck-buffer-data-get :buffer buffer :language))
- (program)
+ (program syntax (case-fold-search case-fold))
(condition-case nil
(cond ((or (wcheck-buffer-data-get :buffer buffer :process)
@@ -1031,7 +1031,9 @@ separate line."
(with-current-buffer buffer
(let ((received
(save-match-data
- (condition-case nil (funcall program strings)
+ (condition-case nil
+ (with-syntax-table (eval syntax)
+ (funcall program strings))
(error (signal 'wcheck-funcall-error nil))))))
(if (wcheck-list-of-strings-p received)
(when received
- [elpa] 313/352: Minor rephrasing in the README's "features" section, (continued)
- [elpa] 313/352: Minor rephrasing in the README's "features" section, Stefan Monnier, 2014/07/07
- [elpa] 271/352: Revert "Add an explicit OPERATION-MODE "nil" in README's examples", Stefan Monnier, 2014/07/07
- [elpa] 349/352: Small README fixes, Stefan Monnier, 2014/07/07
- [elpa] 203/352: Päivitetään Copyright-vuosi ja versionumero: 2011.01.01, Stefan Monnier, 2014/07/07
- [elpa] 174/352: Hyödynnetään vaakasuuntainen tila paremmin oikolukuehdotuspuskurissa, Stefan Monnier, 2014/07/07
- [elpa] 287/352: Make "syntax" and "case-fold" effective with action-program and -parser, Stefan Monnier, 2014/07/07
- [elpa] 212/352: Käytetään signal-funktiota myös funktiossa wcheck-send-strings, Stefan Monnier, 2014/07/07
- [elpa] 303/352: Add a fully functional "Add to dictionary" example, Stefan Monnier, 2014/07/07
- [elpa] 265/352: Emphasize wcheck-language-data-defaults in read-or-skip-faces doc, Stefan Monnier, 2014/07/07
- [elpa] 270/352: Revert "Clarify that OPERATION-MODE can be also be nil", Stefan Monnier, 2014/07/07
- [elpa] 285/352: Make "syntax" and "case-fold" effective with "program" function,
Stefan Monnier <=
- [elpa] 193/352: Vaihdetaan muuttujan nimi paremmin tarkoitusta kuvaamvaksi, Stefan Monnier, 2014/07/07
- [elpa] 291/352: Version 2011.07.04, Stefan Monnier, 2014/07/07
- [elpa] 172/352: Lisätään autoload-komento alun asennusohjeisiin (-spelling-suggestions), Stefan Monnier, 2014/07/07
- [elpa] 348/352: Enchant must be restarted after calling enchant-add-to-dictionary, Stefan Monnier, 2014/07/07
- [elpa] 338/352: Silence byte-compiler warning about SHOW-ENTRY function, Stefan Monnier, 2014/07/07
- [elpa] 297/352: Remove "A" from the README file's subtitle, Stefan Monnier, 2014/07/07
- [elpa] 304/352: A minor document fix, Stefan Monnier, 2014/07/07
- [elpa] 211/352: Hiotaan vielä oikolukuehdotusten ohjelmavirheenkäsittelyä, Stefan Monnier, 2014/07/07
- [elpa] 126/352: Parannetaan virhetilanteiden tarkistusta ja virheilmoituksia, Stefan Monnier, 2014/07/07
- [elpa] 298/352: Update link to README.org, Stefan Monnier, 2014/07/07