[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: messages buffer history
From: |
Le Wang |
Subject: |
Re: messages buffer history |
Date: |
Fri, 11 Jan 2013 13:28:43 +0800 |
On Fri, Jan 11, 2013 at 10:15 AM, drain <aeuster@gmail.com> 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