From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: Preview: portable dumper Date: Mon, 26 Feb 2018 08:55:01 -0800 Message-ID: <27af34b6-045e-36ad-1cdd-495c1d486cbb@dancol.org> References: <20180215224653.GA36004@breton.holly.idiocy.org> <87sh9uf19h.fsf@russet.org.uk> <87efl7vlao.fsf@russet.org.uk> <3c4c370a-fd63-2d4d-5f6c-2a7bdb8487b1@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1519663994 6610 195.159.176.226 (26 Feb 2018 16:53:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Feb 2018 16:53:14 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 To: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 26 17:53:10 2018 Return-path: Envelope-to: ged-emacs-devel@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 1eqM1W-00017L-2m for ged-emacs-devel@m.gmane.org; Mon, 26 Feb 2018 17:53:10 +0100 Original-Received: from localhost ([::1]:60086 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqM3Y-0002aH-FG for ged-emacs-devel@m.gmane.org; Mon, 26 Feb 2018 11:55:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqM3R-0002Za-Qy for emacs-devel@gnu.org; Mon, 26 Feb 2018 11:55:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqM3R-0007HF-45 for emacs-devel@gnu.org; Mon, 26 Feb 2018 11:55:09 -0500 Original-Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:59332) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eqM3Q-0007Gu-Rk for emacs-devel@gnu.org; Mon, 26 Feb 2018 11:55:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject; bh=HhY00/lrkSRsBqNQCxpmGRlzunK6em4OZODzJjFvO4Q=; b=JVNA3LI9LSt9JaOOXZeU0NIR+t4u+8pId5eGxwIV2QS+01xAbfwBTbb5DvancbieePhtH4woPSeaSihiD9LBFH9+D8HsFWSAWC1/hZX/ZdcDkqjjQLUxuAluiSvIW1rfD7Iv5rXjL0+Vb6vj9NhubNkQhFzYAaH9pIFcWJxbapBoeuxvq2dVROTD3ADLVrT1gGm0LJJLlNm8vrtS0dqpym8oIounXUAlxwPYq/t4MO/RvPlm7cgBPpOi13hwlhGAMv/8oKZpEJkyB5sl2njLe78jcEwaIC0TaV87kioqek4YDOLen+MEzFhot6GSrWv2ByPDts5A3z1wm8kNGr6m7w==; Original-Received: from [2604:4080:1321:8ab0:2891:b7:d72c:af1b] by dancol.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1eqM3Q-00015F-1b; Mon, 26 Feb 2018 08:55:08 -0800 In-Reply-To: <3c4c370a-fd63-2d4d-5f6c-2a7bdb8487b1@gmail.com> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2600:3c01::f03c:91ff:fedf:adf3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:223067 Archived-At: On 02/26/2018 07:23 AM, Clément Pit-Claudel wrote: > On 2018-02-26 10:10, Phillip Lord wrote: >> eval: unsupported object type in dump: SAVE_POINTER > > You can pass t to dump-emacs-portable to see where the unsupported values come from. For me SAVE_POINTERs came from loading dbus, and window configurations from loading winner-mode. I love when people use features that aren't even properly documented yet. :-) I'm imagining using 'with-wrapper-hook' (or, since it's deprecated, 'add-function') to give modes a chance to tweak the global lisp environment that pdumper sees, avoiding some of these problems. Another option, which isn't necessarily mutually exclusive, is to provide a list of symbols to dump as nil. For now, you're going to get the most reliable results dumping a -batch Emacs.