From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Le Wang Newsgroups: gmane.emacs.help Subject: Re: messages buffer history Date: Fri, 11 Jan 2013 13:28:43 +0800 Message-ID: References: <1357863990170-274949.post@n5.nabble.com> <89D6A56DF5B74F47A8F4AB92089BB5B6@us.oracle.com> <1357870521558-274956.post@n5.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1357882134 9428 80.91.229.3 (11 Jan 2013 05:28:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Jan 2013 05:28:54 +0000 (UTC) Cc: Help-gnu-emacs@gnu.org To: drain Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 11 06:29:11 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TtXAz-00083r-KV for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Jan 2013 06:29:09 +0100 Original-Received: from localhost ([::1]:35306 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtXAj-0007Bj-Bj for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Jan 2013 00:28:53 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtXAc-0007Ai-8h for Help-gnu-emacs@gnu.org; Fri, 11 Jan 2013 00:28:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TtXAb-0005rL-1K for Help-gnu-emacs@gnu.org; Fri, 11 Jan 2013 00:28:46 -0500 Original-Received: from mail-vb0-f46.google.com ([209.85.212.46]:38851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtXAa-0005rH-S7 for Help-gnu-emacs@gnu.org; Fri, 11 Jan 2013 00:28:44 -0500 Original-Received: by mail-vb0-f46.google.com with SMTP id b13so1104041vby.33 for ; Thu, 10 Jan 2013 21:28:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=kMIWgSTW2OD0SeNp0JloKCaCoLhhBX3PPNQ03nrg7ZU=; b=VWdnIdD68rRgY08VzszrXRCtNHl3H4FOaDXn3+tpUv0hqF5Y2Y5+y9HpiXJlxq4jkb WhJsTCJEuuwMaqirWVXRez8NCmWQBJk/+RO0iDlwF2tGvwgVSdRLjgSwhkL+TH8aSwj5 MQYS35xZ7bC9hT1SP0TyyckDAdMHuPTwMJqTI9Heryeq7JYgNuZnn7fKNkHjeo9UDrmn o/RMTlETeD9Xer5gac7tm7acPYverWKKOLucigPYRNf2jp42tSX39GTg8sLCSyA9WDe9 4L5kwFaHalfR6452glkjujpbQFoZCjaDAbM3MluzGZhLz8PCvr9qHXQwu6dnjZYxYFCT xU3w== Original-Received: by 10.52.97.7 with SMTP id dw7mr81602311vdb.38.1357882124126; Thu, 10 Jan 2013 21:28:44 -0800 (PST) Original-Received: by 10.58.161.20 with HTTP; Thu, 10 Jan 2013 21:28:43 -0800 (PST) In-Reply-To: <1357870521558-274956.post@n5.nabble.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.212.46 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88572 Archived-At: On Fri, Jan 11, 2013 at 10:15 AM, drain wrote: > (1) M-x find-file RET usr/include RET > (2) M-x find-file RET ~/study/literature.org RET > >> If you want a history of accessed folders, why not put that in a >>separate buffer? > > Good idea. After (1) and (2), the separate buffer would read: > > /usr/include > ~/study Emacs already tracks this information, no need to add hooks. (defun get-session-dirs () "return list of directories visited in session" (delete-dups (mapcar (lambda (f) (file-name-directory f)) file-name-history))) List of directory returned is in reverse chronological order. -- Le