From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: replace.el changes... Date: 21 Jun 2004 17:10:01 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <87llihotdc.fsf@mail.jurta.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1087830629 26241 80.91.224.253 (21 Jun 2004 15:10:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 Jun 2004 15:10:29 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Jun 21 17:10:23 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BcQRD-0008Ju-00 for ; Mon, 21 Jun 2004 17:10:23 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BcQRD-000323-00 for ; Mon, 21 Jun 2004 17:10:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BcQSS-0006wo-Ai for emacs-devel@quimby.gnus.org; Mon, 21 Jun 2004 11:11:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BcQSI-0006wF-7Y for emacs-devel@gnu.org; Mon, 21 Jun 2004 11:11:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BcQSH-0006w3-Pg for emacs-devel@gnu.org; Mon, 21 Jun 2004 11:11:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BcQSH-0006vV-NI for emacs-devel@gnu.org; Mon, 21 Jun 2004 11:11:29 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BcQQt-0000LM-Md for emacs-devel@gnu.org; Mon, 21 Jun 2004 11:10:03 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1BcQQs-0006er-Vw; Mon, 21 Jun 2004 11:10:03 -0400 Original-To: Juri Linkov In-Reply-To: <87llihotdc.fsf@mail.jurta.org> Original-Lines: 31 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:25156 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25156 Juri Linkov writes: > David Kastrup writes: > > If a replacement has already been done, the stored information in the > > history does not contain the highlighted region. So I am going to > > have to either change the history information format, or don't enter > > actually performed replacements into that list for revisiting in the > > first place, or don't highlight things when going backwards in the > > list. Incidentally, the history is also the return value from all > > replacement commands: anybody know whether this is actually used > > anywhere? > > I don't know where it is used, but I think it's better not to change > the format of the return value. It is actually not documented to be useful, except as being nil or non-nil. And even then, it is only documented for perform-replace itself (the internal routine doing the job). AFAICS, the return value from perform-replace is actually used nowhere within Emacs directly _except_ for incidentally also being the return value of all replacement-related functions. Searching for uses of all of them would be work... > 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. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum