Sam Steingold <[EMAIL PROTECTED]> writes: > Stefan Reichör wrote: >> If yes, we could add it as compatibility function to DVC.el > > please make sure that it is used only when the built-in emacs function > does not cut it.
I would strongly prefer it if we always prefixed compatibility functions
with "dvc-" and used them instead of the name of the original function.
In this case, "dvc-split-string" instead of "split-string". This has
several advantages.
- It will never shadow an existing function.
- It will never provide a function that confuses another piece of Emacs
Lisp code. It will not introduce hard-to-track bugs in other Emacs
Lisp programs. Even if code snippets are said to be "perfect" in
terms of implementing missing functionality, it is better to
future-proof ourselves by not taking the risk in the first place.
- It will alert new maintainers and contributors who browse DVC's
source code to the presence of compatibility issues, and how to
easily resolve them.
- We never have to tell a user to (require 'dvc-xemacs). DVC will
Just Work for them.
- If DVC were included with Emacs 23, all we would need to do for the
Emacs 23 version is to remove most of the compatibility functions and
turn them into "defalias" commands.
I anticipate having time this week to work on this issue, provided we
can achieve at least somewhat of a consensus on it.
--
Michael Olson -- FSF Associate Member #652 |
http://mwolson.org/ -- Jabber: mwolson_at_hcoop.net | /` |\ | | |
Sysadmin -- Hobbies: Lisp, GP2X, HCoop | |_] | \| |_|
Projects: Emacs, Muse, ERC, EMMS, ErBot, DVC, Planner |
pgpEfZSJrJBF0.pgp
Description: PGP signature
_______________________________________________ Dvc-dev mailing list [email protected] https://mail.gna.org/listinfo/dvc-dev
