From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "a_subscriber" Newsgroups: gmane.emacs.bugs Subject: bug#36871: 26.1; I-search-toggle-csse-fold Date: Thu, 1 Aug 2019 14:13:28 +0300 Message-ID: <008701d5485a$2612f210$7238d630$@mail.ru> References: <001201d54775$5ca376a0$15ea63e0$@mail.ru> <83lfwei9ft.fsf@gnu.org> <85o91a47l2.fsf@gmail.com> <83a7cui776.fsf@gnu.org> <004b01d547b3$0cdb14a0$26913de0$@mail.ru> <87k1bxu4vj.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="23564"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36871@debbugs.gnu.org To: "'Noam Postavsky'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 01 13:14:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ht92D-0005xI-BU for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Aug 2019 13:14:13 +0200 Original-Received: from localhost ([::1]:54650 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1ht92C-0007kw-6p for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Aug 2019 07:14:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58174) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1ht923-0007hO-6u for bug-gnu-emacs@gnu.org; Thu, 01 Aug 2019 07:14:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ht922-0000mf-3p for bug-gnu-emacs@gnu.org; Thu, 01 Aug 2019 07:14:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44742) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ht922-0000mX-00 for bug-gnu-emacs@gnu.org; Thu, 01 Aug 2019 07:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ht921-0005wc-Pz for bug-gnu-emacs@gnu.org; Thu, 01 Aug 2019 07:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "a_subscriber" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Aug 2019 11:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36871 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 36871-submit@debbugs.gnu.org id=B36871.156465802122813 (code B ref 36871); Thu, 01 Aug 2019 11:14:01 +0000 Original-Received: (at 36871) by debbugs.gnu.org; 1 Aug 2019 11:13:41 +0000 Original-Received: from localhost ([127.0.0.1]:53563 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ht91f-0005vr-B4 for submit@debbugs.gnu.org; Thu, 01 Aug 2019 07:13:41 -0400 Original-Received: from smtp46.i.mail.ru ([94.100.177.106]:54868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ht91c-0005vc-9q for 36871@debbugs.gnu.org; Thu, 01 Aug 2019 07:13:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:In-Reply-To:References:Cc:To:From; bh=Hd7JapHKpgLSwjAcLgtOAsUxtNVanrBYFcieSDqgzDc=; b=k4UbOd26GIwleCPY2ghgVJpSBYhBNB8380ZB0oI6R16G67PIaaDMihx8aygmjqTZEBUNiFY1V+V6ipajanX4pNEbwpg9h0wHTgEqZhzu5tvPMa+2KnHTif3i5D+eMnWTy0JdONqAqUHY6XRs0+9bO+mEo2833TJYvxAiZrQ5vMk=; Original-Received: by smtp46.i.mail.ru with esmtpa (envelope-from ) id 1ht91V-00071v-Vd; Thu, 01 Aug 2019 14:13:30 +0300 In-Reply-To: <87k1bxu4vj.fsf@gmail.com> X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQHNBCVpv6sBBjj7c7YnV+A9QZTCWwIBnppWAVx1R5oCdM0uNgG8tUQdAlz/OrKmp0cqQA== Content-Language: en-us Authentication-Results: smtp46.i.mail.ru; auth=pass smtp.auth=a_subscriber@mail.ru smtp.mailfrom=a_subscriber@mail.ru X-77F55803: 689590B63E0A4B015A78504BD2AC2941B19CA5688019209D05707EC77080B6993E3E729BB145B89339DDADCF930E1043 X-7FA49CB5: 0D63561A33F958A505312FBB4336DB7CAC12475F2F4C21B4C7ADF07C45C05C078941B15DA834481FA18204E546F3947C86A7C529F68B8E5CF6B57BC7E64490618DEB871D839B7333395957E7521B51C2545D4CF71C94A83E9FA2833FD35BB23D27C277FBC8AE2E8B9FC99A4BA45EE8B4A471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C2249039C21679B5EABE876E601842F6C81A12EF20D2F80756B5F868A13BD56FB6657D81D268191BDAD3D78DA827A17800CE7FC8D5B433922522BEC76A7562686271EF5D81C698A659EA775ECD9A6C639B01B78DA827A17800CE7D5EFBB080C0CE70693EDDE491052E7E275ECD9A6C639B01B4E70A05D1297E1BBC6867C52282FAC8519DC0BE04022C72727F269C8F02392CD5571747095F342E88FB05168BE4CE3AF X-Mailru-Sender: 7F53729568FFBF28B44BB09D7A0416B95ABB2A38F6DB85D12E1CA40A966264A8BA3A90E98FAC5AE7A8448D9F3A5D7947AAFFD2005305549D604E8FA8B5A6A614ADD0A0B27108627D67EA787935ED9F1B X-Mras: OK X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:164212 Archived-At: So, is this e bug? It will be fix in future version of Emacs? -----Original Message----- From: Noam Postavsky Sent: Thursday, August 1, 2019 03:06 To: a_subscriber Cc: 'Eli Zaretskii' ; 36871@debbugs.gnu.org Subject: Re: bug#36871: 26.1; I-search-toggle-csse-fold retitle 36871 isearch-toggle-case-fold outside of isearch causes unexpected fontification tags 36871 = confirmed severity 36871 minor quit "a_subscriber" writes: > 1. Start emacs -Q > 2. Input some text (see step1.jpg) > 3. M-x isearch-toggle-case-fold (see step2.jpg) > 4. C-s (isearch) HELLO (see step3.jpg) 5. C-g 6. M-x > isearch-toggle-case-fold 7. and see result on step4.jpg Ah, it's not the region, it's highlighting from a not-quite-activated isearch. The problem is that isearch-toggle-case-fold wasn't really expected to be called outside of isearch. I think throwing an error in this case makes sense (I tried also just avoiding the call to isearch-update when isearch-mode is nil which does avoid the OP's problem, but the actual toggling part doesn't work). --- i/lisp/isearch.el +++ w/lisp/isearch.el @@ -1971,6 +1971,8 @@ isearch-define-mode-toggle ,(format "Toggle %s searching on or off.%s" mode (if docstring (concat "\n" docstring) "")) (interactive) + (unless isearch-mode + (user-error "isearch not active")) ,@(when function `((setq isearch-regexp-function (unless (eq isearch-regexp-function #',function)