From: Alan Mackenzie <acm@muc.de>
To: Jun <netjunegg2@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Is this a bug of cc-mode?
Date: Sat, 25 May 2013 11:19:18 +0000 [thread overview]
Message-ID: <20130525111918.GA3435@acm.acm> (raw)
In-Reply-To: <519FADFF.4070805@gmail.com>
Hi, Jun.
On Fri, May 24, 2013 at 06:14:23PM +0000, Jun wrote:
> emacs -Q
> C-x C-f /tmp/tmp.c (should be in c-mode)
> Copy the following c code and paste it to the new buffer, then emacs
> freezes.
> -------------xxxx-----------------
> LONG Rounding(
> IN PRTMP_ADAPTER pAd,
> IN LONG Integer,
> IN LONG Fraction,
> IN LONG DenominatorOfTssiRatio)
> -------------xxxx---------------
I think the following patch fixes things. Could you try it out, please,
and let me know whether it works properly. Thanks!
diff -r 5913f459a611 cc-mode.el
--- a/cc-mode.el Sat May 25 10:56:44 2013 +0000
+++ b/cc-mode.el Sat May 25 11:15:35 2013 +0000
@@ -1082,7 +1082,7 @@
;; This typically sets `syntax-table' properties.
(setq c-just-done-before-change nil)
- (c-save-buffer-state ()
+ (c-save-buffer-state (case-fold-search)
;; When `combine-after-change-calls' is used we might get calls
;; with regions outside the current narrowing. This has been
;; observed in Emacs 20.7.
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2013-05-25 11:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-24 18:14 Is this a bug of cc-mode? Jun
2013-05-24 15:01 ` Alan Mackenzie
2013-05-25 11:19 ` Alan Mackenzie [this message]
2013-05-28 9:41 ` Jun
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=20130525111918.GA3435@acm.acm \
--to=acm@muc.de \
--cc=emacs-devel@gnu.org \
--cc=netjunegg2@gmail.com \
/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.