all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Cc: emacs-devel@gnu.org
Subject: Re: hidden buffers for async
Date: Fri, 10 Jun 2005 02:15:49 +0100	[thread overview]
Message-ID: <E1DgY7j-00085d-9s@kanga> (raw)
In-Reply-To: <E1DgX9n-0006Q8-B4@fencepost.gnu.org> (Richard Stallman's message of "Thu, 09 Jun 2005 20:13:55 -0400

")
Message-ID: <87psuv8116.fsf@kanga.tapsellferrier.co.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

Richard Stallman <rms@gnu.org> writes:

>     Something that would help a great deal is if one could create a buffer
>     that was hidden, ie: it did not ordinarily appear in the buffer list
>     and was not returned by a call to:
>
> 	(get-buffer buffername)
>
> Why do you think this is necessary?
> I don't see what problem this would solve.

Buffers are more convieniant (and more efficient) than strings for
large amounts of data. But buffers are very visible to the user and
that makes them less attractive for storing purely temporary or
transient data.


A concrete example. IMAP does file transfers with variable sized
chunks. It states the chunk size and then sends that many bytes of the
file. But you don't recieve all the bytes at once in an elisp async
reciever. 

I wanted to use a buffer to collect the data from the chunks while the
file transfer was still going on.

But IMAP can be asked to download lots of files at once and will be
chunking them all. So I wanted to have lots of chunk buffers, one for
each file transfer. When the files are downloaded they can be put
straight into the correct mode for displaying the file.

So there might be 10 or 20 (or 1000) buffers all recieving chunks of
files from IMAP. But these are purely temporary objects, until IMAP
sends a "file downloaded" status message the buffers are just data
stores. So I wanted to hide them from the user.

I think there are a lot of protocols where this happens. HTTP is
similar and so is NNTP.



Nic

  reply	other threads:[~2005-06-10  1:15 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-07  2:22 Threads in emacs implementation Denis Bueno
2005-06-07  2:52 ` Miles Bader
2005-06-07  2:59   ` Denis Bueno
2005-06-07  4:26     ` Miles Bader
2005-06-07  5:16 ` Ken Raeburn
2005-06-07 10:37   ` Nic Ferrier
2005-06-08 12:02   ` Richard Stallman
2005-06-08 18:01 ` Magnus Henoch
2005-06-08 19:52   ` Nic Ferrier
2005-06-08 20:23     ` jhd
2005-06-08 20:47       ` Nic Ferrier
2005-06-08 22:50         ` Stefan Monnier
2005-06-08 21:43     ` Magnus Henoch
2005-06-08 22:26       ` Nic Ferrier
2005-06-08 22:34       ` hidden buffers for async (was Re: Threads in emacs implementation) Nic Ferrier
2005-06-08 23:36         ` Miles Bader
2005-06-10  0:13         ` Richard Stallman
2005-06-10  1:15           ` Nic Ferrier [this message]
2005-06-10  1:32             ` hidden buffers for async Luc Teirlinck
2005-06-10  1:59               ` Nic Ferrier
2005-06-10 22:37             ` Richard Stallman
2005-06-11 20:26               ` Nic Ferrier
2005-06-11 21:05                 ` Henrik Enberg
2005-06-12 10:30                 ` Richard Stallman
2005-06-12 19:48                   ` Nic Ferrier
2005-06-13 15:03                     ` Richard Stallman
2005-06-12 17:18                 ` Stefan Monnier
2005-06-13  6:03                   ` Juri Linkov
2005-06-09 14:41       ` Threads in emacs implementation Richard Stallman
2005-06-09 14:40   ` Richard Stallman
2005-06-10 19:09     ` Ted Zlatanov
2005-06-11  3:48       ` Masatake YAMATO
2005-06-11 12:18       ` Richard Stallman
2005-06-15 15:59         ` Ted Zlatanov
2005-06-15 23:26           ` Miles Bader
2005-06-16 16:25             ` Ted Zlatanov
2005-06-17  0:56               ` Miles Bader
2005-06-17 14:09                 ` Ted Zlatanov
2005-06-17 18:47                   ` Richard Stallman
2005-06-20 18:04                     ` Ted Zlatanov
2005-06-21 15:13                       ` Richard M. Stallman
2005-06-21 18:36                         ` Nic Ferrier
2005-06-22  3:40                           ` Richard M. Stallman
2005-06-20  2:11                   ` Miles Bader
2005-06-20 10:28                     ` Nic Ferrier
2005-06-20 11:19                       ` Lennart Borgman
2005-06-20 11:48                       ` David Kastrup
2005-06-20 12:07                         ` Nic Ferrier
2005-06-20 17:52                     ` Ted Zlatanov

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=E1DgY7j-00085d-9s@kanga \
    --to=nferrier@tapsellferrier.co.uk \
    --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 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.