I finally figured out how to do some parsing of a file with emacs.
I was trying to setup some synchronization of my config files with a Github repository. I wanted to DRY the information fed into my .emacs files, and that fed into the script that would copy those config files into my Github repository.
I already have the files being synched with Dropbox and I didn't want
Dropbox to be synchronizing any
.git/ files. That's why I can't just
.emacs file pick them up out of a Git repository. All my
configurations are setup under Dropbox.
This took me over four hours. I have not really done much string
parsing in Emacs (Elisp), but I think it is common to parse a buffer
instead of a string, if you want to parse a file. Hence, the call to
I was then able to write a one-line shell script to bring the files from the Dropbox-supervised directory to the Git-supervised directory. Then I can do a git add and git commit, and push the files to Github in this repo.