|
From: | Uday S Reddy |
Subject: | Re: Redefining functions and variables |
Date: | Wed, 08 Dec 2010 15:22:04 -0000 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.7) Gecko/20100713 Thunderbird/3.1.1 |
On 7/29/2010 11:16 AM, Elena wrote:
On Jul 29, 9:57 am, Stefan Monnier<monn...@iro.umontreal.ca> wrote:Just as is the case for `defun', redefining macros with `defmacro' is problematic. I really recommend not to do that and use defadvice instead, which was designed specifically for this purpose.Do you mean macros can be adviced too? Something like this (it does not compile):
No, Stefan is advising you not to mess with defun or defmacro.These are essentially fundamental built-in operations of Elisp and changing them can produce very strange behaviors.
If you are trying to use user-contributed packages that are redefining standard Emacs functions, then you should seriously consider whether you should use such packages. Emacs doesn't enforce the quality of packages you use. You do.
Cheers, Uday
[Prev in Thread] | Current Thread | [Next in Thread] |