[comp.emacs] Complex documentation strings

jak@cs.brown.edu (Jak Kirman) (12/29/90)

[Apologies to local users for the repost; gnus uses local as the default
distribution.  Sigh]

Using gnuemacs 18.55, I often want to do the following sort of thing:
 
(defun foo-plus ()
  (concat (documentation 'foo) " added some functionality")
  ;...
)

However, it seems that unless the documentation string is a literal,
emacs does not take it as the documentation.

It is fairly easy to imagine wanting documentation strings depending on
some run-time variable such as the machine or window-system type, in
which case hardwiring the string would not be appropriate at all.

Does anyone know of any way around this problem?

                                Jak                            jak@cs.brown.edu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If addiction is judged by how long a dumb animal will sit pressing a lever
to get a "fix" of something, to its own detriment, then I would conclude
that netnews is far more addictive than cocaine.
                                                             -- Rob Stampfli