emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: name prefixes [was: epa command names]


From: Stephen J. Turnbull
Subject: Re: name prefixes [was: epa command names]
Date: Sat, 12 Nov 2011 12:52:32 +0900

Richard Stallman writes:

 >     Instead of allowing Emacs to flout its own guidelines,
 > 
 > My proposal doesn't violate any Emacs guidelines.

Yeah, but it will surprise anybody who is currently using those
commands with their mailcrypt definitions.  Not very nice IMHO.

In most cases, rather than use aliases users are allowed to pick the
implementation of `foo' by customizing `foo-function', and the "usual
implementation of `foo' either does

  (progn
    (apply #'foo-setup foo-args)
    (apply foo-function foo-args))

or

  (if foo-function
      (apply foo-function foo-args))
    ;; default implementation goes here
    )

This has the advantage that `foo-function' has a doctring (and often a
defcustom), and that documentation is pointed to by `foo's
documentation.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]