From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Phillip Lord" Newsgroups: gmane.emacs.help Subject: RE: Major and minor modes Date: Wed, 14 Jun 2017 07:37:41 -0000 Message-ID: <0530dedd384a96dd99ba3a2c9d301cfa.squirrel@cloud103.planethippo.com> References: <5202e0d6-4476-4e97-a5cb-f1ee66d562c3@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1497425958 15725 195.159.176.226 (14 Jun 2017 07:39:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Jun 2017 07:39:18 +0000 (UTC) User-Agent: SquirrelMail/1.5.2 [SVN] Cc: Help Gnu Emacs mailing list , Jean-Christophe Helary To: "Drew Adams" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 14 09:39:14 2017 Return-path: Envelope-to: geh-help-gnu-emacs@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 1dL2tV-0003jb-UV for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Jun 2017 09:39:14 +0200 Original-Received: from localhost ([::1]:46942 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dL2tX-0004zU-SD for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Jun 2017 03:39:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dL2sn-0004xl-VD for help-gnu-emacs@gnu.org; Wed, 14 Jun 2017 03:38:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dL2sj-00013r-0s for help-gnu-emacs@gnu.org; Wed, 14 Jun 2017 03:38:30 -0400 Original-Received: from cloud103.planethippo.com ([78.129.138.110]:54842) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dL2si-0000Gr-NE for help-gnu-emacs@gnu.org; Wed, 14 Jun 2017 03:38:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=russet.org.uk; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Cc:To:From:Subject:Date:References:In-Reply-To:Message-ID:Sender :Reply-To: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=yxzk40aV5qATo0ij2j64K/4TDxeHBH0nFTPN0FtvLlo=; b=U9k7+q16L1N6g+digKPpQ8HkGB USfVKwUz0rbOOZ7BmuAw0FGkozHITWW3RHU6Puu6qHCFu9pu0W5MmpQ2GI/sCVeWMF2WKiiia9wgI t5NHL08lmGfMc4DoLpzRyVmRMPzoXu4hRYEi7EgtYjWLr15z/JkH6hGFbgCfRW6T010shvXHWzD/G 13VdYZARhD5fNOEaF2qaXcWHkZiXFfNgk/Bg/F6cWJlhnLB9dnUCWJwH8s9OPDHEnlhveipGin/Dx m9hlinhFefVNDhrwL7b6bnLnPFWXGp5P5bweKGWNtBVUPrY1bcssC9f9/ZuO/k03+5ut/01EVNQ76 j0nSUlsQ==; Original-Received: from [127.0.0.1] (port=40375 helo=cloud103.planethippo.com) by cloud103.planethippo.com with esmtpa (Exim 4.89) (envelope-from ) id 1dL2s1-003MSp-UV; Wed, 14 Jun 2017 07:37:42 +0000 Original-Received: from 92.233.204.101 ([92.233.204.101]) (SquirrelMail authenticated user phillip.lord@russet.org.uk) by cloud103.planethippo.com with HTTP; Wed, 14 Jun 2017 07:37:41 -0000 In-Reply-To: <5202e0d6-4476-4e97-a5cb-f1ee66d562c3@default> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud103.planethippo.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - russet.org.uk X-Get-Message-Sender-Via: cloud103.planethippo.com: authenticated_id: phillip.lord@russet.org.uk X-Authenticated-Sender: cloud103.planethippo.com: phillip.lord@russet.org.uk X-Source: X-Source-Args: X-Source-Dir: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 78.129.138.110 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:113445 Archived-At: On Wed, June 14, 2017 1:49 am, Drew Adams wrote: > A minor mode can be buffer-specific (local) or not (global). > Minor-mode key bindings override major-mode key bindings. > A minor mode can do anything at all. What it does need not > be specific for the content of any particular buffer, and hence for any > particular major mode. I have thought for a long time that there are two forms of minor mode which should be handled differently. Originally minor modes were clearly meant to be global (auto-fill, line-number mode that sort of thing). But there are lots of "single major mode" minor modes. Examples would be some of the electric minor modes, things like Slime, CIDER or ensime which are all minor modes more or less specific. My own feeling is that minor modes have poor usability for these purposes. Phil