From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: override comment-or-uncomment-region gives an error Date: Wed, 29 May 2013 19:47:06 -0700 (PDT) Message-ID: <470f2a88-4717-4d52-8c39-79af6be7d00c@default> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1369882050 25229 80.91.229.3 (30 May 2013 02:47:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 May 2013 02:47:30 +0000 (UTC) To: ishi soichi , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 30 04:47:29 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uhstl-0003IQ-2d for geh-help-gnu-emacs@m.gmane.org; Thu, 30 May 2013 04:47:29 +0200 Original-Received: from localhost ([::1]:40374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uhstk-0004Pl-O6 for geh-help-gnu-emacs@m.gmane.org; Wed, 29 May 2013 22:47:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34007) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhstW-0004Pd-Uh for help-gnu-emacs@gnu.org; Wed, 29 May 2013 22:47:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhstS-0001LL-Dh for help-gnu-emacs@gnu.org; Wed, 29 May 2013 22:47:14 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:49399) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhstS-0001Kp-6A for help-gnu-emacs@gnu.org; Wed, 29 May 2013 22:47:10 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r4U2l7Fg000366 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 30 May 2013 02:47:08 GMT Original-Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r4U2l6Zq011604 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 30 May 2013 02:47:07 GMT Original-Received: from abhmt102.oracle.com (abhmt102.oracle.com [141.146.116.54]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r4U2l6vI005026; Thu, 30 May 2013 02:47:06 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7 (607090) [OL 12.0.6668.5000 (x86)] X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91153 Archived-At: > I am trying to override the existing function, > comment-or-uncommnent-region like >=20 > (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.