Source of Nothingness - lis

* Menu

[[About:self:AboutPage.txt]] | [[Profile:file/southly/]] | [[まとめ:self:1163859357.txt]] | [[オリジナル:http://ninjinix.x0.com/rn/]] | [[xyzzy:lisp/]] | [[あんてな:listall]] | [[■:lisp]] | [[buzz:files/southly#buzz]]

* Scrapbook : 「プログラミングをしない人が考えていること」を聞いてみた:ITpro

http://itpro.nikkeibp.co.jp/article/OPINION/20060324/233229/

LispとFORTRANについて確認しているのが高評価(笑)

* xyzzy lisp : center-line

使ってみた感じだとこっちのほうがよさそう。
(in-package "editor")
; from $XYZZY/lisp/textmode.l
(defun center-line (&optional (arg 1))
  (interactive "*p")
  (center-region (progn (goto-bol) (point))
                 (progn
                   (forward-line arg)
                   (point))))

同じ感じでこういうのも。
(defun fill-line (&optional (arg 1))
  (interactive "*p")
  (fill-region (progn (goto-bol) (point))
               (progn (forward-line arg) (point))))

* xyzzy topic : はてダラをつかいやすく

http://d.hatena.ne.jp/takef/20060326
ダイアリーとグループに対応した模様。
さらにプレビューもできるようになったようです。

Lispはこのくらいの長さになると実行せずにコメントできませんね。

* xyzzy lisp : popup-gmark.l

以前gmark-session.lを書いたのはおよそ2年前か。
多少マシになっているかも。

* xyzzy topic : HE.l公開。HE-grep.l, その他更新(きまぐれにxyzzy)

http://members3.jcom.home.ne.jp/2116826401/kimagurenixyzzy.html
(2006-03-23)
(2006-03-25)

* xyzzy lisp : ディレクトリ付きにしてユニークなバッファ名に

機能的には[[しょぼしょぼすくりぷと http://www2.ocn.ne.jp/~cheerful/script/xyzzy/library/buffer.html#buffer_rename]]さんと同等。
ひとつ上のディレクトリでやめてしまうみたいだから自分で書いてみた。
(defun buffer-name-with-directory ()
  (let* ((buffer (selected-buffer))
         (name (buffer-name buffer))
         dirs)
    (when (string-match "<[0-9]+>" name)
      (setq dirs (reverse (pathname-directory (get-buffer-file-name buffer))))
      (setq name (format nil "~A/~A" (pop dirs) (file-namestring (get-buffer-file-name buffer))))
      (while (and dirs (dolist (x (buffer-list))
                         (if (string= (buffer-name x) name)
                             (return t))))
        (setq name (format nil "~A/~A" (pop dirs) name)))
      (rename-buffer (abbreviate-display-string name 40) buffer))))
(add-hook '*find-file-hooks* 'buffer-name-with-directory)

* xyzzy lisp : global-markpopup の続き