unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#1177: 23.0.60; cc-mode cannot recognize pointer array declaretions
@ 2008-10-16  6:37 Feng Li
  2011-10-03 19:25 ` Glenn Morris
  2012-08-11 15:02 ` bug#1177: 24.1.1; cc-mode cannot recognize function prototypes returning a pointer Stéphane Castelli
  0 siblings, 2 replies; 4+ messages in thread
From: Feng Li @ 2008-10-16  6:37 UTC (permalink / raw)
  To: emacs-pretest-bug


Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

cc-mode cannot fontify the following code correctly, where
'prUTF16Char*' should have the type face and sampleRateStrings should
have the variable face, but they both are displayed in regular text
color.

prUTF16Char*            sampleRateStrings[] = {L"48000Hz"};

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
c:/emacs/etc/DEBUG for instructions.


In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
 of 2008-10-14 on SCUMBAG
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.2) --cflags -I../../emacs_libs/inc'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENU
  value of $XMODIFIERS: nil
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: C++/l

Minor modes in effect:
  cwarn-mode: t
  display-time-mode: t
  shell-dirtrack-mode: t
  recentf-mode: t
  cua-mode: t
  semantic-idle-scheduler-mode: t
  which-function-mode: t
  show-paren-mode: t
  global-auto-revert-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Recent input:
n P N P <return> <return> <return> <return> <return> 
<return> <return> <help-echo> <down-mouse-1> <mouse-movement> 
<mouse-2> <help-echo> <down-mouse-1> <mouse-1> <help-echo> 
<down> <M-up> <up> <return> <return> <return> <return> 
<return> <return> <return> <return> <return> <return> 
<return> <return> <return> <return> <return> <return> 
<return> <return> <return> <M-down> <M-up> <M-down> 
<up> <up> <up> <up> q C-x 5 0 <home> <home> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <S-up> <S-up> <S-up> 
<S-up> <S-up> <S-up> <S-up> <S-up> <S-up> <S-up> <S-up> 
<S-up> <S-up> <S-up> <S-up> <S-up> <S-up> <S-up> <S-up> 
<S-up> <up> <next> <next> <next> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <end> <up> <end> <home> <end> 
<home> <down> <down> <down> <down> <down> <down> <down> 
<end> <up> <end> <home> <end> <C-left> <C-left> <C-left> 
<C-left> <C-left> <C-left> <C-left> <C-left> <C-left> 
<home> <home> <M-f5> <down> <down> <down> <down> <down> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<up> <up> <up> <C-right> <delete> C-z <down> <M-f5> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<end> <home> <prior> <prior> <prior> <next> <next> 
<next> <next> <prior> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <end> <S-home> <C-insert> <M-right> <M-left> 
<next> <next> <next> <next> <prior> <prior> <prior> 
<prior> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <down> <down> <down> <down> <down> <down> <M-right> 
<M-left> <up> <up> <up> <up> <home> M-x r e p o r t 
SPC <tab> C-g <end> <S-home> <C-insert> M-x <up> <up> 
<S-end> <delete> r e p o <tab> r t <tab> <return>

Recent messages:
Generating summary...done
Mark set
insert-for-yank: Buffer is read-only: #<buffer *Article*>
End of message [4 times]
Undo...
Undo!
Mark set
Quit
Mark set
Making completion list...

-- 
Feng Li

Blackmagic Design
fengli@blackmagic-design.com
www.blackmagic-design.com






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#1177: 23.0.60; cc-mode cannot recognize pointer array declaretions
  2008-10-16  6:37 bug#1177: 23.0.60; cc-mode cannot recognize pointer array declaretions Feng Li
@ 2011-10-03 19:25 ` Glenn Morris
  2012-08-11 15:02 ` bug#1177: 24.1.1; cc-mode cannot recognize function prototypes returning a pointer Stéphane Castelli
  1 sibling, 0 replies; 4+ messages in thread
From: Glenn Morris @ 2011-10-03 19:25 UTC (permalink / raw)
  To: Feng Li; +Cc: 1177

Feng Li wrote:

> cc-mode cannot fontify the following code correctly, where
> 'prUTF16Char*' should have the type face and sampleRateStrings should
> have the variable face, but they both are displayed in regular text
> color.
>
> prUTF16Char*            sampleRateStrings[] = {L"48000Hz"};

I don't know much about cc-mode, but it works if you add an appropriate
entry to `c-font-lock-extra-types'. Maybe this is how it is supposed to
work?





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#1177: 24.1.1; cc-mode cannot recognize function prototypes returning a pointer
  2008-10-16  6:37 bug#1177: 23.0.60; cc-mode cannot recognize pointer array declaretions Feng Li
  2011-10-03 19:25 ` Glenn Morris
@ 2012-08-11 15:02 ` Stéphane Castelli
  2018-06-23 23:26   ` Noam Postavsky
  1 sibling, 1 reply; 4+ messages in thread
From: Stéphane Castelli @ 2012-08-11 15:02 UTC (permalink / raw)
  To: 1177

I can confirm this bug, but with function prototypes, like this :

SDL_Surface* displayInit(void);


int* stuff(someStuff); works fine.

If i write "SDL_Surface* displayInit(void);", then erase the ';' and 
replace it by '{', then erase the '{' and re-replace it by ';', the 
coloration will work fine whatever i do next...


GNU Emacs 24.1.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.24.10)
  of 2012-07-13 on x86-04.phx2.fedoraproject.org

Fedora 17





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#1177: 24.1.1; cc-mode cannot recognize function prototypes returning a pointer
  2012-08-11 15:02 ` bug#1177: 24.1.1; cc-mode cannot recognize function prototypes returning a pointer Stéphane Castelli
@ 2018-06-23 23:26   ` Noam Postavsky
  0 siblings, 0 replies; 4+ messages in thread
From: Noam Postavsky @ 2018-06-23 23:26 UTC (permalink / raw)
  To: Stéphane Castelli; +Cc: 1177, Feng Li

found 1177 25.3
tags 1177 fixed
close 1177 26.1
quit

Stéphane Castelli <scastelli@enseirb-matmeca.fr> writes:

> I can confirm this bug, but with function prototypes, like this :
>
> SDL_Surface* displayInit(void);

I see the bug happen with original scenario and this one also in 25.3,
but not in 26.1.






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-06-23 23:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-16  6:37 bug#1177: 23.0.60; cc-mode cannot recognize pointer array declaretions Feng Li
2011-10-03 19:25 ` Glenn Morris
2012-08-11 15:02 ` bug#1177: 24.1.1; cc-mode cannot recognize function prototypes returning a pointer Stéphane Castelli
2018-06-23 23:26   ` Noam Postavsky

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).