annotate yatexmth.el @ 56:a9653fbd1c1c

Bug fix version
author yuuji
date Thu, 29 Jun 1995 13:46:57 +0000
parents 5f4b18da14b3
children 18f4939986e6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
1 ;;; -*- Emacs-Lisp -*-
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
2 ;;; YaTeX math-mode-specific functions.
53
5f4b18da14b3 Fix functions relating YaTeX-beginning-of-environment or
yuuji
parents: 52
diff changeset
3 ;;; yatexmth.el rev.4
52
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
4 ;;; (c )1993-1995 by HIROSE Yuuji [yuuji@ae.keio.ac.jp]
56
a9653fbd1c1c Bug fix version
yuuji
parents: 53
diff changeset
5 ;;; Last modified Sat Feb 18 03:54:50 1995 on VFR
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
6 ;;; $Id$
390df0e505da Label completion works.
yuuji
parents:
diff changeset
7
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
8 ;;; [Customization guide]
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
9 ;;;
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
10 ;;; By default, you can use two completion groups in YaTeX math
52
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
11 ;;; mode, `;' for mathematical signs and `:' for greek letters. But
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
12 ;;; you can add other completion groups by defining the alist of
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
13 ;;; `prefix key' vs `completion list' into the variable
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
14 ;;; YaTeX-math-key-list-private. If you wish to accomplish the
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
15 ;;; completion as follows(prefix key is `,'):
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
16 ;;;
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
17 ;;; KEY COMPLETION
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
18 ;;; s \sin
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
19 ;;; S \arcsin
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
20 ;;; c \cos
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
21 ;;; C \arccos
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
22 ;;; :
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
23 ;;; T \arctan
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
24 ;;; l \log
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
25 ;;; hs \sinh
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
26 ;;;
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
27 ;;; Typing `s' after `,' makes `\sin', `hs' after `,' makes `\sinh'
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
28 ;;; and so on. First, you have to define list of key-completion
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
29 ;;; pairs. Variable name(YaTeX-math-funcs-list) is arbitrary.
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
30 ;;;
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
31 ;;; (setq YaTeX-math-funcs-list
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
32 ;;; '(("s" "sin")
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
33 ;;; ("S" "arcsin")
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
34 ;;; :
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
35 ;;; ("hs" "sinh")))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
36 ;;;
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
37 ;;; Next, define the list of prefix-key vs completion list(defined
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
38 ;;; above) into the variable YaTeX-math-key-list-private.
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
39 ;;;
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
40 ;;; (setq YaTeX-math-key-list-private
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
41 ;;; '(("," . YaTeX-math-funcs-list)
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
42 ;;; ("'" . Other-List-if-any)))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
43 ;;;
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
44 ;;; Put these expressions into your ~/.emacs, and you can use this
51
b0371b6ed799 Created `ChangeLog'.
yuuji
parents: 47
diff changeset
45 ;;; completion in the math-mode.
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
46 ;;;
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
47 ;;; And you can add your favorite completion sequences to the
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
48 ;;; default completion list invoked with `;', by defining those lists
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
49 ;;; into variable YaTeX-math-sign-alist-private.
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
50
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
51 ;;; 【イメージ補完の追加方法】
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
52 ;;;
52
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
53 ;;; 標準のイメージ補完では、「;」で始まる数式記号補完と、「:」で始
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
54 ;;; まるギリシャ文字補完が使用可能ですが、これ以外の文字で始まる補完
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
55 ;;; シリーズも定義することができます。例えば、「,」で始まる次のよう
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
56 ;;; な補完シリーズを定義する場合を考えてみます。
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
57 ;;;
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
58 ;;; 補完キー 補完結果
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
59 ;;; s \sin
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
60 ;;; S \arcsin
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
61 ;;; c \cos
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
62 ;;; C \arccos
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
63 ;;; :
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
64 ;;; T \arctan
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
65 ;;; l \log
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
66 ;;; hs \sinh
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
67 ;;;
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
68 ;;; 「,」のあとに s を押すと \sin が、hs を押すと \sinh が入力されま
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
69 ;;; す。このような補完リストの登録は以下のようにします(変数名は任意)。
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
70 ;;;
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
71 ;;; (setq YaTeX-math-funcs-list
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
72 ;;; '(("s" "sin")
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
73 ;;; ("S" "arcsin")
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
74 ;;; :
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
75 ;;; ("hs" "sinh")))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
76 ;;;
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
77 ;;; さらに、「,」を押した時にイメージ補完が始まるよう次の変数に、起動キー
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
78 ;;; と上で定義した補完用変数の登録を行ないます。
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
79 ;;;
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
80 ;;; (setq YaTeX-math-key-list-private
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
81 ;;; '(("," . YaTeX-math-funcs-list)
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
82 ;;; ("'" . ほかに定義したいシリーズがあれば…)))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
83 ;;;
51
b0371b6ed799 Created `ChangeLog'.
yuuji
parents: 47
diff changeset
84 ;;; これらを ~/.emacs に書いておけば、math-mode で自分専用のイメージ
b0371b6ed799 Created `ChangeLog'.
yuuji
parents: 47
diff changeset
85 ;;; 補完が利用できます。
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
86
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
87 (defvar YaTeX-jisold
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
88 (and (boundp 'dos-machine-type)
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
89 (eq dos-machine-type 'pc98)))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
90
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
91 (defmacro YaTeX-setq-math-sym (sym old new)
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
92 (list 'setq sym (list 'if 'YaTeX-jisold old new)))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
93
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
94 (YaTeX-setq-math-sym YaTeX-image-in "E" "∈")
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
95 (YaTeX-setq-math-sym YaTeX-image-ni "ヨ" "∋")
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
96 (YaTeX-setq-math-sym YaTeX-image-subset " _\n(\n ~" "⊂")
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
97 (YaTeX-setq-math-sym YaTeX-image-subseteq " _\n(_\n ~" "⊆")
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
98 (YaTeX-setq-math-sym YaTeX-image-supset "_\n )\n~" "⊃")
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
99 (YaTeX-setq-math-sym YaTeX-image-supseteq "_\n_)\n~" "⊇")
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
100 (YaTeX-setq-math-sym YaTeX-image-nabla "___\n\\\\/" "∇")
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
101 (YaTeX-setq-math-sym YaTeX-image-partial " -+\n+-+\n+-+" "∂")
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
102 (YaTeX-setq-math-sym YaTeX-image-dagger "+\n|" "†")
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
103 (YaTeX-setq-math-sym YaTeX-image-ddagger "+\n+\n|" "‡")
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
104 (YaTeX-setq-math-sym YaTeX-image-equiv "=\n ̄" "≡")
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
105 (YaTeX-setq-math-sym YaTeX-image-int " /\\\n \\\n\\/" "∫")
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
106 (YaTeX-setq-math-sym YaTeX-image-bot "|\n ̄" "⊥")
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
107 (YaTeX-setq-math-sym YaTeX-image-neg "イ" "¬")
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
108 (YaTeX-setq-math-sym YaTeX-image-flat "b" "♭")
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
109 (YaTeX-setq-math-sym YaTeX-image-sqrt "" "√")
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
110
52
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
111 (defvar
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
112 YaTeX-math-sign-alist-default
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
113 '(
390df0e505da Label completion works.
yuuji
parents:
diff changeset
114 ;frequently used
390df0e505da Label completion works.
yuuji
parents:
diff changeset
115 ("||" "|" ("||" "‖"))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
116 ("sum" "sum" ("\\-+\n >\n/-+" "Σ"))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
117 ("sigma" "sum" ("\\-+\n >\n/-+" "Σ"))
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
118 ("integral" "int" (" /\\\n \\\n\\/" YaTeX-image-int))
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
119 ("ointegral" "oint" " /\\\n(\\)\n\\/")
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
120 ("sqrt" "sqrt" (" __\n,/" YaTeX-image-sqrt))
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
121 ("root" "sqrt" (" __\n,/" YaTeX-image-sqrt))
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
122 ("A" "forall" "|_|\nV")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
123 ("E" "exists" "-+\n-+\n-+")
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
124 ("!" "neg" ("--+\n |" YaTeX-image-neg))
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
125 ("oo" "infty" ("oo" "∞"))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
126 ("\\" "backslash" ("\\" "\"))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
127
390df0e505da Label completion works.
yuuji
parents:
diff changeset
128 ;;binary operators
390df0e505da Label completion works.
yuuji
parents:
diff changeset
129 ("+-" "pm" ("+\n-" "±"))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
130 ("-+" "mp" "-\n+")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
131 ("x" "times" ("x" "×"))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
132 ("/" "div" (",\n-\n'" "÷"))
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
133 ("f" "frac" "xxx\n---\nyyy" "÷")
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
134 ("*" "ast" "*")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
135 ("#" "star" ("_/\\_\n\\ /\n//\\\\" "★"))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
136 ("o" "circ" "o")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
137 ("o*" "bullet" " _\n(*)\n ~")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
138 ("." "cdot" ".")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
139 ("cap" "cap" "/-\\\n| |")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
140 ("cup" "cup" "| |\n\\-/")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
141 ("u+" "uplus" "|+|\n\\-/")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
142 ("|~|" "sqcap" "|~|")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
143 ("|_|" "sqcup" "|_|")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
144 ("v" "vee" "v")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
145 ("^" "wedge" "^")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
146 ("\\\\" "setminus" "\\")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
147 (")(" "wr" " )\n(")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
148 ("<>" "diamond" "<>")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
149 ("/\-" "bigtriangleup" ("/\\\n~~" "△"))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
150 ("-\\/" "bigtriangledown" ("__\n\\/" "▽"))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
151 ("<|" "triangleleft" "<|")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
152 ("|>" "triangleright" "|>")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
153 ("<||" "lhd" "/|\n\\|")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
154 ("||>" "rhd" "|\\\n|/")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
155 ("<|-" "unlhd" "<|\n~~")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
156 ("|>-" "unrhd" "|>\n~~")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
157 ("o+" "oplus" " _\n(+)\n ~")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
158 ("o-" "ominus" " _\n(-)\n ~")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
159 ("ox" "otimes" " _\n(x)\n ~")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
160 ("o/" "oslash" " _\n(/)\n ~")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
161 ("o." "odot" "(.)")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
162 ("O" "bigcirc" "O")
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
163 ("t" "dagger" ("+\n|" YaTeX-image-dagger))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
164 ("tt" "ddagger" ("+\n+\n|" YaTeX-image-ddagger))
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
165 ("II" "amalg" "II")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
166 ; :
390df0e505da Label completion works.
yuuji
parents:
diff changeset
167 ;;relational operators
390df0e505da Label completion works.
yuuji
parents:
diff changeset
168 ("<" "leq" ("<\n-" "≦"))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
169 (">" "geq" (">\n-" "≧"))
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
170 ("-=" "equiv" ("=\n-" YaTeX-image-equiv))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
171 ("=-" "equiv" ("=\n-" YaTeX-image-equiv))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
172 ("---" "equiv" ("=\n-" YaTeX-image-equiv))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
173 ("(" "subset" (" _\n(\n ~" YaTeX-image-subset))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
174 ("(-" "subseteq" (" _\n(_\n ~" YaTeX-image-subseteq))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
175 (")" "supset" ("_\n )\n~" YaTeX-image-supset))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
176 (")-" "supseteq" ("_\n_)\n~" YaTeX-image-supseteq))
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
177 ("[" "sqsubset" "[")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
178 ("[-" "sqsubseteq" "[\n~")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
179 ("]" "sqsupset" "]")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
180 ("]-" "sqsupseteq" "]\n~")
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
181 ("{" "in" ("(-" YaTeX-image-in))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
182 ("}" "ni" ("-)" YaTeX-image-ni))
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
183 ("|-" "vdash" "|-")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
184 ("-|" "dashv" "-|")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
185 ("~" "sim" "~(tild)")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
186 ("~-" "simeq" "~\n-")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
187 ("asymp" "asymp" "v\n^")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
188 ("~~" "approx" "~\n~")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
189 ("~=" "cong" "~\n=")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
190 ("=/" "neq" ("=/=" "≠"))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
191 (".=" "doteq" ".\n=")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
192 ("o<" "propto" "o<")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
193 ("|=" "models" "|=")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
194 ("_|_" "perp" "_|_")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
195 ("|" "mid" "|")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
196 ("||" "parallel" "||")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
197 ("bowtie" "bowtie" "|><|(wide)")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
198 ("|><|" "join" "|><|")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
199 ("\\_/" "smile" "\\_/")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
200 ("/~\\" "frown" "/~~\\")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
201 ("-<" "prec" ("-<" "く"))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
202 ("-<=" "preceq" ("-<\n-" "く\n="))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
203 ("<<" "ll" ("<<" "《"))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
204 ; :
390df0e505da Label completion works.
yuuji
parents:
diff changeset
205 ;;arrows
390df0e505da Label completion works.
yuuji
parents:
diff changeset
206 ("<-" "leftarrow" ("<-" "←"))
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
207 ("\C-b" "leftarrow" ("<-" "←"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
208 ("<--" "longleftarrow" ("<--" "←--"))
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
209 ("<=" "Leftarrow" "<=")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
210 ("<==" "Longleftarrow" "<==")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
211 ("->" "rightarrow" ("->" "→"))
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
212 ("\C-f" "rightarrow" ("->" "→"))
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
213 ("-->" "longrightarrow" ("-->" "--→"))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
214 ("==>" "Longrightarrow" "==>")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
215 ("<->" "leftrightarrow" ("<->" "←→"))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
216 ("<-->" "longleftrightarrow" ("<---->" "←--→"))
47
d7e7b4654058 Support special popup frame.
yuuji
parents: 37
diff changeset
217 ("<=>" "Leftrightarrow" "<=>")
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
218 ("<==>" "Longleftrightarrow" "<==>")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
219 ("^|" "uparrow" ("^\n|" "↑"))
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
220 ("\C-p" "uparrow" ("^\n|" "↑"))
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
221 ("^||" "Uparrow" "/\\\n||")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
222 ("\C-n" "downarrow" ("|\nv" "↓"))
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
223 ("v|" "downarrow" ("|\nv" "↓"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
224 ("v||" "Downarrow" "||\n\\/")
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
225 ("|->" "mapsto" ("|->" "|→"))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
226 ("<-)" "hookleftarrow" (" ,\n<--+" " ヽ\n<--/"))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
227 ("/-" "leftharpoonup" "/\n~~~")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
228 ("\\-" "leftharpoondown" "__\n\\")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
229 ("-/" "rightharpoondown" "__\n/")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
230 ("-\\" "rightharpoonup" "~~\n\\")
53
5f4b18da14b3 Fix functions relating YaTeX-beginning-of-environment or
yuuji
parents: 52
diff changeset
231 ;;left and right
5f4b18da14b3 Fix functions relating YaTeX-beginning-of-environment or
yuuji
parents: 52
diff changeset
232 ("left" "left" "(leftmark)")
5f4b18da14b3 Fix functions relating YaTeX-beginning-of-environment or
yuuji
parents: 52
diff changeset
233 ("right" "right" "(rightmark)")
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
234 ;other marks
390df0e505da Label completion works.
yuuji
parents:
diff changeset
235 ("Z" "aleph" "|\\|")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
236 ("|\\|" "aleph" "|\\|")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
237 ("h-" "hbar" "_\nh")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
238 ("i" "imath" "i")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
239 ("j" "jmath" "j")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
240 ("l" "ell" "l")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
241 ("wp" "wp" "???")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
242 ("R" "Re" ")R")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
243 ("Im" "Im" "???")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
244 ("mho" "mho" "~|_|~")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
245 ("'" "prime" "'")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
246 ("0" "emptyset" "0")
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
247 ("nabla" "nabla" ("___\n\\\\/" YaTeX-image-nabla))
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
248 ("\\/" "surd" "-\\/")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
249 ("surd" "surd" "-\\/")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
250 ("top" "top" "T")
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
251 ("bot" "bot" ("_|_" YaTeX-image-bot))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
252 ("b" "flat" ("b" YaTeX-image-flat))
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
253 ("LT" "natural" "|\nLT\n |")
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
254 ("6" "partial" (" -+\n+-+\n+-+" YaTeX-image-partial))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
255 ("partial" "partial" (" -+\n+-+\n+-+" YaTeX-image-partial))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
256 ("round" "partial" (" -+\n+-+\n+-+" YaTeX-image-partial))
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
257 ("[]" "box" "[]")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
258 ("Diamond" "Diamond" "/\\\n\\/")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
259 ("3" "triangle" "/\\\n~~")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
260 ("C" "clubsuit" " o\no+o\n |")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
261 ("D" "diamondsuit" "/\\\n\\/")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
262 ("H" "heartsuit" "<^^>\n \\/")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
263 ("S" "spadesuit" " /\\\n<++>\n /\\")
52
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
264 )
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
265 "Default LaTeX-math-command alist.")
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
266
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
267 (defvar YaTeX-math-sign-alist-private nil
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
268 "*User definable key vs LaTeX-math-command alist.")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
269
390df0e505da Label completion works.
yuuji
parents:
diff changeset
270 (defvar YaTeX-math-quit-with-strict-match nil
390df0e505da Label completion works.
yuuji
parents:
diff changeset
271 "*T for quitting completion as soon as strict-match is found.")
52
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
272 (defvar YaTeX-math-sign-alist
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
273 (append YaTeX-math-sign-alist-private YaTeX-math-sign-alist-default))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
274
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
275 ;;(defun YaTeX-math-alist2array (alist array)
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
276 ;; (set array
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
277 ;; (let ((array (make-vector (length alist) "")) (list alist) (i 0))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
278 ;; (while list
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
279 ;; (aset array i (car (car list)))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
280 ;; (setq i (1+ i) list (cdr list)))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
281 ;; array))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
282 ;;)
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
283
52
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
284 (defvar YaTeX-greek-key-alist-default
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
285 '(
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
286 ("a" "alpha" ("a" "α"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
287 ("b" "beta" ("|>\n|>\n|" "β"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
288 ("g" "gamma" ("~r" "γ"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
289 ("G" "Gamma" ("|~" "Γ"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
290 ("d" "delta" ("<~\n<>" "δ"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
291 ("D" "Delta" ("/\\\n~~" "Δ"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
292 ("e" "epsilon" "<\n<~")
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
293 ("e-" "varepsilon" ("(\n(~" "ε"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
294 ("z" "zeta" ("(~\n >" "ζ"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
295 ("et" "eta" ("n\n/" "η"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
296 ("th" "theta" ("8" "θ"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
297 ("Th" "Theta" ("(8)" "Θ"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
298 ("th-" "vartheta" ("-8" "-θ"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
299 ("i" "iota" ("i\n\\_/" "ι"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
300 ("k" "kappa" ("k" "κ"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
301 ("l" "lambda" ("\\n/\\" "λ"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
302 ("L" "Lambda" ("/\\" "Λ"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
303 ("m" "mu" (" u_\n/" "μ"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
304 ("n" "nu" ("|/" "ν"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
305 ("x" "xi" ("E\n >" "ξ"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
306 ("X" "Xi" ("---\n -\n---" "Ξ"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
307 ("p" "pi" ("__\n)(" "π"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
308 ("P" "Pi" ("__\n||" "Π"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
309 ("p-" "varpi" ("_\nw" "__\nω"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
310 ("r" "rho" ("/O" "ρ"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
311 ("r-" "varrho" ("/O\n~~" "ρ\n~~"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
312 ("s" "sigma" ("o~" "σ"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
313 ("S" "Sigma" ("\\-+\n >\n/-+" "Σ"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
314 ("s-" "varsigma" "(~~ \n>")
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
315 ("t" "tau" ("__\n(" "τ"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
316 ("u" "upsilon" ("~v" "υ"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
317 ("y" "upsilon" ("~v" "υ"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
318 ("U" "Upsilon" ("~Y~" "Υ"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
319 ("Y" "Upsilon" ("~Y~" "Υ"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
320 ("ph" "phi" (" /\n(/)\n/" "φ"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
321 ("Ph" "Phi" (" _\n(|)\n ~" "Φ"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
322 ("ph-" "varphi" "\\O\n|")
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
323 ("c" "chi" ("x" "χ"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
324 ("ps" "psi" ("\\|/\\n |" "ψ"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
325 ("Ps" "Psi" (" ~\n\\|/\\n |" "Ψ"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
326 ("o" "omega" ("w" "ω"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
327 ("w" "omega" ("w" "ω"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
328 ("O" "Omega" ("(~)\n~ ~" "Ω"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
329 ("W" "Omega" ("(~)\n~ ~" "Ω"))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
330 ("f" "foo")
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
331 )
52
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
332 "Default LaTeX-math-command alist.")
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
333
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
334 (defvar YaTeX-greek-key-alist-private nil
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
335 "*User definable key vs LaTeX-math-command alist.")
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
336
52
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
337 (defvar YaTeX-greek-key-alist
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
338 (append YaTeX-greek-key-alist-private YaTeX-greek-key-alist-default))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
339
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
340 ;;(mapcar (function (lambda (x) (YaTeX-math-alist2array x)))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
341 ;; YaTeX-math-key-list)
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
342
52
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
343 (defvar YaTeX-math-indicator "KEY\tLaTeX sequence\t\tsign")
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
344
390df0e505da Label completion works.
yuuji
parents:
diff changeset
345 (defvar YaTeX-math-need-image t
390df0e505da Label completion works.
yuuji
parents:
diff changeset
346 "*T for displaying pseudo image momentarily.")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
347 (defvar YaTeX-math-max-key 8)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
348 (defvar YaTeX-math-max-seq
390df0e505da Label completion works.
yuuji
parents:
diff changeset
349 (* 8 (1+ (/ (length "\\longleftrightarrow") 8))))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
350 (defvar YaTeX-math-max-sign 5)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
351 (defvar YaTeX-math-sign-width
390df0e505da Label completion works.
yuuji
parents:
diff changeset
352 (+ YaTeX-math-max-key YaTeX-math-max-seq YaTeX-math-max-sign))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
353 (defvar YaTeX-math-display-width
390df0e505da Label completion works.
yuuji
parents:
diff changeset
354 (* 8 (1+ (/ YaTeX-math-sign-width 8))))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
355 (defvar YaTeX-math-menu-map nil
390df0e505da Label completion works.
yuuji
parents:
diff changeset
356 "Keymap used in YaTeX mathematical sign menu mode."
390df0e505da Label completion works.
yuuji
parents:
diff changeset
357 )
390df0e505da Label completion works.
yuuji
parents:
diff changeset
358 (if YaTeX-math-menu-map nil
390df0e505da Label completion works.
yuuji
parents:
diff changeset
359 (setq YaTeX-math-menu-map (make-sparse-keymap))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
360 (define-key YaTeX-math-menu-map "n" 'next-line)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
361 (define-key YaTeX-math-menu-map "p" 'previous-line)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
362 (define-key YaTeX-math-menu-map "f" 'YaTeX-math-forward)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
363 (define-key YaTeX-math-menu-map "b" 'YaTeX-math-backward)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
364 (define-key YaTeX-math-menu-map "v" 'scroll-up)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
365 (define-key YaTeX-math-menu-map " " 'scroll-up)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
366 (define-key YaTeX-math-menu-map "c" 'scroll-up)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
367 (define-key YaTeX-math-menu-map "V" 'scroll-down)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
368 (define-key YaTeX-math-menu-map "r" 'scroll-down)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
369 (define-key YaTeX-math-menu-map "\^h" 'scroll-down)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
370 (define-key YaTeX-math-menu-map "<" 'beginning-of-buffer)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
371 (define-key YaTeX-math-menu-map ">" 'end-of-buffer)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
372 (define-key YaTeX-math-menu-map "\^m" 'exit-recursive-edit)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
373 (define-key YaTeX-math-menu-map "q" 'abort-recursive-edit))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
374
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
375 (defvar YaTeX-math-exit-key "\e"
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
376 "*Key sequence after prefix key of YaTeX-math-mode to exit from math-mode."
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
377 )
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
378
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
379 (defmacro YaTeX-math-japanese-sign (list)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
380 (list 'nth 1 list))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
381
390df0e505da Label completion works.
yuuji
parents:
diff changeset
382 (defvar YaTeX-math-cmd-regexp (concat (regexp-quote YaTeX-ec) "[A-z]"))
51
b0371b6ed799 Created `ChangeLog'.
yuuji
parents: 47
diff changeset
383 (defvar YaTeX-math-verbatim-environments
b0371b6ed799 Created `ChangeLog'.
yuuji
parents: 47
diff changeset
384 '("alltt")
b0371b6ed799 Created `ChangeLog'.
yuuji
parents: 47
diff changeset
385 "*List of environments in which LaTeX math mode is disabled.
b0371b6ed799 Created `ChangeLog'.
yuuji
parents: 47
diff changeset
386 This value is appended with YaTeX-verbatim-environments.")
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
387
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
388 ;;;
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
389 ;;YaTeX math-mode functions
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
390 ;;;
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
391 ;;;###autoload from yatex.el
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
392 (defun YaTeX-toggle-math-mode (&optional arg)
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
393 (interactive "P")
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
394 (or (memq 'YaTeX-math-mode mode-line-format) nil
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
395 (setq mode-line-format
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
396 (append (list "" 'YaTeX-math-mode) mode-line-format)))
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
397 (if YaTeX-auto-math-mode nil ;Only effective on manual mode.
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
398 (if (or arg (null YaTeX-math-mode))
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
399 (let (keys)
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
400 (setq YaTeX-math-mode "math:")
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
401 (message "Turn on math mode. Prefix keys are %s"
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
402 (mapconcat 'car YaTeX-math-key-list " "))
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
403 (sit-for 3)
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
404 (message
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
405 (concat "To exit from math-mode, type `ESC' after prefix, "
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
406 "or type `"
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
407 (key-description
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
408 (car
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
409 (where-is-internal
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
410 'YaTeX-switch-mode-menu YaTeX-mode-map)))
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
411 " $'")))
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
412 (setq YaTeX-math-mode nil)
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
413 (message "Exit from math mode."))
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
414 (set-buffer-modified-p (buffer-modified-p)))
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
415 )
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
416
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
417 (defun YaTeX-math-forward (arg)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
418 (interactive "p")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
419 (re-search-forward YaTeX-math-cmd-regexp nil t arg))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
420
390df0e505da Label completion works.
yuuji
parents:
diff changeset
421 (defun YaTeX-math-backward (arg)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
422 (interactive "p")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
423 (re-search-backward YaTeX-math-cmd-regexp nil t arg))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
424
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
425 (defun YaTeX-math-gets (sign)
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
426 (cond
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
427 ((null sign) nil)
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
428 ((listp sign)
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
429 (setq sign
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
430 (cond
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
431 (YaTeX-japan (YaTeX-math-japanese-sign sign))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
432 (t (car sign))))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
433 (YaTeX-math-gets sign))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
434 ((symbolp sign)
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
435 (YaTeX-math-gets (symbol-value sign)))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
436 (t sign))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
437 )
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
438
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
439 (defun YaTeX-math-get-sign (list)
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
440 (YaTeX-math-gets (car (cdr-safe (cdr-safe list))))
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
441 )
390df0e505da Label completion works.
yuuji
parents:
diff changeset
442
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
443 (defun YaTeX-in-math-mode-p ()
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
444 "If current position is supposed to be in LaTeX-math-mode, return t."
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
445 (or (YaTeX-quick-in-environment-p
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
446 '("math" "eqnarray" "equation" "eqnarray*" "displaymath"))
51
b0371b6ed799 Created `ChangeLog'.
yuuji
parents: 47
diff changeset
447 (let*((p (point)) (nest 0) me0
b0371b6ed799 Created `ChangeLog'.
yuuji
parents: 47
diff changeset
448 (delim (concat YaTeX-sectioning-regexp
b0371b6ed799 Created `ChangeLog'.
yuuji
parents: 47
diff changeset
449 "\\|^%\\|^$\\|^\C-l"))
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
450 (boundary
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
451 (save-excursion
51
b0371b6ed799 Created `ChangeLog'.
yuuji
parents: 47
diff changeset
452 (if (looking-at delim)
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
453 (goto-char (max (point-min) (1- (point)))))
51
b0371b6ed799 Created `ChangeLog'.
yuuji
parents: 47
diff changeset
454 (re-search-backward delim nil 1)
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
455 (point))))
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
456 (save-excursion
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
457 (cond
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
458 ((catch 'open
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
459 (save-excursion
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
460 (while (and (>= nest 0)
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
461 (re-search-backward
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
462 (concat YaTeX-ec-regexp ;\
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
463 "\\([()]\\|[][]\\)") boundary t))
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
464 (setq me0 (match-end 0))
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
465 (if (or (YaTeX-on-comment-p)
51
b0371b6ed799 Created `ChangeLog'.
yuuji
parents: 47
diff changeset
466 (YaTeX-literal-p)) nil
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
467 (if (or (= (char-after (1- me0)) ?\))
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
468 (= (char-after (1- me0)) ?\]))
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
469 (setq nest (1+ nest))
37
433b27a11019 Do not count \\[5pt] as the beginning of \[ (YaTeX-in-math-mode-p).
yuuji
parents: 23
diff changeset
470 (if (= (preceding-char) ?\\ ) nil;;\\[5pt]
433b27a11019 Do not count \\[5pt] as the beginning of \[ (YaTeX-in-math-mode-p).
yuuji
parents: 23
diff changeset
471 (setq nest (1- nest))))))
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
472 (if (< nest 0) (throw 'open t))))
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
473 t)
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
474 (t (catch 'dollar
51
b0371b6ed799 Created `ChangeLog'.
yuuji
parents: 47
diff changeset
475 (while ;(search-backward "$" boundary t);little bit fast.
b0371b6ed799 Created `ChangeLog'.
yuuji
parents: 47
diff changeset
476 (YaTeX-re-search-active-backward ;;;;;; Too slow???
b0371b6ed799 Created `ChangeLog'.
yuuji
parents: 47
diff changeset
477 "\\$" YaTeX-comment-prefix boundary t)
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
478 (cond
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
479 ((equal (char-after (1- (point))) ?$) ; $$ equation $$
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
480 (backward-char 1)
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
481 (setq nest (1+ nest)))
51
b0371b6ed799 Created `ChangeLog'.
yuuji
parents: 47
diff changeset
482 ((let ((YaTeX-verbatim-environments
b0371b6ed799 Created `ChangeLog'.
yuuji
parents: 47
diff changeset
483 (append YaTeX-math-verbatim-environments
b0371b6ed799 Created `ChangeLog'.
yuuji
parents: 47
diff changeset
484 YaTeX-verbatim-environments)))
b0371b6ed799 Created `ChangeLog'.
yuuji
parents: 47
diff changeset
485 (YaTeX-literal-p))
b0371b6ed799 Created `ChangeLog'.
yuuji
parents: 47
diff changeset
486 nil)
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
487 ((and (equal (char-after (1- (point))) ?\\ )
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
488 (not (equal (char-after (- (point) 3)) ?\\ )))
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
489 nil) ;\$
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
490 (t (setq nest (1+ nest)))))
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
491 (if (= (% nest 2) 1) (throw 'dollar t))))))))
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
492 )
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
493
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
494 (defun YaTeX-math-display-list (list cols)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
495 (goto-char (point-max))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
496 (if (= cols 0) (if (not (eolp)) (newline 1))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
497 (forward-line -1)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
498 (while (looking-at "[ \t\n]") (forward-line -1)))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
499 (end-of-line)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
500 (let ((indent (* YaTeX-math-display-width cols)) sign str to)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
501 (indent-to indent)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
502 (insert (car list))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
503 (indent-to (setq indent (+ indent YaTeX-math-max-key)))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
504 (insert "\\" (car (cdr list)))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
505 (setq indent (+ indent YaTeX-math-max-seq))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
506 (setq sign (YaTeX-math-get-sign list))
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
507 (while (and sign (not (string= "" sign)))
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
508 (setq to (string-match "\n" sign)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
509 str (if to (substring sign 0 to) sign))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
510 (end-of-line)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
511 (indent-to indent)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
512 (insert str)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
513 (cond ((eobp) (newline 1))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
514 ((> cols 0) (forward-line 1)))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
515 (setq sign (if to (substring sign (1+ to)) "")))))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
516
390df0e505da Label completion works.
yuuji
parents:
diff changeset
517 (defvar YaTeX-math-menu-buffer "*math-mode-signs*")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
518
390df0e505da Label completion works.
yuuji
parents:
diff changeset
519 (defun YaTeX-math-show-menu (match-str)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
520 (save-window-excursion
390df0e505da Label completion works.
yuuji
parents:
diff changeset
521 (pop-to-buffer YaTeX-math-menu-buffer)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
522 (let ((maxcols (max 1 (/ (screen-width) YaTeX-math-sign-width)))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
523 (case-fold-search nil)
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
524 (cols 0) (list alist) command)
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
525 (erase-buffer)
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
526 (insert
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
527 "Candidates of sign. [n:next p:prev f:forw b:back q:quit RET:select]\n")
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
528 (insert YaTeX-math-indicator "\t")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
529 (insert YaTeX-math-indicator)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
530 (newline 1)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
531 (insert-char ?- (1- (screen-width)))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
532 (newline 1)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
533 (while list
390df0e505da Label completion works.
yuuji
parents:
diff changeset
534 (if (string-match match-str (car (car list)))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
535 (progn (YaTeX-math-display-list (car list) cols)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
536 (setq cols (% (1+ cols) maxcols))))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
537 (setq list (cdr list)))
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
538 (goto-line 4)
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
539 (use-local-map YaTeX-math-menu-map)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
540 (unwind-protect
390df0e505da Label completion works.
yuuji
parents:
diff changeset
541 (recursive-edit)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
542 (skip-chars-backward "^ \t\n")
390df0e505da Label completion works.
yuuji
parents:
diff changeset
543 (setq command
390df0e505da Label completion works.
yuuji
parents:
diff changeset
544 (if (re-search-forward YaTeX-math-cmd-regexp nil t)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
545 (buffer-substring
390df0e505da Label completion works.
yuuji
parents:
diff changeset
546 (match-beginning 0)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
547 (prog2 (skip-chars-forward "^ \t\n") (point)))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
548 nil))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
549 (kill-buffer YaTeX-math-menu-buffer))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
550 command))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
551 )
390df0e505da Label completion works.
yuuji
parents:
diff changeset
552
390df0e505da Label completion works.
yuuji
parents:
diff changeset
553 ;
390df0e505da Label completion works.
yuuji
parents:
diff changeset
554 (defun YaTeX-math-show-image (image &optional exit-char)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
555 "Momentarily display IMAGE at the beginning of the next line;
390df0e505da Label completion works.
yuuji
parents:
diff changeset
556 erase it on the next keystroke. The window is recentered if necessary
390df0e505da Label completion works.
yuuji
parents:
diff changeset
557 to make the whole string visible. If the window isn't large enough,
390df0e505da Label completion works.
yuuji
parents:
diff changeset
558 at least you get to read the beginning."
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
559 (if (and image (not (string= image "")))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
560 (let ((buffer-read-only nil)
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
561 (modified (buffer-modified-p))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
562 (name buffer-file-name)
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
563 insert-start
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
564 insert-end)
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
565 (unwind-protect
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
566 (progn
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
567 (save-excursion
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
568 ;; defeat file locking... don't try this at home, kids!
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
569 (setq buffer-file-name nil)
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
570 (forward-line 1)
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
571 (setq insert-start (point))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
572 (if (eobp) (newline))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
573 (insert image)
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
574 (setq insert-end (point)))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
575 ; make sure the whole string is visible
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
576 (if (not (pos-visible-in-window-p insert-end))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
577 (recenter (max 0
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
578 (- (window-height)
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
579 (count-lines insert-start insert-end)
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
580 2))))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
581 (let ((char (read-char)))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
582 (or (eq char exit-char)
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
583 (setq unread-command-char char))))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
584 (if insert-end
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
585 (save-excursion
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
586 (delete-region insert-start insert-end)))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
587 (setq buffer-file-name name)
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
588 (set-buffer-modified-p modified)))))
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
589
52
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
590 (defun YaTeX-math-insert-sequence (&optional force initial)
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
591 "Insert math-mode sequence with image completion."
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
592 (interactive "P")
52
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
593 (let*((key (or initial "")) regkey str last-char list i
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
594 (case-fold-search nil) match sign
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
595 (this-key (char-to-string last-command-char))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
596 (alist (symbol-value (cdr (assoc this-key YaTeX-math-key-list))))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
597 (n (length alist)) (beg (point)) result)
52
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
598 (if initial (insert YaTeX-ec (car (cdr (assoc initial alist)))))
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
599 (setq result
390df0e505da Label completion works.
yuuji
parents:
diff changeset
600 (catch 'complete
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
601 (if (and (not force)
51
b0371b6ed799 Created `ChangeLog'.
yuuji
parents: 47
diff changeset
602 (if YaTeX-auto-math-mode
b0371b6ed799 Created `ChangeLog'.
yuuji
parents: 47
diff changeset
603 (not (YaTeX-in-math-mode-p))
b0371b6ed799 Created `ChangeLog'.
yuuji
parents: 47
diff changeset
604 (not YaTeX-math-mode)))
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
605 (throw 'complete 'escape));this tag should be exit, but...
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
606 (while t
56
a9653fbd1c1c Bug fix version
yuuji
parents: 53
diff changeset
607 (message "Sequence%s: %s"
a9653fbd1c1c Bug fix version
yuuji
parents: 53
diff changeset
608 (if YaTeX-simple-messages "" "(TAB for menu)") key)
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
609 (setq last-char (read-char)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
610 key (concat key (char-to-string last-char))
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
611 i 0)
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
612 (cond
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
613 ((string= key this-key) ;;invoke key itself
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
614 (throw 'complete 'escape))
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
615 ((string= key YaTeX-math-exit-key) ;;exit from math-mode
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
616 (throw 'complete 'exit))
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
617 ((string-match "\r" key) ;;RET = kakutei
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
618 (throw 'complete 'select))
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
619 ((string-match "[\C-g\C-c]" key) ;;C-g = abort
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
620 (throw 'complete 'abort))
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
621 ((string-match "[\t\n]" key) ;;TAB, LFD = menu
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
622 (throw 'complete 'menu))
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
623 ((string-match "[\C-h\C-?]" key) ;;BS, DEL = BS
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
624 (if (< (length key) 2) (throw 'complete 'abort))
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
625 (setq key (substring key 0 -2))))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
626
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
627 (setq regkey (concat "^" (regexp-quote key)))
56
a9653fbd1c1c Bug fix version
yuuji
parents: 53
diff changeset
628 (message "Sequence%s: %s"
a9653fbd1c1c Bug fix version
yuuji
parents: 53
diff changeset
629 (if YaTeX-simple-messages "" "(TAB for menu)") key)
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
630 (if
390df0e505da Label completion works.
yuuji
parents:
diff changeset
631 (catch 'found
390df0e505da Label completion works.
yuuji
parents:
diff changeset
632 ;;(1)input string strictly matches with alist
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
633 (setq match (assoc key alist))
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
634 ;;remember previous match
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
635
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
636 ;;(2)search partial match into alist
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
637 (setq list alist)
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
638 (while (< i n)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
639 (if (string-match
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
640 regkey
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
641 ;;(aref array i)
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
642 ;;(car (nth i alist))
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
643 (car (car list)))
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
644 (progn
390df0e505da Label completion works.
yuuji
parents:
diff changeset
645 (or match
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
646 ;;(setq match (nth i alist))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
647 (setq match (car list)))
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
648 (throw 'found t)))
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
649 (setq i (1+ i) list (cdr list)))) ;catch 'found
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
650 nil ;;if any match, continue reading
390df0e505da Label completion works.
yuuji
parents:
diff changeset
651 ;;else reading of sequence has been done.
390df0e505da Label completion works.
yuuji
parents:
diff changeset
652 (message "complete.")
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
653 (throw 'complete t))
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
654
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
655 (if match
390df0e505da Label completion works.
yuuji
parents:
diff changeset
656 (progn (delete-region beg (point))
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
657 (setq single-command (car (cdr match)))
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
658 (insert YaTeX-ec single-command)
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
659 (if (and YaTeX-math-need-image
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
660 (setq sign (YaTeX-math-get-sign match)))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
661 (YaTeX-math-show-image (concat sign "\n")))
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
662 )
390df0e505da Label completion works.
yuuji
parents:
diff changeset
663 nil)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
664 )))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
665 (cond
390df0e505da Label completion works.
yuuji
parents:
diff changeset
666 ((eq result t)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
667 (setq YaTeX-current-completion-type 'maketitle)
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
668
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
669 ;;;(sit-for 1)
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
670 (setq unread-command-char last-char)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
671 (insert (YaTeX-addin single-command)))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
672 ((eq result 'abort)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
673 (delete-region beg (point))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
674 (message "Abort."))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
675 ((eq result 'escape)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
676 (delete-region beg (point))
52
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
677 (call-interactively (global-key-binding this-key)))
23
b00c74813e56 Change the YaTeX-math-mode's prefix from `,' to `;'.
yuuji
parents: 14
diff changeset
678 ((eq result 'select)
53
5f4b18da14b3 Fix functions relating YaTeX-beginning-of-environment or
yuuji
parents: 52
diff changeset
679 (message "Done.")
5f4b18da14b3 Fix functions relating YaTeX-beginning-of-environment or
yuuji
parents: 52
diff changeset
680 (setq YaTeX-current-completion-type 'maketitle)
5f4b18da14b3 Fix functions relating YaTeX-beginning-of-environment or
yuuji
parents: 52
diff changeset
681 (insert (YaTeX-addin single-command)))
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
682 ((eq result 'exit)
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
683 (delete-region beg (point))
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
684 (YaTeX-toggle-math-mode))
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
685 ((eq result 'menu)
390df0e505da Label completion works.
yuuji
parents:
diff changeset
686 (delete-region beg (point))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
687 (setq key (concat "^" (regexp-quote (substring key 0 -1))))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
688 (insert (YaTeX-math-show-menu key)))))
390df0e505da Label completion works.
yuuji
parents:
diff changeset
689 )
52
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
690
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
691 ;; ----- Change image completion types -----
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
692 (defun YaTeX-math-member-p (item)
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
693 "Check if ITEM is a member of image completion.
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
694 If so return the cons of its invocation key and image-string."
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
695 (let ((lists YaTeX-math-key-list) list)
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
696 (catch 'found
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
697 (while lists
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
698 (setq list (symbol-value (cdr (car lists))))
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
699 (while list
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
700 (if (string= item (nth 1 (car list)))
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
701 (throw 'found (cons (car (car lists)) (nth 0 (car list)))))
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
702 (setq list (cdr list)))
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
703 (setq lists (cdr lists))))))
5d94deabb9f9 Set YaTeX-indent-line to 'indent-line-function.
yuuji
parents: 51
diff changeset
704
11
390df0e505da Label completion works.
yuuji
parents:
diff changeset
705 ;;
390df0e505da Label completion works.
yuuji
parents:
diff changeset
706 (provide 'yatexmth)
13
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
707
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
708 ; Local variables:
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
709 ; fill-prefix: ";;; "
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
710 ; paragraph-start: "^$\\| \\|;;;$"
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
711 ; paragraph-separate: "^$\\| \\|;;;$"
eafae54794a0 Show message at comment-region on begin/end mode.
yuuji
parents: 11
diff changeset
712 ; End:

yatex.org