From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: icicle-kill-buffer should not delete the frame Date: Wed, 23 May 2007 09:58:25 -0700 Message-ID: References: <1179913045.479647.220890@m36g2000hse.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1179939566 11087 80.91.229.12 (23 May 2007 16:59:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 May 2007 16:59:26 +0000 (UTC) To: =?iso-8859-1?Q?Nordl=F6w?= , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 23 18:59:17 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HquB3-0000Ad-SH for geh-help-gnu-emacs@m.gmane.org; Wed, 23 May 2007 18:59:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HquB5-0003Fi-P5 for geh-help-gnu-emacs@m.gmane.org; Wed, 23 May 2007 12:59:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HquAs-0003Fd-Vg for help-gnu-emacs@gnu.org; Wed, 23 May 2007 12:58:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HquAr-0003FR-IR for help-gnu-emacs@gnu.org; Wed, 23 May 2007 12:58:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HquAr-0003FO-CS for help-gnu-emacs@gnu.org; Wed, 23 May 2007 12:58:57 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HquAq-0000re-R8 for help-gnu-emacs@gnu.org; Wed, 23 May 2007 12:58:57 -0400 Original-Received: from rgmgw3.us.oracle.com (rgmgw3.us.oracle.com [138.1.186.112]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l4NGwolP023062; Wed, 23 May 2007 11:58:51 -0500 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by rgmgw3.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l4NDeoPD022984; Wed, 23 May 2007 10:58:49 -0600 Original-Received: from dhcp-4op11-4op12-west-130-35-178-179.us.oracle.com by acsmt350.oracle.com with ESMTP id 2724309181179939506; Wed, 23 May 2007 09:58:26 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <1179913045.479647.220890@m36g2000hse.googlegroups.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Whitelist: TRUE X-Whitelist: TRUE X-Brightmail-Tracker: AAAAAQAAAAI= X-MIME-Autoconverted: from 8bit to quoted-printable by agminet01.oracle.com id l4NGwolP023062 X-detected-kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:44334 Archived-At: > 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 optio= n 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 librar= ies that Icicles takes advantage of if they happen to be loaded: `misc-cmds.e= l' 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 al= l 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 th= e window will be deleted, not the frame (and only if there are other window= s 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 Emac= s. 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" f= rom the Icicles menu or using `M-x icicle-send-bug-report=92.