From: Piotr Sipika <piotr.sipika@gmail.com>
To: Alan Mackenzie <acm@muc.de>
Cc: 18970@debbugs.gnu.org
Subject: bug#18970: 24.3; indent region fails in C++ mode after adding a #include
Date: Fri, 07 Nov 2014 21:27:15 -0500 [thread overview]
Message-ID: <545D7F83.3030502@gmail.com> (raw)
In-Reply-To: <20141107232444.GE2865@acm.acm>
> To confirm that your problem is the same one, would you please do the
> following:
> (i) Kill a line starting with "#include" with C-k, then yank it back
> again with C-y.
> (ii) Move point to the beginning of that line and type C-u C-x =
> (`what-cursor-position' with a C-u prefix argument).
> (iii) You should see something like this:
Awesome directions, here's the output from my instance of that command:
position: 110 of 3316 (3%), column: 0
character: # (displayed as #) (codepoint 35, #o43, #x23)
preferred charset: ascii (ASCII (ISO646 IRV))
code point in charset: 0x23
syntax: . which means: punctuation
category: .:Base, a:ASCII, l:Latin, r:Roman
to input: type "C-x 8 RET HEX-CODEPOINT" or "C-x 8 RET NAME"
buffer code: #x23
file code: #x23 (encoded by coding system undecided-unix)
display: by this font (glyph code)
xft:-unknown-Liberation
Mono-normal-normal-normal-*-15-*-*-*-m-0-iso10646-1 (#x06)
Character code properties: customize what to show
name: NUMBER SIGN
general-category: Po (Punctuation, Other)
decomposition: (35) ('#')
There are text properties here:
c-in-sws t
c-is-sws t
category c-cpp-delimiter
face font-lock-preprocessor-face
fontified t
risky-local-variable t
syntax-table nil
> If you see the syntax-table text property set to nil, as in the above,
> then we have found the bug.
As you can see that is the exact output indicating the bug.
> Either upgrade your Emacs to version 24.4, or apply the following patch
> to ..../emacs-24.3/lisp/progmodes/cc-mode.el:
Thank you for the patch and further directions/suggestions.
> Restart Emacs, and hopefully the bug will be gone. Please let me know
> whether or not this works.
Will do.
Best!
Piotr
next prev parent reply other threads:[~2014-11-08 2:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-06 3:44 bug#18970: 24.3; indent region fails in C++ mode after adding a #include Piotr Sipika
[not found] ` <mailman.12996.1415245577.1147.bug-gnu-emacs@gnu.org>
2014-11-06 11:54 ` Alan Mackenzie
2014-11-06 13:53 ` Piotr Sipika
2014-11-07 16:14 ` Piotr Sipika
[not found] ` <545D3F5E.8030801@gmail.com>
2014-11-07 23:24 ` Alan Mackenzie
2014-11-08 2:27 ` Piotr Sipika [this message]
2014-11-08 3:08 ` Piotr Sipika
2014-11-08 8:29 ` Alan Mackenzie
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=545D7F83.3030502@gmail.com \
--to=piotr.sipika@gmail.com \
--cc=18970@debbugs.gnu.org \
--cc=acm@muc.de \
/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.