From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Let's make C-M-w in isearch yank symbol, not delete character Date: Mon, 05 Mar 2018 23:25:38 +0200 Organization: LINKOV.NET Message-ID: <87d10i8bal.fsf@mail.linkov.net> References: <87po4slrg4.fsf@mail.linkov.net> <831sh82zyf.fsf@gnu.org> <87h8q2w29i.fsf@mail.linkov.net> <83tvu1zsru.fsf@gnu.org> <87tvtzjvh4.fsf@mail.linkov.net> <83tvtyx55a.fsf@gnu.org> <87efl0pz4d.fsf@mail.linkov.net> <83o9k3u9ku.fsf@gnu.org> <87371f34m6.fsf@mail.linkov.net> <83bmg3tczk.fsf@gnu.org> <83606atswi.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1520285876 20004 195.159.176.226 (5 Mar 2018 21:37:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 5 Mar 2018 21:37:56 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 05 22:37:52 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1esxnd-0003Bg-QQ for ged-emacs-devel@m.gmane.org; Mon, 05 Mar 2018 22:37:37 +0100 Original-Received: from localhost ([::1]:51710 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1esxpg-0004Jo-If for ged-emacs-devel@m.gmane.org; Mon, 05 Mar 2018 16:39:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1esxn0-0002h2-2A for emacs-devel@gnu.org; Mon, 05 Mar 2018 16:36:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1esxmz-0007z8-7l for emacs-devel@gnu.org; Mon, 05 Mar 2018 16:36:58 -0500 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:59406 helo=homiemail-a11.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1esxmu-0007vV-2J; Mon, 05 Mar 2018 16:36:52 -0500 Original-Received: from homiemail-a11.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a11.g.dreamhost.com (Postfix) with ESMTP id 3E575314C06D; Mon, 5 Mar 2018 13:36:50 -0800 (PST) Original-Received: from localhost.linkov.net (m91-129-110-147.cust.tele2.ee [91.129.110.147]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by homiemail-a11.g.dreamhost.com (Postfix) with ESMTPSA id 61CFD314C062; Mon, 5 Mar 2018 13:36:49 -0800 (PST) In-Reply-To: <83606atswi.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 05 Mar 2018 17:59:41 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 69.163.253.7 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:223302 Archived-At: >> > So actually it does both: appends control characters and runs the >> > command, and doing both makes no sense. Then maybe we should create= two >> > separate options for search-exit-option: one to run the command >> > and another to append control characters. > > Probably. Although I think that the latter is much more important, so > I'd be okay with having only it. It makes sense to run the command to move point to other place without exiting Isearch. For example, after moving point typing =E2=80=98C-s=E2=80= =99 works fine and finds a new match after the new position. >> When typing them with search-exit-option customized to nil, I see >> such errors in *Messages* >>=20 >> Error in pre-command-hook (isearch-pre-command-hook): >> (wrong-type-argument characterp right) >>=20 >> Error in pre-command-hook (isearch-pre-command-hook): >> (wrong-type-argument characterp 134217830) > > That's a bug that needs to be fixed, I think. Unfortunately, I have no idea what characters to append to the search string in such cases.