From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jorgen Grahn Newsgroups: gmane.emacs.help Subject: Re: C-x C-b (switch-to-buffer) smarter suggestions? Date: 7 Feb 2010 22:54:14 GMT Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1265609219 11949 80.91.229.12 (8 Feb 2010 06:06:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Feb 2010 06:06:59 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 08 07:06:56 2010 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.69) (envelope-from ) id 1NeMlq-0006Zd-KK for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Feb 2010 07:06:54 +0100 Original-Received: from localhost ([127.0.0.1]:52645 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NeMlp-0000CY-QA for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Feb 2010 01:06:53 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-X-Trace: individual.net zZb9uaL6cH/Pa6HMEr6nrgp+qaGTJWCyBDnhe4oAevWVCNefHf Cancel-Lock: sha1:3ocFT1EGEORmY9HfkwBL40VKoUo= User-Agent: slrn/pre0.9.9-111 (Linux) Original-Xref: news.stanford.edu gnu.emacs.help:176660 X-Mailman-Approved-At: Mon, 08 Feb 2010 01:03:05 -0500 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:71736 Archived-At: On Sun, 2010-02-07, Alberto Luaces wrote: > Hi, > > Jorgen Grahn writes: > > [...] > >> But this doesn't complete to foo.h, because foo.c is also an >> alternative -- even though that's the buffer I'm explicitly trying to >> switch *from*. > > Take a look at ff-find-other-file. ("Find the header or source file corresponding to this file") Thanks. Yes, that solves the particular example above. Not the general case though -- the buffers might equally well be foo.cc and foo.1 (for the manual page) or Makefile and Makefile<2>. Come to think of it, that last example is probably the one that annoys me the most. /Jorgen -- // Jorgen Grahn O o .