File-handling elisp

Make sure that buffers match the file contents. Useful for catching up with changes made outside emacs (or by another emacs).
Copy the files in a directory, copying only those that were not there already.
Try to fix up filename cases (when spoilt by case-insensitive OSes)
Find the file whose name point is on, and other things like that.
Put environment variables into filenames where possible. For a given set of environment variable names, this puts $VARIABLE into the filename string -- the converse of substitute-in-file-name.
Special handling of files in a directory named by the environment variable COMMON. This is the directory that I shuttle between my machines, using a USB key. I put some advice on the functions for renaming and deleting files, so the other machines don't re-instate them. Also contains code for spotting and deleting the "Copy of" files that Windows' copy programs sometimes make (at least, I think that's what makes them).
Find a file of a given short name (last part of name) amongst directories for which you have tag files. (Can be useful in picking through compiler output when not enough of the pathname is given.)
Insert the name of the file in the other window, etc (often useful in shell buffers)
Find multiple files in one command.
Does something a bit like grep, but entirely within emacs.
Intended for use with USB storage devices with WinEmacs, where a file may appear on different drives on different occasions.
Perform an operation on a file, killing the buffer afterwards if it was not being visited before, and doing other similar tidying-up.

[My elisp index] [My emacs index] [My computing index] [My home page]

Contact me
Last modified: Thu Sep 6 16:01:21 IST 2007