unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: Nordlöw <per.nordlow@gmail.com>, help-gnu-emacs@gnu.org
Subject: RE: icicle-kill-buffer should not delete the frame
Date: Wed, 23 May 2007 09:58:25 -0700	[thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICIEOKDMAA.drew.adams@oracle.com> (raw)
In-Reply-To: <1179913045.479647.220890@m36g2000hse.googlegroups.com>

> How can I tell icicles to not also delete the frame the buffer is in.
> This is the default behaviour of my setup. Is this the desired
> behaviour of icicles? I am used to always having 2 frames open so I
> find this behaviour very annoying. I have not found (using icicles of
> course:) ) any icicle variable or function to change this behaviour.
>
> Have I missed something?

Are you talking about when you kill a buffer, with, for example, `C-x k'? If
so, then no, you have not missed anything. There is no Icicles user option
for changing this behavior. However, there are ways to handle it.

The fact that the frame is being deleted is, I think, due to other libraries
that Icicles takes advantage of if they happen to be loaded: `misc-cmds.el'
and `frame-cmds.el'.

Are you using library `misc-cmds.el'? Command `icicle-kill-buffer', bound to
`C-x k', uses `kill-buffer-and-its-windows' instead of `kill-buffer', if the
former is defined. Library `misc-cmds.el' defines
`kill-buffer-and-its-windows'. So if you do not use library `misc-cmds.el'
then the frame should not be deleted.

`kill-buffer-and-its-windows' actually calls `delete-window' to delete all
windows showing the buffer; it does not, by itself delete the frame. The
fact that your frame (not just the window) is deleted by `delete-window'
suggests that you also use library `frame-cmds.el' - is that right?

If so, `delete-window' deletes the frame too, if it has only one window. So,
if you use `misc-cmds.el' but you don't use `frame-cmds.el', then only the
window will be deleted, not the frame (and only if there are other windows
on the same frame).

If you want to use both `misc-cmds.el' and `frame-cmds.el', then you can
either undefine `kill-buffer-and-its-windows' (by using `fmakunbound') of
make it an alias of `kill-buffer'.

Another alternative is to bind `C-x k' to a different command from
`icicle-kill-buffer' (use vanilla `kill-buffer', for instance). However,
Icicles uses the same function, `icicle-kill-a-buffer', in other places
besides as the action function of mult-command `icicle-kill-buffer'.

In particualar, `icicle-kill-a-buffer' is used as the deletion action for
several Icicles multi-commands involving buffers, so that you can delete
selected buffers on the fly (using `S-delete') during buffer-name
completion. This is the case for these commands: `icicle-buffer',
`icicle-buffer-list', and `icicle-object-action'. If you want to inhibit the
frame deletion everywhere, then simply rebinding `C-x k' will not be
sufficient (plus, you will lose the features provided by
`icicle-kill-buffer').

HTH.

BTW, I'm happy to reply to questions about Icicles on gnu-help-emacs, but
I'm not sure that is the best place - it is a general list about GNU Emacs.
You can also use the Emacs Wiki for that, in particular, these pages:

http://www.emacswiki.org/cgi-bin/wiki/IciclesIssues - report bugs

http://www.emacswiki.org/cgi-bin/wiki/IciclesDiscussion - discussion,
feedback

Finally, you can also report Icicles bugs by choosing "Send Bug Report" from
the Icicles menu or using `M-x icicle-send-bug-report’.

      reply	other threads:[~2007-05-23 16:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-23  9:37 icicle-kill-buffer should not delete the frame Nordlöw
2007-05-23 16:58 ` Drew Adams [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=DNEMKBNJBGPAOPIJOOICIEOKDMAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=per.nordlow@gmail.com \
    /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.
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).