The simplest solution is to use the same method as employed by
Recentf mode. It maintains the list of recently opened files,
no matter what user-level command visited them, and doesn't include
automatically processed files.
To update the list of recently opened files, Recentf mode puts
the function `recentf-track-opened-file' in `find-file-hook'.
How does that avoid recording files that are processed by Lisp
programs that the user doesn't know about? If those programs use
find-file-noselect, that would run find-file-hook, which would
record the file name thus being processed.
_______________________________________________
Emacs-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-devel