all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kai Grossjohann <kai@emptydomain.de>
Subject: Re: Wait for a specific command call
Date: Sun, 21 Nov 2004 21:13:46 +0100	[thread overview]
Message-ID: <86is7zyn7p.fsf@ketchup.de.uu.net> (raw)
In-Reply-To: yg7d5y7zmba.fsf@fermat.math.uvsq.fr

Matthias <cimosque@free.fr> writes:

> In other words, my initial question was: how to make
> desktop-save-query-function select the *Buffer List* buffer and exit
> (returning true) when the user quit its window (by pressing the `q'
> key or using the mouse)?

Define a variable desktops-saved that is normally nil.

Have desktop-save-query-function look at desktops-saved.  If it is
nil, then invoke list-desktop-buffers and return nil.

Bind a function to q that will set desktops-saved to t before invoking
save-buffers-kill-emacs.

Have desktop-save-query-function look at desktops-saved.  If it is t,
then do nothing and return t.

Would this work?

Kai

      reply	other threads:[~2004-11-21 20:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-17 10:24 Wait for a specific command call Matthias
2004-11-17 17:59 ` Kevin Rodgers
2004-11-20 17:31 ` Kai Grossjohann
     [not found] ` <mailman.238.1100972454.27204.help-gnu-emacs@gnu.org>
2004-11-21  7:35   ` Matthias
2004-11-21 20:13     ` Kai Grossjohann [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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86is7zyn7p.fsf@ketchup.de.uu.net \
    --to=kai@emptydomain.de \
    /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.