unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: Emacs-Devel <emacs-devel@gnu.org>
Subject: Re: saving buffer with text properties
Date: Sun, 03 Jun 2007 13:05:50 -0400	[thread overview]
Message-ID: <87bqfxq87l.fsf@stupidchicken.com> (raw)
In-Reply-To: <EIENLHALHGIMHGDOLMIMCEALDCAA.drew.adams@oracle.com> (Drew Adams's message of "Sun\, 3 Jun 2007 09\:20\:27 -0700")

"Drew Adams" <drew.adams@oracle.com> writes:

>> >>    Is there any plan to enable users to save text
>> >>    with all of its properties?
>> >>
>> >> "all" is a big word!
>>
>> I think the way to do this is to build hooks into the desktop.el
>> system, so that external packages can specify a list of text
>> properties to re-apply to each file when it is re-opened.  This
>> information would be saved in .emacs.d, and the cache can be cleared
>> out for files that have not been re-opened for N days.
>
> But the per-file information about applied text properties needs to be saved
> with the file, no?

That would interfere with third-party programs, such as other text
editors, that want to edit the file.

> Or did you mean that desktop would save a list of files and their text
> properties (including property values and locations)?

Basically.  Desktop should provide hooks that other packages (such as
major modes) can use, i.e. a major mode should be able to tell desktop
"save the following data when closing this file, then run this
function with that data when the file is reopened".

  reply	other threads:[~2007-06-03 17:05 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-03  2:33 saving buffer with text properties Drew Adams
2007-06-03  9:45 ` Thien-Thi Nguyen
2007-06-03 14:15   ` Drew Adams
2007-06-03 14:47     ` Chong Yidong
2007-06-03 16:20       ` Drew Adams
2007-06-03 17:05         ` Chong Yidong [this message]
2007-06-03 17:15           ` Drew Adams
2007-06-03 16:43     ` Thien-Thi Nguyen
2007-06-03 17:08       ` Drew Adams
2007-06-03 21:27 ` Richard Stallman
2007-06-03 22:09   ` Drew Adams
2007-06-04  5:01     ` Richard Stallman
2007-06-04  7:38       ` M Jared Finder
2007-06-04 23:20         ` Richard Stallman
2007-06-04  6:29   ` Jason Rumney
2007-06-04 23:20     ` Richard Stallman
2007-06-05  1:32 ` Michael Olson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bqfxq87l.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).