[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 1275dc4: Improve fontifying of #| ... |# in `lisp-mode'

From: Lars Ingebrigtsen
Subject: Re: master 1275dc4: Improve fontifying of #| ... |# in `lisp-mode'
Date: Sat, 30 Jan 2021 07:07:15 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> +  (setq-local comment-end "|#")
>>    (setq imenu-case-fold-search t))
>>  (defun lisp-find-tag-default ()
> I think you meant to set `comment-end-skip` instead (and to a slightly
> different value): the above change makes `M-;` insert `;;  |#` with
> point in the middle.

Yup.  But what would that `comment-end-skip' value be?  I tried some
obvious variations, and none of them made the final |# bit be coloured
as anything but a comment.

(This part of Emacs is somewhat under-documented -- `comment-end-skip'
isn't even documented in the manual...)

(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

reply via email to

[Prev in Thread] Current Thread [Next in Thread]