unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* error in replace-match: "args out of range"
@ 2011-03-27 12:02 ken
  2011-03-27 18:25 ` ken
       [not found] ` <mailman.3.1301250397.12231.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 27+ messages in thread
From: ken @ 2011-03-27 12:02 UTC (permalink / raw)
  To: GNU Emacs List

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: #("<a ... yes?  There's a lot of
"(fontified ..." cruft in it... is that confusing replace-match...?  Or
might I have just the totally wrong type arg there?

Debugger entered--Lisp error: (args-out-of-range -1 -1)
  replace-match("Text for Heading" t nil #("<a
name=\"Testing-TOC-Header\"></a>" 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.



^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2011-05-09  1:32 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.3.1301227401.14102.help-gnu-emacs@gnu.org>
2011-03-28 15:38 ` error in replace-match: "args out of range" Stefan Monnier
2011-03-28 18:50   ` ken
2011-03-28 20:32     ` Stefan Monnier
2011-04-03 22:02       ` ken
2011-04-03 23:19         ` PJ Weisberg
2011-04-04 16:13           ` ken
     [not found]           ` <mailman.1.1301933608.12491.help-gnu-emacs@gnu.org>
2011-04-04 22:21             ` Tim X
2011-04-07 16:29               ` ken
     [not found]               ` <mailman.0.1302193756.25199.help-gnu-emacs@gnu.org>
2011-04-07 23:25                 ` Tim X
2011-04-09  4:56                   ` ken
2011-04-09  6:44                     ` PJ Weisberg
2011-04-09 12:35                       ` ken
     [not found]                       ` <mailman.2.1302352549.29796.help-gnu-emacs@gnu.org>
2011-04-09 12:57                         ` David Kastrup
2011-04-09 20:04                           ` PJ Weisberg
2011-04-09 21:25                             ` Perry Smith
2011-04-05  1:56             ` Stefan Monnier
2011-04-06  3:39               ` error in replace-match: "args out of range" [SOLVED] ken
2011-04-07 14:00                 ` ken
2011-04-07 19:09                   ` PJ Weisberg
     [not found]                   ` <mailman.14.1302203359.27822.help-gnu-emacs@gnu.org>
2011-04-24  1:20                     ` David Combs
2011-04-24  5:21                       ` Stefan Monnier
2011-05-09  1:32                         ` David Combs
     [not found]                 ` <mailman.9.1302184849.3726.help-gnu-emacs@gnu.org>
2011-04-10  2:25                   ` Stefan Monnier
2011-03-27 12:02 error in replace-match: "args out of range" ken
2011-03-27 18:25 ` ken
     [not found] ` <mailman.3.1301250397.12231.help-gnu-emacs@gnu.org>
2011-03-27 19:07   ` Alan Mackenzie
2011-03-27 20:12     ` ken

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).