"Kai Großjohann" wrote in message news:84vg21yciw.fsf@lucy.cs.uni-dortmund.de... > "CarlC" writes: > > It's not clear to me how to find out if two files are saved `right > after another'. Hm. You would have to arrange for Emacs to save the > search strings in an extra file on exit. Hm. desktop.el can already > save some things, and I think it can be configured to save more, so > you might be able to hook into that. It doesn't matter to me when a file is saved. I just want to have the search string saved with that file. From what I have read, desktop.el is not what I want. I think that session.el _can_ do what I want, but am having trouble saving isearch-string as a local variable. Let's say that I open file A, search for "123", make some mods and then save file A. When I open file B, C-s C-s will do a search for "123" if I use session.el. I want this to do a search on the string that was used when I last saved file B, not file A. My impression of desktop.el is that it will resume my last session exactly as I left it. All buffers opened with cursor in last position, etc. I just want to be able to open a file explicitly and retain position and search string from the previous edit of that file.