From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Following links in *Help* do not add files to file-name-history Date: Thu, 12 Oct 2006 10:52:43 -0400 Message-ID: References: <20061012115933.C387.SLAWOMIR.NOWACZYK.847@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1160665493 6711 80.91.229.2 (12 Oct 2006 15:04:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 Oct 2006 15:04:53 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 12 17:04:50 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GY1wc-0005vD-2D for ged-emacs-devel@m.gmane.org; Thu, 12 Oct 2006 16:53:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GY1wb-00059c-Mz for ged-emacs-devel@m.gmane.org; Thu, 12 Oct 2006 10:53:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GY1vV-00041F-I5 for emacs-devel@gnu.org; Thu, 12 Oct 2006 10:52:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GY1vQ-0003tl-S6 for emacs-devel@gnu.org; Thu, 12 Oct 2006 10:52:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GY1vQ-0003tN-MA for emacs-devel@gnu.org; Thu, 12 Oct 2006 10:52:44 -0400 Original-Received: from [209.226.175.74] (helo=tomts20-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GY23f-0002DJ-Mj for emacs-devel@gnu.org; Thu, 12 Oct 2006 11:01:15 -0400 Original-Received: from pastel.home ([70.53.194.21]) by tomts20-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20061012145243.FOTD16051.tomts20-srv.bellnexxia.net@pastel.home> for ; Thu, 12 Oct 2006 10:52:43 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 29CD980F6; Thu, 12 Oct 2006 10:52:43 -0400 (EDT) Original-To: Slawomir Nowaczyk In-Reply-To: <20061012115933.C387.SLAWOMIR.NOWACZYK.847@student.lu.se> (Slawomir Nowaczyk's message of "Thu\, 12 Oct 2006 12\:33\:53 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:60671 Archived-At: > (pop-to-buffer (car location)) > + (add-to-history 'file-name-history (buffer-file-name (car location))) pop-to-buffer selects the buffer, so you just need the `buffer-file-name' variable rather than the function. Stefan