From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Allow xref to use other than current major-mode Date: Tue, 25 Aug 2015 18:15:45 -0400 Message-ID: References: <86fv37it65.fsf@stephe-leake.org> <55DC5612.9050704@yandex.ru> <867fojidv4.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1440541124 1718 80.91.229.3 (25 Aug 2015 22:18:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Aug 2015 22:18:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 26 00:18:37 2015 Return-path: Envelope-to: ged-emacs-devel@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 1ZUMY8-0004VN-22 for ged-emacs-devel@m.gmane.org; Wed, 26 Aug 2015 00:18:36 +0200 Original-Received: from localhost ([::1]:34932 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUMY7-0001yq-Eo for ged-emacs-devel@m.gmane.org; Tue, 25 Aug 2015 18:18:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUMVY-0006c5-Uu for emacs-devel@gnu.org; Tue, 25 Aug 2015 18:15:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUMVT-0006aL-Qo for emacs-devel@gnu.org; Tue, 25 Aug 2015 18:15:56 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:13721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUMVT-0006a3-Dn for emacs-devel@gnu.org; Tue, 25 Aug 2015 18:15:51 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AsEwA731xV/5P+d0tcgxCEAoVVuzcJh0sEAgKBPDkUAQEBAQEBAYEKQQWDXQEBAwFWIwULCzQSFBgNJIg3CM8jAQEBAQYCAR+LOoUFB4QtBZ8XhmmNP4FFI4QUIoJ4AQEB X-IPAS-Result: A0AsEwA731xV/5P+d0tcgxCEAoVVuzcJh0sEAgKBPDkUAQEBAQEBAYEKQQWDXQEBAwFWIwULCzQSFBgNJIg3CM8jAQEBAQYCAR+LOoUFB4QtBZ8XhmmNP4FFI4QUIoJ4AQEB X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="161373969" Original-Received: from 75-119-254-147.dsl.teksavvy.com (HELO ceviche.home) ([75.119.254.147]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 25 Aug 2015 18:15:50 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 3D7676620D; Tue, 25 Aug 2015 18:15:45 -0400 (EDT) In-Reply-To: <867fojidv4.fsf@stephe-leake.org> (Stephen Leake's message of "Tue, 25 Aug 2015 10:31:27 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:189181 Archived-At: > I've started writing such a thing, but it gets defeated by the fact that > xref--read-identifier uses the buffer-local value of > xref-identifier-completion-table-function, which is set by elisp-mode > (or c-mode, etc, or by default to etags). There's no way to change that. Could it help if those major modes were careful to use add-function and to not completely override the global value? Stefan