From: Le Wang <l26wang@gmail.com>
To: drain <aeuster@gmail.com>
Cc: Help-gnu-emacs@gnu.org
Subject: Re: messages buffer history
Date: Fri, 11 Jan 2013 13:28:43 +0800 [thread overview]
Message-ID: <CAM=K+ipPxsXTa59uZUtZFhCAL_3Kc_MzojjPLvDmR4Cb0kuhWQ@mail.gmail.com> (raw)
In-Reply-To: <1357870521558-274956.post@n5.nabble.com>
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
next prev parent reply other threads:[~2013-01-11 5:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-11 0:26 messages buffer history drain
2013-01-11 1:05 ` Drew Adams
2013-01-11 2:15 ` drain
2013-01-11 5:28 ` Le Wang [this message]
2013-01-11 8:44 ` drain
2013-01-11 14:55 ` Le Wang
2013-01-11 15:24 ` Drew Adams
2013-01-11 22:33 ` drain
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAM=K+ipPxsXTa59uZUtZFhCAL_3Kc_MzojjPLvDmR4Cb0kuhWQ@mail.gmail.com' \
--to=l26wang@gmail.com \
--cc=Help-gnu-emacs@gnu.org \
--cc=aeuster@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.