kobapan@wiLiki
Login
Emacs:emacs Warning (bytecomp)

Emacs:emacs Warning (bytecomp): reference to free variable 'foreign-regexp/regexp-type'

emacs を起動した時に、emacs Warning (bytecomp): reference to free variable 'foreign-regexp/regexp-type' という警告が出て、画面がスプリットしてしまう。

起動時に、bytecompileなどしていないのだけど、何この警告。分からない。

なので、emacs 起動時に foreign-regexp を読み込まないように、

.emacs のこれを、

(require 'foreign-regexp)
 (custom-set-variables
  ;; 正規表現 perlかrubyを選択
  '(foreign-regexp/regexp-type 'perl) ;; Choose by your preference.
  '(reb-re-syntax 'foreign-regexp)) ;; Tell re-builder to use foreign regexp.

こう変えた。

(with-eval-after-load 'foreign-regexp
  (custom-set-variables
   ;; 正規表現 perlかrubyを選択
   '(foreign-regexp/regexp-type 'perl) ;; Choose by your preference.
   '(reb-re-syntax 'foreign-regexp)) ;; Tell re-builder to use foreign regexp.
  )

警告が出なくなった。めでたし。

Debian
Emacs
Firefox
Gauche
JavaScript
Linux
Scheme
org-mode/latex

More ...