all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Oleh Krehel <ohwoeowho@gmail.com>
Cc: Alan Mackenzie <acm@muc.de>, emacs-devel@gnu.org
Subject: Re: CC Mode and GCC/CEDET integration for evaluating macros
Date: Sun, 03 May 2015 18:45:08 +0200	[thread overview]
Message-ID: <55465094.8070308@gmx.at> (raw)
In-Reply-To: <87h9rvgpef.fsf@gmail.com>

 > But it fails for this simple case (zero
 > includes, just from the top):
 >
 >      #define IN  1
 >      #ifdef IN
 >      double foo;
 >      #endif
 >
 > Here, "double foo;" gets the shadow. I called `hide-ifdefs'.

Funny.  It doesn't get shadowed here.

But I've never got around to make `hide-ifdef-mode' work reasonably with
the Emacs code base.  I suppose that I'd have to set up some definitions
manually, then scan config.h and then scan the remaining header files in
the order they were processed by the compiler.  So if you could come up
with a solution, this would be very much appreciated here.

BTW, `hide-ifdef-mode' fails on my current config.h file with the trace
below.

martin

Debugger entered--Lisp error: (error "Bad token in parenthesized expression: L")
   signal(error ("Bad token in parenthesized expression: L"))
   error("Bad token in parenthesized expression: %s" L)
   hif-factor()
   hif-muldiv-expr()
   hif-math()
   hif-logshift-expr()
   hif-comp-expr()
   hif-eq-expr()
   hif-logand-expr()
   hif-logxor-expr()
   hif-logior-expr()
   hif-and-expr()
   hif-or-expr()
   hif-expr()
   hif-expr()
   hif-exprlist()
   hif-factor()
   hif-muldiv-expr()
   hif-math()
   hif-logshift-expr()
   hif-comp-expr()
   hif-eq-expr()
   hif-logand-expr()
   hif-logxor-expr()
   hif-logior-expr()
   hif-and-expr()
   hif-or-expr()
   hif-expr()
   hif-exprlist()
   hif-factor()
   hif-muldiv-expr()
   hif-math()
   hif-logshift-expr()
   hif-comp-expr()
   hif-eq-expr()
   hif-logand-expr()
   hif-logxor-expr()
   hif-logior-expr()
   hif-and-expr()
   hif-or-expr()
   hif-expr()
   hif-exprlist()
   hif-parse-exp((hif-lparen hif-lparen __GNUC__ hif-conditional hif-defined __GNUC_STDC_INLINE__ hif-and __GNUC_STDC_INLINE__ hif-colon hif-lparen 199901 L hif-less-equal __STDC_VERSION__ hif-and hif-not hif-defined __HP_cc hif-and hif-not hif-lparen hif-defined __SUNPRO_C hif-and __STDC__ hif-rparen hif-rparen hif-rparen hif-and hif-not hif-defined _GL_EXTERN_INLINE_STDHEADER_BUG hif-rparen))
   hif-canonicalize("\\(^\\|
\\)[ 	]*#[ 	]*if\\(n?def\\)?[ 	]+")
   hif-possibly-hide(nil)
   hide-ifdef-guts()
   hif-recurse-on(1099 58650)
   hif-possibly-hide(t)
   hide-ifdef-guts()
   hide-ifdefs()
   hide-ifdef-mode(toggle)
   funcall-interactively(hide-ifdef-mode toggle)
   call-interactively(hide-ifdef-mode record nil)
   command-execute(hide-ifdef-mode record)
   execute-extended-command(nil "hide-ifdef-mode" "hide-ifdef-mode")
   funcall-interactively(execute-extended-command nil "hide-ifdef-mode" "hide-ifdef-mode")
   call-interactively(execute-extended-command nil nil)
   command-execute(execute-extended-command)



      reply	other threads:[~2015-05-03 16:45 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-01 17:03 CC Mode and GCC/CEDET integration for evaluating macros Oleh Krehel
2015-05-01 18:11 ` Alan Mackenzie
2015-05-01 18:23   ` Oleh Krehel
2015-05-01 18:46     ` Eli Zaretskii
2015-05-01 18:52       ` Oleh Krehel
2015-05-01 19:30         ` Eli Zaretskii
2015-05-01 19:42           ` Oleh Krehel
2015-05-02  8:27             ` Eli Zaretskii
2015-05-02  9:07               ` Eli Zaretskii
2015-05-02  8:57   ` martin rudalics
2015-05-02 12:00     ` Oleh Krehel
2015-05-03 16:45       ` martin rudalics [this message]

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=55465094.8070308@gmx.at \
    --to=rudalics@gmx.at \
    --cc=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    --cc=ohwoeowho@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.