From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lars Brange Newsgroups: gmane.emacs.help Subject: Re: Window remembering last used buffer and i-search Date: Tue, 27 May 2003 07:39:01 GMT Organization: AURUM Scandinavia AB Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3ED31687.C8FB626A@aurum.se> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1054021300 17789 80.91.224.249 (27 May 2003 07:41:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 27 May 2003 07:41:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Tue May 27 09:41:38 2003 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 19KZ5T-0004cS-00 for ; Tue, 27 May 2003 09:41:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19KZ4I-0002QO-KS for gnu-help-gnu-emacs@m.gmane.org; Tue, 27 May 2003 03:40:22 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.algonet.se!algonet!news-stob.telia.net!telia.net!217.209.241.173.MISMATCH!masternews.telia.net.!newsb.telia.net.POSTED!not-for-mail X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en Original-Newsgroups: gnu.emacs.help Original-Lines: 74 Original-NNTP-Posting-Host: 213.65.17.201 Original-X-Complaints-To: abuse@telia.com Original-X-Trace: newsb.telia.net 1054021141 213.65.17.201 (Tue, 27 May 2003 09:39:01 CEST) Original-NNTP-Posting-Date: Tue, 27 May 2003 09:39:01 CEST Original-Xref: shelby.stanford.edu gnu.emacs.help:113719 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:10213 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10213 I know. What I want to do is that I want to have different i-search strings for each buffer. Let's say I start a search for "main" in one buffer and then switch to another buffer and search for "sub". When I switch back to the first buffer and hit C-s twice I want it to use "main", not "sub". Lars Rene Reitinger wrote: > Hi, > > when yu call i-search using C-s simply hit C-s again, and it will search > for the last used search string. > > Cheers > Rene > > Lars Brange wrote: > > > Hello, > > > > Is there any function or extension to emacs 21.2.1 that let each window > > remember its last used buffer and last i-search string? I often have the > > same buffer open in two windows and then switch to another buffer in one > > of the windows. I then want to switch back to the first buffer again in > > that window (ie I have the same buffer in the two windows again). The > > problem is that emacs suggest the second last used buffer for *all* > > emacs windows, not the one I'm currently using. This means I have to > > enter the buffer name again; I don't want to do that... > > > > Also, I would like emacs to remember the last i-search string for each > > window or buffer. Now I have a global i-search string for all > > windows/buffers. > > > > Thanks in advance, > > > > Lars Brange > > > > > > _______________________________________________ > > Help-gnu-emacs mailing list > > Help-gnu-emacs@gnu.org > > http://mail.gnu.org/mailman/listinfo/help-gnu-emacs > > > > > > -- > Rene Reitinger > Research student > School for Computer Sciences and Engineering > The University of New South Wales, Sydney > NSW 2052, Australia > > email: rener@cse.unsw.edu.au > http://www.cse.unsw.edu.au/ > > Disclaimer: > http://www.eng.unsw.edu.au/emaildis.htm > > -- > Rene Reitinger > Research student > School for Computer Sciences and Engineering > The University of New South Wales, Sydney > NSW 2052, Australia > > email: rener@cse.unsw.edu.au > http://www.cse.unsw.edu.au/ > > Disclaimer: > http://www.eng.unsw.edu.au/emaildis.htm