unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Jan D." <jan.h.d@swipnet.se>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
Subject: Re: /lib/cpp not found in c-mode
Date: Tue, 3 May 2005 06:14:13 +0200	[thread overview]
Message-ID: <d17df93d238feafa9d0821a4ab47cd62@swipnet.se> (raw)
In-Reply-To: <17014.39042.74353.677362@farnswood.snap.net.nz>

>>> In that case, c-macro-preprocessor is set to "/lib/cpp -C" and
>>> c-macro-expand
>>> doesn't work on OSX?
>>
>> If c-macro-preprocessor is a recent variable I can't check because
>> Emacs does not currently compile on Mac OSX 10.3.  My (a bit old) CVS
>> compile does not seem to have it.
>
> c-macro-expand and c-macro-preprocessor have been around for quite a
> while. c-macro-expand is an interactive autoloaded Lisp function in 
> cmacexp.el
> that can be invoked in C mode with C-c C-e or from the menu-bar.  
> Apparently
> this file is not part of cc-mode so perhaps its not being maintained.
> c-macro-expand seems quite useful so I'm kind of surprised that, as a C
> specialist, you're don't use it/not familiar with it.

I must have misspelled the name when looking for it.  I've seen the 
macro expand region menu item in the C menu, but actually never had any 
use for it.

>
>> But c-macro-expand does not work:
>
> If we added the line below to c-macro-preprocessor would it work then 
> for Mac
> OSX?

Yes it would.

	Jan D.


> Nick
>
>
> (defcustom c-macro-preprocessor
>   ;; Cannot rely on standard directory on MS-DOS to find CPP.  In
>   ;; fact, cannot rely on having cpp.exe, either, in latest GCC
>   ;; versions.
>   (cond ((eq system-type 'ms-dos) "gcc -E -C -o - -")
> 	;; Solaris has it in an unusual place.
> 	((and (string-match "^[^-]*-[^-]*-\\(solaris\\|sunos5\\)"
> 			    system-configuration)
> 	      (file-exists-p "/opt/SUNWspro/SC3.0.1/bin/acomp"))
> 	 "/opt/SUNWspro/SC3.0.1/bin/acomp -C -E")
>         ((file-exists-p "/usr/ccs/lib/cpp") "/usr/ccs/lib/cpp -C")
> +	((eq system-type 'darwin) "cpp -C")
> 	(t "/lib/cpp -C"))
>   "The preprocessor used by the cmacexp package.
>
> If you change this, be sure to preserve the `-C' (don't strip comments)
> option, or to set an equivalent one."
>   :type 'string
>   :group 'c-macro)

  parent reply	other threads:[~2005-05-03  4:14 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-01 16:47 /lib/cpp not found in c-mode Stefan Monnier
2005-05-01 20:23 ` Eli Zaretskii
2005-05-02  1:29   ` Nick Roberts
2005-05-02 15:44     ` Stefan Monnier
2005-05-02 21:30       ` Nick Roberts
2005-05-04  9:46       ` Nick Roberts
2005-05-01 23:40 ` Nick Roberts
2005-05-02  4:14   ` Jan D.
2005-05-02  6:46     ` Nick Roberts
2005-05-02 19:58       ` Jan D.
2005-05-02 21:15         ` Nick Roberts
2005-05-02 22:16           ` Stefan Monnier
2005-05-03  4:05             ` Nick Roberts
2005-05-03 15:45               ` Stefan Monnier
2005-05-03 21:36                 ` Nick Roberts
2005-05-03 17:12             ` Richard Stallman
2005-05-03 18:18               ` Stefan Monnier
     [not found]                 ` <20050503233249.1C2799F4ED@mirror.positive-internet.com>
2005-05-03 23:45                   ` Stefan Monnier
2005-05-04 22:05                     ` Richard Stallman
2005-05-04 19:04                 ` Josh Varner
2005-05-03 19:13             ` Eli Zaretskii
2005-05-03 20:23               ` Stefan Monnier
2005-05-04 20:58                 ` Eli Zaretskii
2005-05-05 10:58                   ` Nick Roberts
2005-05-05 17:43                     ` Eli Zaretskii
     [not found]                     ` <0FA9201A-8390-4924-BDE3-2857B0A33576@swipnet.se>
2005-05-05 21:54                       ` Nick Roberts
2005-05-06  4:51                         ` Jan D.
2005-05-06  7:43                           ` Eli Zaretskii
2005-05-03  4:14           ` Jan D. [this message]
2005-05-03 19:49           ` Magnus Henoch
2005-05-04 20:49             ` Nick Roberts
2005-05-05 14:17               ` Stefan Monnier
2005-05-05 17:50                 ` Eli Zaretskii
2005-05-05 18:19                   ` Stefan Monnier
2005-05-05 21:02                     ` Nick Roberts
2005-05-06 12:34                       ` Eli Zaretskii
2005-05-08  2:54                         ` Nick Roberts
2005-05-08  4:28                           ` Eli Zaretskii
2005-05-08  4:59                             ` Nick Roberts
2005-05-08 16:12                               ` Richard Stallman
2005-05-08 18:43                               ` Eli Zaretskii
2005-05-08 16:12                           ` Richard Stallman
2005-05-08 17:31                         ` Stefan Monnier
2005-05-08 19:02                           ` Eli Zaretskii
2005-05-08 19:41                             ` Eli Zaretskii
2005-05-08 21:18                             ` Stefan Monnier
2005-05-06 12:49                       ` Eli Zaretskii
2005-05-06 22:41                         ` Nick Roberts

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d17df93d238feafa9d0821a4ab47cd62@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 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).