From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#19741: 25.0.50; find-tag completion uses an outdated cache of the tags table Date: Tue, 03 Feb 2015 03:46:51 +0200 Message-ID: <54D0288B.7000503@yandex.ru> References: <867fw1z9m9.fsf@yandex.ru> <83egq8gqxu.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1422928092 22888 80.91.229.3 (3 Feb 2015 01:48:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Feb 2015 01:48:12 +0000 (UTC) Cc: 19741@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 03 02:48:11 2015 Return-path: Envelope-to: geb-bug-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 1YISb4-0008JJ-R6 for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Feb 2015 02:48:10 +0100 Original-Received: from localhost ([::1]:57424 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YISb4-0005zy-3S for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Feb 2015 20:48:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YISb0-0005yG-C0 for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 20:48:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YISax-00056s-4H for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 20:48:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41354) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YISax-00056k-0p for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 20:48:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YISaw-0004dE-5n for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 20:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Feb 2015 01:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19741 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19741-submit@debbugs.gnu.org id=B19741.142292802317735 (code B ref 19741); Tue, 03 Feb 2015 01:48:02 +0000 Original-Received: (at 19741) by debbugs.gnu.org; 3 Feb 2015 01:47:03 +0000 Original-Received: from localhost ([127.0.0.1]:60827 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YISZy-0004by-Fg for submit@debbugs.gnu.org; Mon, 02 Feb 2015 20:47:02 -0500 Original-Received: from mail-wg0-f42.google.com ([74.125.82.42]:47294) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YISZv-0004bR-SN for 19741@debbugs.gnu.org; Mon, 02 Feb 2015 20:47:00 -0500 Original-Received: by mail-wg0-f42.google.com with SMTP id x13so42101040wgg.1 for <19741@debbugs.gnu.org>; Mon, 02 Feb 2015 17:46:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=CYmN/B8TDZZmXxmxfLZ+E7XugKQsfBSDU6a3xFwBeU8=; b=RWOA13QMO38cy5n5rM2SUGvXp7VoSvdob5WSR4isf8dMTQaZhtI6birOK/W5xGym3n SfA0qS8h4kJ7fNp4nHJ34mjjNm5tUXkDfU4f5PwUKkByyMA9QR7qoN2Y4k0RHiJU3Q0u 8uTKwoQt8hZqvDcPr9DZamzdsNmFTu1r98fgDxwAyVFRFRUjolO6zph4PHRq6z1dMhOd Kpb/RiBfgo+tlB6EDnI54KFNrJ4TIf8m5GrDTf839awSTkCM6aQWTcoATfyzvLuIwwcr XhessUT7dEzhJNtLSAEXBfjspHyN0ViHu72qfnbpsY0if20wKOB3vxBc4L0eBjjqsUxE sYPQ== X-Received: by 10.194.83.98 with SMTP id p2mr49738695wjy.125.1422928014260; Mon, 02 Feb 2015 17:46:54 -0800 (PST) Original-Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id d6sm22298371wic.1.2015.02.02.17.46.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Feb 2015 17:46:53 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Thunderbird/33.0 In-Reply-To: <83egq8gqxu.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:99004 Archived-At: On 02/02/2015 07:32 PM, Eli Zaretskii wrote: > I think this happens because visiting the second TAGS table doesn't > invalidate or recalculate tags-completion-table, which was generated > when you pressed TAB at the first find-tag prompt. Look at the > function tags-completion-table, it does this: > > (defun tags-completion-table () > "Build `tags-completion-table' on demand. > The tags included in the completion table are those in the current > tags table and its (recursively) included tags tables." > (or tags-completion-table > ;; No cached value for this buffer. Seems so, but should the `tags-completion-table' value in the lisp/TAGS buffer really include the entries from the other currently visited tables? Looking at `visit-tags-table' signature, some buffers might only have the above in the local `tags-file-name' value, whereas others might use `tags-table-list'. Furthermore, lisp/TAGS doesn't include src/TAGS (it's the other way around), so `tags-completion-table' variable, judging by the above docstring, should only store its tags. Even when there are no buffer-local values involved. > IOW, it reuses the existing value of tags-completion-table (the > variable). However, visiting the second TAGS table didn't update the > completion table, so you get "No match". See above.