From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Leo Butler Newsgroups: gmane.emacs.help Subject: saving/restoring text and overlays Date: Wed, 25 Mar 2020 23:14:54 -0500 Message-ID: <86zhc3iwg1.fsf@x201.butler.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="38070"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 26 05:15:21 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jHJvM-0009ox-Jd for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 26 Mar 2020 05:15:20 +0100 Original-Received: from localhost ([::1]:46394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHJvL-0002rC-Ld for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 26 Mar 2020 00:15:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37773) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHJv1-0002nl-VF for help-gnu-emacs@gnu.org; Thu, 26 Mar 2020 00:15:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jHJv0-0004R3-Ds for help-gnu-emacs@gnu.org; Thu, 26 Mar 2020 00:14:59 -0400 Original-Received: from umce3cip01.ad.umanitoba.ca ([130.179.21.17]:24024) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jHJv0-0004QY-9k for help-gnu-emacs@gnu.org; Thu, 26 Mar 2020 00:14:58 -0400 IronPort-SDR: 9mVBRF2R7ESkj9vhOSSTbXu/crk6sTuH9HUhsvihurIHndkY9jjeTR0pPVua93871rr3Hn6WUj ds5msv7AQ9XPcfva9EiBUl0NsKgRvGLyuzRl7H8dMmyLwe3rYeIxOpkQRN+usu7y0aL6lLzddU tmgTAcSSgc9aF/QWsnSQ/yozRFKQ7giANyv/i0k2p7XVtFLyCxFqc+4qSStlu23DcUl2YLomRG /kLAt3wncVlGIE3VisHIxwgYm40bkV9FxiNE09Jg2GS9saI8UIk4wh7NJipfLNHOhO5XCZfPbU Vw1MRmwUqmVjCg7sI5P3Ng/Z X-IronPort-AV: E=Sophos;i="5.72,307,1580796000"; d="scan'208";a="46849516" Original-Received: from 194.33.44.45.in-addr.arpa (HELO x201) ([45.44.33.194]) by UMCE3CIP01.ad.umanitoba.ca with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2020 23:14:59 -0500 X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-Received-From: 130.179.21.17 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:122676 Archived-At: If I have a buffer with, e.g. display properties set to images, how can I save that to disk and re-open the saved data so that emacs displays the same "stuff"? I am not looking to export the buffer using html or latex or any other markup. I just want to be able to save the formatting information so that another emacs instance can display exactly the same document. I can see how this might be cobbled together by a save-file hook that stuffs (buffer-substring) of a narrowed buffer into an Eval: stanza at the end of file. But I am hoping that there is a pre-existing mode that does what I want. TIA, Leo