From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: Anything like this exist already? (buffer name intelligence) Date: 11 Jan 2008 19:08:23 GMT Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1200080445 30400 80.91.229.12 (11 Jan 2008 19:40:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Jan 2008 19:40:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 11 20:41:07 2008 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 1JDPkX-0002KU-JC for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Jan 2008 20:41:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JDPk9-0002x9-N5 for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Jan 2008 14:40:41 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-X-Trace: individual.net pmmIGzPZ7uWArldmhFeOwA8p//QNJsX4M8Qlr4ugZBcMl0JD26 Cancel-Lock: sha1:rho++0Ee+VM4LbGOpWeeBnMMBZQ= Mail-Copies-To: nobody X-Editor: Emacs of course! User-Agent: slrn/0.9.8.1 (Linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:155247 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:50663 Archived-At: Aaron Maxwell wrote: > I've taken to renaming such buffers with a prefix in their file path, just > enough to make them unique: i.e., for "/home/amax/src/snazzylib/__init__.py", > I might rename its buffer from "__init__.py" to "snazzylib/__init__.py". And > I wrote a utility to automate this, which I've pasted below. I bind it to > C-c e, and thus can quickly give a new buffer a clueful name without > interrupting myself to think about it. mmm. i have the following in my .emacs: (toggle-uniquify-buffer-names) which seems to do the same thing, only automatically. (it even renames the buffer back to __init__.py when only one such file is left open.) > Am I reinventing the wheel here? looks like it. ;-) -- Joost Kremers joostkremers@yahoo.com Selbst in die Unterwelt dringt durch Spalten Licht EN:SiS(9)