From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#41742: 28.0.50; Derive gnus-edit-form-mode from lisp-data-mode Date: Sat, 06 Jun 2020 12:23:52 -0700 Message-ID: <87wo4kroaf.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="12066"; mail-complaints-to="usenet@ciao.gmane.io" To: 41742@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 06 21:26:15 2020 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 1jheSM-00036I-1C for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Jun 2020 21:26:14 +0200 Original-Received: from localhost ([::1]:47222 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jheSL-0002XU-4V for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Jun 2020 15:26:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41586) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jheRC-00019z-S5 for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2020 15:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40988) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jheRC-0006jD-J2 for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2020 15:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jheRC-0002Ki-Ft for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2020 15:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Jun 2020 19:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41742 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.15914714468888 (code B ref -1); Sat, 06 Jun 2020 19:25:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Jun 2020 19:24:06 +0000 Original-Received: from localhost ([127.0.0.1]:52534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jheQH-0002JH-RP for submit@debbugs.gnu.org; Sat, 06 Jun 2020 15:24:06 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:44370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jheQG-0002JA-FN for submit@debbugs.gnu.org; Sat, 06 Jun 2020 15:24:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jheQG-0000It-91 for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2020 15:24:04 -0400 Original-Received: from ericabrahamsen.net ([52.70.2.18]:48516 helo=mail.ericabrahamsen.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jheQF-0006Y0-9a for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2020 15:24:03 -0400 Original-Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 65CC9FA034 for ; Sat, 6 Jun 2020 19:23:54 +0000 (UTC) Received-SPF: pass client-ip=52.70.2.18; envelope-from=eric@ericabrahamsen.net; helo=mail.ericabrahamsen.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/06 15:23:55 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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:181633 Archived-At: --=-=-= Content-Type: text/plain Hopefully this is fairly uncontroversial: Gnus has a gnus-edit-form-mode for editing group parameters and other things, which presents the data as elisp forms and is a perfect use-case for lisp-data-mode -- turning on paredit or what have you. This patch derives the former from the latter. Eric --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Derive-gnus-edit-form-mode-from-lisp-data-mode.patch >From c8785b43abf7db5721950001e93f5a0c57b76d28 Mon Sep 17 00:00:00 2001 From: Eric Abrahamsen Date: Sat, 6 Jun 2020 12:13:15 -0700 Subject: [PATCH] Derive gnus-edit-form-mode from lisp-data-mode * lisp/gnus/gnus-eform.el (gnus-edit-form-mode): Handy for users who have turned on things like paredit for lisp-data-mode. --- lisp/gnus/gnus-eform.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/gnus/gnus-eform.el b/lisp/gnus/gnus-eform.el index 54118aad1e..ee573fb736 100644 --- a/lisp/gnus/gnus-eform.el +++ b/lisp/gnus/gnus-eform.el @@ -67,9 +67,9 @@ gnus-edit-form-make-menu-bar ["Exit" gnus-edit-form-exit t])) (gnus-run-hooks 'gnus-edit-form-menu-hook))) -(define-derived-mode gnus-edit-form-mode fundamental-mode "Edit Form" +(define-derived-mode gnus-edit-form-mode lisp-data-mode "Edit Form" "Major mode for editing forms. -It is a slightly enhanced emacs-lisp-mode. +It is a slightly enhanced `lisp-data-mode'. \\{gnus-edit-form-mode-map}" (when (gnus-visual-p 'group-menu 'menu) -- 2.27.0 --=-=-=--