From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wenbo CAI Newsgroups: gmane.emacs.help Subject: Re: How to avoid switching frame when switching buffer? Date: Thu, 30 Aug 2012 21:33:57 -0700 (PDT) Message-ID: References: <1e787358-bea2-44a2-802c-b90361f0ca5a@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1346387716 30424 80.91.229.3 (31 Aug 2012 04:35:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Aug 2012 04:35:16 +0000 (UTC) Cc: Wenbo CAI , help-gnu-emacs@gnu.org To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 31 06:35:17 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T7Iwt-0002We-9g for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Aug 2012 06:35:15 +0200 Original-Received: from localhost ([::1]:33454 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7Iwq-0001Kc-R9 for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Aug 2012 00:35:12 -0400 Original-Received: by 10.66.90.102 with SMTP id bv6mr1125565pab.34.1346387638123; Thu, 30 Aug 2012 21:33:58 -0700 (PDT) Original-Received: by 10.68.237.163 with SMTP id vd3mr1514473pbc.9.1346387638103; Thu, 30 Aug 2012 21:33:58 -0700 (PDT) Original-Path: usenet.stanford.edu!r4no702194pbs.0!news-out.google.com!t10ni74899pbh.0!nntp.google.com!r4no702190pbs.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=218.240.129.93; posting-account=whih7QoAAAAKAUKUM-ckJFk4_ZGeobpn Original-NNTP-Posting-Host: 218.240.129.93 User-Agent: G2/1.0 Injection-Date: Fri, 31 Aug 2012 04:33:58 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:194257 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86603 Archived-At: This is exact what I want. Thank you. Regards, Wenbo On Thursday, August 30, 2012 5:37:02 PM UTC+8, Diep Pham Van wrote: > You can use: > > (setq ido-default-buffer-method 'selected-window) > > > > On Thu, Aug 30, 2012 at 12:59:10AM -0700, Wenbo CAI wrote: > > > Hello guys, > > > > > > I am using emacs 23.3.1 on Ubuntu 12.04. > > > I have 2 frames open. Now I am on frame A. When I switch to a buffer which is visible on frame B, then the frame is switched - frame B has the focus. > > > > > > I feel not comfortable with this behavior (maybe because both frames are full screen). I prefer the frame is not switched - just switch the buffer to frame A. > > > > > > Is there any way to avoid frame switching when do buffer switch? > > > Thanks in advance. > > > > > > Btw, I am using ido-switch-buffer. > > > > > > Regards, > > > Wenbo