From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Shahid Newsgroups: gmane.emacs.bugs Subject: bug#10754: define-minor-mode and doc of derived mode Date: Sun, 17 Jun 2018 23:19:23 +0000 Message-ID: <87bmc9uhl0.fsf@gmail.com> References: <87po12g7x4.fsf@gmail.com> <0edf0759-1044-4c6f-b70a-addebc9078f8@default> <87in6trm00.fsf@gmail.com> <83y3ffypek.fsf@gnu.org> <87fu1lv24d.fsf@gmail.com> <87d0wpurh5.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1529277490 32642 195.159.176.226 (17 Jun 2018 23:18:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 17 Jun 2018 23:18:10 +0000 (UTC) User-Agent: mu4e 1.1.0; emacs 27.0.50 Cc: 10754@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 18 01:18:06 2018 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 1fUgvt-0008OJ-9W for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Jun 2018 01:18:05 +0200 Original-Received: from localhost ([::1]:56676 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUgy0-000769-FN for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Jun 2018 19:20:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUgxq-00075K-VF for bug-gnu-emacs@gnu.org; Sun, 17 Jun 2018 19:20:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fUgxm-0004eb-1x for bug-gnu-emacs@gnu.org; Sun, 17 Jun 2018 19:20:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46250) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fUgxl-0004eT-Tj for bug-gnu-emacs@gnu.org; Sun, 17 Jun 2018 19:20:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fUgxl-0001BP-Hq for bug-gnu-emacs@gnu.org; Sun, 17 Jun 2018 19:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: John Shahid Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Jun 2018 23:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10754 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10754-submit@debbugs.gnu.org id=B10754.15292775784508 (code B ref 10754); Sun, 17 Jun 2018 23:20:01 +0000 Original-Received: (at 10754) by debbugs.gnu.org; 17 Jun 2018 23:19:38 +0000 Original-Received: from localhost ([127.0.0.1]:54147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fUgxN-0001Ad-NV for submit@debbugs.gnu.org; Sun, 17 Jun 2018 19:19:38 -0400 Original-Received: from mail-qt0-f182.google.com ([209.85.216.182]:42576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fUgxL-0001AP-HA for 10754@debbugs.gnu.org; Sun, 17 Jun 2018 19:19:36 -0400 Original-Received: by mail-qt0-f182.google.com with SMTP id y31-v6so13705751qty.9 for <10754@debbugs.gnu.org>; Sun, 17 Jun 2018 16:19:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=8YfDSNA8sD60eBuUXmou+DaNS+1wH4VjupMT7AIhwy8=; b=eYaUXMnZZNXqEklkz4XlGSmBD6DeToqs70vDusIxxyzWqpI2ysH0TNhMEHJLo7+rXF 1hvJa7qKSuHR08Ko6c9Rb+gGAK8FES7NN6pdtMmO/OKxTCS9CWMqWStofwror/apGthX DwPXSU/dtMqb2LHoYNfulbiyZQhUBbpizacgUHXOuwqnRl4L3pHNisVS7zNB7eOYHdQu 7W7uCSb/yzMjgJccqTj0POjaAKJongUNPVQblq+AcUj3DR3QvwPRE39yOIHT7QW9ETsJ YIkZqFN15dISY5tvt0FGEtF1MqCnX91zQfeRSXJAey/24PJoiob5Ek5cUc4HNPRHnMS6 OnJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=8YfDSNA8sD60eBuUXmou+DaNS+1wH4VjupMT7AIhwy8=; b=RohGPk8A3Mq6y4QDrfyBlr/LPlbCKzbnwBBYRKLJHwLfNG3MT9yOdgJib2d5XPg0nT /jxJFGE2CRMrHX80+QL0T22h1J8k61wf0TJI/0+zk6P5GuOVUu1zipZ+kZbONv4Mnkky qajTQteo4h3muZZy2i5F4dzFHiXW96F/7ryZeHEqDDcCdcFker6+Q0T7TXVVBsCHjbEz xAx51DOOYHmfTBCeiDU7NPIJXzSqH6rCmdyx/7gqPa0jFqsKwCLfC/Sc4JKaMoA97juM NIacwGW+Ou3rp+QnNtMIFmbkidTHbAE71xySzz3LSOu6Z0y3SY6AzSGaTQTvdk9RTr5L w/7Q== X-Gm-Message-State: APt69E3NORpBmCUY7pk4FiX09FY39pUdGXuXrLRRFGpuuGyXBDvQRdOa Vr2TaDRZLoHHXGFYhwbbXS0= X-Google-Smtp-Source: ADUXVKLINZhkjZub05b47/ilYbJ6ktJFlJQx7wRfqdvZuP61UtiSykRYaS2RbEZAwtcUCgZ047ojYw== X-Received: by 2002:aed:359d:: with SMTP id c29-v6mr8902604qte.240.1529277569794; Sun, 17 Jun 2018 16:19:29 -0700 (PDT) Original-Received: from dee925c335f3 (cpe-184-152-55-93.nyc.res.rr.com. [184.152.55.93]) by smtp.gmail.com with ESMTPSA id m70-v6sm10310226qkl.72.2018.06.17.16.19.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Jun 2018 16:19:28 -0700 (PDT) In-reply-to: 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:147587 Archived-At: Stefan Monnier writes: > I think we can avoid it by looking for the presence of ARG in > the docstring I think this can work, but it doesn't feel very elegant or obvious from the pov of the caller of `define-minor-mode'. What's wrong with adding an extra keyword arg ? > (or by simply always adding it, and then going through > the various minor modes and remove the corresponding text from their > docstrings). I think this change needs to be backward compatible. There could be other callers that aren't packaged with Emacs.