Ticket #292 (closed 不具合: fixed)

Opened 2 years ago

Last modified 2 years ago

dot.emacs.ja を読み込もうとすると "The local variables list in .emacs contains values that may not be safe (*) ."

Reported by: 7R5KxQqd0@2ch Assigned to:
Priority: major Milestone: ver 3.00
Component: その他/一般 Version: 3.00 (開発中)
Keywords: dot.emacs.ja Cc:

Description

Windows 2000 Professional にインストールしている Meadow3 を r4031 から r4038NetInstall でアップデートしました。 すると、 ~/.emacs を C-x C-f で読み込もうとする度に、以下の内容のバッファが開き、選択を求められるようになりました。

The local variables list in .emacs
contains values that may not be safe (*) .

Do you want to apply it ?  You can type
y -- to apply the local variables list.
n -- to ignore the local variables list.
! -- to apply the local variables list, and mark these values (*) as
     safe (in the future, they can be set automatically.)


   * syntax : elisp

また、雛形ファイル dot.emacs.ja を C-x C-f で読み込む場合にも同様のメッセージが表示されました。

The local variables list in dot.emacs.ja
(以下同様のメッセージなので省略)

さらに、 r4050 でも試してみましたが、同様のメッセージがそれぞれ表示されました_| ̄|○

Attachments

Change History

03/12/06 18:20:11 changed by anonymous

  • summary changed from dot.emacs.ja を読み込もうとすると "The local variables list in .emacscontains values that may not be safe (*) ." to dot.emacs.ja を読み込もうとすると "The local variables list in .emacs contains values that may not be safe (*) .".

03/12/06 23:06:47 changed by miyoshi

ちゃんと調べてないのですが、ファイルを開いたときに、ローカル変数の自動設定(sexpの実行もかな)があった場合には、それを実行してよいのかユーザに確認するように仕様が変更されただけでは?

問い合わせに対して `!' を選択しておけば次回から聞かれることはなくなります(safe-local-variable-values が自動設定される)。

03/13/06 07:39:38 changed by fujii

挙動が変わったことについては、三好さんのおっしゃるとおりだと思います。

でも、対応策としては dot.emacs.ja から "syntax: elisp" という設定をはずしたほうが 良いのではないかと思います。

そもそも "syntax: elisp" という設定は必要なのでしょうか? dot.emacs.ja で設定されている lisp-interaction-mode は emacs-lisp-mode の派生なので、"syntax: elisp" と設定しなくても syntax-table は elisp のものになっているはずです。

03/13/06 08:14:02 changed by miyoshi

確かに、"syntax: elisp"の意味はよく分かりません。 特に意味がないのであれば、削除すべきだと思います。

07/17/06 10:52:53 changed by fujii

  • status changed from new to closed.
  • resolution set to fixed.

r4053 で削除されているので、遅まきながら close します。


Add/Change #292 (dot.emacs.ja を読み込もうとすると "The local variables list in .emacs contains values that may not be safe (*) .")




Change Properties
Action