From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: ELisp Multiline Comments Date: Sat, 10 Oct 2020 18:11:02 +0200 Message-ID: References: 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="35659"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org, Stefan Monnier To: Christopher Dimech Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 10 18:13:05 2020 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 1kRHUX-00099T-4o for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 10 Oct 2020 18:13:05 +0200 Original-Received: from localhost ([::1]:53684 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRHUS-0008G5-K0 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 10 Oct 2020 12:13:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43936) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRHSe-0008Fw-Ny for help-gnu-emacs@gnu.org; Sat, 10 Oct 2020 12:11:08 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:44509) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRHSc-0004FL-6h for help-gnu-emacs@gnu.org; Sat, 10 Oct 2020 12:11:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1602346263; bh=g0R8YB6XSJrpKFdwsvUujwidS0cNxkc+UEMD9SsYVXc=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=DtGxUbHwR6q+UEvQU4K1OKNvQIJx0T9ztfiCnXqsXvszDaz0faRrtw8d6wegMyvbv XQT+2ITLbbXEx87KHj5KjNFyKyNBYjg8X86UMgY4MUWlg1ifjX5uCXEAiNzGACEyvQ wG52bIgE18gOW8Zu9pkCh+j4C80na8+MNhTCHCi4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs14.server.lan [172.19.170.182]) (via HTTP); Sat, 10 Oct 2020 18:11:02 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:T5CAi6X9GDd2zKIbsRUSdpmHsQ4OElOA9IbwJFL3WmA3K+nDQ9vyGKjQ0HZA7bC4Acsqz FO+q6fj2K848yov2LLxXnY0l0if2rSFGuue+Tlbn8++2W/FN0CjQ7KXNPGc7c0vz/qnnKhwFDrK3 jUVwPAC+JZwboPI+bKOK3I4qd8XZ/VNbtj9+p0SzJ1GrHnVGf7DgcK8JvASTYaeIyCgySavPB3Yr Zqq1NH8iOrGK033EfD9IF3PNCdOYp2fIw+XFkIESXjObewHq5riKHoNYGsY39STsd+90/RMt+IoR XI= X-UI-Out-Filterresults: notjunk:1;V03:K0:41JCrgC7hxw=:n4wyGPmwjs7PSAp9deJnrA Py9oODa7br91uoVven1VQSGPFnBtqUVXj6g84WsZhrqXYGvL+YGiIMAzqUdbslnmXcE9iHASO RMJ0STRJpeF99u5iTWvbT8Wd7cin3sIygnE99hVapNTxW6AzLs1z2IVe5m6LMD5wD71o5Mk9w ZzpayQBafTGkzqEUqKM/60MXA2g5zjwLJ6hDVdPDHl6fXdcrQnxENZt7rbjK8y3x0Z1gcGpj3 wNPOR4e1/VPR5lTNO7TattQBSUc0SwSQ27M81C329BfNfXku5P/6hhBI1fSo186IP/0Z5a/uD zh+ruRRx79640EZRj00T1lCvLKowrMzlRNpZeKRxGfOO76/2Bjy394AMmdSW4Y5RWLqF/EokB USUD8DQfDpQrjmhMGRBi5qlrfkBSkOvZYUg3Re7L078ZwzU0VU58EpnnYg1Zr33AczEDFxyMh PaSL/ZjgAmEJvK+Ob99zFGEdY/zXmql6a9KPsyNIVVfZHsg3CfpcCMYwZ86i7UPfdtJalOQ/c BUPYLjZZyHTfKHcsZGc2gDKX03YXo0aN9f/a3tvt0Zod366wTZ2Xtq3wJQlbJEJD7TLtLDrI5 vnSGcGt3yTQ5OzkqoJrJjtDT5dALTlk10zt+Fqh7Z2d/YSM+q1YJZiMXlwu4f/+2wJyeWp4UK GsU+r5Dpkn88Mr1W6SNWMms/zy7bZMxqan2XBSSnJ4DtNDNtTWZheX3zTb3IX/Gd/YIk= Received-SPF: pass client-ip=212.227.17.20; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/10 12:11:04 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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:124418 Archived-At: Have figured out that the problem originated from the Ascii Art I was using, where there can appear characters like ( ) etc. Commenting the Ascii Art loads the .el file properly. Sent: Saturday, October 10, 2020 at 6:07 PM From: "Christopher Dimech" To: "Stefan Monnier" Cc: help-gnu-emacs@gnu.org Subject: Re: ELisp Multiline Comments Have tried using the following for writing multiline comments, but has worked. (defmacro multic (&rest _) nil) ;;; gungadin-frame.el --- Customisations for Emacs Frame ( multic * Copyright and License ;;;; ==================================================================== ;;;; Copyright and License ;;;; ==================================================================== ___ _ _ / __|_ __ _ _ | | (_)__ | (__| '_ \ '_| | |__| / _| \___| .__/_| |____|_\__| |_| ) ;; Copyright 2017 Christopher Dimech ;; GNU Affero General Public License, Version 3 or any later version Sent: Saturday, October 10, 2020 at 4:46 PM From: "Stefan Monnier" To: help-gnu-emacs@gnu.org Subject: Re: ELisp Multiline Comments > I need to use Multiline Comments in my Elisp Codes so I can insert > Org-Mode Commands, > and read you can use > > #| > Multiline Comment > |# > > What are the options ELisp does not support multiline comments. You have two options: - Use `;;` and make sure to either ignore them or strip them when using the comments's content: ;; Multiline ;; Comment - Use unused arguments, e.g.: (defmacro multiline-comment (&rest _) nil) ... (multiline-comment Multiline Comment ) and then make sure you use those uses of `multiline-comment` only occur where an ELisp expression is expected (e.g. not within the arglist of a function) and make sure the text of those multiline comments corresponds to a valid read syntax of some ELisp data (e.g. properly matched parentheses and double quotes (but without counting those parens that occur after a semi-colon), no single quote just before an open paren, ...). I'd go with the first option. Stefan