From: Richard Stallman <rms@gnu.org>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: emacs-devel@gnu.org
Subject: Re: Proposal: move write-contents-functions higher up in basic-save-buffer
Date: Wed, 24 May 2017 10:12:33 -0400 [thread overview]
Message-ID: <E1dDX1d-0005bA-R1@fencepost.gnu.org> (raw)
In-Reply-To: <87wp97xjak.fsf@ericabrahamsen.net> (message from Eric Abrahamsen on Wed, 24 May 2017 07:09:07 +0800)
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> I thought that's what I was doing! If a buffer isn't visiting a file,
> there's essentially no way to guess what "saving it" would mean.
That's true, as a generality. The only way that "saving" a non-file
buffer could be meaningful is if Emacs is told precisely what saving
should mean for that buffer.
The
> mode that created the buffer would need to provide a function that does
> the saving. Then basic-save-buffer would need to be taught to call that
> function, instead of insisting that the buffer have a file.
> Then it occurred to
> me that write-contents-functions seems like a good place to do this. Now
> I'm not sure.
Please try using write-contents-functions for this, and you'll see if it
does the job. If not, you'll see what more change is needed.
--
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.
next prev parent reply other threads:[~2017-05-24 14:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-23 7:19 Proposal: move write-contents-functions higher up in basic-save-buffer Eric Abrahamsen
2017-05-23 7:25 ` Eric Abrahamsen
2017-05-23 18:41 ` Eli Zaretskii
2017-05-23 18:39 ` Eli Zaretskii
2017-05-23 23:09 ` Eric Abrahamsen
2017-05-24 2:38 ` Eli Zaretskii
2017-05-24 4:55 ` Eric Abrahamsen
2017-05-24 12:29 ` Stefan Monnier
2017-05-25 7:42 ` Eric Abrahamsen
2017-05-24 17:46 ` Eli Zaretskii
2017-05-24 14:12 ` Richard Stallman [this message]
2017-05-28 10:12 ` Eric Abrahamsen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1dDX1d-0005bA-R1@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=eric@ericabrahamsen.net \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.