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: Format code snippets of the wolfram language to improve readability. Date: Tue, 26 Apr 2022 16:42:26 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34384"; 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 Apr 26 10:43:55 2022 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 1njGnb-0008ov-BJ for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 26 Apr 2022 10:43:55 +0200 Original-Received: from localhost ([::1]:50568 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njGna-0003I3-3t for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 26 Apr 2022 04:43:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41434) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njGmP-0003FS-Ru for help-gnu-emacs@gnu.org; Tue, 26 Apr 2022 04:42:41 -0400 Original-Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]:46021) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1njGmO-0007Uz-D9 for help-gnu-emacs@gnu.org; Tue, 26 Apr 2022 04:42:41 -0400 Original-Received: by mail-ed1-x52e.google.com with SMTP id be20so13064080edb.12 for ; Tue, 26 Apr 2022 01:42:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=oWs6//zv7ObB2GhB1xEELcNgqpmn85gawr+nP4jvBLc=; b=PgfHQSQ2Z0/cobX/ek6IaU9taMoCGg7V1aoxYeAJECNowA6OXpar1+wij+YcmPaqEX e2oPOaegP8jhCK3xSCFvbRyHAvx5pCYNlPyYmg2Yetc0eJ5JQDvitr8o+29BEI0xWN5o 4dmcGtIK+rIBGZRWSFReBLg9ip+FYvuTZyppQuzswddBN/9lc08B27BPLBxXVAfMiIZM RBrJxWd6ENZU0ZL0XdV6Hym/UgwKhVZOwkfNL29Uk0y2QZem05TCuE6ZN627QgMQWnR0 QpsuaEvZVwmaYXCmTcapSUXt8owX0OUf8XkPbCR9jpSETR6OcmjQ8TuvdOYsFzm+3pDJ J5Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=oWs6//zv7ObB2GhB1xEELcNgqpmn85gawr+nP4jvBLc=; b=EV6r6IHS4lVTD0o5BRFqSjFuDHGaC5zvXXiexegPP5bfJjzDo5An3QaB4MqWfVuzSF YEC8ZFmm3mxYqVKmxpzSC32amzng1MSFn6gIaTuzxAyzhOTRJfv+R1CWiiDGbUFCxDzH auDmSBVbOtiodv9v7/+PASstv97MqKz3NfC9jRkZ4wPXpz7iU9nLqGVl5jUQLITwKtrw S1AzUr41ynWZGa7V44h0AGQjcrIr73o2M8mpV8ln/BuFptTb10iR/TwLZ934Lncv+M30 0oYzadBE1cMgFxYtGVo/6II3J2ttLxyhoOoGYqJnXEf2BE0DCA1Mcnoyk+XAucF+KaCS CaCg== X-Gm-Message-State: AOAM533U0WO5imVaDRnB6s7LkqglroKLTr6D90tmqAKJ8YddVMD9Dxza LrH7z+I5njo3zpq8+ti6eTXGM28PWxHzLRmkr7eKVGP5iX4AH2WHzFs= X-Google-Smtp-Source: ABdhPJz5WaBaRxqAsWViCq4TrTN223xTWUledJ6NAlgTr037/i+u627Peu3qMenciubuxRIvtG4MiXpZf1qJq7G0YJE= X-Received: by 2002:a05:6402:948:b0:425:ea37:96b8 with SMTP id h8-20020a056402094800b00425ea3796b8mr8759964edz.90.1650962558170; Tue, 26 Apr 2022 01:42:38 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::52e; envelope-from=hongyi.zhao@gmail.com; helo=mail-ed1-x52e.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, T_SCC_BODY_TEXT_LINE=-0.01 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" Xref: news.gmane.io gmane.emacs.help:137027 Archived-At: I've the following code snippets of the wolfram language: ``` Hold[ReplaceRepeated[List[A, B, IA, A, B, IA, A, B, IA, A, B, IA, A, B, IA], RuleDelayed[Condition[List[Pattern[x, BlankNullSequence[]], Pattern[y, Blank[]], Pattern[z, Blank[]], Pattern[t, BlankNullSequence[]]], Simplify[Equal[Dot[y, z], IdentityMatrix[3]]]], List[x, t]]]] ``` I want to format it in Emacs to improve readability. Any hints for achieving this purpose? Regards -- 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