[Top][All Lists]

[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 <> wrote:
> (1) M-x find-file RET usr/include RET
> (2) M-x find-file RET ~/study/ 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"
   (mapcar (lambda (f)
             (file-name-directory f))

List of directory returned is in reverse chronological order.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]