unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#28781: 25.3; Override erroneous "incorrect verb voice" from checkdoc
@ 2017-10-10 17:52 Radon Rosborough
  2017-10-10 19:24 ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Radon Rosborough @ 2017-10-10 17:52 UTC (permalink / raw)
  To: 28781

I have the following definition:

    (defmacro straight--functionp (object)
      "Non-nil if OBJECT, an unquoted symbol, evaluates to a function.
    However, if OBJECT evaluates to its own symbol value or t, then
    return nil. This is useful for allowing a function to be called
    with nil, non-nil, or a function object, without worrying about
    the non-nil value being interpreted as a function: just call the
    function with the quoted name of the argument, or use t."
      (let ((object-sym (make-symbol "object")))
        `(let ((,object-sym ,object))
           (and (not (memq ,object-sym '(,object t)))
                (functionp ,object-sym)))))

M-x checkdoc reports the following on the first line:

    Probably "evaluates" should be imperative "evaluate"

This is wrong. How can I suppress this spurious warning, other than by
rewording the docstring? I know that checkdoc has
`checkdoc-symbol-words' for suppressing spurious warnings about unquoted
symbols, but there appears to be nothing similar I can customize in
file-local variables for this case.





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-10-11 13:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-10 17:52 bug#28781: 25.3; Override erroneous "incorrect verb voice" from checkdoc Radon Rosborough
2017-10-10 19:24 ` Eli Zaretskii
2017-10-10 19:44   ` Radon Rosborough
2017-10-10 20:05     ` Eli Zaretskii
2017-10-10 20:31       ` Radon Rosborough
2017-10-11 13:09         ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).