|
From: | Romanos Skiadas |
Subject: | Re: Declaring cl.el obsolete |
Date: | Sat, 25 May 2019 21:12:43 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
On 24/05/2019 02:22, 조성빈 wrote:
2019. 5. 24. 오전 2:03, Romanos Skiadas <address@hidden> 작성: On 23/05/2019 09:50, Lars Ingebrigtsen wrote:Lars Ingebrigtsen <address@hidden> writes:I think there's a probably a gazillion out-of-tree packages out there with (require 'cl),OK, "722,834 code results" is a bit smaller than "gazillion", but: https://github.com/search?utf8=%E2%9C%93&q=%22%28require+%27cl%29%22+extension%3Ael&type=Code&ref=advsearch&l=&l= (You apparently have to be logged in to do the search.)This is slightly misleading, it seems like github also takes into account (require 'cl-lib), e.g. it matched https://github.com/chetnashah/dotemacs/blob/f6b1d41d52000e70ec970499c98e424af3cd2e40/.emacs.d/elpa/slime-20160907.602/contrib/slime-listener-hooks.el from page 100: https://github.com/search?l=&p=100&q=%22%28require+%27cl%29%22+extension%3Ael&ref=advsearch&type=Code&utf8=%E2%9C%93I also see GitHub matching (require ‘cl-lib) from page 3: Matched https://github.com/martialboniou/Dots/blob/e116fb08e406243f847af63760877d7c6d14a91c/emacs/emacs.d.symlink/lisp/run-tests.el At https://github.com/search?p=3&q=%22%28require+%27cl%29%22+extension%3Ael Yes, according to the github search documentation, ' and ) are not considered when searching: You can't use the following wildcard characters as part of
your search query: https://help.github.com/en/articles/searching-code I assume the search sees `(require 'cl)` simply as `require cl` and that can match either cl or cl-lib or other libraries that begin with cl. - Romanos
And it also takes into account comments and ifs for older Emacsen, which presumably are ok. - Romanos |
[Prev in Thread] | Current Thread | [Next in Thread] |