[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 22:55:34 +0800

On Fri, Jan 11, 2013 at 4:44 PM, drain <> wrote:
>> List of directory returned is in reverse chronological order.
> How would I insert the returned list into a buffer?

I think it's time to crack open that Elisp tutorial you're talking about:

(defun session-dirs ()
  "return list of directories visited in session"
   (mapcar (lambda (f)
             (file-name-directory f))

(defun display-session-dirs ()
  "show list of session dirs in a buffer"
  (pop-to-buffer (get-buffer-create "*session dirs*"))
  (insert (mapconcat 'identity (session-dirs) "\n")))


reply via email to

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