langhelp 0.9.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Changes +2530 -0
- data/bin/mklanghelp +50 -0
- data/data/langhelp/config.sample +889 -0
- data/files +39 -0
- data/graphviz-dot.jpg +0 -0
- data/langhelp.en.html +409 -0
- data/langhelp.en.rd +390 -0
- data/langhelp.ja.html +524 -0
- data/langhelp.ja.rd +487 -0
- data/lib/el4r/emacsruby/autoload/50langhelp.rb +2 -0
- data/lib/el4r/emacsruby/langhelp.rb +864 -0
- data/lib/el4r/emacsruby/test-langhelp.rb +300 -0
- data/lib/langhelp/langhelp-base.rb +649 -0
- data/lib/langhelp/langhelp-sub.rb +1023 -0
- data/lib/langhelp/lh_lua.rb +25 -0
- data/lib/langhelp/lh_perl.rb +112 -0
- data/lib/langhelp/lh_php.rb +34 -0
- data/lib/langhelp/lh_python.rb +31 -0
- data/lib/langhelp/lh_ruby.rb +400 -0
- data/lib/langhelp/mklanghelp.rb +140 -0
- data/lib/langhelp/parse-info.rb +145 -0
- data/ri.jpg +0 -0
- data/setup.rb +1551 -0
- data/test/a_classes.lst +2 -0
- data/test/a_methods.lst +2 -0
- data/test/b_classes.lst +2 -0
- data/test/b_methods.lst +2 -0
- data/test/c_methods.lst +4 -0
- data/test/common.rb +15 -0
- data/test/d_methods.lst +4 -0
- data/test/langhelp.e +566 -0
- data/test/ruby.e +3 -0
- data/test/tagify01-before.html +11 -0
- data/test/tagify02-before.html +11 -0
- data/test/test-base.rb +538 -0
- data/test/test-command.rb +92 -0
- data/test/test-parse-info.rb +175 -0
- data/test/test-ruby.rb +242 -0
- data/test/testdoc.rd +6 -0
- metadata +84 -0
data/test/a_classes.lst
ADDED
data/test/a_methods.lst
ADDED
data/test/b_classes.lst
ADDED
data/test/b_methods.lst
ADDED
data/test/c_methods.lst
ADDED
data/test/common.rb
ADDED
data/test/d_methods.lst
ADDED
data/test/langhelp.e
ADDED
@@ -0,0 +1,566 @@
|
|
1
|
+
#######
|
2
|
+
#
|
3
|
+
# E-scripts about langhelp.
|
4
|
+
#
|
5
|
+
#######
|
6
|
+
|
7
|
+
# (eeindex)
|
8
|
+
## INDEX
|
9
|
+
## (to "test-flash")
|
10
|
+
## (to "test-lh-sh")
|
11
|
+
## (to "test-lh-ri")
|
12
|
+
## (to "test-w3m-batch:automated")
|
13
|
+
## (to "test-langhelp-narg:automated")
|
14
|
+
## (to "test-langhelp-index:automated")
|
15
|
+
## (to "test-mklanghelp-error")
|
16
|
+
## (to "test-occur:automated")
|
17
|
+
## (to "test-eval-after-load-and-gc")
|
18
|
+
## (to "test-revert")
|
19
|
+
## (to "test-face")
|
20
|
+
## (to "test-init-script")
|
21
|
+
## (to "test-info:automated")
|
22
|
+
## (to "test-w3m:automated")
|
23
|
+
## (to "test-w3m-name-anchor:automated")
|
24
|
+
## (to "w3m-test-eesteps")
|
25
|
+
## (to "%s")
|
26
|
+
|
27
|
+
################
|
28
|
+
# test-flash
|
29
|
+
emacs=xemacs-nw
|
30
|
+
emacs=emacs-nw
|
31
|
+
emacs=emacs
|
32
|
+
emacs=emacs21
|
33
|
+
emacs=emacs21-nw
|
34
|
+
(eevnow-at ".test-flash")
|
35
|
+
(eech-kill-emacs)
|
36
|
+
|
37
|
+
#
|
38
|
+
# .test-flash
|
39
|
+
<<'%%%' > $EERUBY
|
40
|
+
el4r_process_autoloads
|
41
|
+
if featurep :xemacs
|
42
|
+
el_require :overlay
|
43
|
+
end
|
44
|
+
|
45
|
+
el4r_lisp_eval %(
|
46
|
+
(let ((langhelp-flash t)
|
47
|
+
(langhelp-centerint t))
|
48
|
+
(lh-anchor "HTMLSplit#each" "~/.langhelp/_home_rubikitch_ruby_htmlsplit_html.txt")
|
49
|
+
))
|
50
|
+
%%%
|
51
|
+
el4r -r ~/src/el4r -l /log/el4rlog -I ~/emacs/lisp $EERUBY --emacs=$emacs
|
52
|
+
|
53
|
+
#
|
54
|
+
|
55
|
+
|
56
|
+
################
|
57
|
+
# test-lh-sh
|
58
|
+
emacs=xemacs-nw
|
59
|
+
emacs=emacs-nw
|
60
|
+
(eevnow-at ".test-lh-sh")
|
61
|
+
(eech-kill-emacs)
|
62
|
+
|
63
|
+
#
|
64
|
+
# .test-lh-sh
|
65
|
+
cd ~/src/langhelp/
|
66
|
+
<<'%%%' > $EERUBY
|
67
|
+
el4r_load "langhelp.rb"
|
68
|
+
#elvar.ee_anchor_format = "<<%s>>"
|
69
|
+
lh = LangHelp::LangHelp.run
|
70
|
+
lh_refe "IO#print"
|
71
|
+
%%%
|
72
|
+
el4r -r ~/src/el4r -l /log/el4rlog -I ~/emacs/lisp $EERUBY --emacs=$emacs
|
73
|
+
|
74
|
+
#
|
75
|
+
|
76
|
+
################
|
77
|
+
# test-lh-ri
|
78
|
+
emacs=xemacs-nw
|
79
|
+
emacs=emacs-nw
|
80
|
+
emacs=emacs21-nw
|
81
|
+
(eevnow-at ".test-lh-ri")
|
82
|
+
!
|
83
|
+
(eech-M-x "search-forward" "Kernel#print")
|
84
|
+
(eech "l")
|
85
|
+
(eech "l")
|
86
|
+
:(current-buffer)
|
87
|
+
(eech-kill-emacs)
|
88
|
+
|
89
|
+
#
|
90
|
+
# .test-lh-ri
|
91
|
+
cd ~/src/langhelp/
|
92
|
+
<<'%%%' > $EERUBY
|
93
|
+
el_load "ri-ruby"
|
94
|
+
el4r_lisp_eval %((setq ri-ruby-script "/home/rubikitch/bin/ri-emacs.rb"))
|
95
|
+
el4r_load "langhelp.rb"
|
96
|
+
#elvar.ee_anchor_format = "<<%s>>"
|
97
|
+
lh = LangHelp::LangHelp.run
|
98
|
+
lh_language_index "ruby"
|
99
|
+
%%%
|
100
|
+
el4r -r ~/src/el4r -l /log/el4rlog -I ~/emacs/lisp $EERUBY --emacs=$emacs
|
101
|
+
|
102
|
+
#
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
################
|
107
|
+
# test-w3m-batch:automated
|
108
|
+
(eevnow-at ".test-w3m-batch")
|
109
|
+
el4r -I ~/emacs/init.d -I /usr/local/share/emacs/site-lisp/w3m/ $EERUBY
|
110
|
+
(eech-kill-emacs)
|
111
|
+
el4r -I ~/emacs/init.d -I /usr/local/share/emacs/site-lisp/w3m/ $EERUBY -b
|
112
|
+
|
113
|
+
|
114
|
+
#
|
115
|
+
# .test-w3m-batch
|
116
|
+
# (eevnow-bounded)
|
117
|
+
<<'%%%' > $EERUBY
|
118
|
+
el_load "00init" # advice for `abbreviate-file-name'
|
119
|
+
defun(:w3m_buffers) do
|
120
|
+
w3m_list_buffers.map{|b|
|
121
|
+
with(:with_current_buffer,b){ elvar.w3m_current_url}
|
122
|
+
}
|
123
|
+
end
|
124
|
+
|
125
|
+
|
126
|
+
el4r_process_autoloads
|
127
|
+
lh_w3m "Initial release", "file:///home/rubikitch/src/langhelp/langhelp.en.html"
|
128
|
+
other_window 1
|
129
|
+
ppm 'thing_at_point :line'
|
130
|
+
%%%
|
131
|
+
#
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
################
|
136
|
+
# test-langhelp-narg:automated
|
137
|
+
# (view-fline "/log/el4rlog")
|
138
|
+
(eevnow-at ".test-langhelp-narg")
|
139
|
+
(eech "\C-u\C-csruby\C-f")
|
140
|
+
(eech "\C-c\C-c")
|
141
|
+
(eech-kill-emacs)
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
#
|
146
|
+
# .test-langhelp-narg
|
147
|
+
# (eevnow-bounded)
|
148
|
+
cd ~/src/langhelp/
|
149
|
+
<<'%%%' > $EERUBY
|
150
|
+
el4r_load "langhelp.rb"
|
151
|
+
lh = LangHelp::LangHelp.run
|
152
|
+
lh.conf
|
153
|
+
|
154
|
+
el_require :ruby_mode
|
155
|
+
find_file "~/src/langhelp/lib/langhelp/langhelp-base.rb"
|
156
|
+
ruby_mode
|
157
|
+
self.el4r_is_debug = true
|
158
|
+
# langhelp
|
159
|
+
%%%
|
160
|
+
el4r -r ~/src/el4r -l /log/el4rlog -I ~/emacs/lisp $EERUBY
|
161
|
+
#
|
162
|
+
|
163
|
+
################
|
164
|
+
# test-langhelp-index:automated
|
165
|
+
# (view-fline "/log/el4rlog")
|
166
|
+
(eevnow-at ".test-langhelp-index")
|
167
|
+
|
168
|
+
(eech-M-x "el4r-boot")
|
169
|
+
(eech-kill-emacs)
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
#
|
174
|
+
# .test-langhelp-index
|
175
|
+
# (eevnow-bounded)
|
176
|
+
cd ~/src/langhelp/
|
177
|
+
<<'%%%' > $EERUBY
|
178
|
+
el4r_load "langhelp.rb"
|
179
|
+
lh = LangHelp::LangHelp.run
|
180
|
+
lh.conf
|
181
|
+
switch_to_buffer "*langhelp index*"
|
182
|
+
%%%
|
183
|
+
el4r -r ~/src/el4r -l /log/el4rlog -I ~/emacs/lisp $EERUBY --emacs=$emacs
|
184
|
+
#
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
################
|
189
|
+
# test-mklanghelp-error
|
190
|
+
(eevnow-at ".test-mklanghelp-error")
|
191
|
+
setup-home
|
192
|
+
mklanghelp-in-src --all |& tee /log/mklanghelp.log
|
193
|
+
ls -l ~/.langhelp | result-long
|
194
|
+
v /log/mklanghelp.log
|
195
|
+
v ~/.langhelp/ruby.e
|
196
|
+
v ~/.langhelp/el4r.e
|
197
|
+
restore-home
|
198
|
+
|
199
|
+
setup-home
|
200
|
+
mklanghelp-in-src ruby
|
201
|
+
v ~/.langhelp/ruby.e
|
202
|
+
restore-home
|
203
|
+
|
204
|
+
setup-home
|
205
|
+
set-config-ruby
|
206
|
+
# v ~/.langhelp/config
|
207
|
+
mklanghelp-in-src --all
|
208
|
+
ls -l ~/.langhelp/
|
209
|
+
rm ~/.langhelp/*.lst
|
210
|
+
mklanghelp-in-src --all
|
211
|
+
mklanghelp-in-src --all
|
212
|
+
restore-home
|
213
|
+
|
214
|
+
#
|
215
|
+
# .test-mklanghelp-error
|
216
|
+
cd ~/src/langhelp
|
217
|
+
|
218
|
+
mklanghelp-in-src () {
|
219
|
+
ruby -I $oldhome/src/langhelp/lib $oldhome/src/langhelp/bin/mklanghelp $*
|
220
|
+
}
|
221
|
+
|
222
|
+
pseudo-home () {
|
223
|
+
tmpdir
|
224
|
+
oldhome=$HOME
|
225
|
+
export HOME=`pwd`
|
226
|
+
}
|
227
|
+
|
228
|
+
set-config-ruby () {
|
229
|
+
cat <<%%% | cat /home/rubikitch/src/langhelp/data/langhelp/config.sample - > ~/.langhelp/config
|
230
|
+
@lang = {}
|
231
|
+
@lang["ruby"] = [
|
232
|
+
{:RubyRefm => "~/doc/rubyrefm/refm482.html", :title=>"Ruby Reference Manual (Japanese)"},
|
233
|
+
{:Ri => true, :title=>"RI"},
|
234
|
+
{:Refe => true, :title=>"ReFe"},
|
235
|
+
{:MoonWolfRubyDoc => "~/ruby/htmlsplit.html", :title=>"HTMLSplit (Japanese)"},
|
236
|
+
{:RD => "~/compile/sys-proctable-0.6.4/doc/linux.rd", :title=>"ProcTable"},
|
237
|
+
]
|
238
|
+
%%%
|
239
|
+
}
|
240
|
+
setup-home () {
|
241
|
+
pseudo-home
|
242
|
+
mkdir -p ~/.langhelp
|
243
|
+
cp /home/rubikitch/src/langhelp/data/langhelp/config.sample ~/.langhelp/config
|
244
|
+
}
|
245
|
+
|
246
|
+
restore-home () {
|
247
|
+
export HOME=$oldhome
|
248
|
+
tmpdir-clean
|
249
|
+
}
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
#
|
254
|
+
|
255
|
+
################
|
256
|
+
# test-occur:automated
|
257
|
+
# (view-fline "/log/el4rlog")
|
258
|
+
(eevnow-at ".test-occur")
|
259
|
+
(eech "help")
|
260
|
+
(eech "\C-o")
|
261
|
+
:tab-width
|
262
|
+
(eech "\C-c\C-c")
|
263
|
+
(eech-kill-emacs)
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
#
|
268
|
+
# .test-occur
|
269
|
+
# (eevnow-bounded)
|
270
|
+
cd ~/src/langhelp/
|
271
|
+
<<'%%%' > $EERUBY
|
272
|
+
el4r_load "langhelp.rb"
|
273
|
+
lh = LangHelp::LangHelp.run
|
274
|
+
lh.conf
|
275
|
+
|
276
|
+
el_require :ruby_mode
|
277
|
+
find_file "~/src/langhelp/lib/langhelp/langhelp-base.rb"
|
278
|
+
ruby_mode
|
279
|
+
self.el4r_is_debug = true
|
280
|
+
langhelp
|
281
|
+
%%%
|
282
|
+
el4r -r ~/src/el4r -l /log/el4rlog -I ~/emacs/lisp --emacs=$emacs $EERUBY
|
283
|
+
#
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
################
|
288
|
+
# test-eval-after-load-and-gc
|
289
|
+
# test-revert
|
290
|
+
# (view-fline "/log/el4rlog")
|
291
|
+
(eevnow-at ".test-revert")
|
292
|
+
(eech "\C-f")
|
293
|
+
:(goto-line 1400)
|
294
|
+
(eech "R")
|
295
|
+
(eech ":(foo)\n")
|
296
|
+
(eech "ximenu\n")
|
297
|
+
(eech "\C-gq")
|
298
|
+
(eech-kill-emacs)
|
299
|
+
|
300
|
+
#
|
301
|
+
# .test-revert
|
302
|
+
# (eevnow-bounded)
|
303
|
+
cd ~/src/langhelp/
|
304
|
+
<<'%%%' > $EERUBY
|
305
|
+
el4r_process_autoloads
|
306
|
+
el4r_rubyobj_stock.gc_trigger_count = 60
|
307
|
+
el4r_rubyobj_stock.gc_trigger_increment = 2
|
308
|
+
el4r_rubyobj_stock.gc_trigger_increment = 4
|
309
|
+
el4r_rubyobj_stock.gc_trigger_increment = 10
|
310
|
+
|
311
|
+
module X
|
312
|
+
class Foo < ElApp
|
313
|
+
def initialize(x={})
|
314
|
+
do_defun
|
315
|
+
end
|
316
|
+
|
317
|
+
def do_defun
|
318
|
+
defun(:foo, :interactive=>true) do
|
319
|
+
1
|
320
|
+
end
|
321
|
+
end
|
322
|
+
end
|
323
|
+
end
|
324
|
+
X::Foo.new
|
325
|
+
|
326
|
+
require 'bell'
|
327
|
+
class << el4r_rubyobj_stock
|
328
|
+
def pre_gc_hook
|
329
|
+
message "gc start (#{@oid_to_obj_hash.keys.length})"
|
330
|
+
end
|
331
|
+
|
332
|
+
def post_gc_hook
|
333
|
+
message "gc end (#{count_of_stocked_objects})"
|
334
|
+
end
|
335
|
+
end
|
336
|
+
|
337
|
+
el_require :ruby_mode
|
338
|
+
find_file "~/src/langhelp/lib/langhelp/langhelp-base.rb"
|
339
|
+
el_require :imenu
|
340
|
+
ruby_mode
|
341
|
+
self.el4r_is_debug = true
|
342
|
+
el4r_process_autoloads
|
343
|
+
langhelp
|
344
|
+
%%%
|
345
|
+
el4r -r ~/src/el4r -l /log/el4rlog -I ~/emacs/lisp $EERUBY
|
346
|
+
#
|
347
|
+
|
348
|
+
# (view-file "revert.errorlog")
|
349
|
+
|
350
|
+
################
|
351
|
+
# test-face
|
352
|
+
(eevnow-at ".test-face")
|
353
|
+
(eech "Shell Emulation")
|
354
|
+
(eech "\C-n")
|
355
|
+
ruby.e
|
356
|
+
perl.e
|
357
|
+
(eech "autogenerated")
|
358
|
+
(eech-kill-emacs)
|
359
|
+
|
360
|
+
:font-lock-keywords
|
361
|
+
:(car (nth 1 font-lock-keywords))
|
362
|
+
:(re-search-forward (car (nth 1 font-lock-keywords)) nil t)
|
363
|
+
xfont-lock-fontify-buffer
|
364
|
+
|
365
|
+
xlist-faces-display
|
366
|
+
|
367
|
+
(eevnow-at ".test-face")
|
368
|
+
xfundamental-mode
|
369
|
+
xlanghelp-menu-mode
|
370
|
+
:langhelp-sexp-face
|
371
|
+
:font-lock-keywords
|
372
|
+
:(turn-on-font-lock)
|
373
|
+
xfont-lock-fontify-buffer
|
374
|
+
:(with-current-buffer "*scratch*" font-lock-keywords)
|
375
|
+
:langhelp-font-lock-keywords
|
376
|
+
:(setq font-lock-keywords langhelp-font-lock-keywords)
|
377
|
+
xkill-emacs
|
378
|
+
|
379
|
+
|
380
|
+
#
|
381
|
+
# .test-face
|
382
|
+
# (eevnow-bounded)
|
383
|
+
cd ~/src/langhelp/
|
384
|
+
<<'%%%' > $EERUBY
|
385
|
+
el4r_process_autoloads
|
386
|
+
find_file "~/.langhelp/sh.e"
|
387
|
+
%%%
|
388
|
+
el4r $EERUBY
|
389
|
+
#
|
390
|
+
|
391
|
+
|
392
|
+
################
|
393
|
+
# test-init-script
|
394
|
+
# This is integrated into test/test-command.rb
|
395
|
+
(eevnow-at ".test-init-script")
|
396
|
+
mklanghelp --init-script=$EERUBY ratpoisonrc
|
397
|
+
mklanghelp --init-script=$EERUBY -f ratpoisonrc
|
398
|
+
|
399
|
+
#
|
400
|
+
# .test-init-script
|
401
|
+
cd ~/src/langhelp/
|
402
|
+
<<'%%%' > $EERUBY
|
403
|
+
require 'bell-result'
|
404
|
+
result "init.rb loaded"
|
405
|
+
%%%
|
406
|
+
#
|
407
|
+
|
408
|
+
|
409
|
+
################
|
410
|
+
# test-info:automated
|
411
|
+
## LangHelpByInfo ��ʤ�����LangHelp������
|
412
|
+
(eevnow-at ".test-info")
|
413
|
+
(eech "l")
|
414
|
+
(eech "j")
|
415
|
+
(eech "l")
|
416
|
+
(eech "l")
|
417
|
+
:(current-buffer)
|
418
|
+
xkill-emacs
|
419
|
+
|
420
|
+
# show error log
|
421
|
+
(eech "\exel4r-show-log\n")
|
422
|
+
|
423
|
+
#
|
424
|
+
# .test-info
|
425
|
+
# (eevnow-bounded)
|
426
|
+
<<'%%%' > $EERUBY
|
427
|
+
el4r_process_autoloads
|
428
|
+
find_file "~/.langhelp/ratpoisonrc.e"
|
429
|
+
split_window
|
430
|
+
#elvar.same_window_buffer_names = nil
|
431
|
+
search_forward "windows"
|
432
|
+
%%%
|
433
|
+
el4r $EERUBY
|
434
|
+
#
|
435
|
+
|
436
|
+
################
|
437
|
+
## test-w3m:automated
|
438
|
+
(eevnow-at ".test-w3m")
|
439
|
+
(eech "l")
|
440
|
+
(eech "j")
|
441
|
+
(eech "l")
|
442
|
+
(eech "l")
|
443
|
+
:(w3m-buffers)
|
444
|
+
xkill-emacs
|
445
|
+
|
446
|
+
(eevnow-at ".test-w3m")
|
447
|
+
(eech "l")
|
448
|
+
(eech "j")
|
449
|
+
(eech "l")
|
450
|
+
:(kill-buffer "*w3m*")
|
451
|
+
(eech "\C-scommand.html\C-f")
|
452
|
+
(eech "l")
|
453
|
+
(eech "j")
|
454
|
+
(eech "l")
|
455
|
+
(eech "l")
|
456
|
+
(eech "\e<jjjjl")
|
457
|
+
xkill-emacs
|
458
|
+
|
459
|
+
(eevnow-at ".test-w3m")
|
460
|
+
(eech "l")
|
461
|
+
(eech "j")
|
462
|
+
(eech "l")
|
463
|
+
:(kill-buffer "*w3m*")
|
464
|
+
(eech "l")
|
465
|
+
(eech "l")
|
466
|
+
(eech "l")
|
467
|
+
xkill-emacs
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
# show error log
|
472
|
+
(eech "\exel4r-show-log\n")
|
473
|
+
|
474
|
+
#
|
475
|
+
# .test-w3m
|
476
|
+
# (eevnow-bounded)
|
477
|
+
<<'%%%' > $EERUBY
|
478
|
+
toggle_debug_on_error
|
479
|
+
el_load "00init" # advice for `abbreviate-file-name'
|
480
|
+
|
481
|
+
|
482
|
+
defun(:w3m_buffers) do
|
483
|
+
w3m_list_buffers.map{|b|
|
484
|
+
with(:with_current_buffer,b){ elvar.w3m_current_url}
|
485
|
+
}
|
486
|
+
end
|
487
|
+
|
488
|
+
|
489
|
+
el4r_process_autoloads
|
490
|
+
find_file "~/.langhelp/graphviz-dot.e"
|
491
|
+
split_window
|
492
|
+
search_forward "len"
|
493
|
+
%%%
|
494
|
+
el4r --emacs=$emacs -I ~/emacs/init.d -I /usr/local/share/emacs/site-lisp/w3m/ $EERUBY
|
495
|
+
#el4r -Q $EERUBY
|
496
|
+
#
|
497
|
+
|
498
|
+
## test-w3m-name-anchor:automated
|
499
|
+
(eevnow-at ".test-w3m-name-anchor")
|
500
|
+
(eech "l")
|
501
|
+
(eech "j")
|
502
|
+
(eech "l")
|
503
|
+
(eech "l")
|
504
|
+
:(w3m-buffers)
|
505
|
+
(eech "\C-xo")
|
506
|
+
(eech "\exw3m-search-name-anchor\nlabel:6\n")
|
507
|
+
(eech "\exw3m-search-name-anchor\nlabel:7\n")
|
508
|
+
(eech-kill-emacs)
|
509
|
+
|
510
|
+
# show error log
|
511
|
+
(eech "\exel4r-show-log\n")
|
512
|
+
|
513
|
+
#
|
514
|
+
# .test-w3m-name-anchor
|
515
|
+
# (eevnow-bounded)
|
516
|
+
<<'%%%' > $EERUBY
|
517
|
+
el_load "00init" # advice for `abbreviate-file-name'
|
518
|
+
defun(:w3m_buffers) do
|
519
|
+
w3m_list_buffers.map{|b|
|
520
|
+
with(:with_current_buffer,b){ elvar.w3m_current_url}
|
521
|
+
}
|
522
|
+
end
|
523
|
+
el4r_process_autoloads
|
524
|
+
switch_to_buffer "*scratch*"
|
525
|
+
insert <<XXX
|
526
|
+
# (lh-w3m nil "file:///home/rubikitch/src/langhelp/langhelp.en.html#label:6")
|
527
|
+
# (lh-w3m nil "file:///home/rubikitch/src/langhelp/langhelp.en.html#label:7")
|
528
|
+
XXX
|
529
|
+
split_window
|
530
|
+
goto_char 1
|
531
|
+
langhelp_menu_mode
|
532
|
+
#el_require :w3m
|
533
|
+
%%%
|
534
|
+
el4r -I ~/emacs/init.d -I /usr/local/share/emacs/site-lisp/w3m/ $EERUBY
|
535
|
+
#el4r -Q $EERUBY
|
536
|
+
#
|
537
|
+
|
538
|
+
|
539
|
+
################
|
540
|
+
# w3m-test-eesteps
|
541
|
+
|
542
|
+
#
|
543
|
+
# (eeb-el4r)
|
544
|
+
defun(:w3m_buffers) do
|
545
|
+
w3m_list_buffers.map{|b|
|
546
|
+
with(:with_current_buffer,b){ elvar.w3m_current_url}
|
547
|
+
}
|
548
|
+
end
|
549
|
+
|
550
|
+
eesteps [
|
551
|
+
"<<find-file>> ~/.langhelp/graphviz-dot.e RET",
|
552
|
+
"<<goto-line>> 10 RET",
|
553
|
+
"j",
|
554
|
+
"l",
|
555
|
+
"l",
|
556
|
+
"l",
|
557
|
+
[:p, [:w3m_buffers]],
|
558
|
+
]
|
559
|
+
|
560
|
+
#
|
561
|
+
|
562
|
+
|
563
|
+
Local Variables:
|
564
|
+
truncate-lines: t
|
565
|
+
ee-anchor-format: "%s"
|
566
|
+
End:
|