From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: buffer-name in find-file-hook Date: Wed, 03 Sep 2008 19:57:41 +0200 Message-ID: References: <87bpz5waro.fsf@DEBLAP1.BeNet> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220464736 10360 80.91.229.12 (3 Sep 2008 17:58:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Sep 2008 17:58:56 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Joe Bloggs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 03 19:59:50 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 1KawdG-0005hl-J9 for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Sep 2008 19:59:06 +0200 Original-Received: from localhost ([127.0.0.1]:58569 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KawcH-0005d7-Ff for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Sep 2008 13:58:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kawbz-0005cV-4O for help-gnu-emacs@gnu.org; Wed, 03 Sep 2008 13:57:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kawbx-0005by-23 for help-gnu-emacs@gnu.org; Wed, 03 Sep 2008 13:57:46 -0400 Original-Received: from [199.232.76.173] (port=50163 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kawbw-0005bv-UI for help-gnu-emacs@gnu.org; Wed, 03 Sep 2008 13:57:44 -0400 Original-Received: from dd18200.kasserver.com ([85.13.138.168]:34240) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kawbw-0004s0-Dg for help-gnu-emacs@gnu.org; Wed, 03 Sep 2008 13:57:44 -0400 Original-Received: from thursday (BAH3c05.bah.pppool.de [77.135.60.5]) by dd18200.kasserver.com (Postfix) with ESMTP id 1141E1801D3E6; Wed, 3 Sep 2008 19:57:46 +0200 (CEST) In-Reply-To: <87bpz5waro.fsf@DEBLAP1.BeNet> (Joe Bloggs's message of "Wed\, 03 Sep 2008 15\:43\:07 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2.50 (darwin) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:57235 Archived-At: Joe Bloggs wrote: > Hi, I am writing a function to add to find-file-hook for hiding text > regions saved in a list. I need to know the buffer-name of the opened > file, so that I can compare it with the buffer names of the saved > regions. Why are you using the buffer name? Wouldn't it be better to use something more unique, i.e. the file name? regards, Nikolaj Schumacher