From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Feature Request: Per-package custom save files? Date: Wed, 25 Jun 2014 13:54:33 -0400 Message-ID: References: <21413.43005.992475.896234@lapdog.roam.corp.google.com> <21416.23354.391473.953888@retriever.mtv.corp.google.com> <21416.39268.648625.775759@retriever.mtv.corp.google.com> <87d2dyjr15.fsf@gmail.com> <21418.64359.745530.259301@retriever.mtv.corp.google.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1403719081 31407 80.91.229.3 (25 Jun 2014 17:58:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Jun 2014 17:58:01 +0000 (UTC) Cc: emacs-devel@gnu.org To: raman@google.com (T.V Raman) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 25 19:57:54 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 1WzrSD-0007yC-9q for ged-emacs-devel@m.gmane.org; Wed, 25 Jun 2014 19:57:53 +0200 Original-Received: from localhost ([::1]:40207 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzrSC-0008Qm-Ur for ged-emacs-devel@m.gmane.org; Wed, 25 Jun 2014 13:57:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzrS3-0008Qb-PU for emacs-devel@gnu.org; Wed, 25 Jun 2014 13:57:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzrRw-0003cz-5V for emacs-devel@gnu.org; Wed, 25 Jun 2014 13:57:43 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:14900) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzrRw-0003cm-1f for emacs-devel@gnu.org; Wed, 25 Jun 2014 13:57:36 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUGAIDvNVNLd+D9/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDYgoCNIZF456B4Q4BJRjBZQxgWqDTCE X-IPAS-Result: ArUGAIDvNVNLd+D9/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDYgoCNIZF456B4Q4BJRjBZQxgWqDTCE X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="69541084" Original-Received: from 75-119-224-253.dsl.teksavvy.com (HELO ceviche.home) ([75.119.224.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 25 Jun 2014 13:54:33 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id B469566302; Wed, 25 Jun 2014 13:54:33 -0400 (EDT) In-Reply-To: <21418.64359.745530.259301@retriever.mtv.corp.google.com> (T. V. Raman's message of "Wed, 25 Jun 2014 09:40:07 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:172709 Archived-At: > when custom settings that are large s-expressions break during > save -- If you still have such a broken file, please M-x report-emacs-bug to see what we could do to avoid these problems. Maybe for such important files that aren't saved very often, it would be worthwhile to double-check that what we're about to write is what we intended to write (i.e. try to read it back before saving). > say the partial sexp gets saved, the whole file breaks. Right, in some cases, indeed, having several files could confine the breakage. In that case, the specific way the list is broken up doesn't matter that much, which is good. Maybe we could simply allow custom-file to be a function which takes the list of settings to save and splits them into a list of (FILE . SETTINGS). Stefan