Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8322447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:23:29+00:00 2026-06-08T23:23:29+00:00

I work with C++ in emacs, and it works perfect, except for a detail

  • 0

I work with C++ in emacs, and it works perfect, except for a detail when highlighting the code. Whenever I write a function with more than one argument (sometimes, even with just one), it does not recognice the function as a function, for instance, in:

double Gamma(double x, double mean, double gamma){
  //some code
}

Gamma is not highlighted like a function, but as plain text, while in #define square(x) x*x, square is properly highlighted, as well in

complex<double> magphase2c(double mag, double phase){
// some code
}

where magphace2c is highlighted as a function.

The same behaviour occurs when I have, for instance,

TF1 *fitBWResult = new TF1("fitBWResult", BreitWigner, ResMassMin, ResMassMax, 3);
// versus
double Mass = 0.776132;

where fitBWResult is not recognized as a variable, but Mass is. This last problem only happens when I use pointers.

I’m using Emacs 23.4.1, I don’t know the version of cc-mode, but I’m running an up to date installation of Debian testing (wheezy).

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T23:23:31+00:00Added an answer on June 8, 2026 at 11:23 pm

    I think this question shouldn’t be left without an answer, and since I solved it thanks to the idea of user noisecapella, I post the solution I found:

    Debian Wheezy, at the time, uses cc-mode 5.31.8 with Emacs 23.4.1, and this version of cc-mode is the one with the problem. The solution is install the newer version (maybe an old one may do the job, also) of the package, from their homepage. Particularly, I solved the issue installing version 5.32.3, the newer at the time being.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been researching how to get Cygwin to work under emacs . I
I'm trying to configure my .emacs file to work in a Windows, Linux, and
I can't get 'remember' to work in org-mode of emacs. I'm on snow leopard.
I'm trying to get emacs tramp running under Windows XP to work over putty
work on asp.net vs 05 C#.Master page header contain the bellow code <script type=text/javascript
Work on this small test application to learn threading/locking. I have the following code,
So, I had a question about getting word count to work properly in emacs
update: the error only occurs when logged into R from within emacs what works:
EDIT: It turns out that the second edit to my .emacs file actually works.
I modified my .emacs file to make auto-backups hidden files via the following code:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.