Stephen Leake, 2007-04-15:

> (defun dvc-diff-ewoc->filename (elem)
>   "Filename field of ELEM, assumed to be of type 'file."
>   (nth 1 elem))
> 
> (defun dvc-diff-ewoc->type (elem)
>   "Type field of ELEM; one of: 'file, 'subtree, 'message, 
> 'searching-subtrees."
>   (car elem))

Just a remark: Using a quote mark (') for symbols in docstrings is 
spurious.  I know other Elisp code does it, but that doesn't mean it's a 
good idea.  'file reads as the two-element list (quote file), which is 
not the value you want to refer to.  I suggest

   "Type field of ELEM; one of the symbols `file', `subtree', `message' 
and `searching-subtrees'."

See also the info node (elisp) Documentation Tips.

Christian.

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

Reply via email to