[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC] refactoring DEFUN
From: |
Dmitry Antipov |
Subject: |
Re: [RFC] refactoring DEFUN |
Date: |
Mon, 25 Mar 2013 18:02:50 +0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 |
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
- [RFC] refactoring DEFUN, Dmitry Antipov, 2013/03/25
- Re: [RFC] refactoring DEFUN, Eli Zaretskii, 2013/03/25
- Re: refactoring DEFUN, Andy Moreton, 2013/03/25
- Re: [RFC] refactoring DEFUN, Daniel Colascione, 2013/03/25
- Re: [RFC] refactoring DEFUN,
Dmitry Antipov <=
- Re: [RFC] refactoring DEFUN, Alan Mackenzie, 2013/03/25
- Re: [RFC] refactoring DEFUN, Stefan Monnier, 2013/03/25