all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
To: emacs-devel <emacs-devel@gnu.org>
Subject: Warning: Non-symbol arguments to cl-defgeneric
Date: Sat, 09 Jul 2022 03:57:16 -0700	[thread overview]
Message-ID: <86let2imer.fsf@stephe-leake.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1241 bytes --]

I've just updated to emacs master HEAD
29c8866c7fcd325995c6fc9b2b18537855fee52c (last time I pulled was Dec
2021), and I'm now getting warnings like:

wisi-parse-common.el: Warning: Non-symbol arguments to cl-defgeneric: (parser wisi-parser)

wisi-parse-common.el:113:2: Error: Non-symbol arguments to cl-defgeneric: (parser wisi-parser)

The relevant code is:

(cl-defstruct wisi-parser
  ;; Per-language values for a wisi parser. Also holds transient
  ;; values set by the current parse, that must be used before the
  ;; next parse starts.

  repair-image
  ;; alist of (TOKEN-ID . STRING); used by repair error

  transaction-log-buffer
  ;; Buffer holding history of communications with parser; one log per
  ;; parser instance.

  (transaction-log-buffer-size wisi-parser-transaction-log-buffer-size-default)
  ;; Max character count to retain in transaction-log-buffer. Set to 0
  ;; to disable log. Default is large enough for all transactions in
  ;; test/ada_mode-incremental_parse.adb with lots of verbosity.
)

(cl-defgeneric wisi-parser-transaction-log-buffer-name ((parser wisi-parser))
  "Return a buffer name for the transaction log buffer.")

What does this warning mean?

full file attached, if that helps.

-- 
-- Stephe

[-- Attachment #2: wisi-parse-common.el --]
[-- Type: application/emacs-lisp, Size: 22608 bytes --]

             reply	other threads:[~2022-07-09 10:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-09 10:57 Stephen Leake [this message]
2022-07-09 11:00 ` Warning: Non-symbol arguments to cl-defgeneric Stefan Kangas
2022-07-09 15:33 ` Stefan Monnier
2022-07-09 23:40   ` Stephen Leake

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86let2imer.fsf@stephe-leake.org \
    --to=stephen_leake@stephe-leake.org \
    --cc=emacs-devel@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.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.