From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Bock Newsgroups: gmane.emacs.help Subject: Re: semantic-symref-symbol returns "Wrong argument type" Date: Wed, 22 Jul 2015 14:12:32 -0600 Message-ID: References: <55AFF3CD.5000607@yandex.ru> <55AFF799.1020403@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1437596014 7181 80.91.229.3 (22 Jul 2015 20:13:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Jul 2015 20:13:34 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Dmitry Gutov Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 22 22:13:29 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZI0OK-0002DL-BK for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Jul 2015 22:13:24 +0200 Original-Received: from localhost ([::1]:38033 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZI0OJ-00030R-Hj for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Jul 2015 16:13:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41375) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZI0O9-00030M-3E for help-gnu-emacs@gnu.org; Wed, 22 Jul 2015 16:13:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZI0O8-0007kc-7F for help-gnu-emacs@gnu.org; Wed, 22 Jul 2015 16:13:13 -0400 Original-Received: from mail-vn0-x229.google.com ([2607:f8b0:400c:c0f::229]:35988) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZI0O8-0007kX-2L for help-gnu-emacs@gnu.org; Wed, 22 Jul 2015 16:13:12 -0400 Original-Received: by vnk197 with SMTP id 197so52551321vnk.3 for ; Wed, 22 Jul 2015 13:13:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=rLfUiEzspq7UhpBGvhvLOBFZw98B1TAij7O8U4WVEqg=; b=GAZXY+ruGYlLl3SoDIxLEHtazu7+0/207DQHIBbuSghNMcc4foptLmREA/8mRrGMp3 yRyMrN1yb+k5jMujP3JUiTRNu/D2ameLx3CkIcu44/munmfIS1yxcuP4e1J9rUk0Svcx k5TxoDmNIF4RyLFRp9SS8UxJfO80ngrYkYktL+4zwdMEE51UJSUO08TvHBPxrxrd1MJ9 9d3kMMbJYoUga2CE8momyDzfSfAx3zWhyJxQrpNvaG48OQVtj88it0kt1mzN0fekKFjh g2tiYiQLfsVN6o7/qmwN5N5oVkfJoATCTq002/6cR0PHPkF38rAOKViUrXa0PDtnNtX4 Lg+g== X-Received: by 10.52.230.2 with SMTP id su2mr5378560vdc.55.1437595991803; Wed, 22 Jul 2015 13:13:11 -0700 (PDT) Original-Received: by 10.31.61.198 with HTTP; Wed, 22 Jul 2015 13:12:32 -0700 (PDT) In-Reply-To: <55AFF799.1020403@yandex.ru> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c0f::229 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105920 Archived-At: Thanks for all the pointers. I will dig a little deeper.... On Wed, Jul 22, 2015 at 2:05 PM, Dmitry Gutov wrote: > On 07/22/2015 10:53 PM, Nicolas Bock wrote: > >> That's what I suspected, but what I don't understand is why it doesn't >> use 'grep' as a fallback. That should be language agnostic, I would >> think. > > > Like I said, it could use Grep, but first it wants to determine what to > search for (the "symbol"), and that's normally the "current tag", in buffers > supported by Semantic. > > Regarding Grep, though, there's no entry for Fortran in > semantic-symref-filepattern-alist. > > If you're using the current master (or can install it), you could try M-x > xref-find-regexp instead. Or M-x xref-find-references. > >> The backtrace unfortunately does not help me much either: > > >> Debugger entered--Lisp error: (wrong-type-argument syntax-table-p nil) >> set-syntax-table(nil) > > > This is from macro-expansion of `with-syntax-table'. As you can see, the > argument is semantic-lex-syntax-table, which is apparently nil. > >> semantic-ctxt-current-symbol-default(nil) > > > ^ That's the function, inside which you should be looking.