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

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

Re: [solved] Re: To switch state of line not working


From: Jean Louis
Subject: Re: [solved] Re: To switch state of line not working
Date: Tue, 15 Jun 2021 05:25:43 +0300
User-agent: Mutt/2.0.7+183 (3d24855) (2021-05-28)

* Emanuel Berg via Users list for the GNU Emacs text editor 
<help-gnu-emacs@gnu.org> [2021-06-15 05:23]:
> 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

I don't use `cl-lib' ᗒ ͟ʖᗕ (almost)


-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



reply via email to

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