From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#35802: Broken data loaded from uni-decomposition Date: Sun, 16 Jun 2019 22:22:15 +0300 Organization: LINKOV.NET Message-ID: <877e9lcp3s.fsf@mail.linkov.net> References: <878sv2idc0.fsf@mail.linkov.net> <85k1dybq2y.fsf@gmail.com> <87v9xie9a8.fsf@mail.linkov.net> <854l4wb3y6.fsf@gmail.com> <877e9r3j2i.fsf@mail.linkov.net> <87k1dmxopz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="225876"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 35802@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 16 22:39:16 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 1hcbvn-000weh-Te for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Jun 2019 22:39:16 +0200 Original-Received: from localhost ([::1]:42778 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcbvn-000155-0b for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Jun 2019 16:39:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56322) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcbtu-0008K8-04 for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 16:37:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcbti-0007WG-Tg for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 16:37:09 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56236) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hcbtd-0007Tl-Th for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 16:37:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hcbtd-0004Nd-PJ for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 16:37:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Jun 2019 20:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35802 X-GNU-PR-Package: emacs Original-Received: via spool by 35802-submit@debbugs.gnu.org id=B35802.156071741916829 (code B ref 35802); Sun, 16 Jun 2019 20:37:01 +0000 Original-Received: (at 35802) by debbugs.gnu.org; 16 Jun 2019 20:36:59 +0000 Original-Received: from localhost ([127.0.0.1]:41547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcbtb-0004NN-Cv for submit@debbugs.gnu.org; Sun, 16 Jun 2019 16:36:59 -0400 Original-Received: from brown.elm.relay.mailchannels.net ([23.83.212.23]:46468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcbtZ-0004N6-H3 for 35802@debbugs.gnu.org; Sun, 16 Jun 2019 16:36:58 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 32B883412C5; Sun, 16 Jun 2019 20:36:56 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a70.g.dreamhost.com (100-96-11-129.trex.outbound.svc.cluster.local [100.96.11.129]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 968C33401B9; Sun, 16 Jun 2019 20:36:55 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a70.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Sun, 16 Jun 2019 20:36:56 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Average-Drop: 0e86da293d668f4e_1560717415939_3341988841 X-MC-Loop-Signature: 1560717415939:1088873789 X-MC-Ingress-Time: 1560717415938 Original-Received: from pdx1-sub0-mail-a70.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a70.g.dreamhost.com (Postfix) with ESMTP id 43DD381066; Sun, 16 Jun 2019 13:36:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=VYQVam/KAXA8ouHrSszMAFhsTm4=; b= aSC371CzD9+ycwOUCM7aGTC1/bCEGhueD1nUd9OiEg/WkkAcrzNUrVeLjNCUr2gZ aiSWb3RHxM4gVw/fmn+bMnJcgd6K9n+G7AxquRMKGNpuDxdTpNAa5a5j788idzPG VC5nSpKnZirVNjhburea2Iom8+Fvs6SY6BHd0cle11I= Original-Received: from mail.jurta.org (m91-129-109-209.cust.tele2.ee [91.129.109.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a70.g.dreamhost.com (Postfix) with ESMTPSA id 6CC0381061; Sun, 16 Jun 2019 13:36:49 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a70 In-Reply-To: <87k1dmxopz.fsf@gmail.com> (Noam Postavsky's message of "Sat, 15 Jun 2019 22:12:40 -0400") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrudeihedgudehhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtledrvddtleenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdelrddvtdelpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepnhhpohhsthgrvhhssehgmhgrihhlrdgtohhmnecuvehluhhsthgvrhfuihiivgepud 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:160701 Archived-At: >>> Actually maybe it's just a matter of making isearch bind >>> search-spaces-regexp less widely. I'm not quite following when the your >>> problem happens though. Can you show a backtrace from your original >>> problem using >>> >>> (add-hook 'after-load-functions >>> (lambda (f) (when (string-match-p "uni-decomposition" f) >>> (debug nil :search-spaces-regexp search-spaces-regexp)))) >> >> When I eval both the above and (setq search-whitespace-regexp "\\(\\s-\\|\n\\)+") >> then debugger still shows that search-spaces-regexp is nil >> (also note where search-spaces-regexp is let-bound to non-nil in the backtrace, >> see also more info after the backtrace): > > Hmm, can you show exactly what's needed to trigger this? I tried the > above after applying your patch in Bug#35802, but uni-decomposition was > never loaded. Here is a complete reproducible test case: -1. Apply the following patch to master and recompile 0. emacs -Q 1. Eval: (progn (setq search-whitespace-regexp "\\(\\s-\\|\n\\)+") (add-hook 'after-load-functions (lambda (f) (when (string-match-p "uni-decomposition" f) (debug nil :search-spaces-regexp search-spaces-regexp))))) 2. Type C-s M-s ' a diff --git a/lisp/char-fold.el b/lisp/char-fold.el index d2fa7108bb..7b0e55bb11 100644 --- a/lisp/char-fold.el +++ b/lisp/char-fold.el @@ -28,7 +28,6 @@ (defun char-fold-make-table () (let* ((equiv (make-char-table 'char-fold-table)) (equiv-multi (make-char-table 'char-fold-table)) - (search-spaces-regexp nil) ; workaround for bug#35802 (table (unicode-property-table-internal 'decomposition))) (set-char-table-extra-slot equiv 0 equiv-multi) @@ -141,6 +140,11 @@ char-fold-table Exceptionally for the space character (32), ALIST is ignored.") +(progn + (message "search-spaces-regexp: %S" search-spaces-regexp) + ;; Emulate funcall from defcustom :set + (setq char-fold-table (char-fold-make-table))) + (defun char-fold--make-space-string (n) "Return a string that matches N spaces." (format "\\(?:%s\\|%s\\)"