From: Ralf Mattes <rm@mh-freiburg.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Wrong "Not documented" message, bug?
Date: Thu, 14 Oct 2010 13:08:30 +0000 (UTC) [thread overview]
Message-ID: <i96vce$9rk$1@dough.gmane.org> (raw)
In-Reply-To: 4CB6BDA7.7040204@easy-emacs.de
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
next prev parent reply other threads:[~2010-10-14 13:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-14 8:21 Wrong "Not documented" message, bug? Andreas Röhler
2010-10-14 13:08 ` Ralf Mattes [this message]
2010-10-14 16:03 ` PJ Weisberg
2010-10-15 11:50 ` Andreas Röhler
[not found] <mailman.1.1287045328.32083.help-gnu-emacs@gnu.org>
2010-10-14 8:59 ` Marc Mientki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='i96vce$9rk$1@dough.gmane.org' \
--to=rm@mh-freiburg.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).