From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Krishnakant Newsgroups: gmane.emacs.help Subject: Re: Major and minor modes Date: Mon, 19 Jun 2017 10:13:42 +0530 Message-ID: <4bcf7522-a893-f0d7-ef3e-380cd718ba30@openmailbox.org> References: <5202e0d6-4476-4e97-a5cb-f1ee66d562c3@default> <87poe75i3g.fsf@debian.uxu> <87mv96aeqw.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1497847472 925 195.159.176.226 (19 Jun 2017 04:44:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 19 Jun 2017 04:44:32 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 To: Narendra Joshi , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 19 06:44:26 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 1dMoY2-0008Gx-Sy for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Jun 2017 06:44:23 +0200 Original-Received: from localhost ([::1]:40592 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMoY7-0008JJ-VA for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Jun 2017 00:44:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMoXi-0008J2-BB for help-gnu-emacs@gnu.org; Mon, 19 Jun 2017 00:44:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMoXf-0001La-7a for help-gnu-emacs@gnu.org; Mon, 19 Jun 2017 00:44:02 -0400 Original-Received: from lb1.openmailbox.org ([5.79.108.160]:60492 helo=mail.openmailbox.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dMoXe-0001Kw-VY for help-gnu-emacs@gnu.org; Mon, 19 Jun 2017 00:43:59 -0400 Original-Received: by mail.openmailbox.org (Postfix, from userid 20002) id 0F4E850CE48; Mon, 19 Jun 2017 06:43:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1497847436; bh=nLU0g4hJI3kZK2q7BF3L950RWoXmgRXfkUVRiO+u5zo=; h=Subject:To:References:From:Date:In-Reply-To:From; b=zjXJss3tfJGz82aggCuU1AcoZGXLmpjxLjAB/nux9mSBQMFBV+6hEYBl3EdzRSnn+ T1Q9AvBx6me8FQgvGxTAWn3d7iEcHYe0BF9YUwcESasgstuwr+Lrd/eCYqpMGthiKV AYMUC3cGccnC/hFV8xcsED0VKPvFnOnPddp9ljIY= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1497847434; bh=nLU0g4hJI3kZK2q7BF3L950RWoXmgRXfkUVRiO+u5zo=; h=Subject:To:References:From:Date:In-Reply-To:From; b=dKXw5fkR4QadFWnKGfp6XSCJOpFxza5zdpELvLup5E7zv37x7mlVK4nWfkjqGCUMJ VNh623ANkoqVKuClmHQKd6k9sjxXlkmgJeq5GHP3Nq+54YQxGufkRst5/vZbMfQkRh ewyaC/xp5zejCrJOWRTNwB3pPYYAJSOAkRvA46MA= In-Reply-To: <87mv96aeqw.fsf@gmail.com> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 5.79.108.160 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:113525 Archived-At: On Saturday 17 June 2017 07:38 PM, Narendra Joshi wrote: > Emanuel Berg writes: > >> Drew Adams writes: >> >>> A minor mode can be buffer-specific (local) or not >>> (global). Minor-mode key bindings override >>> major-mode key bindings. >> Good point. This goes against the intuition of some >> people who think what is bigger should be the boss, >> period. >> >> One can think of it like a compass needle. It works on >> the magneticism of Earth itself. However put a small >> magnet next to it, and it will override the entire >> planet! It is thoughtworthy. > Wow! This is an awesome analogy. I really like it. :) > >> I suppose the "size" in this matter isn't the size >> alone but also the *proximity*, just like with Emacs >> major and minor modes, the minor mode being closer to >> the user... > wonderful example, it's some thing I am going to use in my seminars to teach Emacs. The proximity based explanation should be used by every one who tries to teach Emacs to newbies. I am going to add this as a comment to my blog. Happy hacking. Krishnakant.