From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Dmitry Antipov <dmantipov@yandex.ru>
Cc: Emacs development discussions <emacs-devel@gnu.org>
Subject: Re: [RFC] compact buffers when idle
Date: Thu, 19 Jul 2012 04:16:52 -0400 [thread overview]
Message-ID: <jwvipdkuq7s.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <5006DA74.1020100@yandex.ru> (Dmitry Antipov's message of "Wed, 18 Jul 2012 19:47:00 +0400")
> Core idea of this stuff is to run compact_buffer when idle, e.g. with:
I guess you'd get most of the benefit from just adding the `compact'
field and checking it before compacting any buffer. Could you provide
such a patch (and please try to avoid including a large reindent
just so as to move the nextb declaration)?
Moving the code into a separate `compact_buffer' function is OK, tho,
because it does make the code more readable (the Fgarbage_collect
function is obviously too large).
Stefan
prev parent reply other threads:[~2012-07-19 8:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-18 15:47 [RFC] compact buffers when idle Dmitry Antipov
2012-07-19 8:16 ` Stefan Monnier [this message]
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=jwvipdkuq7s.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=dmantipov@yandex.ru \
--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).