is-mode - InstallScript ファイルを編集したりする

1 説明

InstallScript (InstallShield 用スクリプト) 用の編集モードです。

2 インストール

NetInstaller でインストールした場合は 3 以降を、 NetInstaller + ni-autoload を使っている人は 4 以降で OK です。

  1. アーカイブをダウンロードします。

    <URL:http://miyamuko.s56.xrea.com/xyzzy/archives/is-mode.zip>

  2. アーカイブを展開して、$XYZZY/site-lisp 配下にファイルをコピーします。
  3. 拡張子が rul のファイルを開いたときに自動的に is-mode になるように ~/.xyzzy または $XYZZY/site-lisp/siteinit.l に以下のコードを追加します。

    ;; is-mode
    (require "is-mode")
    (pushnew '("\\.rul$" . is-mode) *auto-mode-alist* :test 'equal)
  4. 設定を反映させるため xyzzy を再起動してください。

    ※siteinit.l に記述した場合には再ダンプが必要です。

3 リファレンス

3.1 キー割り当て

TAB

インデントする。

Compiler directive (#defineとか) はインデントしません。

RET
改行+インデント付け。
M-TAB

キーワードと組み込み関数の補完。

先行する文字があればその文字から始まるキーワードをツールチップで表示します。 先行する文字がなければすべてのキーワードを表示します。

3.2 変数

*is-label-level*
*is-label-offset*

インデントレベルを設定します。

;; インデントの幅(下図で _ の部分, default=4)
(setq *is-indent-level* 4)

;; ラベルのオフセット(下図で - の部分, default=-4)
;;; 説明のためのありえない設定。
(setq *is-label-offset* 4)

;; function Foo(nBar)
;; ____number nFoo;
;; begin
;; ____if (nBar != 0) goto Baz;
;; ____nFoo = 10
;; ____----Label:
;; ____// ...
;; end;

4 これからやるかもしれないこと

5 既知のバグ

以下のような場合適切にインデントできない。

if (szHoge == "HOGE"
|| szFoo == "FOO") then  // この行をインデントできない
endif;

nPos = StrFind(svTarget,
szFindMe);  // ここも

本当は次のようにしたい。

if (szHoge == "HOGE"
    || szFoo == "FOO") then
endif;

nPos = StrFind(svTarget,
               szFindMe);

でもやる気がない。

6 関連するかもしれないページ

InstallShield - Software Installation and Migration for SysAdmins and Developers
<URL:http://www.installshield.com/>

7 ライセンス

properties-mode は修正 BSD ライセンスに基づいて利用可能です。

Copyright (C) 2003-2004 MIYAMUKO Katsuyuki. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

1 Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer as the first lines
of this file unmodified.

2 Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: