[mew-dist 29441] Re: pop時のStack overflow in regexp matcherエラー

Hideyuki SHIRAI ( 白井秀行 ) shirai at example.com
2012年 1月 27日 (金) 09:47:30 JST


白井です。

From: ishida <ishida at example.com> さん曰く
Subject: [mew-dist 29440] pop時のStack overflow in regexp matcherエラー
Message-ID: <CAOq9VrMtqYe2x5ep7ZYostD035VZwd0pfUh12xuV03WLCV+cmQ at example.com>
Date: Fri, 27 Jan 2012 01:42:10 +0900

> 以下デバッグ情報になります。
> Debugger entered--Lisp error: (error "Stack overflow in regexp matcher")
>  looking-at("^.*\\(:\\|;\\|/\\)[	]*$")

snip

>  (dolist (re regex) (if (looking-at re) (throw ... ...)))

これで本当に OK か?はわからないのですが、shy group を使うように
すれば大丈夫だと思います。動作も軽くなるし。

(setq mew-regex-ignore-scan-body-list
  '("^[ \t]*$"
    "^[ \t]*[-a-zA-Z0-9]+: "
    "^[ \t]*[>:|#;/_}]"
    "^[ \t]*\\w+\\(?:['._-]+\\w+\\)*>"
    "^[ \t]*[[</(.-]+ *\\(?:snip\\|\\.\\.\\)"
    "^   "
    "^--"
    "^- --"
    "^=2D"
    "^.*\\(?::\\|;\\|/\\)[ \t]*$"
    "^.*\\(?:wrote\\|writes?\\|said\\|says?\\)[^.!\n]?[ \t]*$"
    "^[ \t]*\\(?:On\\|At\\) .*[^.! \t\n][ \t]*$"
    "^[ \t]*In \\(?:message\\|article\\|mail\\|news\\|<\\|\"\\|\\[\\|(\\)"))

-- 
白井秀行 (mailto:shirai at example.com)


Mew-dist メーリングリストの案内