From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel Subject: Re: global-set-key has no effect for iswitchb-buffer Date: Sat, 24 Mar 2007 13:13:09 +0100 Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1174738463 11816 80.91.229.12 (24 Mar 2007 12:14:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 24 Mar 2007 12:14:23 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: storm@cua.dk (Kim F. Storm) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 24 13:14:21 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HV58S-0001BN-7E for ged-emacs-devel@m.gmane.org; Sat, 24 Mar 2007 13:14:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HV5AS-0003JZ-Q4 for ged-emacs-devel@m.gmane.org; Sat, 24 Mar 2007 07:16:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HV5AP-0003JQ-Dj for emacs-devel@gnu.org; Sat, 24 Mar 2007 08:16:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HV5AO-0003JB-B9 for emacs-devel@gnu.org; Sat, 24 Mar 2007 08:16:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HV5AO-0003J8-3p for emacs-devel@gnu.org; Sat, 24 Mar 2007 07:16:16 -0500 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HV58M-00053K-H6 for emacs-devel@gnu.org; Sat, 24 Mar 2007 08:14:10 -0400 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by mail.uni-ulm.de (8.13.8/8.13.8) with ESMTP id l2OCE64v023817; Sat, 24 Mar 2007 13:14:06 +0100 (MET) Original-Received: from localhost (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id 16AD31295C; Sat, 24 Mar 2007 13:14:00 +0100 (CET) X-Face: 1; h7XMU[7l}$T@J.D}5z*w8Tg'}B5ArAWc8>2X~otB; kOjKs8X%|hTC#dG:%Vpx")x7S/`v :VXU#fZW$X$zdhEU.RfVQ@<-m9IuN{Hm"fW{,5]6kR'M*vEs+{5Cj!L(JTRzA$(},?5J=sm; %Od (Kim F. Storm's message of "Sat\, 10 Mar 2007 00\:36\:41 +0100") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) X-DCC-INFN-TO-Metrics: arktur 1233; Body=3 Fuz1=3 Fuz2=3 X-detected-kernel: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:68466 Archived-At: On Sat, Mar 10 2007, Kim F. Storm wrote: > Reiner Steib writes: >> I have iswitchb-mode enabled. But occasionally I want to use the >> plain `switch-to-buffer' command which I have bound to `C-c b b'. >> Recently (well, I haven't updated from CVS for a while) this stopped >> to work: `C-c b b' also calls `iswitchb-buffer'. [ (iswitchb-mode 1) (global-set-key (kbd "C-c b b") (quote switch-to-buffer)) ] > Try: > > (defalias 'switch-to-buffer-1 'switch-to-buffer) > and bind C-c b b to switch-to-buffer-1 Well, this is a possible workaround. But is it correct behavior of `iswitchb-mode' to shadow the original `switch-to-buffer' command? AFAICS the documentation mentions only rebinding of keys: ,----[ (info "(emacs)Iswitchb") ] | Iswitchb global minor mode provides convenient switching between | buffers using substrings of their names. It replaces the normal | definitions of `C-x b', `C-x 4 b', `C-x 5 b', and `C-x 4 C-o' with | alternative commands that are somewhat "smarter." `---- Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/