unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stephen Berman <Stephen.Berman@gmx.net>
Subject: isearch-yank-line and field text property
Date: Fri, 02 Jun 2006 00:52:13 +0200	[thread overview]
Message-ID: <87zmgwo5eq.fsf@escher.local.home> (raw)

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

                 reply	other threads:[~2006-06-01 22:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87zmgwo5eq.fsf@escher.local.home \
    --to=stephen.berman@gmx.net \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).