Stephen Leake <[EMAIL PROTECTED]> writes:

> dvc-ui.el defines names for keys; should they be 'defconst' rather
> then 'defvar'?
>
> If users really want to change the keys, they can do setq before
> loading dvc, and that will still work with defconst.
>
> Leaving them defvar means they can be changed from subsequent lisp
> code. That would be very confusing, since keymaps created before the
> change would have the original value, while those created after would
> have the new value.

That would probably be cleaner to use `defconst', but don't expect
miracle from it:

*** Welcome to IELM ***  Type (describe-mode) for help.
ELISP> (defconst foo 42)
foo
ELISP> (setq foo 43)
43
ELISP> foo
43
ELISP> 

;-)

-- 
Matthieu

_______________________________________________
Dvc-dev mailing list
[email protected]
https://mail.gna.org/listinfo/dvc-dev

Reply via email to