From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: Allow xref to use other than current major-mode Date: Tue, 25 Aug 2015 16:13:52 -0500 Message-ID: <86twrngjfz.fsf@stephe-leake.org> References: <86fv37it65.fsf@stephe-leake.org> <55DC5612.9050704@yandex.ru> <867fojidv4.fsf@stephe-leake.org> <55DCA073.8090308@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1440537281 7529 80.91.229.3 (25 Aug 2015 21:14:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Aug 2015 21:14:41 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 25 23:14:29 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 1ZULY3-0008GV-OZ for ged-emacs-devel@m.gmane.org; Tue, 25 Aug 2015 23:14:27 +0200 Original-Received: from localhost ([::1]:34608 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZULY3-0007nV-8M for ged-emacs-devel@m.gmane.org; Tue, 25 Aug 2015 17:14:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZULXy-0007jt-Cy for emacs-devel@gnu.org; Tue, 25 Aug 2015 17:14:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZULXv-0002E0-6w for emacs-devel@gnu.org; Tue, 25 Aug 2015 17:14:22 -0400 Original-Received: from gproxy5-pub.mail.unifiedlayer.com ([67.222.38.55]:53745) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1ZULXu-0002Ds-Un for emacs-devel@gnu.org; Tue, 25 Aug 2015 17:14:19 -0400 Original-Received: (qmail 19656 invoked by uid 0); 25 Aug 2015 21:14:13 -0000 Original-Received: from unknown (HELO CMOut01) (10.0.90.82) by gproxy5.mail.unifiedlayer.com with SMTP; 25 Aug 2015 21:14:13 -0000 Original-Received: from host114.hostmonster.com ([74.220.207.114]) by CMOut01 with id 99E51r00E2UdiVW019E8U3; Tue, 25 Aug 2015 15:14:13 -0600 X-Authority-Analysis: v=2.1 cv=EbVbHpWC c=1 sm=1 tr=0 a=CQdxDb2CKd3SRg4I0/XZPQ==:117 a=CQdxDb2CKd3SRg4I0/XZPQ==:17 a=DsvgjBjRAAAA:8 a=f5113yIGAAAA:8 a=9i_RQKNPAAAA:8 a=y7kgw_RnJtkA:10 a=hEr_IkYJT6EA:10 a=x_XPkuGwIRMA:10 a=uRRa74qj2VoA:10 a=vaJtXVxTAAAA:8 a=Zz4UF-3pk9fISo4iopcA:9 Original-Received: from [76.218.37.33] (port=49179 helo=TAKVER2) by host114.hostmonster.com with esmtpa (Exim 4.84) (envelope-from ) id 1ZULXh-0003xP-RQ for emacs-devel@gnu.org; Tue, 25 Aug 2015 15:14:06 -0600 In-Reply-To: <55DCA073.8090308@yandex.ru> (Dmitry Gutov's message of "Tue, 25 Aug 2015 20:05:55 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt) X-Identified-User: {2442:host114.hostmonster.com:stephele:stephe-leake.org} {sentby:smtp auth 76.218.37.33 authed with stephen_leake@stephe-leake.org} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 67.222.38.55 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:189172 Archived-At: Dmitry Gutov writes: >> We could require the user to manually enable an xref minor mode in each >> buffer, but that's not friendly. > > We have "globalized" minor modes, to be used in similar situations. Ok. I missed that globalized minor modes are automatically run in every new buffer created, after the major mode hook. That's equivalent to putting the mode enable function on after-change-major-hook. I think it would be clearer to not have major modes set things that a minor mode will then unset, but I can live with it. -- -- Stephe