| MELPA Emacs Lisp Elisp パッケージ インストール 設定 使い方 スクリーンショット | るびきち「日刊Emacs」

seen from Indonesia

seen from Switzerland
seen from Japan

seen from Germany
seen from Japan
seen from China
seen from Switzerland

seen from Malaysia

seen from Belarus

seen from Malaysia

seen from Japan
seen from Germany
seen from Türkiye
seen from Germany

seen from Poland
seen from Japan

seen from Netherlands

seen from United States
seen from Germany

seen from United States
| MELPA Emacs Lisp Elisp パッケージ インストール 設定 使い方 スクリーンショット | るびきち「日刊Emacs」

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
migemo.el の行をまたぐ検索
migemo.el の行をまたぐ検索をすべてのモードで可能にするという試み。
現在の仕様
現状は http://0xcc.net/migemo/ にあるように
Emacs の "\s " の意味はモードによって変わります。モードによっては行をまたぐ検索ができないことがあります。
となっていて、たとえば text モードだと行をまたぐ検索ができるけど emacs-lisp モードではできない。これはそのバッファで (string (char-syntax ?\n)) を評価することでわかる。
emacs lisp モード: ">" => デリミタクラス
text モード: " " => 空白クラス
\s = \s- は空白クラスを意味するから emacs-lisp モードでは改行とマッチしなくて行をまたぐ検索ができないという仕様。
"Regular expression too big" エラー
ASCII の printable な 1 文字だけで検索した場合、Homebrew の C/Migemo は stable と HEAD ともに
c: "Regular expression too big" エラーになる
]: 検索に失敗する
という結果になった。gist
後者は C/Migemo のバグで PR を出したけど全然間違ってた。info を見た限り ] を [ ... ] の先頭にくるようにすればいいような気がするけど実装力不足。
修正案 1: Ruby/Migemo に倣う
https://github.com/papaeye/migemo/tree/fix-multiline-search
行またぎ検索のために正規表現に \s-* を挿入しているのを Ruby/Migemo と同じように migemo-white-space-regexp = [ \t\r\n]* を挿入するようにすると、C と s で検索した場合にも "Regular expression too big" エラーになるようになった。
Ruby/Migemo と同じ挙動だと思うのでこれでいい気もする。いや "cmigemo" で string-match はない気がする。
修正案 2: syntax table にパッチを当てる
https://github.com/papaeye/migemo/tree/multiline-search-all-modes
一時的に syntax table を変更して改行等を空白クラスに設定するというもの。"Regular expression too big" エラーになるケースを増やさないという意味でいいと思う。syntax table の変更が副作用を及ぼさないかわかってない。
行またぎ検索をしない場合でも syntax table を変更するのが欠点。
どっちも決め手に欠けるというか…
ローマ字のまま日本語をインクリメンタル検索

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
gist いろいろ
gist:2945078 elscreen + color-theme-solarized
elscreen のタブとモードラインのアクティブ/インアクティブの face が揃えばすっきりすると思って、
(copy-face 'mode-line 'elscreen-tab-current-screen-face) (copy-face 'mode-line-inactive 'elscreen-tab-background-face) (copy-face 'mode-line-inactive 'elscreen-tab-control-face) (copy-face 'mode-line-inactive 'elscreen-tab-other-screen-face)
こんなのを .emacs に書いてたけど、dotfiles を github に上げるときにいろいろいじってたら Emacs 23 で反映されなくなってしまった。ので elscreen-color-theme で設定しようと思ったけど elisp が読めなくて諦めて、color-theme-solarized の方にパッチを当てることにした。
emacs-23.4-mac-2.1 + elscreen + color-theme-solarized のスクリーンショット。
gist:2946715 A formula for C/Migemo
以下をひとつにまとめた。
https://github.com/mxcl/homebrew/issues/4113
https://github.com/mxcl/homebrew/issues/7005
https://github.com/mxcl/homebrew/commit/864aae58996f3bc57a0b0be1eb3ed12e8a8f2fa7
gist:2954511 ELPA supported migemo.el
.el ファイルを package-install-file できるように、CVS から migemo.el.in をエクスポートして、ヘッダやフッタを調整した。
gist:2966932 A formula for self-contained emacs-24.1-mac-3.0
self-contained な emacs-24.1-mac-3.0。/Applications に移動すると info がおかしくなるのを http://lists.gnu.org/archive/html/emacs-diffs/2012-05/msg00398.html のパッチを当てて修正。
川o・-・)<2nd life - MigemizeExplorer が便利すぎる件