PG icon indicating copy to clipboard operation
PG copied to clipboard

handling of `easycrypt-prog-name` in `easycrypt-mode`

Open chdoc opened this issue 3 years ago • 0 comments

For testing purposes, I was trying to get easycrypt-mode to use a different easycrypt binary than the one that's in the PATH as "easycrypt" (which is the sensible default value of easycrypt-prog-name).

However, it appears that any buffer-local settings of easycrypt-prog-name are completely ignored by easycrypt-mode. Hence, the following, which used to work for Coq, does not work for EC:

(* Local Variables: *)
(* easycrypt-prog-name: "~/git/easycrypt/ec.native" *)
(* End: *)

Moreover, even setting the variable globally (e.g., by executing (setq easycrypt-prog-name "~/git/easycrypt/ec.native") in *scratch* has no immediate effect. One can kill and restart easycrypt as often as one wants, one still gets the easycrypt binary. Only after setting easycrypt-prog-name globally and then executing M-x easycrypt-mode is the new setting taken into account.

chdoc avatar Oct 12 '21 13:10 chdoc