From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: tsuucat via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#50064: [PATCH] Do interactive mode tagging for shortdoc.el Date: Sun, 15 Aug 2021 15:40:25 +0900 Message-ID: <746D24DB-F0FE-4F28-AF98-BC40E2313361@icloud.com> Reply-To: tsuucat Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_D798EBE1-4377-4627-8138-8026045344C1" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21664"; mail-complaints-to="usenet@ciao.gmane.io" To: 50064@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 15 08:41:12 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mF9pX-0005Tx-Mc for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Aug 2021 08:41:11 +0200 Original-Received: from localhost ([::1]:55200 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mF9pW-0005Mz-8q for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Aug 2021 02:41:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38952) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mF9pO-0005Ma-Ab for bug-gnu-emacs@gnu.org; Sun, 15 Aug 2021 02:41:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34088) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mF9pO-0002sP-0N for bug-gnu-emacs@gnu.org; Sun, 15 Aug 2021 02:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mF9pN-00026l-SL for bug-gnu-emacs@gnu.org; Sun, 15 Aug 2021 02:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: tsuucat Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Aug 2021 06:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50064 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16290096458068 (code B ref -1); Sun, 15 Aug 2021 06:41:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Aug 2021 06:40:45 +0000 Original-Received: from localhost ([127.0.0.1]:45634 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mF9p3-000261-WB for submit@debbugs.gnu.org; Sun, 15 Aug 2021 02:40:45 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:42688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mF9oy-00025p-5P for submit@debbugs.gnu.org; Sun, 15 Aug 2021 02:40:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38938) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mF9ox-0005Gf-RW for bug-gnu-emacs@gnu.org; Sun, 15 Aug 2021 02:40:35 -0400 Original-Received: from pv50p00im-ztdg10011201.me.com ([17.58.6.39]:48966) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mF9ow-0002Rk-Gy for bug-gnu-emacs@gnu.org; Sun, 15 Aug 2021 02:40:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1629009628; bh=+ssd+VpfsGeqzc9wrwsG0Mphp/Iy/HabjHHqPsmBTMw=; h=From:Content-Type:Mime-Version:Subject:Message-Id:Date:To; b=x7k0HJsUeKfNKtSbe2OrcaG8599I4D508IXoONaGsg1CHundTbN/ebXaYHoNwSqpa vkwylgy47p97hfjEb+2c20WaidOZeZdnjzhkrkw6usdYwbrWLMMxNTtWLxHXhMLRNl uzLBXYBzBRoiGBiRdXejAihX38QJVLmhjZrjjfq2SURloEM9TAU5an4jFDEnJByyqh aal7vh05NoBeN23uIiNqsjLYK/RQbaKhCYyRgopknuj70Xm8P+B0q3Ye1QiNt2Ev14 ciaVHRfibPT/on4vQ5njwkOBctnAUpdBIKdXDe7nl/FShhNUU+ykC+sSyl2e/nZJjm mjPVyGGlLxqZQ== Original-Received: from smtpclient.apple (M106073010160.v4.enabler.ne.jp [106.73.10.160]) by pv50p00im-ztdg10011201.me.com (Postfix) with ESMTPSA id 38AA72A0326 for ; Sun, 15 Aug 2021 06:40:28 +0000 (UTC) X-Mailer: Apple Mail (2.3654.100.0.2.22) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-08-15_02:2021-08-13, 2021-08-15 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=773 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2009150000 definitions=main-2108150045 Received-SPF: pass client-ip=17.58.6.39; envelope-from=tsuucat@icloud.com; helo=pv50p00im-ztdg10011201.me.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:211867 Archived-At: --Apple-Mail=_D798EBE1-4377-4627-8138-8026045344C1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I tried shortdoc.el in Emacs 28 and I noticed shortdoc=E2=80=99s = commands don=E2=80=99t=20 have interactive mode tags. So I made a patch. If shortdoc.el is not uploaded to elpa (or only supports Emacs 28 or higher), this patch can be acceptable. Thanks. -- tsuucat --Apple-Mail=_D798EBE1-4377-4627-8138-8026045344C1 Content-Disposition: attachment; filename=0001-Mark-up-commands-in-shortdoc.el-for-modes.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-Mark-up-commands-in-shortdoc.el-for-modes.patch" Content-Transfer-Encoding: quoted-printable =46rom=20fd6c2dea02e81efda05d967ffd36474739db4bd0=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20Masahiro=20Nakamura=20=0A= Date:=20Sun,=2015=20Aug=202021=2014:31:04=20+0900=0ASubject:=20[PATCH]=20= Mark=20up=20commands=20in=20shortdoc.el=20for=20modes=0A=0A---=0A=20= lisp/emacs-lisp/shortdoc.el=20|=2011=20++++++-----=0A=201=20file=20= changed,=206=20insertions(+),=205=20deletions(-)=0A=0Adiff=20--git=20= a/lisp/emacs-lisp/shortdoc.el=20b/lisp/emacs-lisp/shortdoc.el=0Aindex=20= a74a5a4225..1b0fbfdf71=20100644=0A---=20a/lisp/emacs-lisp/shortdoc.el=0A= +++=20b/lisp/emacs-lisp/shortdoc.el=0A@@=20-1317,7=20+1317,8=20@@=20= shortdoc-mode-map=0A=20=20=20"Keymap=20for=20`shortdoc-mode'.")=0A=20=0A=20= (define-derived-mode=20shortdoc-mode=20special-mode=20"shortdoc"=0A-=20=20= "Mode=20for=20shortdoc.")=0A+=20=20"Mode=20for=20shortdoc."=0A+=20=20= :interactive=20nil)=0A=20=0A=20(defun=20shortdoc--goto-section=20(arg=20= sym=20&optional=20reverse)=0A=20=20=20(unless=20(natnump=20arg)=0A@@=20= -1332,26=20+1333,26=20@@=20shortdoc--goto-section=0A=20(defun=20= shortdoc-next=20(&optional=20arg)=0A=20=20=20"Move=20cursor=20to=20the=20= next=20function.=0A=20With=20ARG,=20do=20it=20that=20many=20times."=0A-=20= =20(interactive=20"p")=0A+=20=20(interactive=20"p"=20shortdoc-mode)=0A=20= =20=20(shortdoc--goto-section=20arg=20'shortdoc-function))=0A=20=0A=20= (defun=20shortdoc-previous=20(&optional=20arg)=0A=20=20=20"Move=20cursor=20= to=20the=20previous=20function.=0A=20With=20ARG,=20do=20it=20that=20many=20= times."=0A-=20=20(interactive=20"p")=0A+=20=20(interactive=20"p"=20= shortdoc-mode)=0A=20=20=20(shortdoc--goto-section=20arg=20= 'shortdoc-function=20t)=0A=20=20=20(backward-char=201))=0A=20=0A=20= (defun=20shortdoc-next-section=20(&optional=20arg)=0A=20=20=20"Move=20= cursor=20to=20the=20next=20section.=0A=20With=20ARG,=20do=20it=20that=20= many=20times."=0A-=20=20(interactive=20"p")=0A+=20=20(interactive=20"p"=20= shortdoc-mode)=0A=20=20=20(shortdoc--goto-section=20arg=20= 'shortdoc-section))=0A=20=0A=20(defun=20shortdoc-previous-section=20= (&optional=20arg)=0A=20=20=20"Move=20cursor=20to=20the=20previous=20= section.=0A=20With=20ARG,=20do=20it=20that=20many=20times."=0A-=20=20= (interactive=20"p")=0A+=20=20(interactive=20"p"=20shortdoc-mode)=0A=20=20= =20(shortdoc--goto-section=20arg=20'shortdoc-section=20t)=0A=20=20=20= (forward-line=20-2))=0A=20=0A--=20=0A2.28.0=0A=0A= --Apple-Mail=_D798EBE1-4377-4627-8138-8026045344C1--