From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: New function: rcd-highlight-list Date: Wed, 19 May 2021 17:15:26 +0700 Message-ID: References: <20210518172721.GL11623@tuxteam.de> <20210518184748.GA9116@tuxteam.de> <20210519075254.GF7028@tuxteam.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20617"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs , Stefan Monnier To: tomas@tuxteam.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 19 12:18:36 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ljJHg-00058k-H9 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 19 May 2021 12:18:36 +0200 Original-Received: from localhost ([::1]:46778 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljJHf-0003DP-Iu for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 19 May 2021 06:18:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52508) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljJEt-0001Qj-Ix for help-gnu-emacs@gnu.org; Wed, 19 May 2021 06:15:43 -0400 Original-Received: from mail-qk1-x736.google.com ([2607:f8b0:4864:20::736]:33531) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ljJEr-00074n-NS for help-gnu-emacs@gnu.org; Wed, 19 May 2021 06:15:43 -0400 Original-Received: by mail-qk1-x736.google.com with SMTP id k4so1050772qkd.0 for ; Wed, 19 May 2021 03:15:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=OJgUcRbT+EWim5ZD8tFyXMnpnB2YUCivPjAwfxJYrUY=; b=RptkMCj5qSFHaVFZ7wD2wHGfF2zA/DO8YgN+TSvtz5efQ2mkFyOP2yR+572N3DM3lV juMhy5XvkS6VtC9eBI0HsnAsB4DCTUgIyaVWkcasQiXc6KxzpKaTEK04zi5IFYWpJ+YX S85WrKWgYtr8ncGFiXR841A92kFwp9KpkfNjS5ZwF8dbsee8nAZrqYIUnl/r+ecbbmwi nFxfeZBYPO9rA+78h0eflJS/g7Ii7aOqMrqrAV8rKXFpU8HhNTUkdDOrc1i2LsKCPQDG 8EaLyoT47zRKqU+yda2QwqsFeFQelCFAU/LqGt+HYWETaix4RA/p5ECDbeHs3NOm/rM3 pCOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=OJgUcRbT+EWim5ZD8tFyXMnpnB2YUCivPjAwfxJYrUY=; b=DelBEMXnNjR7sJGjoUiSryICLl2IAElEfRJruipbo2rS/ia6EKe44YRf9rz3DvqXhp gJ58fwdnyt11eIw6/ssEiVVrr2L5W8Dtu4tuq02ZsipxiEia3mk0PI5FYA5FRniYmBG5 gTvNu6vJ+HA/8TYgjbkfQeoL349ebTUQJzOXNmsopKOZU15uwJSmp7B5qXc+ePR6tlHC mCd4W+2/PQwvNc6cmnHg6+T6tgJeWLiHN+1vQWetPSQWyH6rR5PubA9LrvWWfpbodvRo mYh1PAMM5+Xax8kLaWFle9X++ZKYrYfB6SQxRIznX6JPr4xWMRHkPX3FPPpxBUBoHvWa 5KwA== X-Gm-Message-State: AOAM533DbHznS+KaYl8RA/R1IMNPTLiblUNn/ChGy9OjtHaKQW4mPIhY gBQvxSftsdrtoOBNfPdxqRjkksmU3ltwv5hs94w= X-Google-Smtp-Source: ABdhPJzCpeVhfq9o74TQwCSq97zwB2oa4d3mudqTcNxX1N6MBYHfrxcyZMOm5ZEocM/Vzis9dKYIoChkDdvdxKYI3nA= X-Received: by 2002:ae9:e014:: with SMTP id m20mr1235480qkk.424.1621419337311; Wed, 19 May 2021 03:15:37 -0700 (PDT) In-Reply-To: <20210519075254.GF7028@tuxteam.de> Received-SPF: pass client-ip=2607:f8b0:4864:20::736; envelope-from=yurivkhan@gmail.com; helo=mail-qk1-x736.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:129922 Archived-At: On Wed, 19 May 2021 at 14:53, wrote: > > >> > > (while list > > >> > > (highlight-regexp (pop list) (pop highlights))))) > > > Perhaps the function `regexp-quote' is built for you :) > > > > I think you mistyped `regexp-opt`. > > Always taking things to the next level. > > But yes, you're right: the whole while loop above would collapse > in a puff of pink smoke or something ;-) Not exactly: the while loop above generates puffs of pink, yellow, green, blue, and black smoke, so you=E2=80=99d lose functionality if you collapsed it to a single (highlight-regexp (regexp-opt =E2=80=A6) =E2=80=A6= ).