aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/cmacexp.el
diff options
context:
space:
mode:
authorSam Steingold <[email protected]>1999-11-02 23:19:22 +0000
committerSam Steingold <[email protected]>1999-11-02 23:19:22 +0000
commit4ff3fcc7d78b38790bfbf624485fe36952f18186 (patch)
treea0aa12708838e2bf6626de56063f70a087d29713 /lisp/progmodes/cmacexp.el
parent9e56fc95cc30cf80487cc1dbfb03f08e3ceaeed4 (diff)
progmodes/cmacexp.el (c-macro-preprocessor): Find the Solaris cpp.
Diffstat (limited to 'lisp/progmodes/cmacexp.el')
-rw-r--r--lisp/progmodes/cmacexp.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/progmodes/cmacexp.el b/lisp/progmodes/cmacexp.el
index 2d69ddef7c..bc3a1b584d 100644
--- a/lisp/progmodes/cmacexp.el
+++ b/lisp/progmodes/cmacexp.el
@@ -45,7 +45,7 @@
;; Put the following in your ~/.emacs file.
;; If you want the *Macroexpansion* window to be not higher than
-;; necessary:
+;; necessary:
;;(setq c-macro-shrink-window-flag t)
;;
;; If you use a preprocessor other than /lib/cpp (be careful to set a
@@ -112,6 +112,7 @@
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")
(t "/lib/cpp -C"))
"The preprocessor used by the cmacexp package.
@@ -205,7 +206,7 @@ For use inside Lisp programs, see also `c-macro-expansion'."
(let ((oldwinheight (window-height))
(alreadythere ;the window was already there
(get-buffer-window (current-buffer)))
- (popped nil)) ;the window popped changing the layout
+ (popped nil)) ;the window popped changing the layout
(or alreadythere
(progn
(display-buffer (current-buffer) t)
@@ -247,7 +248,7 @@ Optional arg DISPLAY non-nil means show messages in the echo area."
;; Preprocess the buffer contents, then look for all the lines stored
;; in linelist starting from end of buffer. The last line so found is
;; where START was, so return the substring from point to end of
-;; buffer.
+;; buffer.
(let ((inbuf (current-buffer))
(outbuf (get-buffer-create " *C Macro Expansion*"))
(filename (if (and buffer-file-name