From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: Search Next Date: Wed, 11 Dec 2002 17:27:54 +0100 Organization: University of Dortmund, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <843cp434hh.fsf@lucy.cs.uni-dortmund.de> References: <1P2J9.122644$Gc.3967898@twister.austin.rr.com> <84n0nep8bh.fsf@lucy.cs.uni-dortmund.de> <84vg21yciw.fsf@lucy.cs.uni-dortmund.de> <4BsJ9.128669$Gc.4330785@twister.austin.rr.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1039632041 31342 80.91.224.249 (11 Dec 2002 18:40:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 11 Dec 2002 18:40:41 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18MBm4-00087V-00 for ; Wed, 11 Dec 2002 19:40:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18MB5B-0001c0-01 for gnu-help-gnu-emacs@m.gmane.org; Wed, 11 Dec 2002 12:55:41 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!fu-berlin.de!uni-berlin.de!p50876fa4.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 46 Original-NNTP-Posting-Host: p50876fa4.dip.t-dialin.net (80.135.111.164) Original-X-Trace: fu-berlin.de 1039629247 35132453 80.135.111.164 (16 [73968]) User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:DpxRrF/IkqL3TAhrWvH9spRBBsQ= Original-Xref: shelby.stanford.edu gnu.emacs.help:108002 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:4535 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4535 "CarlC" writes: > "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. Previously, you said that you want to `group' files. So if you save fileA and fileB `together', then they should share the same search string. That's at least what I understood from your previous message. > [...] > 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. So we're back to square one. You want to make isearch-string buffer-local. Then you want to make sure that the buffer-local value is saved when you exit Emacs and loaded again when you enter Emacs again. First, please try whether it works to make the variable buffer-local. Secondly, investigate how session.el or desktop.el allows you to save per-buffer settings. If that all pans out well, the following should do it: (1) Tell Emacs that isearch-string is buffer-local, by putting (require 'isearch) (make-variable-buffer-local 'isearch-string) into ~/.emacs. (2) Tell session.el or desktop.el to save the value of isearch-string for each buffer. -- ~/.signature is: umop ap!sdn (Frank Nobis)