Mercurial > emacs
comparison man/files.texi @ 28671:678e1643ac82
ffap, filecache, locate
author | Dave Love <fx@gnu.org> |
---|---|
date | Thu, 20 Apr 2000 11:03:34 +0000 |
parents | 297e03ccd7e6 |
children | 203ba1f77b7b |
comparison
equal
deleted
inserted
replaced
28670:6f6d3c803dde | 28671:678e1643ac82 |
---|---|
2540 visited by the current buffer, based on customizable patterns. | 2540 visited by the current buffer, based on customizable patterns. |
2541 Typically this will be the header file corresponding to a C/C++ source | 2541 Typically this will be the header file corresponding to a C/C++ source |
2542 file, or vice versa. The patterns describing the corresponding files | 2542 file, or vice versa. The patterns describing the corresponding files |
2543 are customizable via @code{ff-other-file-alist}. | 2543 are customizable via @code{ff-other-file-alist}. |
2544 | 2544 |
2545 @findex ffap | |
2546 @findex find-file-at-point | |
2547 @cindex finding file at point | |
2548 The command @kbd{M-x find-file-at-point} (or @kbd{M-x ffap}) can be used | |
2549 as a replacement for @kbd{M-x find-file}. With a prefix argument it | |
2550 behaves as @kbd{M-x find-file}. Otherwise it tries to guess a default | |
2551 file or URL from the text around point. This is useful for following | |
2552 references in mail or news buffers, @file{README}s, @file{MANIFEST}s, | |
2553 and so on. @kbd{M-x ffap-bindings} makes these global key bindings: | |
2554 | |
2555 @table @kbd | |
2556 @item C-x C-f | |
2557 @kbd{find-file-at-point}; | |
2558 @item C-x 4 f | |
2559 @kbd{ffap-other-window}, analagous to @kbd{find-file-other-window}; | |
2560 @item C-x 5 f | |
2561 @kbd{ffap-other-frame}, analagous to @kbd{find-file-other-frame}; | |
2562 @item S-mouse-3 | |
2563 @kbd{ffap-at-mouse} finds the file guessed from text around the position | |
2564 of a mouse click; | |
2565 @item C-S-mouse-3 | |
2566 @kbd{ffap-menu} puts up a selectable menu of files and URLs mentioned in | |
2567 the current buffer. | |
2568 @end table | |
2569 | |
2570 Partial Completion mode offers other features extending @kbd{M-x | |
2571 find-file} which can be used with @code{ffap}. @xref{Completion | |
2572 Options}. | |
2573 | |
2574 @cindex filename caching | |
2575 @cindex cache of file names | |
2576 @pindex find | |
2577 @pindex locate | |
2578 @vindex file-cache-delete-regexps | |
2579 The Filecache package attempts to make it easy to locate files by name | |
2580 without having to remember exactly where they are. When typing a | |
2581 filename in the minibuffer you can use @kbd{C-tab} to complete it using | |
2582 the filename cache and to cycle through possible completions. (The | |
2583 @kbd{C-tab} binding assumes a window system; otherwise you can make | |
2584 another binding for @code{file-cache-minibuffer-complete}.) @kbd{M-x | |
2585 file-cache-add-directory} adds the files in a directory to the cache and | |
2586 @kbd{file-cache-add-directory-list} acts on a list of directories like | |
2587 @kbd{load-path} or @kbd{exec-path}. | |
2588 @kbd{file-cache-add-directory-using-find} uses the @code{find} program | |
2589 to add a directory tree to the cache and | |
2590 @kbd{file-cache-add-directory-using-locate} uses the @kbd{locate} | |
2591 program to add files matching a pattern. Use @kbd{M-x | |
2592 file-cache-clear-cache} to remove all items from the cache and @kbd{M-x | |
2593 file-cache-delete-regexps} and similar functions to remove items from it | |
2594 selectively. | |
2595 | |
2596 @pindex locate | |
2597 @findex locate | |
2598 @findex locate-with-filter | |
2599 @cindex file database (locate) | |
2600 @vindex locate-command | |
2601 @kbd{M-x locate} runs an interface to the @code{locate} program for | |
2602 searching a pre-built database of file names; most Dired commands are | |
2603 avilable for use on the result. @xref{Top, , Overview, find, GNU | |
2604 Findutils}. @kbd{M-x locate-with-filter} is similar, but keeps only | |
2605 lines matching a regular expression. Customize the option | |
2606 @code{locate-command} to use another program than the default, GNU | |
2607 @code{locate}. | |
2608 | |
2545 @c The Shadowfile package provides automatic file copying, allowing you to | 2609 @c The Shadowfile package provides automatic file copying, allowing you to |
2546 @c keep identical copies of files in more than one place---possibly on | 2610 @c keep identical copies of files in more than one place---possibly on |
2547 @c different machines. When you save a file, it checks whether it is on | 2611 @c different machines. When you save a file, it checks whether it is on |
2548 @c the list of files with `shadows', and if so, it tries to copy it when | 2612 @c the list of files with `shadows', and if so, it tries to copy it when |
2549 @c you exit emacs (or use the @kbd{M-x shadow-copy-files} command). | 2613 @c you exit emacs (or use the @kbd{M-x shadow-copy-files} command). |