[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 265/352: Emphasize wcheck-language-data-defaults in read-or-skip-
From: |
Stefan Monnier |
Subject: |
[elpa] 265/352: Emphasize wcheck-language-data-defaults in read-or-skip-faces doc |
Date: |
Mon, 07 Jul 2014 14:04:49 +0000 |
monnier pushed a commit to branch master
in repository elpa.
commit 08c4c99a3611a2bbdc2a887ad741832aa43010a8
Author: Teemu Likonen <address@hidden>
Date: Wed Jun 29 14:08:38 2011 +0300
Emphasize wcheck-language-data-defaults in read-or-skip-faces doc
Also, use explicit, rather than implicit, "nil" as the OPERATION-MODE in
examples when "read everything" mode is wanted.
---
wcheck-mode.el | 22 +++++++++++++---------
1 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/wcheck-mode.el b/wcheck-mode.el
index d17852d..7de3c9e 100644
--- a/wcheck-mode.el
+++ b/wcheck-mode.el
@@ -392,7 +392,7 @@ read-or-skip-faces
the FACEs should be read or skipped. If it's `read' then only
the listed faces are read. If it's `skip' then the listed
faces are skipped and all other faces are read. If
- OPERATION-MODE is nil or it doesn't exist at all then
+ OPERATION-MODE is nil (or if it doesn't exist at all) then
everything is read.
The rest of the items are FACEs. They are typically symbols
@@ -408,7 +408,7 @@ read-or-skip-faces
((emacs-lisp-mode c-mode) read
font-lock-comment-face font-lock-doc-face)
(org-mode skip font-lock-comment-face org-link)
- (text-mode)
+ (text-mode nil)
(nil read nil))
It says that in `emacs-lisp-mode' and `c-mode' only the text
@@ -417,17 +417,21 @@ read-or-skip-faces
faces `font-lock-comment-face' and `org-link' are
skipped (i.e., not checked) and all other faces are read. In
`text-mode' everything is read. Finally, in all other major
- modes only the normal text (nil) is read.
+ modes only the normal text is read.
- The global default is equivalent to
+ Most likely not all of `read-or-skip-faces' settings are
+ specific to a certain language so it could be more useful to
+ put them in variable `wcheck-language-data-defaults' instead.
+ That way they are used with all languages. Normally the
+ global default is equivalent to
(read-or-skip-faces
- (nil))
+ (nil nil))
which means that in all major modes read everything. It is
sometimes useful to have this setting in language-specific
options because the parsing stops right there. Therefore it
- overrides all global settings which user may have changed
+ overrides all global settings which may have been changed
with variable `wcheck-language-data-defaults'.
Note: You can use command `\\[what-cursor-position]' with a
@@ -660,7 +664,7 @@ It replaces the original whitespace string with empty
string.
(regexp-end . \"$\")
(regexp-discard . \"\")
(read-or-skip-faces
- (nil)))
+ (nil nil)))
Sometimes it's useful to highlight only a small number of
keywords in buffer. The following example adds a language called
@@ -680,7 +684,7 @@ other major modes FIXMEs are marked everywhere.
(face . highlight)
(read-or-skip-faces
((emacs-lisp-mode c-mode) read font-lock-comment-face)
- (nil)))
+ (nil nil)))
The following example adds a language \"email\" for highlighting
email addresses from buffer and creating an action menu which has
@@ -695,7 +699,7 @@ language configuration:
(regexp-end . \"\\\\=\\>\")
(action-program . email-action-menu)
(read-or-skip-faces
- (nil)))
+ (nil nil)))
Then the needed functions:
- [elpa] 202/352: Abstrahoidaan read-key-toiminto funktioon wcheck-read-key, (continued)
- [elpa] 202/352: Abstrahoidaan read-key-toiminto funktioon wcheck-read-key, Stefan Monnier, 2014/07/07
- [elpa] 317/352: Update the version constant string too, Stefan Monnier, 2014/07/07
- [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 <=
- [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, 2014/07/07
- [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