From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: Re: I-search: Clicking in minibuf during I-search fails. Date: Sat, 27 Oct 2007 01:43:48 +0300 Organization: JURTA Message-ID: <87fxzxwlaq.fsf@jurta.org> References: <1191986217.275977.242960@o80g2000hse.googlegroups.com> <1192053098.477874.283490@k79g2000hse.googlegroups.com> <1192404883.312978.212670@t8g2000prg.googlegroups.com> <877iliu3p1.fsf@jurta.org> <87abqc2ibg.fsf@jurta.org> <87y7dth3u9.fsf@jurta.org> <87hckguquc.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1193438816 30067 80.91.229.12 (26 Oct 2007 22:46:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Oct 2007 22:46:56 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, amicitas@gmail.com To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 27 00:46:57 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IlXxA-0000S6-0r for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Oct 2007 00:46:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IlXx1-0006cQ-9j for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Oct 2007 18:46:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IlXwz-0006Zn-37 for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2007 18:46:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IlXwy-0006Xx-5X for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2007 18:46:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IlXwx-0006X3-Oj for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2007 18:46:43 -0400 Original-Received: from gnome.kiev.sovam.com ([212.109.32.24]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IlXwr-0008QX-Rq; Fri, 26 Oct 2007 18:46:38 -0400 Original-Received: from relay02.kiev.sovam.com ([62.64.120.197]) by gnome.kiev.sovam.com with esmtp (Exim 4.67 (FreeBSD)) (envelope-from ) id 1IlXwf-000Hym-4B; Sat, 27 Oct 2007 01:46:25 +0300 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay02.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1IlXwe-0008gD-8Z; Sat, 27 Oct 2007 01:46:24 +0300 In-Reply-To: (Richard Stallman's message of "Thu\, 25 Oct 2007 05\:01\:54 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-Scanner-Signature: 8abf2c83e696415c40c55866f9369f42 X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Not Detected X-SpamTest-Info: Profiles 1690 [Oct 27 2007] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {HEADERS: header Content-Type found without required header Content-Transfer-Encoding} X-SpamTest-Method: none X-SpamTest-Rate: 25 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release X-detected-kernel: by monty-python.gnu.org: FreeBSD 6.x (1) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16849 Archived-At: > The beginning of the minibuffer is the wrong position to put point, > because the prompt is read-only, and to start editing the user needs to > move point to the editable area. The right position is where the mouse > was clicked, > > Ok, now I understand you. Indeed, that is the right position. > > So why does the event have the wrong position in it? I guess this is because clicking mouse button with the code (let ((cursor-in-echo-area t)) (read-event)) always returns an event where the buffer position is 1. PS: I already suggested trying an alternative solution that gets rid of using `read-event', and binds C-w to a new command in the minibuffer for editing the search string. -- Juri Linkov http://www.jurta.org/emacs/