help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: font-lock with functions


From: Emanuel Berg
Subject: Re: font-lock with functions
Date: Thu, 11 Feb 2021 21:56:50 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

wael-zwaiter wrote:

> (defconst my-font-lock
>   (append
>       nil
>       '( (my-match
>         (1 (my-bigfont (match-beginning 0)) append))) )
>   "Description.")

Uhm, what is this intended to do?

Appending nil to a list doesn't do anything

  (append nil '(1 2 3)) ; (1 2 3)

because nil is actually the empty list, try `eval' these

  nil
  ()
  '()
  `()
  (list)
  (append nil () '() `() (list))

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




reply via email to

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