From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#14696: 24.3.50; order of items in `custom-file' (or init file) Date: Sun, 23 Jun 2013 09:38:09 -0700 (PDT) Message-ID: <01acb229-393e-4012-98d3-46c631639fde@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1372005551 2644 80.91.229.3 (23 Jun 2013 16:39:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Jun 2013 16:39:11 +0000 (UTC) To: 14696@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 23 18:39:10 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UqnJl-0002RT-TZ for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Jun 2013 18:39:10 +0200 Original-Received: from localhost ([::1]:35117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqnJl-0001LP-Bj for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Jun 2013 12:39:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqnJg-0001K3-Ni for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2013 12:39:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UqnJf-0000zH-KU for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2013 12:39:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42334) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqnJf-0000zC-Gn for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2013 12:39:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UqnJe-0006mI-LT for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2013 12:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Jun 2013 16:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14696 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.137200550525995 (code B ref -1); Sun, 23 Jun 2013 16:39:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Jun 2013 16:38:25 +0000 Original-Received: from localhost ([127.0.0.1]:36649 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UqnJ2-0006lC-CQ for submit@debbugs.gnu.org; Sun, 23 Jun 2013 12:38:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36110) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UqnIz-0006kx-Fa for submit@debbugs.gnu.org; Sun, 23 Jun 2013 12:38:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UqnIt-0000l5-97 for submit@debbugs.gnu.org; Sun, 23 Jun 2013 12:38:16 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:34353) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqnIt-0000kd-5t for submit@debbugs.gnu.org; Sun, 23 Jun 2013 12:38:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqnIs-0001HF-3x for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2013 12:38:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UqnIr-0000d5-5z for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2013 12:38:14 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:30240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqnIq-0000YJ-W0 for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2013 12:38:13 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r5NGcAFs027059 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 23 Jun 2013 16:38:11 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r5NGc9iE021915 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 23 Jun 2013 16:38:10 GMT Original-Received: from abhmt101.oracle.com (abhmt101.oracle.com [141.146.116.53]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r5NGc9mq025461 for ; Sun, 23 Jun 2013 16:38:09 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7 (607090) [OL 12.0.6668.5000 (x86)] X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:75475 Archived-At: Enhancement request. Currently, options and faces are sorted using `string<' when written to your `custom-file'. That can make it easy to find something in the file, I suppose, but (a) you can alternatively and easily find an entry using Isearch, and (b) you can always split a list in the file into lines and sort the lines, if you really want to see such a sort order. Is there some other reason to sort entries this way? Alternatively, it could be more useful to put new and updated entries at the head of the option and face lists. That way, the lists would record the update order (at least in some common cases, if not in all cases). And that can help when you want to find something that you changed recently. The enhancement request would be to either: 1. (Preferably) timestamp each update or new entry, e.g., as part of the entry itself or via a separate alist for all entries. 2. If not, do not sort entries using `string<', but just add then at the head of each list (options, faces). #1 would be more involved, but would be better (precise). It would help us create a command, for instance, that would let you find changes made during any given time period etc. (In effect, this would be a bit like providing automatic version control for your custom file.) In GNU Emacs 24.3.50.1 (i686-pc-mingw32) of 2013-06-20 on ODIEONE Bzr revision: 113100 eliz@gnu.org-20130620173624-w9v620tog4yacftk Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=3D/c/Devel/emacs/binary --enable-checking=3Dyes,glyphs CFLAGS=3D-O0 -g3 LDFLAGS=3D-Lc:/Devel/emacs/lib CPPFLAGS=3D-Ic:/Devel/emacs/include'