[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multiple major modes
From: |
T. V. Raman |
Subject: |
Re: Multiple major modes |
Date: |
Wed, 4 Jul 2007 09:35:10 -0700 |
For the record, advice does update the function documentation,
assuming one documents the advice.
>>>>> "Richard" == Richard Stallman <address@hidden> writes:
Richard> The function overload mechanism is also a
Richard> feature I use in semantic. Most features that work
Richard> in multiple major modes today provide a variable
Richard> where you can put a symbol that is a function that
Richard> would then provide some mode-specific functionality.
Richard>
Richard> My semantic tool has hundreds of these
Richard> functions, so I abstracted the concept up so that
Richard> the implementations could be declarative, instead of
Richard> programmatic.
Richard>
Richard> I really don't like the idea of function overloads.
Richard> This mechanism shares the drawbacks of advice: that
Richard> a function doesn't do what its definition says.
Richard>
Richard> It also makes it easy to make most
Richard> functions overridable, which helps avoid forcing
Richard> users to use advice when customizing my tool.
Richard>
Richard> It is easy to replace advising with another similar
Richard> mechanism, but it doesn't solve the problem.
Richard>
Richard> It seems to me that there is no need for this.
Richard> Calling a variable with funcall should do the same
Richard> job. That way, the call _shows_ that the function
Richard> isn't fixed.
Richard>
Richard>
Richard> _______________________________________________
Richard> Emacs-devel mailing list address@hidden
Richard> http://lists.gnu.org/mailman/listinfo/emacs-devel
--
Best Regards,
--raman
Email: address@hidden
WWW: http://emacspeak.sf.net/raman/
AIM: emacspeak GTalk: address@hidden
PGP: http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman
IRC: irc://irc.freenode.net/#emacs
- Re: Multiple major modes, Richard Stallman, 2007/07/01
- Re: Multiple major modes,
T. V. Raman <=
- Re: Multiple major modes, David Kastrup, 2007/07/04
- Re: Multiple major modes, Richard Stallman, 2007/07/04
- Re: Multiple major modes, Stefan Monnier, 2007/07/05
- Re: Multiple major modes, Richard Stallman, 2007/07/06
- Re: Multiple major modes, Stephen J. Turnbull, 2007/07/06
- Re: Multiple major modes, Richard Stallman, 2007/07/07
- Re: Multiple major modes, Lennart Borgman (gmail), 2007/07/07
- Re: Multiple major modes, Richard Stallman, 2007/07/08
- Re: Multiple major modes, Stephen J. Turnbull, 2007/07/07
- Re: Multiple major modes, Stefan Monnier, 2007/07/06