[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: override comment-or-uncomment-region gives an error
From: |
ishi soichi |
Subject: |
Re: override comment-or-uncomment-region gives an error |
Date: |
Thu, 30 May 2013 12:21:46 +0900 |
thanks. I will read the documentation.
2013/5/30 Drew Adams <drew.adams@oracle.com>
> > I am trying to override the existing function,
> > comment-or-uncommnent-region like
> >
> > (defun comment-or-uncomment-region ()
> > (interactive)
> > (cond ((equal major-mode 'web-mode)
> > (web-mode-comment-or-uncomment))
> > (t
> > (comment-or-uncomment-region))))
> >
> > cond: Lisp nesting exceeds `max-lisp-eval-depth'
>
> You have (c-o-u-r) calling (c-o-u-r) calling (c-o-u-r)...
>
> See the Elisp manual about using defadvice.
>