From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: error in replace-match: "args out of range" Date: Sun, 27 Mar 2011 08:02:26 -0400 Message-ID: <4D8F2752.2070604@mousecar.com> Reply-To: gebser@mousecar.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1301227430 8136 80.91.229.12 (27 Mar 2011 12:03:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 Mar 2011 12:03:50 +0000 (UTC) To: GNU Emacs List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 27 14:03:46 2011 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 1Q3oh8-0001zy-0g for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Mar 2011 14:03:46 +0200 Original-Received: from localhost ([127.0.0.1]:59508 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3oh7-0001zC-Bg for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Mar 2011 08:03:45 -0400 Original-Received: from [140.186.70.92] (port=48790 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3ogh-0001ys-He for help-gnu-emacs@gnu.org; Sun, 27 Mar 2011 08:03:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q3ogg-0001At-8y for help-gnu-emacs@gnu.org; Sun, 27 Mar 2011 08:03:19 -0400 Original-Received: from mout.perfora.net ([74.208.4.195]:57244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q3ogg-0001Af-4n for help-gnu-emacs@gnu.org; Sun, 27 Mar 2011 08:03:18 -0400 Original-Received: from dellap.mousecar.net (dsl093-011-016.cle1.dsl.speakeasy.net [66.93.11.16]) by mrelay.perfora.net (node=mrus4) with ESMTP (Nemesis) id 0MBW50-1QAvR70FC2-00AbpV; Sun, 27 Mar 2011 08:03:16 -0400 User-Agent: Thunderbird 2.0.0.24 (X11/20101213) X-Enigmail-Version: 0.96.0 OpenPGP: id=5AD091E7 X-Provags-ID: V02:K0:iW81XbyYWigSR4CMf8yhTcjSr9D4xYmqHRgYJNKLjjT ChSZ/cBRToLPJ3tXC0PGU/wqYhs+mX3UfiWp9Hm6pL0v3pdHxO gp+YokdcSDbZJ647G9AkT6ISbiMO6Ork43AIZhN9pvpEORCc/c SgQbsNW+Gnzc8RHE/lrJVYubnBiyg6Y17LRwBw9TqBAF9x+ygQ 9fI7Of3Hq6dSaJo+X9ptpc+erld/h2KlCPwG5ElTJU= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.208.4.195 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:80465 Archived-At: replace-match works fine in a couple instances in one function, but this instance (in the same function) it doesn't. I get the error msg below about the arguments being out of range. I'm guessing the problem is with the 4th arg, the one beginning: #("" 0 1 (fontified t face font-lock-function-name-face) 1 2 (fontified t face html-tag-face) 2 3 (fontified t) 3 8 (fontified t face font-lock-variable-name-face) 8 9 (fontified t face font-lock-string-face) 9 27 (fontified t face font-lock-string-face) 27 28 (fontified t face font-lock-string-face) 28 29 (fontified t face font-lock-function-name-face) 29 30 (fontified t face font-lock-function-name-face) 30 32 (fontified t face html-tag-face) 32 33 (fontified t face font-lock-function-name-face)) 4) eval((replace-match head-text-nested t nil head-text 4)) -- Anything is easy if you know how to do it.