unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "Emacs-Devel" <emacs-devel@gnu.org>
Subject: RE: saving buffer with text properties
Date: Sun, 3 Jun 2007 10:15:11 -0700	[thread overview]
Message-ID: <EIENLHALHGIMHGDOLMIMGEAMDCAA.drew.adams@oracle.com> (raw)
In-Reply-To: <87bqfxq87l.fsf@stupidchicken.com>

> > 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.

Perhaps you're right about that. I don't know much about this stuff. We
already provide metadata in the form of local-variable declarations in
comments, but I recognize that this should also be applicable to files that
aren't necessarily code and don't necessarily have a comment syntax.
(Besides, trying to record this stuff in comments would likely be a
nightmare, if not also problematic.)

> > 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".

That sounds reasonable to me, from the little I know of this. As I mentioned
to Thi, this is not something that I expect to work on, so I'll generally
bow out of trying to design and implement this. I was really just trying to
find out if something already existed, or was planned, which I might be able
to take advantage of for my highlighting code.

  reply	other threads:[~2007-06-03 17:15 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
2007-06-03 17:15           ` Drew Adams [this message]
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=EIENLHALHGIMHGDOLMIMGEAMDCAA.drew.adams@oracle.com \
    --to=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).