;EMACS罫線表示コマンド  by SHINGO store-procedure "boxcmd" set %x2 $curcol set %y2 $curline exchange-point-and-mark set %x1 $curcol set %y1 $curline !if &les %x2 %x1 set %dm %x2 set %x2 %x1 set %x1 %dm !endif !if &les %y2 %y1 set %dm %y2 set %y2 %y1 set %y1 %dm !endif set $curline %y1 end-of-line !if &les $curcol %x2 set %dm &div &sub %x2 $curcol 2 %dm insert-string " " !endif set $curcol %x2 !if &equ %y1 %y2 !if &equ %x1 %x2 overwrite-string "�゙" !goto end !else overwrite-string "�ニ" set $curcol %x1 overwrite-string "�セ" set %xx &div &sub &sub %x2 %x1 1 2 %xx overwrite-string "�「" !goto end !endif !else !if &equ %x1 %x2 overwrite-string "�ホ" backward-character next-line !while &les $curline %y2 !if &les $curcol %x2 set %dm &div &sub %x2 $curcol 2 %dm insert-string " " !endif overwrite-string "�、" set $curcol %x2 next-line !endwhile overwrite-string "�ヨ" !goto end !endif !endif ;�ョ�「�「�「�イの部分 overwrite-string "�イ" set $curcol %x1 overwrite-string "�ョ" set %xx &div &sub &sub %x2 %x1 1 2 %xx overwrite-string "�「" next-line ;�、   �、の部分 !while &les $curline %y2 !if &les $curcol %x2 set %dm &div &sub %x2 $curcol 2 %dm insert-string " " !endif overwrite-string "�、" set $curcol %x1 overwrite-string "�、" set $curcol %x2 next-line !endwhile ;�カ�「�「�「�コの部分 !if &les $curcol %x2 set %dm &div &sub %x2 $curcol 2 %dm insert-string " " !endif overwrite-string "�コ" set $curcol %x1 overwrite-string "�カ" %xx overwrite-string "�「" *end !endm set %box "TRUE"