From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Why is `C-x 8' limited to Latin-1 for search? Date: Mon, 10 Dec 2012 16:11:26 -0800 Message-ID: References: <1992681966EA4AE4A56751FA335DD5CE@us.oracle.com><9A96D353A11D47A7A143074DB1E09EE4@us.oracle.com><8738ze4jid.fsf@mail.jurta.org><9CE95F039B2A4295BA1273CD98924B43@us.oracle.com> <87zk1lfu4j.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1355184699 21881 80.91.229.3 (11 Dec 2012 00:11:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Dec 2012 00:11:39 +0000 (UTC) Cc: emacs-devel@gnu.org To: "'Juri Linkov'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 11 01:11:53 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TiDRr-0005z0-I9 for ged-emacs-devel@m.gmane.org; Tue, 11 Dec 2012 01:11:47 +0100 Original-Received: from localhost ([::1]:47937 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiDRe-0003Sj-UT for ged-emacs-devel@m.gmane.org; Mon, 10 Dec 2012 19:11:34 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40384) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiDRc-0003Se-57 for emacs-devel@gnu.org; Mon, 10 Dec 2012 19:11:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TiDRb-0002sT-3J for emacs-devel@gnu.org; Mon, 10 Dec 2012 19:11:32 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:36076) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiDRa-0002sN-SF for emacs-devel@gnu.org; Mon, 10 Dec 2012 19:11:31 -0500 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id qBB0BTCZ020781 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 11 Dec 2012 00:11:29 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id qBB0BStn022734 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 11 Dec 2012 00:11:28 GMT Original-Received: from abhmt115.oracle.com (abhmt115.oracle.com [141.146.116.67]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id qBB0BSnM022534; Mon, 10 Dec 2012 18:11:28 -0600 Original-Received: from dradamslap1 (/130.35.178.8) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 10 Dec 2012 16:11:27 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87zk1lfu4j.fsf@mail.jurta.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Thread-Index: Ac3XIzspz5zttmg6SV+6R2VQi1PtiwAAt9jA X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 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:155442 Archived-At: > > But I don't know what you mean by "except the part that changes > > `isearch-new-string' and `isearch-new-message'. I do > > change both, to reflect the added char. No doubt you had a > > slightly different macro in mind. > > I meant that `isearch-edit-string' does more than needed for > the command that will read and insert an Unicode char. For example, > currently it binds `history-add-new-input' to nil. This means that > your code doesn't add the char name to the minibuffer's history. Yes, your macro is the same as mine, except that you do not include these 3 bindings (you use them only in `isearch-edit-string'): (message-log-max nil) (history-add-new-input nil) (minibuffer-history-symbol nil) And you do not update `isearch-new-string' and `isearch-new-message' in the macro itself, but outside it (in the macro callers). > (define-key isearch-mode-map "\M-r" > (lambda () > (interactive) > (with-isearch-suspend (recursive-edit)))) > > `C-M-c' will continue the suspended isearch. Your tweak improves the macro - my vote says go for it. I suggest changing the name slightly: `with-isearch-suspended' (or perhaps just `isearch-suspend').