From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#25357: 25.1; Doc for `cursor-sensor-mode' (and modes generally) Date: Wed, 4 Jan 2017 14:27:38 -0500 Message-ID: References: <9ad8b225-73da-4533-a676-b0f8e84e54ca@default> 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 1483558092 1699 195.159.176.226 (4 Jan 2017 19:28:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 4 Jan 2017 19:28:12 +0000 (UTC) Cc: 25357@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 04 20:28:08 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 1cOrEF-0008IF-Kg for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Jan 2017 20:28:07 +0100 Original-Received: from localhost ([::1]:41102 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOrEJ-0005qQ-KC for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Jan 2017 14:28:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOrED-0005qK-J7 for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2017 14:28:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOrEA-00023R-Bv for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2017 14:28:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54264) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cOrEA-00023L-7v for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2017 14:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cOrEA-0006H4-0Y for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2017 14:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Jan 2017 19:28:01 +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.148355806624087 (code B ref 25357); Wed, 04 Jan 2017 19:28:01 +0000 Original-Received: (at 25357) by debbugs.gnu.org; 4 Jan 2017 19:27:46 +0000 Original-Received: from localhost ([127.0.0.1]:41430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cOrDt-0006GR-RR for submit@debbugs.gnu.org; Wed, 04 Jan 2017 14:27:46 -0500 Original-Received: from mail-oi0-f65.google.com ([209.85.218.65]:33608) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cOrDs-0006GF-JQ for 25357@debbugs.gnu.org; Wed, 04 Jan 2017 14:27:44 -0500 Original-Received: by mail-oi0-f65.google.com with SMTP id f201so76118900oib.0 for <25357@debbugs.gnu.org>; Wed, 04 Jan 2017 11:27:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=2mvf+L1sDd75CvKi7CCGNOH659dWYta7Uyo4y2AooaM=; b=o1KKGxQVwAMyVsO97wUrF5vXuNH4CoUJuiXAQC9bp+jmPotoAqqD4RL6HfZgmLYtY3 MxzcaMMs4y1mGqwjdVgL5wdkSY4fjb1sx58qG8LlRYgVVYnLeUj7dIYIfRxSE9DoFjzd QE5wTgNMSM+/Q+DifX7UMX+UXzsP9EvAlWLdVtAeXiJ7Mf3gxRvDyERxrUN4aYCAMdGe NpaWiq1H422LX7f0C6og5sXUkPL8eGwD1oxhiLnBMhqshN7bsh66bbikPcxwaczjR7RJ py/FBWSNkKKWXUAfxuxxO6VvPSQ3wJOH32mmDGCk9UXTRcbAV21mVoHphtLXEHExNHzh rVbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=2mvf+L1sDd75CvKi7CCGNOH659dWYta7Uyo4y2AooaM=; b=OVVyFsxnlGr5FanEyW3bOxippdkuOx2EgbInqKufny99bBhKHl2sPldCbiaWgxdDha MKhADBUjiYB4zpqW0ruduQAUvh3h+lY5QCbHHbi9khFhU2acT8fX8YgvGzVjYDH1Q5uP 5uj2f/M8mTp38awInPKxILcpfMUqjMUMH3/UyCBJLyenUAimCgeOfbCFox86CwPFyeG+ 4RYMb6QG5+gK4xZU4K+OnQLgEDCCpSAXa0CfP+gEWghHYpikdM4ENXv3lVnSzCg4pbuI /AoQ6BxFSOp1i8LuKMbFlxX97nHbSok/BaNAumBmojRJniJOHNeTfGAmGfs8v9Pzwzs1 WUeQ== X-Gm-Message-State: AIkVDXIBZ9QVuMnqztG3XW17YoTEKsZnXiw7X0c1xDsF8yczF9asAcfTM738CnMmcqP9yjQEhaqv0nyFaopB8A== X-Received: by 10.202.63.65 with SMTP id m62mr33740678oia.167.1483558058865; Wed, 04 Jan 2017 11:27:38 -0800 (PST) Original-Received: by 10.157.45.104 with HTTP; Wed, 4 Jan 2017 11:27:38 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: r96OB3cxBNLOjxOJ6Hieum5HeLA 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:127751 Archived-At: On Wed, Jan 4, 2017 at 2:06 PM, Drew Adams wrote: > > 1. The doc string should say that it is a minor mode, and say how > to change the value (on/off). I think this has been addressed by > bug #20462. I agree. > > 2. (This bug) The manuals should document how to turn on/off a major mode > using Lisp. Please retitle this bug appropriately. `(emacs) Major Modes' says You can explicitly select a new major mode by using an M-x command. Take the name of the mode and add -mode to get the name of the command to select that mode (e.g., M-x lisp-mode enters Lisp mode). Do you really think it's necessary to explain here how evaluating (foo-mode) is equivalent to running M-x foo-mode? `(elisp) Major Modes' says Major modes specialize Emacs for editing particular kinds of text. Each buffer has one major mode at a time. Every major mode is associated with a major mode command, whose name should end in =E2=80=98-mode=E2=80=99. This command takes care of switching to that mode = in the current buffer Do you really think it's necessary to explain how to call a command from elisp here? The first hit in the index for `command' gives command An object which can be invoked via the command-execute primitive, usually due to the user typing in a key sequence bound to that command. See Interactive Call. A command is usually a function; if the function is written in Lisp, it is made into a command by an interactive form in the function definition (see Defining Commands). Commands that are functions can also be called from Lisp expressions, just like other functions.