aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Potortì1994-09-01 11:05:40 +0000
committerFrancesco Potortì1994-09-01 11:05:40 +0000
commit3332766c74f10bec624a5fca5a8dd1d6480a2fc4 (patch)
tree9da1c8c0023bef9eb103baa0c77845df18f18b07
parent76e91049faceb4c6c7ffc3f0cd1f8c91f5199ff4 (diff)
downloademacs-3332766c74f10bec624a5fca5a8dd1d6480a2fc4.tar.gz
emacs-3332766c74f10bec624a5fca5a8dd1d6480a2fc4.zip
* cmacexp.el (c-macro-prompt-flag): set default to t.
(c-macro-expand): buffer-flush-undo is outdated. (c-macro-expansion): make exit-status a local variable.
-rw-r--r--lisp/progmodes/cmacexp.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/progmodes/cmacexp.el b/lisp/progmodes/cmacexp.el
index a84aa5eb091..2067b13b114 100644
--- a/lisp/progmodes/cmacexp.el
+++ b/lisp/progmodes/cmacexp.el
@@ -3,7 +3,7 @@
3;; Copyright (C) 1992, 1994 Free Software Foundation, Inc. 3;; Copyright (C) 1992, 1994 Free Software Foundation, Inc.
4 4
5;; Author: Francesco Potorti` <pot@cnuce.cnr.it> 5;; Author: Francesco Potorti` <pot@cnuce.cnr.it>
6;; Version: $Id: cmacexp.el,v 1.15 1994/08/07 17:23:44 rms Exp rms $ 6;; Version: $Id: cmacexp.el,v 1.17 1994/09/01 10:35:52 pot Exp pot $
7;; Adapted-By: ESR 7;; Adapted-By: ESR
8;; Keywords: c 8;; Keywords: c
9 9
@@ -66,7 +66,7 @@
66 66
67;; IMPROVEMENTS OVER emacs 18.xx cmacexp.el ========================== 67;; IMPROVEMENTS OVER emacs 18.xx cmacexp.el ==========================
68 68
69;; - A lot of user visible changes. See above. 69;; - A lot of user and programmer visible changes. See above.
70;; - #line directives are inserted, so __LINE__ and __FILE__ are 70;; - #line directives are inserted, so __LINE__ and __FILE__ are
71;; correctly expanded. Works even with START inside a string, a 71;; correctly expanded. Works even with START inside a string, a
72;; comment or a region #ifdef'd away by cpp. cpp is invoked with -C, 72;; comment or a region #ifdef'd away by cpp. cpp is invoked with -C,
@@ -90,7 +90,7 @@
90(defvar c-macro-shrink-window-flag nil 90(defvar c-macro-shrink-window-flag nil
91 "*Non-nil means shrink the *Macroexpansion* window to fit its contents.") 91 "*Non-nil means shrink the *Macroexpansion* window to fit its contents.")
92 92
93(defvar c-macro-prompt-flag nil 93(defvar c-macro-prompt-flag t
94 "*Non-nil makes `c-macro-expand' prompt for preprocessor arguments.") 94 "*Non-nil makes `c-macro-expand' prompt for preprocessor arguments.")
95 95
96(defvar c-macro-preprocessor "/lib/cpp -C" 96(defvar c-macro-preprocessor "/lib/cpp -C"
@@ -150,7 +150,7 @@ For use inside Lisp programs, see also `c-macro-expansion'."
150 (exchange-point-and-mark))) 150 (exchange-point-and-mark)))
151 (set-buffer displaybuf) 151 (set-buffer displaybuf)
152 (setq buffer-read-only nil) 152 (setq buffer-read-only nil)
153 (buffer-flush-undo displaybuf) 153 (buffer-disable-undo displaybuf)
154 (erase-buffer) 154 (erase-buffer)
155 (insert expansion) 155 (insert expansion)
156 (set-buffer-modified-p nil) 156 (set-buffer-modified-p nil)
@@ -240,6 +240,7 @@ Optional arg DISPLAY non-nil means show messages in the echo area."
240 (linenum 0) 240 (linenum 0)
241 (startstat ()) 241 (startstat ())
242 (startmarker "") 242 (startmarker "")
243 (exit-status 0)
243 (tempname (make-temp-name "/tmp/"))) 244 (tempname (make-temp-name "/tmp/")))
244 (unwind-protect 245 (unwind-protect
245 (save-excursion 246 (save-excursion