emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: isearch-yank-line and field text property


From: Romain Francoise
Subject: Re: isearch-yank-line and field text property
Date: Sun, 09 Jul 2006 13:11:36 +0200

Stephen Berman <address@hidden> writes:

> 1. emacs -Q
> 2. Type the following three lines in an empty buffer:
> test
> test
> test
> 3. Now put the cursor at the beginning of the second line and type this:
> `M-: (add-text-properties (point) (point-max) '(field test))'
> 4. 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'.

Yes, this is because `isearch-yank-line' uses the `line-end-position'
function, which doesn't cross fields.  In the context of
`isearch-yank-line', we want to fetch the line, not the field, so this
is a bug.  I have installed a fix.

Thanks,

-- 
Romain Francoise <address@hidden> | The sea! the sea! the open
it's a miracle -- http://orebokech.com/ | sea! The blue, the fresh, the
                                        | ever free! --Bryan W. Procter




reply via email to

[Prev in Thread] Current Thread [Next in Thread]