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: override comment-or-uncomment-region gives an error Date: Thu, 30 May 2013 11:05:25 +0900 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1369879557 31607 80.91.229.3 (30 May 2013 02:05:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 May 2013 02:05:57 +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 May 30 04:05:57 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 1UhsFZ-0006Sk-2q for geh-help-gnu-emacs@m.gmane.org; Thu, 30 May 2013 04:05:57 +0200 Original-Received: from localhost ([::1]:55913 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhsFY-0001zy-LT for geh-help-gnu-emacs@m.gmane.org; Wed, 29 May 2013 22:05:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56723) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhsF8-0001tO-UF for help-gnu-emacs@gnu.org; Wed, 29 May 2013 22:05:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhsF4-00069q-CP for help-gnu-emacs@gnu.org; Wed, 29 May 2013 22:05:30 -0400 Original-Received: from mail-vb0-x22a.google.com ([2607:f8b0:400c:c02::22a]:33154) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhsF4-00069m-8s for help-gnu-emacs@gnu.org; Wed, 29 May 2013 22:05:26 -0400 Original-Received: by mail-vb0-f42.google.com with SMTP id w15so6422096vbf.15 for ; Wed, 29 May 2013 19:05:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=3S+MHFNu2RH9OdcryndzznjTX8N4tbwZij8WbUqFQnI=; b=NoZI084RK8JKdRnmDq4SZMe0u316+mo53/FKO1xMHZq0JginTFOoipT2eXdBHwAi2x 5ovpvy3Q6Ig9IEuW2W7XY6+CaKoasGH0vYVgCLee+hUr5bt74dU5yE8JMEvdb3zCz2eR WwyVOqa5xl2xAjw55LGChvXaKjX6i5q+CIxh3Tot3F8DxY1NTX+9yAxAJioHRjwTrCWA lyJr7sKQiJ7a5Py76uGy2ne9ESq9oLirXiOjf+AhpFuUMUZ4JCrBdnYDl3rkaxNqXaFU qbkXknoUqlvqi/64A1zWD7eX25lDOkDGb8VPa1bNc5vut/Q12B8hXv5/suDj5JDPKss3 unNA== X-Received: by 10.52.157.138 with SMTP id wm10mr3008090vdb.57.1369879525664; Wed, 29 May 2013 19:05:25 -0700 (PDT) Original-Received: by 10.58.186.134 with HTTP; Wed, 29 May 2013 19:05:25 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c02::22a 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:91152 Archived-At: 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)))) When using web-mode, the commenting function is different. So I need something like this. It works for web-mode case, but it raises an error for any other modes, cond: Lisp nesting exceeds `max-lisp-eval-depth' Does anyone see why? soichi