From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#24549: 25.1; Customizing group `text' Date: Tue, 27 Sep 2016 09:58:29 -0700 (PDT) Message-ID: <2d7216a4-60c9-40fb-95e4-91894284fbee@default> References: <<8aaf30c2-ceb2-4803-9e2e-cd10ad8a3802@default>> <<837f9xct9z.fsf@gnu.org>> <<9eab3611-2ed6-422b-93bc-4270ef1b6082@default>> <<83twd1bcx6.fsf@gnu.org>> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1474995572 1817 195.159.176.226 (27 Sep 2016 16:59:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Sep 2016 16:59:32 +0000 (UTC) Cc: 24549@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 27 18:59:27 2016 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 1boviv-0007KL-VQ for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Sep 2016 18:59:18 +0200 Original-Received: from localhost ([::1]:52432 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boviu-0006Uu-EU for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Sep 2016 12:59:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34207) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bovik-0006Sj-Hv for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2016 12:59:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bovig-0002Qi-9a for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2016 12:59:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59387) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bovig-0002QX-62 for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2016 12:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bovif-0008CL-Tu for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2016 12:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Sep 2016 16:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24549 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24549-submit@debbugs.gnu.org id=B24549.147499552031484 (code B ref 24549); Tue, 27 Sep 2016 16:59:01 +0000 Original-Received: (at 24549) by debbugs.gnu.org; 27 Sep 2016 16:58:40 +0000 Original-Received: from localhost ([127.0.0.1]:37344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1boviK-0008Bk-DP for submit@debbugs.gnu.org; Tue, 27 Sep 2016 12:58:40 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:44426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1boviI-0008BV-NM for 24549@debbugs.gnu.org; Tue, 27 Sep 2016 12:58:39 -0400 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u8RGwVg7031616 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 27 Sep 2016 16:58:32 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u8RGwV6Z009622 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 27 Sep 2016 16:58:31 GMT Original-Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id u8RGwUDV001394; Tue, 27 Sep 2016 16:58:31 GMT In-Reply-To: <<83twd1bcx6.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6753.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] 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:123726 Archived-At: > > > Any better ideas? > > > > See above. We can create another group, `text', which inherits > > from `wp'. Emacs itself could move toward using group `text' > > everywhere. The doc for group `text' could say that `wp' is > > deprecated (even though there is no code-enforcement via > > warning etc.). > > > > IOW, we can (1) make a group `text' that behaves essentially > > like `wp' and (2) let users know that `wp' is considered > > deprecated. >=20 > If this works, it is probably better, yes. IOW, something like the code below. Question 1: Why is group `outlines' declared in both cus-edit.el and outline.el? And in outline.el it has a prefix declared, but not in cus-edit.el. Group `outlines' is not _used_ in cus-edit.el, AFAICT. What would happen if we removed group `outlines' from cus-edit.el? (This question has nothing to do with this bug report. Just happened to notice the duplication.) Question 2: Should group `text' inherit directly from group `emacs'? Should it also inherit from group `wp'? I think the answer to both of these is yes. WDYT? Question 3: Should group `wp' still be inherited from, by a group that now inherits from `text'? E.g., should group `tildify' inherit from both `wp' as well as from `text'? I don't think so. If group `text' itself inherits from `wp' then I don't think there is any reason that we need to have other groups still inherit directly from `wp' (as well as from `text'). WDYT? I think that the more we can hide `wp' from users, the better. If it needs to continue to be there for a while, because of possibly existing 3rd-party code, then we should keep it around. But we can try to minimize its obvious exposure. ;;; cus-edit.el ;; No :tag anymore ;; (defgroup wp nil "Support for editing text files. Use group `text' for this instead. Group `wp' is deprecated." :group 'emacs) (defgroup text nil "Support for editing text files." :group 'emacs ;; Inherit from deprecated `wp' for compatibility, for now. :group 'wp) (defgroup outlines nil "Support for hierarchical outlining." :group 'text) (defgroup tex nil "Code related to the TeX formatter." :link '(custom-group-link :tag "Font Lock Faces group" font-lock-faces) :group 'text) ;;; delim-col.el (defgroup columns nil "Prettify columns." :link '(emacs-library-link :tag "Source Lisp File" "delim-col.el") :prefix "delimit-columns-" :group 'text) ;;; lpr.el (defgroup lpr nil "Print Emacs buffer on line printer." :group 'text) ;;; outline.el (defgroup outlines nil "Support for hierarchical outlining." :prefix "outline-" :group 'text) ;;; printing.el (defgroup printing nil "Printing Utilities group." :tag "Printing Utilities" :link '(emacs-library-link :tag "Source Lisp File" "printing.el") :prefix "pr-" :version "22.1" :group 'text :group 'postscript) ;;; ps-print.el (defgroup ps-print nil "PostScript generator for Emacs." :link '(emacs-library-link :tag "Source Lisp File" "ps-print.el") :prefix "ps-" :version "20" :group 'text :group 'postscript) ;;; view.el (defgroup view nil "Peruse file or buffer without editing." :link '(function-link view-mode) :link '(custom-manual "(emacs)Misc File Ops") :group 'text) ;;; nxml/rng-valid.el (defgroup relax-ng nil "Validation of XML using RELAX NG." :group 'text :group 'nxml :group 'languages) ;;; obsolete/scribe.el (defgroup scribe nil "Scribe mode." :prefix "scribe-" :group 'text) ;;; progmodes/ebnf2ps.el (defgroup ebnf2ps nil "Translate an EBNF to a syntactic chart on PostScript." :prefix "ebnf-" :version "20" :group 'text :group 'postscript) ;;; textmodes/bib-mode.el (defgroup bib nil "Major mode for editing bib files." :prefix "bib-" :group 'external :group 'text) ;;; textmodes/enriched.el (defgroup enriched nil "Read and save files in text/enriched format." :group 'text) ;;; textmodes/nroff-mode.el (defgroup nroff nil "Nroff mode." :link '(custom-group-link :tag "Font Lock Faces group" font-lock-faces) :group 'text :prefix "nroff-") ;;; textmodes/picture.el (defgroup picture nil "Editing text-based pictures (\"ASCII art\")." :prefix "picture-" :group 'text) ;;; textmodes/refbib.el (defgroup refbib nil "Convert refer-style references to ones usable by Latex bib." :prefix "r2b-" :group 'text) ;;; textmodes/refer.el (defgroup refer nil "Look up references in bibliography files." :prefix "refer-" :group 'text) ;;; textmodes/rst.el (defgroup rst nil "Support for reStructuredText documents." :group 'text :version "23.1" :link '(url-link "http://docutils.sourceforge.net/rst.html")) ;;; textmodes/table.el (defgroup table nil "Text based table manipulation utilities." :tag "Table" :prefix "table-" :group 'text :version "22.1") ;;; textmodes/text-mode.el (defcustom text-mode-hook '(text-mode-hook-identify) "Normal hook run when entering Text mode and many related modes." :type 'hook :options '(turn-on-auto-fill turn-on-flyspell) :group 'text) ;;; textmodes/tildify.el (defgroup tildify nil "Add hard spaces or other text fragments to text buffers." :version "21.1" :group 'text)