From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Quickly check for differences in code and locate possible errors. Date: Tue, 28 Mar 2023 21:56:33 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39491"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 28 15:57:16 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ph9p5-000A9j-Sn for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 28 Mar 2023 15:57:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ph9of-0003YL-Rv; Tue, 28 Mar 2023 09:56:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ph9oe-0003YB-JJ for help-gnu-emacs@gnu.org; Tue, 28 Mar 2023 09:56:48 -0400 Original-Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ph9od-000183-6W for help-gnu-emacs@gnu.org; Tue, 28 Mar 2023 09:56:48 -0400 Original-Received: by mail-ed1-x534.google.com with SMTP id er13so9094653edb.9 for ; Tue, 28 Mar 2023 06:56:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680011804; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=B0BEGexIt3PMApmIIbaPXp7BXN2TtmgukH4+UpKq++8=; b=dsRJVkmyDThTDBdUSnet4RSgCY8G7Gvpt19jJ5kBGxp4/Fr9g4v9tauo0L6GVWk5Wv qNH4mZjQvjApwRrGbw31asPNmEm70m+wfREgB4czFk+nzQzLWiCYWcLY4Mxyo5vZi5OD pGyN3S9CFzA/1u/9mR8tzhPJyKrU+qiMZ5GWkl3Ted8MwHQwT2mme03VDrQq4umHT0uO uVv3dcgsjIaMHxKdeD4dAGEa8jPKHVhsIs8qVvj4VhcdeCMqFmLyUR67pkWz/I95fKNl coRL5sQlHHuZWc1U9Rc/UAjrafDOLFUOWpGrDq7lK9g7UIlK7ZlQgJoJHIuHamAj9kDh UHww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680011804; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=B0BEGexIt3PMApmIIbaPXp7BXN2TtmgukH4+UpKq++8=; b=1cgt2iSmKkGnqrRH1eVzFnuuZDIPlFRYv1tezoetuAkt0SvcTy8/NjVO8WO03/13V2 OmLgZr+wmM1KVU50CClCXwgZQM0fLxKL4iQQBoFNEQh0oxK7fsmK5mp+PyHiiI82Ego9 EmXHXdGjLV1N6PL0UHuAPvIxpoLs5EhK8f2+ATUH+S4e4WK4oWQq0WSaFj1fJ+4laJt3 mtB2tgYkRXJVqkf9qT8wDyHuVG2fLqSivcSGmdAO0xDNstb1FJwZH5l6ixB62vUcnVI1 VktTWYtYPkQK7GAnmV05kUNOjhM1/08kolcyBTVpa8PzrXWYO4EfFDFFAXAwogP9YtML kaUg== X-Gm-Message-State: AAQBX9eFGsLwrqmQp8v2vM9DeCEqjKKKfXav4NKAd1AsCYq7Sz3Iw1Yv umAAJ8L0jPLrThfYzdPq/Pd5jwiG2ehphloMOUjRnt9hhDvMYQ== X-Google-Smtp-Source: AKy350bmuY2GGyAHRrFXZHHAi3wZ8CsN/NSGXkoqiH/p9Pm1xTlHBJxfyCu2/70HeasEoZd9K9jr7Q0ygV7zgxcjfys= X-Received: by 2002:a17:906:cf89:b0:932:4577:6705 with SMTP id um9-20020a170906cf8900b0093245776705mr8298632ejb.6.1680011804552; Tue, 28 Mar 2023 06:56:44 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=hongyi.zhao@gmail.com; helo=mail-ed1-x534.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143140 Archived-At: Hi here, I've the following two lines of wolfram code written in two versions: Version 1. This is the correct version: getPGRotMat =3DgetRotMat[If[MemberQ[RotMat[[1]]["CubiPrim"], #],"CubiPrim","HexaPrim"],#]&; Grid[Table[{PGinfo[[i,;;2]],{#\[RightArrow]getPGRotMat[#]} & /@getPGElem[i]},{i,32}],Frame -> All] Version 2. This is the wrong version: getPGRotMat =3DgetRotMat[If[MemberQ[RotMat[[1]]["CubiPrim"]=EF=BC=8C#],"Cub= iPrim","HexaPrim"],#]&; Grid[Table[{PGinfo[i,;;2],{#\[RightArrow]getPGRotMat[#]} & /@getPGElem[i]},{i,3}],Frame \[RightArrow] All] I would like to know whether it's possible to quickly check for differences in code and locate possible errors with the help of Emacs. Any tips will be appreciated. Regards, Zhao --=20 Assoc. Prof. Hongsheng Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province