From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David McCabe Newsgroups: gmane.emacs.bugs Subject: A patch for lisp-mode font lock with defstruct Date: Mon, 6 Jun 2005 17:57:38 -0700 Message-ID: Reply-To: David McCabe NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_6439_17973770.1118105858071" X-Trace: sea.gmane.org 1118105772 22112 80.91.229.2 (7 Jun 2005 00:56:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Jun 2005 00:56:12 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 07 02:56:11 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DfSNc-0004T8-Ub for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Jun 2005 02:55:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DfSU2-0007jA-Je for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Jun 2005 21:02:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DfST3-0007LB-QS for bug-gnu-emacs@gnu.org; Mon, 06 Jun 2005 21:01:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DfST0-0007J1-1u for bug-gnu-emacs@gnu.org; Mon, 06 Jun 2005 21:01:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DfSSz-0007Ir-TM for bug-gnu-emacs@gnu.org; Mon, 06 Jun 2005 21:01:17 -0400 Original-Received: from [64.233.184.194] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DfSTR-0005q2-2X for bug-gnu-emacs@gnu.org; Mon, 06 Jun 2005 21:01:45 -0400 Original-Received: by wproxy.gmail.com with SMTP id 36so3044809wra for ; Mon, 06 Jun 2005 17:58:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=SXrYkvecdet65yPzRPXUAvFXXhrtY1redyBdZTdRqqcMK3jEN1t5BAeUewT5sKWgWm4JfpqRHZ2GduS4/uwJcYwm4kC23u2sczCRwMBMVrnOcpW6wzpSI0KiNqmz1HJrDJ5n/hG8sRNqwzzOX+ULwqPvhXUYBYNFGnBlc7ktnxo= Original-Received: by 10.54.2.42 with SMTP id 42mr3635907wrb; Mon, 06 Jun 2005 17:57:38 -0700 (PDT) Original-Received: by 10.54.39.49 with HTTP; Mon, 6 Jun 2005 17:57:38 -0700 (PDT) Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:12128 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:12128 ------=_Part_6439_17973770.1118105858071 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello. I noticed while editing Common Lisp code that emacs does not correctly highlight the docstring of defstruct expressions, but highlights them as if they were regular old strings. This is a small patch against emacs CVS which rectifies the problem by specifying the doc-string-elt property for defstruct. I'm using the multi-tty branch, but I doubt this makes any difference here. I'm not 100% sure that this is the correct place to make this modification; I haven't fully explored how the different dialects of Lisp are handled by lisp-mode; it appears to be primarily centered around Elisp. But since Elisp defstruct is compatible with Common Lisp defstruct (at least as far as the position of its docstring goes), I don't see how this could actually break anything. Thank you for your time. --=20 David McCabe ------=_Part_6439_17973770.1118105858071 Content-Type: text/x-patch; name="lisp-mode.el.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="lisp-mode.el.patch" LS0tIC91c3IvbG9jYWwvc2hhcmUvZW1hY3MvMjIuMC41MC9saXNwL2VtYWNzLWxpc3AvbGlzcC1t b2RlLmVsCTIwMDUtMDYtMDQgMTQ6NTY6MTAuMDAwMDAwMDAwIC0wNzAwCisrKyAuZW1hY3MtbGlz cC9saXNwLW1vZGUuZWwJMjAwNS0wNi0wNiAxNzo0MjoxNC45OTc4MDczMjAgLTA3MDAKQEAgLTEy OSw2ICsxMjksNyBAQAogKHB1dCAnZGVmbWFjcm8gJ2RvYy1zdHJpbmctZWx0IDMpCiAocHV0ICdk ZWZtYWNybyogJ2RvYy1zdHJpbmctZWx0IDMpCiAocHV0ICdkZWZzdWJzdCAnZG9jLXN0cmluZy1l bHQgMykKKyhwdXQgJ2RlZnN0cnVjdCAnZG9jLXN0cmluZy1lbHQgMikKIChwdXQgJ2RlZmluZS1z a2VsZXRvbiAnZG9jLXN0cmluZy1lbHQgMikKIChwdXQgJ2RlZmluZS1kZXJpdmVkLW1vZGUgJ2Rv Yy1zdHJpbmctZWx0IDQpCiAocHV0ICdkZWZpbmUtY29tcGlsYXRpb24tbW9kZSAnZG9jLXN0cmlu Zy1lbHQgMykK ------=_Part_6439_17973770.1118105858071 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bug-gnu-emacs mailing list Bug-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs ------=_Part_6439_17973770.1118105858071--