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:07:06 +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="18714"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 10 18:08:50 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 1kRHQP-0004mf-Vi for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 10 Oct 2020 18:08:49 +0200 Original-Received: from localhost ([::1]:52752 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRHQO-0007eA-SD for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 10 Oct 2020 12:08:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRHOr-0007dz-Eg for help-gnu-emacs@gnu.org; Sat, 10 Oct 2020 12:07:13 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:45007) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRHOp-0003oN-Ag for help-gnu-emacs@gnu.org; Sat, 10 Oct 2020 12:07:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1602346026; bh=e/7SXhdhLaRF83E4MSh+5WCNgFt7FV/3LSfR1Oltj7g=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=TKe2pEy12sCUaNRTjKE7wj68+MnooErfkxt3uFKZvXVtG9IeSo9ac+dT1tYzVz6js RNc1PLCt4o5YMWSHUlVyDR+SnJytJbgH60gjLK1X++kWoCgz+oXavOVejbC190QrXe qATU8eUSd4TS1ECzQfL/EYLkpjX4YdCcvDjmeVV0= 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:07:06 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:dDmLfYUITv9yOn9X/0K4/fH6f+/ReYVJYz6NGvUUeLbohubwO1jzX5HF4bOdoPVs6SvgS Vp5FScK8aPtwxFH5grBieIPe+BJM4/0hodUL26O7E+CnsZNbt25ryFX4nBk8DDtpEh2cZvYYSrxC 8UFTX7WQiaWbSF4mHPwxW3nHQ3DcnuOYfkKwGVjyL2pYOdcAeSz5Y6Yb8V8eEtmspC7Ohtm1+ZT6 SthCpDYC89IU1O+vB7XNS8TL9DDp0TuRjgnoJLFm4DejqtRr0yFaSuj0qHxWamEyCzG1ypf3r3dm gc= X-UI-Out-Filterresults: notjunk:1;V03:K0:YXj0LeUx6EE=:z3nT5zU7qVELbAn7Xy1Kbk bsB6mih6g/PAjki/gIPZKzPkdViGCR+cPg8ZUW0e0RXHXbembFlk1ZvPrrMKnS+G/ihHqsC1I cqjarVfkh38oi7e6RmOE8399r+IRHPnftYYdL6FyqZIO8NUMtpyU/Kkx/J8HoNRKBOnXhUsrZ ZL4M77Y4WhO+BkjetRHqtJc4w/9nA5lfQztVbxNAEsrr7KlGMyMe6IjZ/GZaBTqQiBww9kSF5 TGCCkIMToZaC1iLmWxPxH3cZZodKf6a/O37JE6Xjqd4EIx3EStwdeyAlXaJNBxsaD3Td7URcF BHbEFeAv1Z6q6R4qgYxlm4P6MFB9HE0ke6CVPYhwMsQfvcgkMfTNbhiHy6V+TItFXS8T/ysJi 4YQsCYxtpOZy3kbqibwzbByXjrahy8scTet7iMCJnw8yjz675H/CNCbULhOq2Flcd1GPbptdJ 76t8Cc7Gp5eieeHt23H7l5HCrJ9Oc4K1US3hcxjFC5AXycRv+bLjtcovLAn1SepU9ILdjObFE v05BOhd+yYhFFRzTQZnXy/1AbWmWuePrsPocI648ygOTKZ7XylDu3jeOl21jOL/mFt1ir3IWM ZPjM6wnm7p6qo+ziZx52acfO20Lb7yCjFTEqRHouoheuwQ+GedFB9t+HkYOqB1PXR/eTtoSdJ YsWMfreHt1wwPUjkMnxbvrw+GWZ+dvgJ49UnhOhlDN7OEmigD5XTsniNcXfLNAj1Lpvo= Received-SPF: pass client-ip=212.227.15.19; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/10 12:07:09 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] 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:124417 Archived-At: 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