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: fix defstruct docstring identification for Common Lisp Date: Tue, 31 Jan 2023 01:54:57 +0100 Message-ID: <20230131005457.162562-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="20613"; 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 Tue Jan 31 01:56:13 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 1pMewX-00059o-3u for ged-emacs-devel@m.gmane-mx.org; Tue, 31 Jan 2023 01:56:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pMevk-00015h-0F; Mon, 30 Jan 2023 19:55:24 -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 1pMevi-00014p-1j for emacs-devel@gnu.org; Mon, 30 Jan 2023 19:55:22 -0500 Original-Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pMevf-0007r5-Pn for emacs-devel@gnu.org; Mon, 30 Jan 2023 19:55:21 -0500 Original-Received: by mail-wm1-x329.google.com with SMTP id bg13-20020a05600c3c8d00b003d9712b29d2so11340702wmb.2 for ; Mon, 30 Jan 2023 16:55:14 -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=7dTInImma2a2e1NTBSAqDxuo5mW2023NsEa9IrDxkUU=; b=z+XHu6Bssvwu2d0BCEK7d+HJ782XG6TaDEfx6oZEJIm/vozeiks3Rmf1c2fvyHUrwB E42vQJh84rkXB8emWq0pLqjEfTR9WMuyrhjHBYEaeLP8HUAea6BgtS8GCicuetXx2Vqx 2qVrOJmw/6GB9SFd/cdKwQQ5BEt6WzCYIEvqFy3jmd3VGYEmQDw8O9UV+1tn3fdiLCXc zvMDuEPOtlXpbZwIqUsEdt+uIPs9NL8hUwnx0jDt/mJngLtwzIyG6MBkQDOQ4NIg+ZCv zjNJErZs8lTja2yI7lx1c0zEx5M+OBikTvp+bU2wsmk1nqFeu8aSHP5ymuJtnSB90E3w Ty/Q== 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=7dTInImma2a2e1NTBSAqDxuo5mW2023NsEa9IrDxkUU=; b=mq59e3lBLxnGU4O901RpadA7RIe71r9HYimd9sdZWvfBeZ64UGR6md5JJebAvGvmM2 OUKvMMeXZQUgViLQwy5/IpFjT5ayaPlMSxWDdBi8ReJMo/gRAURoHq/mUK/HWlUjFH61 rWbuxWWDtzCmcovvL7rPlvpQi3oY2Nrq/249A8onOWHeHl+5hp36zSQVVDLdqIZn/OfV Fd0JNoQ1msxRSXdVdR1KjtQfxKpNYDZ4UniZq8Na+X4mrgshEpIV25inomFjJImusXGk HG4yTmux8Ys/AFudnZ9IPPD62NGTO/y9DqNqMG1LiATXRoS+SavDdf84VAPr/DeJtPzL ds8g== X-Gm-Message-State: AO0yUKWuBsxyYRJO1eazwpbHloN57pxg1Pu6jbtjOpexa2ougpSyoWvZ RLyH2u8S98SGsoOkoGVUErocFGSXhEtDl49HvMr/qg== X-Google-Smtp-Source: AK7set8cfncGJMmM1DFYh5jXq8znyKo3Yqj3gyNuFiLaTzud4YNBSRC9RVdRCebFoRcphHrt9haVuQ== X-Received: by 2002:a05:600c:3547:b0:3dd:1c45:fe3a with SMTP id i7-20020a05600c354700b003dd1c45fe3amr975684wmq.16.1675126512427; Mon, 30 Jan 2023 16:55:12 -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 n23-20020a05600c3b9700b003dab77aa911sm20634818wms.23.2023.01.30.16.55.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jan 2023 16:55:11 -0800 (PST) X-Mailer: git-send-email 2.38.1 Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=nicolas@n16f.net; helo=mail-wm1-x329.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:302812 Archived-At: In Common Lisp, defstruct accepts a docstring in second position. Having the docstring identified as such allows correct highlighting. --- lisp/emacs-lisp/lisp-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index bacc105a214..367f59e8785 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el @@ -182,6 +182,7 @@ lisp-mode-autoload-regexp ;; CL (put 'defconstant 'doc-string-elt 3) (put 'defparameter 'doc-string-elt 3) +(put 'defstruct 'doc-string-elt 2) (defvar lisp-doc-string-elt-property 'doc-string-elt "The symbol property that holds the docstring position info.") -- 2.38.1