From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Piotr Kaznowski Newsgroups: gmane.emacs.bugs Subject: bug#34073: 26.1; Missing documentation for minor mode hook behavior Date: Mon, 14 Jan 2019 10:13:08 +0100 Message-ID: <20190114091307.f33jqe54syxtceeq@lenovo> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1547477966 16540 195.159.176.226 (14 Jan 2019 14:59:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 14 Jan 2019 14:59:26 +0000 (UTC) User-Agent: NeoMutt/20180716 To: 34073@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 14 15:59:21 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gj3hw-000485-He for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Jan 2019 15:59:20 +0100 Original-Received: from localhost ([127.0.0.1]:47581 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gj3k3-0005wD-EA for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Jan 2019 10:01:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gj3jh-0005rd-Kn for bug-gnu-emacs@gnu.org; Mon, 14 Jan 2019 10:01:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gj3jc-00054f-Us for bug-gnu-emacs@gnu.org; Mon, 14 Jan 2019 10:01:09 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59905) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gj3jb-00053u-Hg for bug-gnu-emacs@gnu.org; Mon, 14 Jan 2019 10:01:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gj3jb-0006Jm-EX for bug-gnu-emacs@gnu.org; Mon, 14 Jan 2019 10:01:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Piotr Kaznowski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Jan 2019 15:01:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34073 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.154747801624182 (code B ref -1); Mon, 14 Jan 2019 15:01:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Jan 2019 15:00:16 +0000 Original-Received: from localhost ([127.0.0.1]:59180 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gj3ip-0006Ht-IZ for submit@debbugs.gnu.org; Mon, 14 Jan 2019 10:00:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51559) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1giyJ9-0003rh-Jq for submit@debbugs.gnu.org; Mon, 14 Jan 2019 04:13:23 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:44335) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1giyJ3-0005nx-1i for submit@debbugs.gnu.org; Mon, 14 Jan 2019 04:13:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1giyJ2-0006Ld-4x for bug-gnu-emacs@gnu.org; Mon, 14 Jan 2019 04:13:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1giyJ0-0005n5-Fc for bug-gnu-emacs@gnu.org; Mon, 14 Jan 2019 04:13:16 -0500 Original-Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]:41280) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1giyJ0-0005mD-8A for bug-gnu-emacs@gnu.org; Mon, 14 Jan 2019 04:13:14 -0500 Original-Received: by mail-lj1-x22a.google.com with SMTP id k15-v6so18271693ljc.8 for ; Mon, 14 Jan 2019 01:13:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=QdtHMdu8rBNSH8YngGnQEdSv4vzNG3kPdPzv/dN+mLk=; b=UmE3cx4aeNVhMpFql99nuvojdrBIRi+oIGuoxaV078LfDsJhoRWq7pQ/yMhze8eJMp X9xuw3lSRWnTvmYXkbd1kAqIJkJ8znXRIoHI25dvfbobKDi9ANFM0CDZlMx6v0sbmukA onOwJGaQIV9NxB+1wLZZwoeN1Ut8yIEwMfOQNHaQU1Rxk9nW7j/9s0Hw5U4vPhM5rDWb DYZXI3t7ZlOSGP5zlDtDf+1w7cI+i+aWjWYGf5lxM9kB48MtZRUFtDBsJ/IMPYgjedd0 cKpgUPdpuXRkoFcKD/JwRVhfzNwszrLB1lkONqPz9s5O9A2Inxn/lLRIryyr/ouCS2hN fyyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=QdtHMdu8rBNSH8YngGnQEdSv4vzNG3kPdPzv/dN+mLk=; b=plUL1imEOZGEDJkIOc23sPPuYTuJE6dA1dQd9QXEFFzWM51HZ2SW2vFXJRMtn6i8/V LQtrsxuGCidt1NJu5ObUyynJrA8M8sQ6tWu0iCvWRRd8bDfbvLbeXjXiNLRJb6GqoMPX 4OJ/zrOpNlqdTpwA2/fQRHde6lX5aXbGK1OT9mod/TD32q6lCgCaLyHuKimM4VllHBEk zJc3u8f85s9DTZ0CBq6e1HwbMOOiD52IH9pv+HarJt0cKHH4qOpaGKDRFd0JBZJNYZbT 1yuJHL/ocaL18Go7AQmhPg5vPwBOXo4V7uWVyiwit9cZD0LtMZTiJFZqSZ3tPqQhF6f8 4Gag== X-Gm-Message-State: AJcUukeA4Aj5va02a5eqL/I4fBxjrRFxYTgpC1385DseuJK8gnFoWyL/ r4FY5QZ7UDOe9LeJ9Qy6ByHlJzK3I6I= X-Google-Smtp-Source: ALg8bN5eEYfvc0bwpZ71f2TMrCPPYq1ferBzNpdIBzDArsczTSlePZfv6b7EFUjTE3Bq/9WH1WHB2Q== X-Received: by 2002:a05:651c:c8:: with SMTP id 8mr13389920ljr.53.1547457190606; Mon, 14 Jan 2019 01:13:10 -0800 (PST) Original-Received: from lenovo (apn-77-113-33-140.dynamic.gprs.plus.pl. [77.113.33.140]) by smtp.gmail.com with ESMTPSA id 11-v6sm17051564ljv.1.2019.01.14.01.13.09 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 01:13:10 -0800 (PST) Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Mon, 14 Jan 2019 10:00:09 -0500 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: 209.51.188.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:154428 Archived-At: --text follows this line-- I couldn't find essential information about minor mode hooks behavior, namely that "The minor mode's hook is called both when activating and deactivating the minor mode" (as stated here: https://emacs.stackexchange.com/a/47092/17425). It isn't mentioned in the manual (sections "Minor Modes" and "Hooks"), nor in the docstring for `add-hook' function. Please consider adding this information in the relevant sections of the docs. Thank you.