Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

拡張子 .lisp のサポート #177

Closed
x022235 opened this issue Mar 26, 2012 · 2 comments
Closed

拡張子 .lisp のサポート #177

x022235 opened this issue Mar 26, 2012 · 2 comments

Comments

@x022235
Copy link
Member

x022235 commented Mar 26, 2012

背景

  • xyzzy では Lisp ソースの拡張子として *.l を使うことになっている
  • CL では *.lisp を使うことが多く、移植時に拡張子の変更が面倒である
  • *.l は GitHub 上で色がつかなくて寂しい

対応

  • *.l* に加えて *.lisp をサポートする
  • byte-compile した場合は *.lc のままとする
  • requireload-library では *.lc*.l*.lisp の順にファイルを探す
  • (compile-file-pathname "a.lisp") => a.lc
  • (compile-file-pathname "a.l") => a.lc
  • (compile-file-pathname "a.txt") => a.txt.lc
  • *.lisp ファイルを開いた場合も lisp-mode にする
@southly
Copy link
Contributor

southly commented Apr 10, 2012

生成するバイトコードが変わらないのであれば、拡張子は同一の方がいいと思うのですがいかがでしょう。
つまり、このようにするということですが。

  • (compile-file-pathname "a.lisp") => a.lc

@x022235
Copy link
Member Author

x022235 commented Apr 11, 2012

確かに *.lc まで変える意味はなかったですね。
ご指摘の通りにします。

@ghost ghost assigned x022235 Apr 20, 2012
x022235 added a commit that referenced this issue Apr 20, 2012
バイトコンパイル後のファイルの拡張子は変更なし。
require などでのロード順は *.lc, *.l, *.lisp。
@x022235 x022235 closed this as completed Apr 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants