From: David Kastrup <dak@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: replace.el changes...
Date: 22 Jun 2004 11:55:15 +0200 [thread overview]
Message-ID: <x5d63rvrwc.fsf@lola.goethe.zz> (raw)
In-Reply-To: <87n02vzzzx.fsf@mail.jurta.org>
Juri Linkov <juri@jurta.org> writes:
> David Kastrup <dak@gnu.org> writes:
> > Juri Linkov <juri@jurta.org> writes:
> >> You could remove your additional fields from the history before
> >> returning it.
> >
> > Sounds like overkill for something that is not even documented to be
> > useful.
>
> Perhaps no need to worry if you put additional elements into the end
> of every history item list. This is quite safe for backward
> compatibility.
Unfortunately, the match-data is not the last element of the list,
but the cdr of the list. So there are no "additional elements" you
could tack on.
Anyway, I am restructuring the data. I still have one thing to get
a grip about, however: it is my impression that replace-match is
supposed to change the match-data according to what it replaces. But
it does not seem like (match-end 0) is affected. I have to dig
through the code to get a hang what happens and is supposed to
happen, and whether "fixing" it to make it do what I think it is
supposed to do could cause trouble.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next prev parent reply other threads:[~2004-06-22 9:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-21 14:05 replace.el changes David Kastrup
2004-06-21 14:55 ` Juri Linkov
2004-06-21 15:10 ` David Kastrup
2004-06-22 9:48 ` Juri Linkov
2004-06-22 9:55 ` David Kastrup [this message]
2004-06-22 23:16 ` Richard Stallman
2004-06-22 23:36 ` David Kastrup
2004-06-24 23:48 ` Richard Stallman
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=x5d63rvrwc.fsf@lola.goethe.zz \
--to=dak@gnu.org \
--cc=emacs-devel@gnu.org \
/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.