unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: GDB startup
Date: Tue, 15 Feb 2005 20:16:02 -0500	[thread overview]
Message-ID: <jwvfyzxnwus.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <16914.27405.844755.48839@farnswood.snap.net.nz> (Nick Roberts's message of "Wed, 16 Feb 2005 10:35:09 +1300")

>> Would it be possible to "do it in the background", maybe?

> I'm not sure what you mean.  GDB runs asynchronously from Emacs, so all
> commands sent to it *do* run in the background.  Maybe, because there is
> so much input and output, you can't get the prompt so it feels like its
> running in foreground.

I understand that it's not clear what I mean by "in the background" (that's
why I put it between quotes): I understand that those commands are sent
asynchronously and so Emacs is not stuck waiting, but gdb is kept
sufficiently busy that the prompt doesn't appear.

> Presumably a lot of your buffers aren't visible

Indeed the large majority of my buffers are in iconified frames.

> which makes me wonder whether its possible to have
> a when-buffer-becomes-visible-hook?

I guess post-command-hook is the closest thing.

Maybe another approach is to limit the buffers that are considered to some
set of major modes, or to some subtree of the filesystem.  But neither seems
quite practical.

Another alternative could be to handle the files/buffers "slowly", with
a 0.5s delay between each file/buffer, starting with the buffers that are
currently visible.

> A more practical solution might be to limit the number of buffers/files
> (its probably the latter which takes most time) that Emacs considers.
> Clearly, what is a sensible number would depend on the speed of the
> computer (I think that perhaps you have a clunky machine).

2GB, 1.4GHz Opteron.  It's not the bestest and greatest, but it hardly
qualifies as clunky.

> Generally, how many buffers do you have open with files in them?

Anywhere between 20 and 100.  Let's say in the 50s.


        Stefan

  reply	other threads:[~2005-02-16  1:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-15 15:53 GDB startup Stefan Monnier
2005-02-15 21:35 ` Nick Roberts
2005-02-16  1:16   ` Stefan Monnier [this message]
2005-02-16  2:44     ` Nick Roberts
2005-02-16  3:06     ` Miles Bader
2005-02-16 14:07       ` Kim F. Storm
2005-02-16 14:39         ` Luc Teirlinck
2005-02-16 14:47           ` Kim F. Storm

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=jwvfyzxnwus.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --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).