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 08:58:56 +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="39643"; 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 02:59:38 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 1m9dLl-000A71-Am for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 31 Jul 2021 02:59:37 +0200 Original-Received: from localhost ([::1]:55330 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9dLj-0001q4-GL for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 30 Jul 2021 20:59:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53018) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9dLN-0001pw-NL for help-gnu-emacs@gnu.org; Fri, 30 Jul 2021 20:59:13 -0400 Original-Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]:41960) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m9dLK-0007MU-Ve; Fri, 30 Jul 2021 20:59:13 -0400 Original-Received: by mail-lf1-x134.google.com with SMTP id y34so21281802lfa.8; Fri, 30 Jul 2021 17:59:09 -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=9VQCxcJlSTALkpry8WN6gU8N5Ypq8JBD3gNfEisp+VE=; b=ugGxdVmrSxmon9XSsgiJOa22Uk9d/hkxYO8dVnnSATlmnFGDtAoq7NzNoc88kES2aB VMe2NtZBSLBJObqoRgy+MEBZWRyb8FEC579+hCaQAw6p7WG9giYKwcg2lCH2OLLwn1SK G2gGpY1AG/g4wP64Rz+SQatxU4w7c4G5SXRMVgf+P+AGNoWUfFmFXxQyajz+reyudOFb ULvX1+t1DFk0jd5+cnxXAs6H5PMficqTFd4L8ebIexjhQSyutjwIjh3PJsNObia7ECfV 9ZxUm5dCr8NPSorP+ifRlCLHyMDYuhZjrGCLI41hptiMB+xhsC7dJRMCMXhNOTh3a8T1 KQkA== 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=9VQCxcJlSTALkpry8WN6gU8N5Ypq8JBD3gNfEisp+VE=; b=c/PcNh2DxNmXsT0Z9KqzVLl4PZdDPhojFZ3W08spvUpZXFCo+zCgspR7OZKOgEwi1I EkZ5T5ooUo9oWyFBAGisOsP/3iM4k2M/8D2sh2xEiRaBciX5ayNxuaLUmvkd5qAYU9bd 5bxBTk8xPdT7sjFmhcObVHjE60LD2IZTNQp9Zat4iF6oc2Lgksp+G7HiUvFeJCsKNOky N0Ne8jf+k454FFUmjI1dw7BlpNtwn1YZw3MclDM45WgEtcGxOk4K0I8gygtQwQPG78op X6SrLWJG/OBeW31lInMwkhwHRheR7t/vPoaDhk4I/o7n+KB5GzOI/niwIXGmxMK0FwMs bfwQ== X-Gm-Message-State: AOAM530/9LDfI/j0GcFr+XjOhl+JAaldO4/ELygMajZEdr9vYWnG5iaT KowpavjqVMlSYCjAFD8SaQz7H/CWRdS0JEVQZ9o= X-Google-Smtp-Source: ABdhPJyXrA8NvG9ngmwvk6/Ju6tgMK5BxpfH7TOvFm4GurkPM5W/k/1wZBuu/QrJP+mRxj1DMd96LD3PIgoGfxfWfeg= X-Received: by 2002:a05:6512:da:: with SMTP id c26mr4103102lfp.390.1627693148003; Fri, 30 Jul 2021 17:59:08 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::134; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x134.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:132202 Archived-At: On Sat, Jul 31, 2021 at 8:35 AM Hongyi Zhao wrote: > > 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 again and it worked, as shown in the attachment. > > > > 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'. > > > > (require[ > > ]+[.][ > > ]+cl) > > Thank you for showing me this pattern. TBF, it seems to me that the > syntax of line spanning match pattern is very strange. It would be > nice if there were some explanation for how to build this pattern. To be more specifically, since this is a multiline match pattern, why don't you any end-of-line metacharacter, i.e., `$' [1] in your above pattern? [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