From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: Re: csharp-mode from Melpa: Invalid search bound (wrong side of point) Date: 29 May 2015 12:56:29 -0000 Organization: muc.de e.V. Message-ID: <20150529125629.42175.qmail@mail.muc.de> References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1432904617 22174 80.91.229.3 (29 May 2015 13:03:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 May 2015 13:03:37 +0000 (UTC) Cc: Steinar Bang To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 29 15:03:29 2015 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 1YyJwf-0003jw-ED for geh-help-gnu-emacs@m.gmane.org; Fri, 29 May 2015 15:03:29 +0200 Original-Received: from localhost ([::1]:35730 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyJwe-0000aE-OB for geh-help-gnu-emacs@m.gmane.org; Fri, 29 May 2015 09:03:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyJwS-0000Vn-81 for help-gnu-emacs@gnu.org; Fri, 29 May 2015 09:03:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YyJwN-0001Mx-Td for help-gnu-emacs@gnu.org; Fri, 29 May 2015 09:03:16 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:22866 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyJwN-0001Me-K7 for help-gnu-emacs@gnu.org; Fri, 29 May 2015 09:03:11 -0400 Original-Received: (qmail 42176 invoked by uid 3782); 29 May 2015 12:56:29 -0000 In-Reply-To: X-Newsgroups: gnu.emacs.help User-Agent: tin/2.2.0-20131224 ("Lochindaal") (UNIX) (FreeBSD/10.1-RELEASE (amd64)) X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-Received-From: 193.149.48.1 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:104665 Archived-At: Hello, Steinar. In article you wrote: > Platform: Win7 x64 > GNU Emacs 24.4.1 (i686-pc-mingw32) of 2014-10-24 on LEG570 > csharp-mode 20150514.251 (from Melpa) > I've pulled in csharp-mode from Melpa, and when I do 'M-x occur' in a > buffer in csharp-mode I get the error message: Invalid search bound (wrong side of point) > See also the error stack trace below. The stack trace is most revealing: it looks like a fontification bug in CC Mode (of which csharp-mode is a derivative). > Has anyone else seen something similar, and/or know what might be > causing it, and might have an idea how to fix it in csharp-mode or find > a workaround? Usual questions for an Emacs bug: does the bug happen when you start with emacs -Q (followed by "manually" loading csharp-mode)? Does the bug happen in Emacs 24.5 or in the latest development trunk version (if you have easy access to this - I think you have)? If the answer to the last question is "yes", could you please report this as an Emacs bug (e.g., by posting to bug-gnu-emacs@gnu.org), and include, in addition to what is in your post here: 1. A copy of a C# file which triggers the bug (or a URL where the file can be found). The smaller this file is, the easier for the maintainer. 2. A complete recipe, starting preferably from emacs -Q, on how to reproduce the bug. 3. If you need your own CC Mode settings to trigger the bug, then a dump of your CC Mode configuration created by C-c C-b from the C# Mode buffer. > Thanks! > - Steinar > Error stack trace from 'M-x occur' in csharp-mode: > Debugger entered--Lisp error: (error "Invalid search bound (wrong side of point)") > re-search-forward("\\(:[ \n.\f^K]*\\(base\\|this\\)\\)[ \n.\f^K]*(" 33498 t) > #[(limit) "\304\301!\305.^Y\306\307\n\310#\203\221 > font-lock-fontify-keywords-region(33439 33498 nil) > font-lock-default-fontify-region(33439 33498 nil) > c-font-lock-fontify-region(33439 33498 nil) > font-lock-fontify-region(33439 33498) > run-hook-with-args(font-lock-fontify-region 33439 33498) > #[0 "\302\303\300\242\301\242#\207" [(33439) (33498) run-hook-with-args jit-lock-functions] 4 "\n\n(fn)"]() > funcall(#[0 "\302\303\300\242\301\242#\207" [(33439) (33498) run-hook-with-args jit-lock-functions] 4 "\n\n(fn)"]) > jit-lock-fontify-now(33439 33497) > occur-engine-line(33439 33497 t) > occur-engine("marked" (#) # 0 t underline shadow match t) > occur-1("marked" nil (#)) > occur("marked" nil) > call-interactively(occur record nil) > command-execute(occur record) > execute-extended-command(nil "occur") > call-interactively(execute-extended-command nil nil) > command-execute(execute-extended-command) Thanks in advance! -- Alan Mackenzie (Nuremberg, Germany).