From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: [Stephen.Berman@gmx.net: isearch-yank-line and field text property] Date: Sun, 11 Jun 2006 12:16:04 -0400 Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1150042592 14558 80.91.229.2 (11 Jun 2006 16:16:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 11 Jun 2006 16:16:32 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 11 18:16:27 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FpSbp-0006MD-7z for ged-emacs-devel@m.gmane.org; Sun, 11 Jun 2006 18:16:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FpSbo-0008Ot-MS for ged-emacs-devel@m.gmane.org; Sun, 11 Jun 2006 12:16:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FpSbd-0008Nv-Js for emacs-devel@gnu.org; Sun, 11 Jun 2006 12:16:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FpSbd-0008NQ-5w for emacs-devel@gnu.org; Sun, 11 Jun 2006 12:16:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FpSbc-0008NI-TC for emacs-devel@gnu.org; Sun, 11 Jun 2006 12:16:04 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FpSk9-0002Bu-Sw for emacs-devel@gnu.org; Sun, 11 Jun 2006 12:24:53 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1FpSbc-0004Qe-8E; Sun, 11 Jun 2006 12:16:04 -0400 Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:55828 Archived-At: Is there a bug here? Miles, could you please take a look? ------- Start of forwarded message ------- To: emacs-pretest-bug@gnu.org From: Stephen Berman Date: Tue, 06 Jun 2006 13:53:45 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: isearch-yank-line and field text property X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=failed version=3.0.4 (I posted this to help-gnu-emacs last Friday but there hasn't been a response to date, so I'm posting it here, in case it is a bug.) The following seems like a bug to me, 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. 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'. 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". In GNU Emacs 22.0.50.14 (i686-pc-linux-gnu, GTK+ Version 2.8.10) of 2006-04-17 on escher X server distributor `The X.Org Foundation', version 11.0.60802000 configured using `configure '--with-x-toolkit=gtk'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Summary Minor modes in effect: tabbar-mwheel-mode: t tabbar-mode: t recentf-mode: t show-paren-mode: t display-time-mode: t tooltip-mode: t auto-compression-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: identity Recent input: y C-c r e . s l C-c r C q C-c r c i M-x g u J j y M-g SPC t t M-x r e p o r Recent messages: Loading gnus-ml...done Fetching headers for gmane.emacs.help...done Generating summary...done Loading gnus-bcklg...done Loading gnus-async...done Loading smiley...done Loading gnus-cite...done Parsing BBDB... (frobnicating...done) Making completion list... Loading emacsbug...done _______________________________________________ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug ------- End of forwarded message -------