From unknown Sat Aug 16 16:56:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50064: [PATCH] Do interactive mode tagging for shortdoc.el 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 To: 50064@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16290096458068 (code B ref -1); Sun, 15 Aug 2021 06:41:01 +0000 Received: (at submit) by debbugs.gnu.org; 15 Aug 2021 06:40:45 +0000 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 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 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 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== 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) From: tsuucat Content-Type: multipart/mixed; boundary="Apple-Mail=_D798EBE1-4377-4627-8138-8026045344C1" Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Message-Id: <746D24DB-F0FE-4F28-AF98-BC40E2313361@icloud.com> Date: Sun, 15 Aug 2021 15:40:25 +0900 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-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --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-- From unknown Sat Aug 16 16:56:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50064: [PATCH] Do interactive mode tagging for shortdoc.el Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Aug 2021 09:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50064 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: tsuucat Cc: 50064@debbugs.gnu.org Received: via spool by 50064-submit@debbugs.gnu.org id=B50064.162902132826968 (code B ref 50064); Sun, 15 Aug 2021 09:56:02 +0000 Received: (at 50064) by debbugs.gnu.org; 15 Aug 2021 09:55:28 +0000 Received: from localhost ([127.0.0.1]:45777 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mFCrY-00070u-3K for submit@debbugs.gnu.org; Sun, 15 Aug 2021 05:55:28 -0400 Received: from quimby.gnus.org ([95.216.78.240]:56492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mFCrU-00070J-5z for 50064@debbugs.gnu.org; Sun, 15 Aug 2021 05:55:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=bzAUavDgcvUIzl/DWu7EmsF/YXX1RHxMfzii9P3jtnU=; b=RZqwUCqezc6YEaJ039VFxjIVJ2 obHfJ+np6jdp/JEUAK+bMFbiZWEE2QPxndTg6+5rfT/89En7+YTCM3N0hWzPS8ffRNzGMezjr0Kot dgf/yx9np6+OREeGR+zWsGX8jppoV/Q5KkJ01KCUvK91kO6fKPBusx35ZZ+om8h0l10Y=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mFCrJ-0006xU-Fp; Sun, 15 Aug 2021 11:55:17 +0200 From: Lars Ingebrigtsen References: <746D24DB-F0FE-4F28-AF98-BC40E2313361@icloud.com> Date: Sun, 15 Aug 2021 11:55:11 +0200 In-Reply-To: <746D24DB-F0FE-4F28-AF98-BC40E2313361@icloud.com> (tsuucat@icloud.com's message of "Sun, 15 Aug 2021 15:40:25 +0900") Message-ID: <87o89zoww0.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tsuucat writes: > I tried shortdoc.el in Emacs 28 and I noticed =?UTF-8?Q?shortdoc=E2=80=99s?= commands =?UTF-8?Q?don=E2=80=99t?= > have interactive mode tags. So I made a patch. > > If shortdoc.el is not uploaded to elpa (or only supports Emacs 28 or [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tsuucat writes: > 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; applied to Emacs 28. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 15 05:55:31 2021 Received: (at control) by debbugs.gnu.org; 15 Aug 2021 09:55:32 +0000 Received: from localhost ([127.0.0.1]:45780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mFCrb-00071I-9l for submit@debbugs.gnu.org; Sun, 15 Aug 2021 05:55:31 -0400 Received: from quimby.gnus.org ([95.216.78.240]:56506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mFCrZ-00070W-FM for control@debbugs.gnu.org; Sun, 15 Aug 2021 05:55:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=nkc3uqllR2HiNG2Zpb1H93ed5udp08n/bYk8cVhH9WU=; b=BlKn9AM6OXKJkP4b7D7bLOJEXa 2xCmwotUcNvp7/2am32z9MX/6TtXxtthohwIZi9ZidNW8SuT6M8yEiyi9eaXL/rRJ5fW09aYrHppL 83ylS6/+wF3y0fSlnkMDR12rAe+aqVsN9k2Mkaa4IQDYOapA5+g1D6z2XNvW3ANIWgu8=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mFCrR-0006xd-B7 for control@debbugs.gnu.org; Sun, 15 Aug 2021 11:55:23 +0200 Date: Sun, 15 Aug 2021 11:55:20 +0200 Message-Id: <87mtpjowvr.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #50064 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 50064 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 50064 28.1 quit