From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nicolas Martyanoff Newsgroups: gmane.emacs.devel Subject: [PATCH] lisp-mode: add docstring recognition for more common lisp symbols Date: Thu, 9 Feb 2023 11:39:14 +0100 Message-ID: <20230209103914.26136-1-nicolas@n16f.net> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9304"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Nicolas Martyanoff To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 09 11:40:12 2023 Return-path: Envelope-to: ged-emacs-devel@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 1pQ4Lc-0002Hv-0C for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Feb 2023 11:40:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQ4Kz-0003nj-Fh; Thu, 09 Feb 2023 05:39:33 -0500 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 1pQ4Kx-0003nP-AG for emacs-devel@gnu.org; Thu, 09 Feb 2023 05:39:31 -0500 Original-Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pQ4Kv-0001Uy-DG for emacs-devel@gnu.org; Thu, 09 Feb 2023 05:39:31 -0500 Original-Received: by mail-wm1-x336.google.com with SMTP id o36so1121548wms.1 for ; Thu, 09 Feb 2023 02:39:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=n16f-net.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+4Y8vWvFkoMghWWkkv5IRZb3beN9yKU1vYPa6q5y9sU=; b=PmaGZewXoxmGXoddovU4Ws8hYHFkT5nTTlkD76Tzb6KibLe412uWQFjTo9WLIOvHFe M+oN6EMevFn01cnB12Ml4HhTq5X1vorK70dAifbCRhaYZ/CFWMluxivscAqCQz26luov jt1EVvYVsia0hNsveBJkx7UNCWOzSVZIeTib/dpErMaZcKSs6WB+d/gpo/6a1+gN42sN UsgmNgHvC+AGmN1KW6ibQ36eFZSFs1Zz4JBx2VRSmcET4p3oVlbTTYlwF4QbZliKmjNw xQgFyQjz2mbdiJo0uvv46b4aNf+wvl/TzZMi7Cm4vYMra7zRf2pkeZZqKU9jOhMQNMV7 KBAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+4Y8vWvFkoMghWWkkv5IRZb3beN9yKU1vYPa6q5y9sU=; b=aFfDrbxUTHNTFUfpIRXouW0DxF7TRrKU+TLd23CqzlYjq8WYWqCtEuC2kOhkl1byQ8 0SEzK7zZ6GatzdVBMosiTMFuDCDpKDgZrx/Pl1UMPNLcqfCUMvVjwPZiD8/AVXtKLQWD ucjANPNCu6oLFRgWirH2Pcq8mRbH02hToIxuYd5bcumWuOJxEGh1BZHJqX17TwCrsL4Q PbWxafuXpmdBuDYhCejI1Kp4mp9swSGkYBbnQEG29BB80tQ4zBUePBjtr3cOtSKN4nx8 o9Wk087Ae8xKmShHWSc/YeRh6eSn3psUw1zC2jH3rG+4owqiN7ejfgx1mZxSc9H4bjJV S88g== X-Gm-Message-State: AO0yUKX11ivHp/0Ngp7YNrx/wbH8y62FpPoyxLHgVyW5/rsizS8/HUAp E4sqL+upMFa0ntqghKwZKuO1aUnrpliZIrLXZGyq8Q== X-Google-Smtp-Source: AK7set8OBG0ox1BXacwloAAZPYA6C44URMyCY9QRs+utVxHBvwoh+GcqnhFbl0MYlGB9qaxcXQ24Ow== X-Received: by 2002:a05:600c:1688:b0:3dd:caa8:3ae2 with SMTP id k8-20020a05600c168800b003ddcaa83ae2mr9703576wmn.6.1675939166948; Thu, 09 Feb 2023 02:39:26 -0800 (PST) Original-Received: from localhost (2a01cb04001912003e217b0e0a701843.ipv6.abo.wanadoo.fr. [2a01:cb04:19:1200:3e21:7b0e:a70:1843]) by smtp.gmail.com with ESMTPSA id q28-20020a05600c331c00b003de2fc8214esm1388896wmp.20.2023.02.09.02.39.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Feb 2023 02:39:26 -0800 (PST) X-Mailer: git-send-email 2.39.1 Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=nicolas@n16f.net; helo=mail-wm1-x336.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303071 Archived-At: Add the 'doc-string-elt property to deftype, define-setf-expander and and define-compiler-macro for proper docstring highlighting in Common Lisp. --- lisp/emacs-lisp/lisp-mode.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index 367f59e8785..d44c9d6e23d 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el @@ -181,8 +181,11 @@ lisp-mode-autoload-regexp (put 'define-category 'doc-string-elt 2) ;; CL (put 'defconstant 'doc-string-elt 3) +(put 'define-compiler-macro 'doc-string-elt 3) +(put 'define-setf-expander 'doc-string-elt 3) (put 'defparameter 'doc-string-elt 3) (put 'defstruct 'doc-string-elt 2) +(put 'deftype 'doc-string-elt 3) (defvar lisp-doc-string-elt-property 'doc-string-elt "The symbol property that holds the docstring position info.") -- 2.39.1