|
From: | Emanuel Berg |
Subject: | Re: [solved] Re: To switch state of line not working |
Date: | Tue, 15 Jun 2021 04:22:35 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Jean Louis wrote: > (defun rcd-highlight-list (list) > "Uses LIST to highlight strings in buffer." > (hi-lock-mode) > (let* ((list (delete "" list)) That looks like a function ... list -> lst or better yet express in other terms as everything in Lisp is a list, even Lisp. > (while list > (highlight-regexp (regexp-quote (pop list)) (pop highlights))))) (require 'cl-lib) (cl-loop for dig in '(1 2 3) for str in '("aaa" "bbb" "see") do (message "%d: %s" dig str) ) 1: aaa 2: bbb 3: see -- underground experts united https://dataswamp.org/~incal
[Prev in Thread] | Current Thread | [Next in Thread] |