From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: raman@google.com (T.V Raman) Newsgroups: gmane.emacs.devel Subject: Re: Feature Request: Per-package custom save files? Date: Mon, 23 Jun 2014 09:52:10 -0700 Message-ID: <21416.23354.391473.953888@retriever.mtv.corp.google.com> References: <21413.43005.992475.896234@lapdog.roam.corp.google.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1403542604 8752 80.91.229.3 (23 Jun 2014 16:56:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Jun 2014 16:56:44 +0000 (UTC) Cc: tv.raman.tv@gmail.com, emacs-devel@gnu.org, raman@google.com To: monnier@IRO.UMontreal.CA Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 23 18:56:37 2014 Return-path: Envelope-to: ged-emacs-devel@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 1Wz7Xo-0000C2-Uc for ged-emacs-devel@m.gmane.org; Mon, 23 Jun 2014 18:56:37 +0200 Original-Received: from localhost ([::1]:55019 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wz7Xo-000366-K0 for ged-emacs-devel@m.gmane.org; Mon, 23 Jun 2014 12:56:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wz7Tb-0005cw-8F for emacs-devel@gnu.org; Mon, 23 Jun 2014 12:52:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wz7TY-0001pR-Dc for emacs-devel@gnu.org; Mon, 23 Jun 2014 12:52:15 -0400 Original-Received: from mail-pd0-x24a.google.com ([2607:f8b0:400e:c02::24a]:37493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wz7TY-0001pL-5A for emacs-devel@gnu.org; Mon, 23 Jun 2014 12:52:12 -0400 Original-Received: by mail-pd0-f202.google.com with SMTP id r10so773630pdi.3 for ; Mon, 23 Jun 2014 09:52:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:mime-version:content-type:content-transfer-encoding:message-id :date:to:cc:subject:in-reply-to:references; bh=+rHPkNeIWpFWnAA9aQwOi4ajKdqQ9xItyuD4yLgpevg=; b=PTrlcg/I8Y/WO8AcX5PouTKDUpf2vb0AlF/DILeJol123Y9SRcSLde28zfzDUV23fo meibKxj7CGKb7oUFcwScQqcQjUN0SX1k6JkSA6dAYRmgqz9/2kfwDu0/1mmK9h8amg3i 3d3Y8GYcEMuZVUyBJe5Jk1IqqHqhC/bcBPNRgWyCzrFuWgyuZT5j7iz4O90/hRg8OwvB qyNRH++rk/v9MwYmy/YewCaDl4ylMKxwf5diNAFirKNb23uAOQ3fezbXj8rkX9LoG6Q6 8m980QyE+rVLV2pUzPCKa6VYVO61bSC4z8TTwv39SUHyvOoUVN1ozIWHWfsy1JEl+is/ hgrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:mime-version:content-type :content-transfer-encoding:message-id:date:to:cc:subject:in-reply-to :references; bh=+rHPkNeIWpFWnAA9aQwOi4ajKdqQ9xItyuD4yLgpevg=; b=MowD+9Y77REOslj88z5hqEr3aEEqWHsgXIv/rFOFORdzb/qh97KwpHvAZqrXctGVMr BVbTtclmoSi5aRjTdZW2lsfc8RzHqVZy+HO16432YvuDwe2eOl239FvuwTg/I5c1w/sz 2FMQ8uakABclqJRguxrFIhMNhR2u4uWADvu1x6mW8txhZMF8gXtt8emcyKAYCbwRNwU1 livWpdsm6a2MKD3dSyDLjnjPgw88s32n1pdTGlfNj15cc29r+DMfnwXeTn4V/kwTj8tH 1+h07DzBobPTpZ6elAdBAMRFkk7g8a3Zl9Dr2NuwozFqmUGvzZLGks33yYZIMkvqr4QA Snzg== X-Gm-Message-State: ALoCoQlUlBQDudiN5rzRfxz9xXYLXM9Xj1/UlrDK2xa5RJiQ/t6yt5tcAGndxeI11r7+Koj3zIqB X-Received: by 10.66.189.163 with SMTP id gj3mr10954285pac.32.1403542331077; Mon, 23 Jun 2014 09:52:11 -0700 (PDT) Original-Received: from corp2gmr1-1.hot.corp.google.com (corp2gmr1-1.hot.corp.google.com [172.24.189.92]) by gmr-mx.google.com with ESMTPS id o69si1345938yhp.6.2014.06.23.09.52.11 for (version=TLSv1.1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Jun 2014 09:52:11 -0700 (PDT) Original-Received: from retriever.mtv.corp.google.com (retriever.mtv.corp.google.com [172.22.112.108]) by corp2gmr1-1.hot.corp.google.com (Postfix) with ESMTP id E06B331C5DC; Mon, 23 Jun 2014 09:52:10 -0700 (PDT) Original-Received: by retriever.mtv.corp.google.com (Postfix, from userid 13930) id 7C22D220B96; Mon, 23 Jun 2014 09:52:10 -0700 (PDT) In-Reply-To: X-Mailer: VM 8.1.1 under 24.4.50.1 (x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c02::24a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:172665 Archived-At: Hi Stefan, Here are some "features" I'm looking for: 1. custom-clean-up would be nice. 2. My thought around factoring out custom settings into a canonical per-package custom-settings file was to achieve the second goal -- not loading settings for packages you dont use -- so: Today I have (setq custom-file (expand-file-name "~/.customize-emacs")) In my .emacs. What if instead -- for each add-on elisp package we used custom--settings.el -- then as an example, I could load custom-ecb-settings.el only when I load the package. Stefan Monnier writes: > > Could we arrange for customize to save package specific settings > > in a package-specific customizations file? The present one > > custom file that binds them all feels like the Windows Registry:-) > > Other than the feeling, what benefits are you looking for? > I'm not just asking rhetorically: the best solution depends on the answer. > > One useful thing would be a custom-cleanup command which could show you > all your settings that are equal to the default. Showing the settings > for packages you don't use would be a more difficult. I guess we could > search for those settings in your load-path and if it's not found, it's > clearly an "obsolete" setting. But if the setting still exists (you > just don't use its package), I'm not sure what we could do. Maybe we > could move all your settings to an "unused" list of settings and then > move the settings out of that list whenever they're used. So after > a few days/weeks you can look at the settings remaining in the "unused > list" to see which ones qualify. > > > Stefan