From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Uday S Reddy Newsgroups: gmane.emacs.help Subject: Re: Redefining functions and variables Date: Fri, 30 Jul 2010 20:32:15 +0100 Organization: Janet Usenet Reading Service. Message-ID: References: <68e690c9-aece-461d-afe9-ca9115ceaee5@m1g2000vbh.googlegroups.com> <76fd4dc4-a964-4629-90e2-329e1b83fd8d@h25g2000vba.googlegroups.com> <876300fnpk.fsf@fh-trier.de> <55e481e3-b894-499f-80b3-1c96b2c338ce@d37g2000yqm.googlegroups.com> <61db17c1-8c30-44a1-b96e-9eec802156fe@j8g2000yqd.googlegroups.com> <87tynjl9x3.fsf@fh-trier.de> <87hbjjibrk.fsf@kuiper.lan.informatimago.com> <08217e84-b4a0-4dd0-afbf-abd4d762c759@w30g2000yqw.googlegroups.com> <507c3b70-7530-4961-84a7-c5bfb4061831@f6g2000yqa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1291855892 28690 80.91.229.12 (9 Dec 2010 00:51:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 00:51:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 01:51:28 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQUjH-0005pG-R8 for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 01:51:28 +0100 Original-Received: from localhost ([127.0.0.1]:40798 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQUjH-0000oN-Bk for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 19:51:27 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!news2.euro.net!feeder.news-service.com!tudelft.nl!txtfeed1.tudelft.nl!dedekind.zen.co.uk!zen.net.uk!hamilton.zen.co.uk!feed4.jnfs.ja.net!feed2.jnfs.ja.net!jnfs.ja.net!times.reader.netnews.ja.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-NNTP-Posting-Host: gromit.cs.bham.ac.uk Original-X-Trace: north.jnrs.ja.net 1280518338 22646 147.188.193.16 (30 Jul 2010 19:32:18 GMT) Original-X-Complaints-To: usenet@north.jnrs.ja.net Original-NNTP-Posting-Date: Fri, 30 Jul 2010 19:32:18 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.7) Gecko/20100713 Thunderbird/3.1.1 In-Reply-To: <507c3b70-7530-4961-84a7-c5bfb4061831@f6g2000yqa.googlegroups.com> Original-Xref: usenet.stanford.edu gnu.emacs.help:180232 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76328 Archived-At: On 7/29/2010 11:16 AM, Elena wrote: > On Jul 29, 9:57 am, Stefan Monnier 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