unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* strange error : invalid search bound
@ 2012-12-08 16:02 françois-xavier bois
  2012-12-08 20:29 ` Eli Zaretskii
  2012-12-09 15:38 ` Stefan Monnier
  0 siblings, 2 replies; 3+ messages in thread
From: françois-xavier bois @ 2012-12-08 16:02 UTC (permalink / raw)
  To: emacs-devel@gnu.org

[-- Attachment #1: Type: text/plain, Size: 594 bytes --]

Hi,
a strange error has been occuring more and more in my mode (web-mode.el available on http://web-mode.org)
The error message is "Invalid search bound (wrong side of point)" and is triggered with a quite simple re-search-forward
(while (re-search-forward "<\\?\\|<%[#-!@]?\\|</?[#@]\\|[$#]{\\|{[#{%]\\|^%." end t) .......
I tried to grep in the lisp sources of emacs and didn't find anything (just a comment in cc-cmds.el).
Do you know where I can find some informations about this error ?Could you tell me when this kind of error is triggered ?

Best
François-Xavier Bois 		 	   		  

[-- Attachment #2: Type: text/html, Size: 1012 bytes --]

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

* Re: strange error : invalid search bound
  2012-12-08 16:02 strange error : invalid search bound françois-xavier bois
@ 2012-12-08 20:29 ` Eli Zaretskii
  2012-12-09 15:38 ` Stefan Monnier
  1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2012-12-08 20:29 UTC (permalink / raw)
  To: françois-xavier bois; +Cc: emacs-devel

> From: françois-xavier bois <fxbois@live.fr>
> Date: Sat, 8 Dec 2012 17:02:12 +0100
> 
> a strange error has been occuring more and more in my mode (web-mode.el available on http://web-mode.org)
> The error message is "Invalid search bound (wrong side of point)" and is triggered with a quite simple re-search-forward
> (while (re-search-forward "<\\?\\|<%[#-!@]?\\|</?[#@]\\|[$#]{\\|{[#{%]\\|^%." end t) .......
> I tried to grep in the lisp sources of emacs and didn't find anything (just a comment in cc-cmds.el).
> Do you know where I can find some informations about this error ?Could you tell me when this kind of error is triggered ?

This comes from C, not from Lisp.  See search.c.




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

* Re: strange error : invalid search bound
  2012-12-08 16:02 strange error : invalid search bound françois-xavier bois
  2012-12-08 20:29 ` Eli Zaretskii
@ 2012-12-09 15:38 ` Stefan Monnier
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2012-12-09 15:38 UTC (permalink / raw)
  To: françois-xavier bois; +Cc: emacs-devel@gnu.org

> The error message is "Invalid search bound (wrong side of point)" and is
> triggered with a quite simple re-search-forward
> (while (re-search-forward "<\\?\\|<%[#-!@]?\\|</?[#@]\\|[$#]{\\|{[#{%]\\|^%." end t) .......

It means `end' is before point.  I.e. you say "search until you reach
`end'", but you passed `end' already.


        Stefan



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

end of thread, other threads:[~2012-12-09 15:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-08 16:02 strange error : invalid search bound françois-xavier bois
2012-12-08 20:29 ` Eli Zaretskii
2012-12-09 15:38 ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).