unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* caching recent files
@ 2008-08-18 14:07 Rustom Mody
  2008-08-18 15:48 ` Drew Adams
  2008-08-18 16:06 ` Nikolaj Schumacher
  0 siblings, 2 replies; 6+ messages in thread
From: Rustom Mody @ 2008-08-18 14:07 UTC (permalink / raw)
  To: help-gnu-emacs

I have been studying how to maintain recent files and am confused by
the available functionality.

recentf keeps recent files but not directories
file cache is not persistent -- so not clear what its use is.

So what is the recommended way of maintaining a readily available list
of files and dirs?

I guess there is filesets but I find that very hard to understand :-)




^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: caching recent files
  2008-08-18 14:07 caching recent files Rustom Mody
@ 2008-08-18 15:48 ` Drew Adams
  2008-08-19  7:01   ` Rustom Mody
  2008-08-18 16:06 ` Nikolaj Schumacher
  1 sibling, 1 reply; 6+ messages in thread
From: Drew Adams @ 2008-08-18 15:48 UTC (permalink / raw)
  To: 'Rustom Mody', help-gnu-emacs

> I have been studying how to maintain recent files and am confused by
> the available functionality.
> 
> recentf keeps recent files but not directories
> file cache is not persistent -- so not clear what its use is.
> 
> So what is the recommended way of maintaining a readily available list
> of files and dirs? I guess there is filesets but I find that very
> hard to understand :-)

Do you want (1) just recent files, or do you want to create and save (2) an
arbitrary set of files and directories that you can return to later?

1. For recent files, I use recentf. I use `icicle-recent-file', actually, which
lets you complete against parts of the file names.

2. You can use Icicles to create and save named sets of files and dirs for later
use. See http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Persistent_Completions.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: caching recent files
  2008-08-18 14:07 caching recent files Rustom Mody
  2008-08-18 15:48 ` Drew Adams
@ 2008-08-18 16:06 ` Nikolaj Schumacher
  2008-08-19  6:39   ` Rustom Mody
  1 sibling, 1 reply; 6+ messages in thread
From: Nikolaj Schumacher @ 2008-08-18 16:06 UTC (permalink / raw)
  To: Rustom Mody; +Cc: help-gnu-emacs

"Rustom Mody" <rustompmody@gmail.com> wrote:

> recentf [...] file cache is not persistent -- so not clear what its
> use is.

It is supposed to be persistent.  If `recentf-mode' is enabled, the list
will be written to `recentf-save-file' when emacs exits.

> So what is the recommended way of maintaining a readily available list
> of files and dirs?

Do you mean directories you visited via dired, or all directories in
which you've opened files?


regards,
Nikolaj Schumacher




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: caching recent files
  2008-08-18 16:06 ` Nikolaj Schumacher
@ 2008-08-19  6:39   ` Rustom Mody
  0 siblings, 0 replies; 6+ messages in thread
From: Rustom Mody @ 2008-08-19  6:39 UTC (permalink / raw)
  To: help-gnu-emacs; +Cc: me

On Mon, Aug 18, 2008 at 9:36 PM, Nikolaj Schumacher <me@nschum.de> wrote:
> "Rustom Mody" <rustompmody@gmail.com> wrote:
>
>> recentf [...] file cache is not persistent -- so not clear what its
>> use is.
>
> It is supposed to be persistent.  If `recentf-mode' is enabled, the list
> will be written to `recentf-save-file' when emacs exits.
Emacs info -> files -> file name cache (after all the functions)

The file name cache is not persistent: it is kept and maintained
only for the duration of the Emacs session.  You can view the contents
of the cache with the `file-cache-display' command.

>
>> So what is the recommended way of maintaining a readily available list
>> of files and dirs?
>
> Do you mean directories you visited via dired, or all directories in
> which you've opened files?

Either/both!
A 'project' is invariably associated with a directory. Any convenient
way of telling emacs of such 'projects' is fine.
>
>
> regards,
> Nikolaj Schumacher
>




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: caching recent files
  2008-08-18 15:48 ` Drew Adams
@ 2008-08-19  7:01   ` Rustom Mody
  2008-08-19 15:26     ` Drew Adams
  0 siblings, 1 reply; 6+ messages in thread
From: Rustom Mody @ 2008-08-19  7:01 UTC (permalink / raw)
  To: Drew Adams; +Cc: help-gnu-emacs

Thanks
Yeah Icicles is on my list of things to check out.  I figured that it
would have something related to this but I could not find it.
I then tried filesets and the fileset-cache became some 4M (!!) so I
guess I will try out icicles.
What should I start by reading?

On Mon, Aug 18, 2008 at 9:18 PM, Drew Adams <drew.adams@oracle.com> wrote:
>> I have been studying how to maintain recent files and am confused by
>> the available functionality.
>>
>> recentf keeps recent files but not directories
>> file cache is not persistent -- so not clear what its use is.
>>
>> So what is the recommended way of maintaining a readily available list
>> of files and dirs? I guess there is filesets but I find that very
>> hard to understand :-)
>
> Do you want (1) just recent files, or do you want to create and save (2) an
> arbitrary set of files and directories that you can return to later?
>
> 1. For recent files, I use recentf. I use `icicle-recent-file', actually, which
> lets you complete against parts of the file names.
>
> 2. You can use Icicles to create and save named sets of files and dirs for later
> use. See http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Persistent_Completions.
>
>




^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: caching recent files
  2008-08-19  7:01   ` Rustom Mody
@ 2008-08-19 15:26     ` Drew Adams
  0 siblings, 0 replies; 6+ messages in thread
From: Drew Adams @ 2008-08-19 15:26 UTC (permalink / raw)
  To: 'Rustom Mody'; +Cc: help-gnu-emacs

> Yeah Icicles is on my list of things to check out.  I figured that it
> would have something related to this but I could not find it.
> I then tried filesets and the fileset-cache became some 4M (!!) so I
> guess I will try out icicles.
> What should I start by reading?

Overview:
http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Nutshell_View

Overview if you are also new to Emacs (how Icicles can help learn Emacs):
http://www.emacswiki.org/cgi-bin/wiki/EmacsNewbieWithIcicles

Project support:
http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Support_for_Projects

Using persistant caches:
http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Persistent_Completions

File and directory completion:
http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_File-Name_Completion_Tips





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-08-19 15:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-18 14:07 caching recent files Rustom Mody
2008-08-18 15:48 ` Drew Adams
2008-08-19  7:01   ` Rustom Mody
2008-08-19 15:26     ` Drew Adams
2008-08-18 16:06 ` Nikolaj Schumacher
2008-08-19  6:39   ` Rustom Mody

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).