From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#25357: 25.1; Doc for `cursor-sensor-mode' (and modes generally) Date: Thu, 5 Jan 2017 21:50:29 -0800 (PST) Message-ID: References: <9ad8b225-73da-4533-a676-b0f8e84e54ca@default> <878tqq5fw2.fsf@users.sourceforge.net> <678f8299-e6e8-4b08-a412-bf367194f6d7@default> <87a8b44z72.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1483681877 23306 195.159.176.226 (6 Jan 2017 05:51:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 6 Jan 2017 05:51:17 +0000 (UTC) Cc: 25357@debbugs.gnu.org To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 06 06:51:13 2017 Return-path: Envelope-to: geb-bug-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 1cPNQg-0004vG-Og for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Jan 2017 06:51:06 +0100 Original-Received: from localhost ([::1]:50306 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPNQl-0000sG-1V for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Jan 2017 00:51:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43263) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPNQf-0000s7-HS for bug-gnu-emacs@gnu.org; Fri, 06 Jan 2017 00:51:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cPNQc-00025i-Em for bug-gnu-emacs@gnu.org; Fri, 06 Jan 2017 00:51:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57083) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cPNQc-00025e-Bx for bug-gnu-emacs@gnu.org; Fri, 06 Jan 2017 00:51:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cPNQc-0004A9-1q for bug-gnu-emacs@gnu.org; Fri, 06 Jan 2017 00:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Jan 2017 05:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25357 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25357-submit@debbugs.gnu.org id=B25357.148368184615976 (code B ref 25357); Fri, 06 Jan 2017 05:51:02 +0000 Original-Received: (at 25357) by debbugs.gnu.org; 6 Jan 2017 05:50:46 +0000 Original-Received: from localhost ([127.0.0.1]:44249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cPNQL-00049c-TQ for submit@debbugs.gnu.org; Fri, 06 Jan 2017 00:50:46 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:49645) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cPNQJ-00049N-6W for 25357@debbugs.gnu.org; Fri, 06 Jan 2017 00:50:43 -0500 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v065oZUv026734 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 6 Jan 2017 05:50:36 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v065oYtM014265 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 6 Jan 2017 05:50:35 GMT Original-Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id v065oVu0009702; Fri, 6 Jan 2017 05:50:32 GMT In-Reply-To: <87a8b44z72.fsf@users.sourceforge.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6753.5000 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:127814 Archived-At: > > ** How so, "again"? Here we are telling someone how to turn it > > on interactively. I think we should also tell them how to do it > > using Lisp. >=20 > This is a subjective thing of course. I guess it seems obvious to me > that a command can be called as a function, and it's explained in > `(elisp) What Is a Function'. Adding cross references to that in every > place we talk about invoking some command is just clutter. Yes, of course. But I don't think it is obvious to some who read the _Emacs_ manual how they might turn on a major mode using Lisp. I've seen enough people confused about this, especially given the very different way they turn on a minor mode (which is better documented, if still inadequate - see the bug about minor-mode doc strings). You may say that such users do not _need_ to invoke a major mode function from Lisp. And if they do, and they do it the usual way (for a file), they do it using `auto-mode-alist'. Still, some try to do it using `(the-mode-name ...)', passing various things as argument. They guess... I don't see anywhere in the Elisp manual a simple statement that they just need to use `(the-mode-name)'. AND that it is generally a good idea to use `auto-mode-alist' when the buffer is a file buffer. I don't feel strongly about any of this, but I do think it could help some users to lay it out explicitly.