From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.devel Subject: Re: [RFC] refactoring DEFUN Date: Mon, 25 Mar 2013 18:02:50 +0400 Message-ID: <5150590A.6080105@yandex.ru> References: <51503B6D.1060203@yandex.ru> <51504EAE.9080402@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1364220180 15644 80.91.229.3 (25 Mar 2013 14:03:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Mar 2013 14:03:00 +0000 (UTC) Cc: Emacs development discussions To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 25 15:03:27 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UK7zf-0004Zs-Pj for ged-emacs-devel@m.gmane.org; Mon, 25 Mar 2013 15:03:23 +0100 Original-Received: from localhost ([::1]:39363 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UK7zI-0005uy-2l for ged-emacs-devel@m.gmane.org; Mon, 25 Mar 2013 10:03:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UK7zE-0005us-Ri for emacs-devel@gnu.org; Mon, 25 Mar 2013 10:02:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UK7zD-0004QT-2V for emacs-devel@gnu.org; Mon, 25 Mar 2013 10:02:56 -0400 Original-Received: from forward11.mail.yandex.net ([95.108.130.93]:36761) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UK7zC-0004QE-LE for emacs-devel@gnu.org; Mon, 25 Mar 2013 10:02:55 -0400 Original-Received: from smtp11.mail.yandex.net (smtp11.mail.yandex.net [95.108.130.67]) by forward11.mail.yandex.net (Yandex) with ESMTP id 827DDE815DA; Mon, 25 Mar 2013 18:02:51 +0400 (MSK) Original-Received: from smtp11.mail.yandex.net (localhost [127.0.0.1]) by smtp11.mail.yandex.net (Yandex) with ESMTP id 53CAF7E05B2; Mon, 25 Mar 2013 18:02:51 +0400 (MSK) Original-Received: from unknown (unknown [37.139.80.10]) by smtp11.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 2ommovtI-2pmOHEgx; Mon, 25 Mar 2013 18:02:51 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1364220171; bh=o6Sm8Bmc3ycJgFL/T8hN8AUOM3kZSlrA1RXGApsiapg=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=nJE5Ci1JlwYYCWJETVI4SlJDAvth+q7JHe+Xi950O3UnzVEly6yJdwpKb2meFQdaG s6TyhiDcMCYHZ+wGrbl3bW7lo5bZ/9Y4eYwPWRIOnMNHmh4EqWLpBr/nTPjZ0TQD42 y0Y0Q1Iq4V9mOLmkmoxkxpkctcgkCwoQETAm15c4= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 In-Reply-To: <51504EAE.9080402@dancol.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 95.108.130.93 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:158135 Archived-At: On 03/25/2013 05:18 PM, Daniel Colascione wrote: > I'd prefer to keep it the old way --- it preserves greppability. The new way > involves a lot more magic, and I don't think it buys us much maintainability > because changing buildin function names is rare. I believe that any tool which is worth using should not have issues with this change. For example, build TAGS with: find lib lib-src lwlib oldXMenu src -name '*.[chm]' | xargs ctags -e \ --regex-c='/[ \t]*DEFUN \(".+", ([A-Za-z_]+)/F\1/' \ --regex-c='/[ \t]DEFVAR_[A-Z]+ \(".+", (V[A-Za-z_]+)/\1/' and you should be able to do M-x find-tag for both Fcons and cons (ctags is Exuberant ctags). Dmitry