From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: isearch.el patch for `M-e' to put point at mismatch position Date: Mon, 12 Sep 2011 14:28:20 +0300 Organization: JURTA Message-ID: <878vpuauhn.fsf@mail.jurta.org> References: <79A3EFE6965F48DC99409B8AC2363D2A@us.oracle.com> <87vct1zh4q.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1315829123 4086 80.91.229.12 (12 Sep 2011 12:05:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 12 Sep 2011 12:05:23 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 12 14:05:16 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R35GF-0003yf-7a for ged-emacs-devel@m.gmane.org; Mon, 12 Sep 2011 14:05:15 +0200 Original-Received: from localhost ([::1]:34232 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R35GE-00085y-PC for ged-emacs-devel@m.gmane.org; Mon, 12 Sep 2011 08:05:14 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:41864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R35GB-00084j-Ej for emacs-devel@gnu.org; Mon, 12 Sep 2011 08:05:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R35GA-000408-IJ for emacs-devel@gnu.org; Mon, 12 Sep 2011 08:05:11 -0400 Original-Received: from smarty.dreamhost.com ([208.113.175.8]:53635) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R35GA-0003zw-EF for emacs-devel@gnu.org; Mon, 12 Sep 2011 08:05:10 -0400 Original-Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 6269F6E80DE; Mon, 12 Sep 2011 05:05:08 -0700 (PDT) Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 6C7B9451C47C; Mon, 12 Sep 2011 05:05:07 -0700 (PDT) In-Reply-To: (Drew Adams's message of "Sat, 10 Sep 2011 09:22:21 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.113.175.8 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:143925 Archived-At: > Actually, unless I'm missing something that doesn't work either. > > emacs -Q > Insert a few tabs using C-q TAB. Insert `w'. > M-<. > C-s C-q TAB k > > Highlighting shows that the TAB char is matched but the `k' char is a mismatch. > > Now hit M-e. Instead of placing the cursor at the mismatch (just before the > `k'), it places it before the TAB, at the beginning of the search string. > > (Without your fix, the cursor was placed after the `k', which is also > incorrect.) > > Am I missing something? Perhaps you forgot to replace `isearch-message-state' with `isearch-string-state'?