"Kai Großjohann" wrote in message news:84n0nep8bh.fsf@lucy.cs.uni-dortmund.de... > "CarlC" writes: > > > session stores search-ring as a global list of search strings. C-s > > C-s works from the last string in this global list. I want to > > remember the last search string for the individual file. > > Sounds like an interesting feature, but I don't think Emacs has it. > Hm. I can't find the variable that would hold the history for > isearch. > > What happens if you do M-: (make-local-variable 'isearch-string) RET > in a buffer? Then C-s C-s in that buffer should remember the last > search from that buffer, instead of the last search in any buffer. I don't want to completely segregate search strings between buffers. When I save a file, I want emacs to "remember" the latest search string so that when I re-edit the file, C-s C-s will use that string. If I save one file right after another, they would have the same search string saved. Seems trivial, but is useful in our environment.