From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: [External] : Re: Package cl is deprecated Date: Sat, 31 Jul 2021 09:04:59 +0800 Message-ID: References: <01eaf257-1142-c407-c9c0-0d6a2e3148b1@gmail.com> <874kceadmj.fsf@t14.reltub.ca> <83fsvytude.fsf@gnu.org> <87r1fi8qor.fsf@t14.reltub.ca> <83y29qs31w.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24966"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 31 03:05:40 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 1m9dRc-0006Hg-AP for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 31 Jul 2021 03:05:40 +0200 Original-Received: from localhost ([::1]:58500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9dRa-0004BY-EW for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 30 Jul 2021 21:05:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53564) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9dRE-0004BL-3a for help-gnu-emacs@gnu.org; Fri, 30 Jul 2021 21:05:16 -0400 Original-Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]:40672) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m9dRC-0002q5-2x; Fri, 30 Jul 2021 21:05:15 -0400 Original-Received: by mail-lf1-x135.google.com with SMTP id h14so21285818lfv.7; Fri, 30 Jul 2021 18:05:12 -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; bh=dM52xyVlTyh9maV7vesGvw28fTtZua6dgpxNFCRxLKg=; b=jtPiAGjN5LpXrr28C21o4t+chA2NMSZtWhOGUXdfikYa7NyTcouXwrr9/NT8j4HGMU YEBZgHgkroLgz3zkkJ5vVoditgx7+jHe374lGDO69f2FsytxqMV/HeOPMdXyVu0LKP5u YOdW8579YRuvE0O/F+MQrYpfW+A0O4NEAGsKoD+asZ6se4tyMovipbDlVwraF2FLu7/O kgs7XurDBh1jyMkJd/Zc4ny5EwpQJykc9mOO2Cup2mIbLR+FvGSIXygU8csSZ0xkLxBg da9qjFSDS5wg5tPhYsbxHUUxNyCEVIDShJG9KaDbX0ZL6er8EjGMoTHoKYFxhMkhm/QU L3Uw== 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; bh=dM52xyVlTyh9maV7vesGvw28fTtZua6dgpxNFCRxLKg=; b=hUK2Twl3cucNkSac1ZCc8HFcaqhSZE4oaccKS+Jt8X9rXH3mNxXf6E+Lc6tsSqpVgd jStepJ9C7P9kA7hD+r1XIdmW0KLtVuKOAXdoPFuGk2xC6i4FlVcX1qMav+aEgUq/C9QY S/RSngZVqKbqUu1C7LlAb+Y3TPDTlagit+LLC/e/SyM1FOa4KeQhvD0bXBbUHR9/ON0b QJhrVsQsVeHyOQuz/YgnFa/X7S/MpwPKjQyLNokYWnaizfbOu6LtYM4FVus5T7v2ldSc U+R0iVmjOgveD66YoIYpvECIbDaa8xEg9ol+AQy8RdnGEXfZ+EpyBoSl2ucBujwyRcPg xjIw== X-Gm-Message-State: AOAM532eKVOX0mTppCFkT19CA+dyaVh990VJhtFGXiTISKrUN17+Ar/0 qN6Umj2LxyE5BIV/z0SDnsdLnJra7kgGPna22S4= X-Google-Smtp-Source: ABdhPJwlDqvhWJmYnrAXrricvQy/TLHW8B5w4WaOktRhZ5+JIyMMmOy2+eyh4jvKHJbUGYRjthspOLygQT1v6uVumho= X-Received: by 2002:a19:fc13:: with SMTP id a19mr4068163lfi.466.1627693511171; Fri, 30 Jul 2021 18:05:11 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::135; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x135.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:132203 Archived-At: On Fri, Jul 30, 2021 at 11:56 PM Drew Adams wrote: > > > > Try just Isearch. Search for `(require . cl)' (note the dot). > > > > Do you mean: `M-x isearch-forward RET (require . cl) RET'? > > `C-s (require . cl)' > > > I tried the above command under `.emacs.d/straight/repos' directory, > > but it doesn't give any results. > > If cl.el[c] was loaded, then I'd expect that fact > to be recorded in `load-history'. Why you're not > finding it there, I don't know. If it's in fact > not there then I don't know why that's the case > either. > > > > If you have a library `foo.el' in directory > > > `/some/dir/somewhere/', where `foo.el' requires > > > library cl then you'll find a sexp such as this: > > > > > > ("/some/dir/somewhere/foo.el" > > > ... > > > (require . cl) > > > ...) > > > > > > You may well have loaded multiple libraries that > > > require cl. You may be interested in all of them, > > > but the first one is likely the one that loaded > > > cl.el[c]. > > > > > > (Searching `C-h v load-history' in *Help* is > > > harder, because it may split `(require 'cl)' across > > > two lines.) > > > > If so, the spanning line pattern should do the trick. Am I right? > > Yes. `C-M-s' for this in *Help* for `C-h v load-history'. Based on the guidance here [1], I tried the following two commands: C-M-s incremental forward search matching regexp C-M-r incremental backward search matching regexp And it seems that, by default, the `C-M-r' is bound to isearch-backward-regexp, while `C-M-s' is not bound to isearch-forward-regexp. > (require[ > ]+[.][ > ]+cl) [1] https://www.emacswiki.org/emacs/RegularExpression Regards -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province