From: Alan Mackenzie <acm@muc.de>
To: help-gnu-emacs@gnu.org
Cc: Steinar Bang <sb@dod.no>
Subject: Re: csharp-mode from Melpa: Invalid search bound (wrong side of point)
Date: 29 May 2015 12:56:29 -0000 [thread overview]
Message-ID: <20150529125629.42175.qmail@mail.muc.de> (raw)
In-Reply-To: <mailman.3893.1432895554.904.help-gnu-emacs@gnu.org>
Hello, Steinar.
In article <mailman.3893.1432895554.904.help-gnu-emacs@gnu.org> 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" (#<buffer Pakning.cs>) #<buffer *Occur*> 0 t underline shadow match t)
> occur-1("marked" nil (#<buffer Pakning.cs>))
> 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).
next parent reply other threads:[~2015-05-29 12:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.3893.1432895554.904.help-gnu-emacs@gnu.org>
2015-05-29 12:56 ` Alan Mackenzie [this message]
2015-06-01 7:53 ` csharp-mode from Melpa: Invalid search bound (wrong side of point) Steinar Bang
2015-05-29 10:32 Steinar Bang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150529125629.42175.qmail@mail.muc.de \
--to=acm@muc.de \
--cc=help-gnu-emacs@gnu.org \
--cc=sb@dod.no \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.