aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/text-mode.el17
1 files changed, 17 insertions, 0 deletions
diff --git a/lisp/textmodes/text-mode.el b/lisp/textmodes/text-mode.el
index 5f2f671993c..84b578b5059 100644
--- a/lisp/textmodes/text-mode.el
+++ b/lisp/textmodes/text-mode.el
@@ -45,6 +45,23 @@ Use (derived-mode-p 'text-mode) instead.")
45 (modify-syntax-entry ?\\ ". " st) 45 (modify-syntax-entry ?\\ ". " st)
46 ;; We add `p' so that M-c on 'hello' leads to 'Hello' rather than 'hello'. 46 ;; We add `p' so that M-c on 'hello' leads to 'Hello' rather than 'hello'.
47 (modify-syntax-entry ?' "w p" st) 47 (modify-syntax-entry ?' "w p" st)
48 ;; UAX #29 says HEBREW PUNCTUATION GERESH behaves like a letter
49 ;; for the purposes of finding word boundaries.
50 (modify-syntax-entry #x5f3 "w ") ; GERESH
51 ;; UAX #29 says HEBREW PUNCTUATION GERSHAYIM should not be a word
52 ;; boundary when surrounded by letters. Our infrastructure for
53 ;; finding a word boundary doesn't support 3-character
54 ;; definitions, so for now simply make this a word-constituent
55 ;; character. This leaves a problem of having GERSHAYIM at the
56 ;; beginning or end of a word, where it should be a boundary;
57 ;; FIXME.
58 (modify-syntax-entry #x5f4 "w ") ; GERSHAYIM
59 ;; These all should not be a word boundary when between letters,
60 ;; according to UAX #29, so they again are prone to the same
61 ;; problem as GERSHAYIM; FIXME.
62 (modify-syntax-entry #xb7 "w ") ; MIDDLE DOT
63 (modify-syntax-entry #x2027 "w ") ; HYPHENATION POINT
64 (modify-syntax-entry #xff1a "w ") ; FULLWIDTH COLON
48 st) 65 st)
49 "Syntax table used while in `text-mode'.") 66 "Syntax table used while in `text-mode'.")
50 67