From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#50303: Add interlinks to docstrings of inverse abbrev Date: Tue, 31 Aug 2021 19:45:32 +0300 Organization: LINKOV.NET Message-ID: <87tuj5shs3.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/x-diff Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25503"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) To: 50303@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 31 19:10:39 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 1mL7HS-0006V9-9s for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 31 Aug 2021 19:10:38 +0200 Original-Received: from localhost ([::1]:33536 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mL7HQ-0008WD-RB for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 31 Aug 2021 13:10:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49830) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mL77D-0005l3-0N for bug-gnu-emacs@gnu.org; Tue, 31 Aug 2021 13:00:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52014) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mL77C-0004g4-MP for bug-gnu-emacs@gnu.org; Tue, 31 Aug 2021 13:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mL77C-00083d-FY for bug-gnu-emacs@gnu.org; Tue, 31 Aug 2021 13:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 31 Aug 2021 17:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50303 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.163042916130841 (code B ref -1); Tue, 31 Aug 2021 17:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Aug 2021 16:59:21 +0000 Original-Received: from localhost ([127.0.0.1]:35325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mL76X-00081N-5D for submit@debbugs.gnu.org; Tue, 31 Aug 2021 12:59:21 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:47956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mL76S-00081C-Rp for submit@debbugs.gnu.org; Tue, 31 Aug 2021 12:59:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49708) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mL76R-0004qR-5k for bug-gnu-emacs@gnu.org; Tue, 31 Aug 2021 12:59:16 -0400 Original-Received: from relay9-d.mail.gandi.net ([217.70.183.199]:52143) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mL76N-0003xh-FH for bug-gnu-emacs@gnu.org; Tue, 31 Aug 2021 12:59:14 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id B50D7FF803 for ; Tue, 31 Aug 2021 16:59:06 +0000 (UTC) Content-Disposition: inline; filename=abbrev-docstrings.patch Received-SPF: pass client-ip=217.70.183.199; envelope-from=juri@linkov.net; helo=relay9-d.mail.gandi.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, 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:213113 Archived-At: diff --git a/lisp/abbrev.el b/lisp/abbrev.el index 54783db2c3..0d754cc9cf 100644 --- a/lisp/abbrev.el +++ b/lisp/abbrev.el @@ -287,6 +287,7 @@ add-mode-abbrev or zero means the region is the expansion. A negative argument means to undefine the specified abbrev. Reads the abbreviation in the minibuffer. +You can also use the opposite command `inverse-add-mode-abbrev'. Don't use this function in a Lisp program; use `define-abbrev' instead." (interactive "p") @@ -303,6 +304,7 @@ add-global-abbrev expansion; or zero means the region is the expansion. A negative argument means to undefine the specified abbrev. This command uses the minibuffer to read the abbreviation. +You can also use the opposite command `inverse-add-global-abbrev'. Don't use this function in a Lisp program; use `define-abbrev' instead." (interactive "p") @@ -330,7 +332,8 @@ inverse-add-mode-abbrev "Define last word before point as a mode-specific abbrev. With prefix argument N, defines the Nth word before point. This command uses the minibuffer to read the expansion. -Expands the abbreviation after defining it." +Expands the abbreviation after defining it. +You can also use the opposite command `add-mode-abbrev'." (interactive "p") (inverse-add-abbrev (if only-global-abbrevs @@ -343,7 +346,8 @@ inverse-add-global-abbrev "Define last word before point as a global (mode-independent) abbrev. With prefix argument N, defines the Nth word before point. This command uses the minibuffer to read the expansion. -Expands the abbreviation after defining it." +Expands the abbreviation after defining it. +You can also use the opposite command `add-global-abbrev'." (interactive "p") (inverse-add-abbrev global-abbrev-table "Global" n))