help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Wrong "Not documented" message, bug?


From: Ralf Mattes
Subject: Re: Wrong "Not documented" message, bug?
Date: Thu, 14 Oct 2010 13:08:30 +0000 (UTC)
User-agent: Pan/0.132 (Waxed in Black)

On Thu, 14 Oct 2010 10:21:59 +0200, Andreas Röhler wrote:

> Hi,
> 
> M-x describe-function `py-in-string/comment' points me to the code
> below, which is correct:
> 
> 
> (defun py-in-string/comment ()
>    (interactive)
>    "Returns character address of start of comment or string; nil if not
> in one. "
>    (lexical-let ((erg (nth 8 (syntax-ppss))))
>      (unless erg (when (or (looking-at "\"\"\"")
>                            (looking-at (concat "^[ \t]*"
> comment-start-skip)))
>                    (setq erg (point))))
>      (when (interactive-p) (message "%s" erg)) erg))
> 
> However, it says:
> 
> ,----
> | py-in-string/comment is an interactive Lisp function in |
> `python-components-intern.el'.
> |
> | (py-in-string/comment)
> |
> | Not documented.
> `----
> 
> Something odd with doku here? A bug?

How about adding a docstring? :-)
Something like:

 (defun py-in-string/comment ()
  "Returns character address of start of comment or string; nil if not
in one. "
   ....


 HTH Ralf Mattes 
> Thanks
> 
> 
> Andreas
> 
> --
> https://code.launchpad.net/~a-roehler/python-mode/python-mode-components
> https://code.launchpad.net/s-x-emacs-werkstatt/
> 
> 
> PS: If interested, see the complete files contents at
> 
> http://bazaar.launchpad.net/~a-roehler/python-mode/python-mode-
components/annotate/head%3A/python-components-intern.el





reply via email to

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