From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michal Nazarewicz Newsgroups: gmane.emacs.bugs Subject: bug#26656: unidata-check needs updating for special casing Date: Sun, 18 Jun 2017 21:35:56 +0200 Organization: http://mina86.com/ Message-ID: References: <7160hsxvg5.fsf@fencepost.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 1497814635 4847 195.159.176.226 (18 Jun 2017 19:37:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 18 Jun 2017 19:37:15 +0000 (UTC) To: Glenn Morris , 26656@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 18 21:37:09 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1dMg0T-000108-6w for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Jun 2017 21:37:09 +0200 Original-Received: from localhost ([::1]:39360 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMg0Y-0005nQ-9d for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Jun 2017 15:37:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMg0P-0005nL-M4 for bug-gnu-emacs@gnu.org; Sun, 18 Jun 2017 15:37:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMg0M-0001h4-KC for bug-gnu-emacs@gnu.org; Sun, 18 Jun 2017 15:37:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52744) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dMg0M-0001h0-Ez for bug-gnu-emacs@gnu.org; Sun, 18 Jun 2017 15:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dMg0M-00070e-9T for bug-gnu-emacs@gnu.org; Sun, 18 Jun 2017 15:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michal Nazarewicz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Jun 2017 19:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26656 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26656-submit@debbugs.gnu.org id=B26656.149781456726865 (code B ref 26656); Sun, 18 Jun 2017 19:37:02 +0000 Original-Received: (at 26656) by debbugs.gnu.org; 18 Jun 2017 19:36:07 +0000 Original-Received: from localhost ([127.0.0.1]:55421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMfzT-0006zF-J3 for submit@debbugs.gnu.org; Sun, 18 Jun 2017 15:36:07 -0400 Original-Received: from mail-wr0-f177.google.com ([209.85.128.177]:35320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMfzR-0006yk-Pe for 26656@debbugs.gnu.org; Sun, 18 Jun 2017 15:36:06 -0400 Original-Received: by mail-wr0-f177.google.com with SMTP id y25so22162027wrd.2 for <26656@debbugs.gnu.org>; Sun, 18 Jun 2017 12:36:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:from:to:subject:in-reply-to:organization:references:face :openpgp:date:message-id:mime-version:content-transfer-encoding; bh=F8oSdWR8rhbruptYVz3I0UpW84aj9xhHLGZl1OJxiZ8=; b=JWA+DyO1VaXsbRNvKispZy45sBhJsXP8paiBhsR03sfHUOkxItANPBdOkqlxuh/ZV4 ApHCJ6xo/tZG4onyGzmcD2wnmHar2gFhMNo0M10Etxe1akBfvRw1e4D3r3Ktz8IAol+K pFu8jXHaOWoKppX1Ea2meiE4q9f0JlW7sHWqu0TITaj0kvP3wfdf5PfW3rwhp0Aie4Be Se49DxCXgXcrat41Jd8jczxJ23geuG5rdABY5XicGIgXCjZI+Nuutg8kYKZAtZl64mhP gK9J5MmEoC1w5avcSQi7VKYXOvEUnTmPu/BbzzpmqQej3qSDMzXmax9qfr7Rpy6sqaS0 KKuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:in-reply-to:organization :references:face:openpgp:date:message-id:mime-version :content-transfer-encoding; bh=F8oSdWR8rhbruptYVz3I0UpW84aj9xhHLGZl1OJxiZ8=; b=kwSJFJFauIKGvaBTVmHw1H2fdgN8P/v2d0tlsbirIUliHNh0hR8vo+bxJBFmimPDli Ah2uGnxD5zDJVz3eJ4l564n86FkIsBnJzb3KYZ/rQFcVNQH64iENOu/HC0FN9piSjiS5 ANgZxvHTbZgV9dxFx3A/VBhDBc+j07Y98tolHzLKIBuaDh5LuHCc6wDIcwLzTMP7ByXy ctYZqSo8SkSPCJPAQUWEeB9WmI/MN3XvbiYmArxYTkFU+NFN3djXm522jvlQtJitnENG Q0ZZR6dCSf16YgewANElW45dICdz7QfUTUP79+zxiPLeSW66VwHm2eK7KswcYOFdWvGF FE8g== X-Gm-Message-State: AKS2vOzwuEY4rbjhX3+Zps8K+zSgl6rX8msGrhzY837tjWEmL4vrKkBy PtaC0LkXNMRj9NxZThSd4Q== X-Received: by 10.223.178.140 with SMTP id g12mr11130554wrd.158.1497814559593; Sun, 18 Jun 2017 12:35:59 -0700 (PDT) Original-Received: from mpn-glaptop ([2620:0:105f:fd00:51f6:1561:31f8:eb48]) by smtp.gmail.com with ESMTPSA id k12sm7810772wrc.10.2017.06.18.12.35.57 (version=TLS1_2 cipher=AES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Fc1)*O]3+XO^oXM>Q#b^ix, O)Zbn)q[y06$`e3?C)`CwR9y5riE=fv^X@x$y?D:XO6L&x4f-}}I4=VRNwiA^t1-ZrVK^07.Pi/57c_du'& OpenPGP: id=AC1F5F5CD41888F8CC8458582060401250751FF4; url=http://mina86.com/mina86.pub X-Hashcash: 1:20:170618:rgm@gnu.org::y1blN2hAeuqAXaKo:00000014mx X-Hashcash: 1:20:170618:26656@debbugs.gnu.org::lgsPwlhXY5PJJavj:0000000000000000000000000000000000000000F6hX 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: 208.118.235.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:133735 Archived-At: On Tue, Apr 25 2017, Glenn Morris wrote: > Package: emacs > Version: 26.0.50 > Severity: minor > > admin/unidata/unidata-gen.el includes a unidata-check function, to be > used like this: > > ;; (let ((unidata-dir "/path/to/admin/unidata")) > ;; (unidata-setup-list "unidata.txt") > ;; (unidata-check)) > > It works in emacs-25, but has numerous failures related to the special > casing rules in master. Presumably it needs updating for this somewhat > recent addition. Thanks. I=E2=80=99m rather conflicted about the best way to fix this. As currently written, unidata-check makes sense for properties from UnicodeData.txt file. The function compares values in unidata.txt file with values generated from various generator functions. However, SpecialCasing.txt is read directly by unidata-gen-table-special-casing--do-load function so there is no other file that unidata-check can read to compare the generation of. Should I just skip the check for special casing properties. With the following: diff --git a/admin/unidata/unidata-gen.el b/admin/unidata/unidata-gen.el index 64e2babd4b9..f99004a4f7e 100644 --- a/admin/unidata/unidata-gen.el +++ b/admin/unidata/unidata-gen.el @@ -1353,7 +1353,8 @@ unidata-check (alist (and (functionp index) (funcall index))) (check #x400)) - (dolist (e unidata-list) + (dolist (e (unless (eq generator 'unidata-gen-table-special-casing) + unidata-list)) (let* ((char (car e)) (val1 (if alist (nth 1 (assoc char alist)) the function reports no errors. --=20 Best regards =E3=83=9F=E3=83=8F=E3=82=A6 =E2=80=9C=F0=9D=93=B6=F0=9D=93=B2=F0=9D=93=B7= =F0=9D=93=AA86=E2=80=9D =E3=83=8A=E3=82=B6=E3=83=AC=E3=83=B4=E3=82=A4=E3=83= =84 =C2=ABIf at first you don=E2=80=99t succeed, give up skydiving=C2=BB