GNU bug report logs -
#9560
24.0.50; c-mode syntax problems
Previous Next
Reported by: Michael Welsh Duggan <mwd <at> cert.org>
Date: Tue, 20 Sep 2011 15:31:01 UTC
Severity: normal
Found in version 24.0.50
Done: Alan Mackenzie <acm <at> muc.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
From emacs -Q:
Do NOT resize the frame. The recipe includes C-v, which depends on the
window (and hence frame) size.
Load the following file:
[rwsiteinfo-backup.c (text/x-csrc, attachment)]
[Message part 3 (text/plain, inline)]
Type:
M-x edit-kbd-macro RET y C-x e C-x h C-w C-x i
When prompted, insert the following keyboard macro file:
[c-mode.macro (application/octet-stream, attachment)]
[Message part 5 (text/plain, inline)]
Type:
C-c C-c
You should be back at rwsiteinfo-backup.c. Execute the macro using:
C-x e
Then type:
TAB
At this point, you should see the indentation move to just under the `o'
in "flowtype:list". This location is incorrect. If you then do the
following:
M-x set-variable RET c-echo-syntactic-information-p RET t RET TAB
you will see that c-mode believes the syntax at that point to be
topmost-intro-cont instead of the proper brace-list-entry.
When you have solved this bug, please let me know if the solution has a
reasonable chance of having solved the other problem that I have not
been able to recreate reliably, which is getting "topmost-intro indent
0" instead of "statement indent 4" when in the middle of editing a
function. If these have little chance of being connected, I'll do my
best to try to create that scenario again (no promises).
--
Michael Welsh Duggan
(md5i <at> md5i.com)
This bug report was last modified 13 years and 295 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.