From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: exposing the effective mode in a multi-mode Date: Sun, 08 Oct 2017 15:20:07 -0600 Message-ID: <87tvz9uyk8.fsf@tromey.com> References: <874ls0c40s.fsf@tromey.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1507497687 24763 195.159.176.226 (8 Oct 2017 21:21:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 8 Oct 2017 21:21:27 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 08 23:21:21 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1J0h-0005M6-R6 for ged-emacs-devel@m.gmane.org; Sun, 08 Oct 2017 23:21:20 +0200 Original-Received: from localhost ([::1]:55160 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1J0o-0003g1-Vm for ged-emacs-devel@m.gmane.org; Sun, 08 Oct 2017 17:21:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1J04-0003ft-9n for emacs-devel@gnu.org; Sun, 08 Oct 2017 17:20:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1J01-0002Uc-6D for emacs-devel@gnu.org; Sun, 08 Oct 2017 17:20:40 -0400 Original-Received: from gproxy7-pub.mail.unifiedlayer.com ([70.40.196.235]:46065) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e1J00-0002FF-ST for emacs-devel@gnu.org; Sun, 08 Oct 2017 17:20:37 -0400 Original-Received: from CMOut01 (unknown [10.0.90.82]) by gproxy7.mail.unifiedlayer.com (Postfix) with ESMTP id 1972B215CD6 for ; Sun, 8 Oct 2017 15:20:14 -0600 (MDT) Original-Received: from box522.bluehost.com ([74.220.219.122]) by CMOut01 with id K9L71w00h2f2jeq019LAJd; Sun, 08 Oct 2017 15:20:14 -0600 X-Authority-Analysis: v=2.2 cv=K4VSJ2eI c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=02M-m0pO-4AA:10 a=iRZporoAAAAA:8 a=lvbRQq2rFDklTVThx5oA:9 a=NOBgFS-JBQ2l-kSd6-zu:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=LUjZ8U304wnjy1ykA0UzhU/NXWTCxw9Ug/2fhZotjGo=; b=cdkZaMJawWhce6QXkcAsJs5lVZ rvVoEuQ7cHf7UF5hViPBvrDSyc2lZw8296gNCUPy2Al2mBTHo3S/N3ec/BUb9jcpYX2z6lsscgDRx nDzi+Ks6STdh4lLCFPnLVBgt7; Original-Received: from 75-166-4-236.hlrn.qwest.net ([75.166.4.236]:44374 helo=bapiya) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1e1IzX-000tya-NX; Sun, 08 Oct 2017 15:20:07 -0600 X-Attribution: Tom In-Reply-To: (Stefan Monnier's message of "Tue, 19 Sep 2017 08:23:50 -0400") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box522.bluehost.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.4.236 X-Exim-ID: 1e1IzX-000tya-NX X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-4-236.hlrn.qwest.net (bapiya) [75.166.4.236]:44374 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 70.40.196.235 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:219272 Archived-At: >>>>> "Stefan" == Stefan Monnier writes: Stefan> at which point we may as well drop `prog-effective-mode`. I didn't commit this patch because I'm no longer sure it's the best approach. It might be better to instead have mhtml-mode save `major-mode' and set that when point enters a sub-mode region. This way other helping code would not have to be updated to find the effective mode. Tom