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: file path in buffer name Date: Mon, 16 Nov 2009 10:42:17 -0800 Message-ID: <1D74D217979E4591BE81AED777BC5596@us.oracle.com> References: <26369589.post@talk.nabble.com> 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 1258397205 5609 80.91.229.12 (16 Nov 2009 18:46:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Nov 2009 18:46:45 +0000 (UTC) To: "'matlantis'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 16 19:46:38 2009 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 1NA6av-0006tH-Je for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Nov 2009 19:46:33 +0100 Original-Received: from localhost ([127.0.0.1]:34740 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NA6av-0001HB-3d for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Nov 2009 13:46:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NA6XI-00055J-Jr for help-gnu-emacs@gnu.org; Mon, 16 Nov 2009 13:42:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NA6XE-00050s-Kq for Help-gnu-emacs@gnu.org; Mon, 16 Nov 2009 13:42:48 -0500 Original-Received: from [199.232.76.173] (port=42856 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NA6XE-00050i-Dm for Help-gnu-emacs@gnu.org; Mon, 16 Nov 2009 13:42:44 -0500 Original-Received: from rcsinet12.oracle.com ([148.87.113.124]:56800 helo=rgminet12.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NA6XD-00027Y-QJ for Help-gnu-emacs@gnu.org; Mon, 16 Nov 2009 13:42:44 -0500 Original-Received: from rgminet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rgminet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id nAGIgUDu016641 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 16 Nov 2009 18:42:32 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rgminet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id nAGIgXmL018325; Mon, 16 Nov 2009 18:42:33 GMT Original-Received: from abhmt018.oracle.com by acsmt358.oracle.com with ESMTP id 364378831258396929; Mon, 16 Nov 2009 12:42:09 -0600 Original-Received: from dradamslap1 (/141.144.232.155) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 16 Nov 2009 10:42:08 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <26369589.post@talk.nabble.com> Thread-Index: Acpm6uHKVVZzDAKYTiajq6wMVJARbwAALS2Q X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt355.oracle.com [141.146.40.155] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090201.4B019D18.0031:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 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:69788 Archived-At: > i have to edit multiple files with the same file name > (CMakeLists.txt) and since emacs gives the buffer the name > of the file and adding a number to it, > it is very hard to decide with buffer has which file. > > So what i need is a method to say emacs to make the buffer > name looking like "CMakeLists.txt in ". Even better > would be if could be abbreviated to 30 characters, > but thats not important. This doesn't answer your question directly, but it might help you as supplementary info: You can see the file names for your (file-visiting) buffers in at least these ways: 1. Menu-bar menu `Buffers'. 2. The buffer-menu buffer, `*Buffer List*'. You access this using command `buffer-menu' or `list-buffers', typically bound to `C-x C-b'. HTH.