From: Kenichi Komiya Date: 2001-08-26T18:23:49+09:00 Subject: [ruby-dev:14573] [PATCH] ruby-mode.el 小宮です。 ruby-mode.el の ruby-mode.el 1.33 を XEmacs 21.1 で使うと、バッファ の内容を変更する度に以下の警告が表示されます。 (1) (warning/warning) Error caught in `font-lock-pre-idle-hook' [ruby-dev:13515] で導入された ruby-font-lock-maybe-docs の中で使わ れている match-string-no-properties が存在しないのが原因のようです。 単なる match-string に変えてみたところ、手元では正常に動作している ようです。 わざわざ match-string-no-properties になっているのを差し替えてしまっ ていいものか良くわからないのですが、一応、以下の describe-function の記述を根拠にしています。 | (string= S1 S2) | | Documentation: | Return t if two strings have identical contents. | Case is significant. Text properties are ignored. | (Under XEmacs, `equal' also ignores text properties and extents in | strings, but this is not the case under FSF Emacs 19. In FSF Emacs 20 | `equal' is the same as in XEmacs, in that respect.) | Symbols are also allowed; their print names are used instead. 小宮 健一 diff -u -r1.33 ruby-mode.el --- ruby-mode.el 2001/08/14 08:13:31 1.33 +++ ruby-mode.el 2001/08/26 08:50:35 @@ -714,12 +714,12 @@ (let (beg) (save-excursion (if (and (re-search-backward "^=\\(begin\\|end\\)\\(\\s \\|$\\)" nil t) - (string= (match-string-no-properties 1) "begin")) + (string= (match-string 1) "begin")) (progn (beginning-of-line) (setq beg (point))))) (if (and beg (and (re-search-forward "^=\\(begin\\|end\\)\\(\\s \\|$\\)" nil t) - (string= (match-string-no-properties 1) "end"))) + (string= (match-string 1) "end"))) (progn (set-match-data (list beg (point))) t)