From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help Subject: isearch-yank-line and field text property Date: Fri, 02 Jun 2006 00:52:13 +0200 Message-ID: <87zmgwo5eq.fsf@escher.local.home> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1149202372 13008 80.91.229.2 (1 Jun 2006 22:52:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Jun 2006 22:52:52 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 02 00:52:49 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Flw1t-0007f6-9s for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Jun 2006 00:52:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Flw1s-0005LL-Tb for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Jun 2006 18:52:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Flw1h-0005J4-Lb for help-gnu-emacs@gnu.org; Thu, 01 Jun 2006 18:52:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Flw1g-0005Fi-0c for help-gnu-emacs@gnu.org; Thu, 01 Jun 2006 18:52:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Flw1f-0005FR-PR for help-gnu-emacs@gnu.org; Thu, 01 Jun 2006 18:52:23 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Flw80-0004ss-Fo for help-gnu-emacs@gnu.org; Thu, 01 Jun 2006 18:58:56 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Flw1a-0007bh-6a for help-gnu-emacs@gnu.org; Fri, 02 Jun 2006 00:52:18 +0200 Original-Received: from i577b8e16.versanet.de ([87.123.142.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Jun 2006 00:52:18 +0200 Original-Received: from Stephen.Berman by i577b8e16.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Jun 2006 00:52:18 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 30 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: i577b8e16.versanet.de User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:35310 Archived-At: The following seems like a bug to me; if so, I'll report it as such. But maybe it's a feature of the field property or isearch-yank-line that I don't understand; if so, I'd appreciate a pointer to documentation (I couldn't find anything apposite in either the Emacs or Elisp manuals). 1. Type the following three lines in an empty buffer: test test test 2. Now put the cursor at the beginning of the second line and type this: `M-: (add-text-properties (point) (point-max) '(field test))' 3. Now type `C-s C-y'. The minibuffer contains the prompt "I-search:" but the line is not yanked into the search string, and in fact nothing else happens at all as long as you keep typing `C-y'. This happens only with isearch-yank-line, and only at that position; any other isearch command (including isearch-yank-word) at that position works fine. Moreover, isearch-yank-line from any following position also works fine, although they also have the field property; isearch-yank-line from any preceding position works up to that position and then stops as above. This happens in both CVS Emacs and in Emacs 21.3. The two Emacsen differ in the return value of field-string called with the cursor over the first character with the field property: in Emacs 21.3 it is "", while in CVS Emacs it is "test^J". Steve Berman