From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.help Subject: Re: semantic-symref-symbol returns "Wrong argument type" Date: Wed, 22 Jul 2015 23:05:45 +0300 Message-ID: <55AFF799.1020403@yandex.ru> References: <55AFF3CD.5000607@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1437595566 32543 80.91.229.3 (22 Jul 2015 20:06:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Jul 2015 20:06:06 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Nicolas Bock Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 22 22:06:02 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 1ZI0HB-00070p-Vh for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Jul 2015 22:06:02 +0200 Original-Received: from localhost ([::1]:38003 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZI0HB-0007gN-2j for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Jul 2015 16:06:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZI0H1-0007gF-SV for help-gnu-emacs@gnu.org; Wed, 22 Jul 2015 16:05:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZI0Gy-0005K1-3v for help-gnu-emacs@gnu.org; Wed, 22 Jul 2015 16:05:51 -0400 Original-Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]:35434) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZI0Gx-0005Jp-Tm for help-gnu-emacs@gnu.org; Wed, 22 Jul 2015 16:05:48 -0400 Original-Received: by wibxm9 with SMTP id xm9so178917268wib.0 for ; Wed, 22 Jul 2015 13:05:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=tGRyayGcz1Wl/iHmXNmP176rbz6kQp3/wwfBUR5gkWk=; b=VCcbNbpbuSHWxN7t3M4dbOgesJGjHHRlD9NINhtZL4CP+7KLatyfXmy84FXsI2m3zN lHdng2eOXW9/TRZ8aKG/k8+czTh/pwzlp1Fg59nseLsCqf2fNfUzqe4kilpc7aB4gRQ9 a+vu/oZQvGZv55dh2BlhZ09bgXgl2QYdyyfQg8m186lioaajbDzAKf0rgdu/j5nBphCf 5hsu7TK9EUKpEGY1wTlc7qJrMhXJv/rEufohQ/vPGdhvOyJzpMnZE8DDS7ViJ7FBEPMG Hs9JNuMRuRlsr+GxzbBcQouNfxY2l6ZNLL7SCXPNOyFxmowSQ1BBWic8bhmKchmY3+e0 a63g== X-Received: by 10.194.185.146 with SMTP id fc18mr8179880wjc.46.1437595547342; Wed, 22 Jul 2015 13:05:47 -0700 (PDT) Original-Received: from [192.168.1.2] ([185.105.175.24]) by smtp.googlemail.com with ESMTPSA id bm9sm23595011wib.10.2015.07.22.13.05.46 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Jul 2015 13:05:46 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::235 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:105919 Archived-At: 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.