All files in ~ebeth/resume Copyright (c) 2002 Elizabeth Haley. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Tales of adventure: after-save-hook, call-process, Makefile, nopublish, nocomment. So, I've been writing my resume in html. I should have a copy publicly available, linked from my home page and maybe from the biz page. I'd rather my phone number and snail address not appear on that one, and, upon reflection, probably there shouldn't be incriminating/introspective comments in the source. In addition, I should have one with no i/i comments but with ph/snail, to send to recruiters. So I wrote a perl script to take out any line that includes "nopublish." (And another to remove comments.) And a Makefile to keep it all tidy. The Makefile lines are all : $(public) $(protected) index : index.html $(public) : $(private) src/nopublish -i $(private) | src/nocomment -o $(public) $(protected) : $(private) src/nocomment -i $(private) -o $(protected) clean : -rm $(public) $(protected) After that, wouldn't it be a fine thing if I could get Emacs to cause a build of the public and protected files (run "make all") every time I save the private base-document. So, I'm setting after-save-hook as a local variable. The first line of the private document is Tale of misadventure: So, I was looking for examples of this on the net, and I got momentarily derailed by an article Google found me. I was _not reading carefully, and it turns out that what I'd found was the Emacs 19->18 _Antinews. Emacs 18 Antinews: For those users who live backwards in time, here is information about downgrading to Emacs version 18. We hope you will enjoy the greater simplicity that results from the absence of many Emacs 19 features. ... Features for Files Many file-related functions have been eliminated or simplified. Here is a basic listing of these functions. The functions file-accessible-directory-p, file-truename, make-directory, delete-directory, set-visited-file-modtime, directory-abbrev-alist, abbreviate-file-name, write-region, write-contents-hooks, after-save-hook, set-default-file-modes and I thought Then how the hell am I supposed to do this?? Yeegh. All better now. Part two is that this has finally motivated me to do the same thing with the three pairs of files on my site which come in rated-G and rated-PG versions. Now, I edit only the PG files, and mark it up with and around the un-G lines, and have a nohide.pl builds the rated-G file from any of the PGs by performing its substitutions and not copying over the hide lines.