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: Buffer Navigation Date: Tue, 18 Oct 2005 20:35:13 -0700 Message-ID: References: <1129689531.476957.99230@f14g2000cwb.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1129693356 10656 80.91.229.2 (19 Oct 2005 03:42:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Oct 2005 03:42:36 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 19 05:42:35 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ES4pe-00083d-Ue for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Oct 2005 05:41:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ES4ld-0000dn-1f for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Oct 2005 23:37:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ES4kR-0000Ch-Cj for help-gnu-emacs@gnu.org; Tue, 18 Oct 2005 23:36:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ES4jo-0008Kf-Dv for help-gnu-emacs@gnu.org; Tue, 18 Oct 2005 23:35:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ES4jl-0008J5-Tu for help-gnu-emacs@gnu.org; Tue, 18 Oct 2005 23:35:34 -0400 Original-Received: from [148.87.122.32] (helo=rgminet03.oracle.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1ES4jl-0005g0-UK for help-gnu-emacs@gnu.org; Tue, 18 Oct 2005 23:35:34 -0400 Original-Received: from rgmsgw300.us.oracle.com (rgmsgw300.us.oracle.com [138.1.186.49]) by rgminet03.oracle.com (Switch-3.1.6/Switch-3.1.7) with ESMTP id j9J3ZLui006401; Tue, 18 Oct 2005 21:35:21 -0600 Original-Received: from rgmsgw300.us.oracle.com (localhost [127.0.0.1]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j9J3ZLSR005192; Tue, 18 Oct 2005 21:35:21 -0600 Original-Received: from dradamslap (dhcp-amer-rmdc-csvpn-gw4-141-144-96-252.vpn.oracle.com [141.144.96.252]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id j9J3ZIuC005178 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Tue, 18 Oct 2005 21:35:20 -0600 Original-To: "Shug Boabby" , X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 In-Reply-To: <1129689531.476957.99230@f14g2000cwb.googlegroups.com> X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE 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:30365 Archived-At: thanks Drew... I skimmed the documentation which seems to focus on the completion power of icicle more than the buffer management. That's because buffer management is but a tiny consequence of Icicles general behavior. Icicles does the same thing for any object (file, command, variable...) as it does for buffers. how would i use your library as a drop in replacement for my C-x left/right bindings? Better to continue off-list if you have more questions, as the details are probably not interesting to others. Anyway, this should get you started: Just use your standard buffer-switching command - for example, `switch-to-buffer' (on `C-x b'). Then use the up/down arrows (or `C-p'/`C-n') to cycle among buffer-names and choose one (RET). This doesn't let you use `C-x left' and `C-x right' - you use up/down instead (fewer keystrokes). Even better: use command `icicle-buffer'. Make these bindings, for example. (define-key ctl-x-map "b" 'icicle-buffer) ; `C-x b' (define-key ctl-x-4-map "b" 'icicle-buffer-other-window) ; `C-x 4 b' Now do as in #1, or you can use `C-up'/`C-down' to cycle among buffers, switching to them at the same time (no need to hit `RET'). With `C-x b' the switched-to buffer replaces the current buffer in its window. With `C-x 4 b' the switched-to buffer is opened in another window. also, i'm not so keen on the C-h remapping... i unset that standard "helpful" binding as delete sends C-h in a compliant xterm. `C-h' is only rebound for the minibuffer - Icicles changes no global bindings. From what you said, you've apparently already figured out how to unset the `C-h' bindings (and bind `icicle-help-on-candidate' to another minibuffer key sequence).