From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: [el-search] How to search string excluding docstring? Date: Mon, 25 Dec 2017 19:04:22 +0100 Organization: Aioe.org NNTP Server Message-ID: <86h8sen0pl.fsf@zoho.com> References: <86po72n6vy.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1514225033 15311 195.159.176.226 (25 Dec 2017 18:03:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 25 Dec 2017 18:03:53 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 25 19:03:49 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eTX6K-0003hr-4u for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Dec 2017 19:03:48 +0100 Original-Received: from localhost ([::1]:57321 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eTX8I-00059m-SA for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Dec 2017 13:05:50 -0500 X-Received: by 10.28.245.7 with SMTP id t7mr1827729wmh.0.1514225063864; Mon, 25 Dec 2017 10:04:23 -0800 (PST) Original-Path: usenet.stanford.edu!b72no5921019wmd.0!news-out.google.com!k126ni36988wmg.0!nntp.google.com!proxad.net!feeder1-2.proxad.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 64 Original-NNTP-Posting-Host: zRXoCvQ6k9fneBfYPnB6lQ.user.gioia.aioe.org Original-X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 Mail-Copies-To: never Cancel-Lock: sha1:jr+gb9T11HKVAZ3N6heTbiI8U/s= Original-Xref: usenet.stanford.edu gnu.emacs.help:221342 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115457 Archived-At: Michael Heerdegen wrote: >> Tell us again why one can't just use grep to >> search Elisp? :) > > There are tasks where grep isn't enough, like > "find all uses of cl stuff where I have > forgotten the cl- prefix", "find all > definitions that have no docstring", "find > all function "foo" calls that make use the > third optional arg", etc. > > It can also do list-level query-replace. > Some examples: "I've changed my function > "bar" so that the second and third argument > are now transposed. Let's adopt every use of > it and transpose the expressions at the > second and third argument position." Or > "automatically transform any nested if's into > an equivalent `cond'", or "find any `if' > expressions that have no `else' and make them > a "when", and such stuff. Your software can do that? Impressive! Still, I'd do that manually. But that's just me. OTOH I have written tons of Elisp "for the sake of Elisp". So I enjoy that. Looking at it from a spaceship tho one might consider it a case of built-up creativity/frustration. There aren't any real challanges left [1] so people write code for the sake or writing code, with the purpose of writing even more code later. It gives pleasure and is interesting but I, who almost exclusively did just that, know there is even more pleasure to do stuff that has a less recursive application surface... Like it is more interesting to write very advanced Elisp. But to build a ramp so people can get their bikes up onto a deck without bumping up a stairways. Building the ramp might be trivial in comparison but nonetheless every time you see or use it it'll make you feel happy. So it is complicated. [1] Of course there are real challenges left! They are just harder to find. It is an open question if all fiddling makes you more perceptive of seeing them, *or* if it makes you less so as you get stuck in all the fiddling details. Some random thoughts on a general level, not to be taken as an assault on anyone's project or style in particular... pink elephants and lemonade dear Jessie hears the laughter running thru the love parade -- underground experts united http://user.it.uu.se/~embe8573