From: Stephen Leake <stephen_leake@stephe-leake.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Warning compiling xref.el
Date: Thu, 05 Nov 2015 07:32:53 -0600 [thread overview]
Message-ID: <868u6cy3ju.fsf@stephe-leake.org> (raw)
In-Reply-To: <83twp1u5jh.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 04 Nov 2015 17:51:14 +0200")
Eli Zaretskii <eliz@gnu.org> writes:
> I get this warning when compiling the latest xref.el:
>
> In xref-collect-references:
> ../lisp/progmodes/xref.el:883:21:Warning: Unknown slot `hit-lines'
It's due to this code:
(defun xref-collect-references (symbol dir)
"Collect references to SYMBOL inside DIR.
This function uses the Semantic Symbol Reference API, see
`semantic-symref-find-references-by-name' for details on which
tools are used, and when."
(cl-assert (directory-name-p dir))
(require 'semantic/symref)
(defvar semantic-symref-tool)
(let* ((default-directory dir)
(semantic-symref-tool 'detect)
(res (semantic-symref-find-references-by-name symbol 'subdirs))
(hits (and res (oref res hit-lines)))
(orig-buffers (buffer-list)))
'hit-lines' is a slot defined in semantic/symref.el, but the
byte-compiler does not process the "require" in this defun, apparently,
Adding this:
(eval-when-compile
(require 'semantic/symref)) ;; for hit-lines slot
outside the defun fixes the problem for me.
--
-- Stephe
next prev parent reply other threads:[~2015-11-05 13:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-04 15:51 Warning compiling xref.el Eli Zaretskii
2015-11-05 13:32 ` Stephen Leake [this message]
2015-11-06 3:15 ` Dmitry Gutov
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=868u6cy3ju.fsf@stephe-leake.org \
--to=stephen_leake@stephe-leake.org \
--cc=eliz@gnu.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.