From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ishi soichi Newsgroups: gmane.emacs.help Subject: Re: override comment-or-uncomment-region gives an error Date: Thu, 30 May 2013 12:21:46 +0900 Message-ID: References: <470f2a88-4717-4d52-8c39-79af6be7d00c@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1369884126 10159 80.91.229.3 (30 May 2013 03:22:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 May 2013 03:22:06 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 30 05:22:06 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 1UhtRG-0000xS-7h for geh-help-gnu-emacs@m.gmane.org; Thu, 30 May 2013 05:22:06 +0200 Original-Received: from localhost ([::1]:50084 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhtRF-0004cF-Ni for geh-help-gnu-emacs@m.gmane.org; Wed, 29 May 2013 23:22:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhtR1-0004c3-N8 for help-gnu-emacs@gnu.org; Wed, 29 May 2013 23:21:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhtQx-0003B4-3m for help-gnu-emacs@gnu.org; Wed, 29 May 2013 23:21:51 -0400 Original-Received: from mail-vb0-x22b.google.com ([2607:f8b0:400c:c02::22b]:36342) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhtQw-0003B0-Vk for help-gnu-emacs@gnu.org; Wed, 29 May 2013 23:21:47 -0400 Original-Received: by mail-vb0-f43.google.com with SMTP id e12so4528587vbg.2 for ; Wed, 29 May 2013 20:21:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ipoO80Try+Z2BA9NgxJ02oPAxsnjyBXkl3rbxHRUz4o=; b=f6yXPzKKpOy7MIN8IkvjEBNgWUeXwwGVWdSRWdkzwWg6uzdPknkusVU2+N9GMJiFO/ 9c4EbfUMNl8cQ7bhjaA8jPVmqNTNB6Sq/gmKh49paEk2z1K6E2wwKpdYj5dJzhmpysT1 nfaTlQjRSCEIX45/9jjT/7ML5348uFRK6F+r4myGJcDZzj0lfIgU0Ytw5ajT+6kO/WQt DJtHIXZrjlhq8S5RiJhXD/VtTJFLR25RhmmqI6nRYQxUw9bEJVkM0EW/f2LL3Ur26mvO XuNAMnhd/6lY2Jc8yImVHn4hsJhLI4DUHk/pfG9oq34IJlFFqvyFIuILYPbICjq5/2sn I75A== X-Received: by 10.52.68.205 with SMTP id y13mr3108892vdt.33.1369884106628; Wed, 29 May 2013 20:21:46 -0700 (PDT) Original-Received: by 10.58.186.134 with HTTP; Wed, 29 May 2013 20:21:46 -0700 (PDT) In-Reply-To: <470f2a88-4717-4d52-8c39-79af6be7d00c@default> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c02::22b X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:91155 Archived-At: thanks. I will read the documentation. 2013/5/30 Drew Adams > > 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. >