all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: kai.grossjohann@uni-duisburg.de (Kai Großjohann)
Subject: Re: Search Next
Date: Wed, 11 Dec 2002 17:27:54 +0100	[thread overview]
Message-ID: <843cp434hh.fsf@lucy.cs.uni-dortmund.de> (raw)
In-Reply-To: 4BsJ9.128669$Gc.4330785@twister.austin.rr.com

"CarlC" <carlc@snowbd.com> writes:

> "Kai Großjohann" <kai.grossjohann@uni-duisburg.de> wrote in message
> news:84vg21yciw.fsf@lucy.cs.uni-dortmund.de...
>> "CarlC" <carlc@snowbd.com> 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)

  reply	other threads:[~2002-12-11 16:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-09 15:39 Search Next CarlC
2002-12-09 15:52 ` Galen Boyer
     [not found]   ` <KI4J9.122660$Gc.3983550@twister.austin.rr.com>
2002-12-09 21:16     ` Kevin Rodgers
2002-12-10  8:49     ` Kai Großjohann
2002-12-10 14:10       ` CarlC
2002-12-10 18:06         ` Kai Großjohann
2002-12-10 20:59           ` CarlC
2002-12-11 16:27             ` Kai Großjohann [this message]
2002-12-13 23:21         ` Alan Mackenzie
2002-12-14 19:56           ` Stefan Monnier <foo@acm.com>
2002-12-10 11:15 ` ken
2002-12-12 15:23 ` Benjamin Riefenstahl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=843cp434hh.fsf@lucy.cs.uni-dortmund.de \
    --to=kai.grossjohann@uni-duisburg.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.