aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2012-10-09 02:36:16 -0400
committerStefan Monnier2012-10-09 02:36:16 -0400
commitf754db08a70b573fe81f3409cf20a057f9aa0636 (patch)
tree1ddce199006f01a521253651db64e4f58a50b0bb
parentfd59cb292fa47be30b79a2190a0f404d4f673344 (diff)
downloademacs-f754db08a70b573fe81f3409cf20a057f9aa0636.tar.gz
emacs-f754db08a70b573fe81f3409cf20a057f9aa0636.zip
* lisp/progmodes/cc-bytecomp.el (cc-bytecomp-defmacro): Remove, unused.
* lisp/progmodes/cc-vars.el (bq-process): Remove, unused.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/progmodes/cc-bytecomp.el24
-rw-r--r--lisp/progmodes/cc-vars.el10
3 files changed, 3 insertions, 34 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 184356f99fa..37a6adbae56 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12012-10-09 Stefan Monnier <monnier@iro.umontreal.ca> 12012-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * progmodes/cc-bytecomp.el (cc-bytecomp-defmacro): Remove, unused.
4 * progmodes/cc-vars.el (bq-process): Remove, unused.
5
3 * emacs-lisp/cl-macs.el (cl-defstruct): Obey the :read-only property. 6 * emacs-lisp/cl-macs.el (cl-defstruct): Obey the :read-only property.
4 7
52012-10-09 Fabián Ezequiel Gallina <fgallina@cuca> 82012-10-09 Fabián Ezequiel Gallina <fgallina@cuca>
diff --git a/lisp/progmodes/cc-bytecomp.el b/lisp/progmodes/cc-bytecomp.el
index bd9805673a4..4236f1c983f 100644
--- a/lisp/progmodes/cc-bytecomp.el
+++ b/lisp/progmodes/cc-bytecomp.el
@@ -338,30 +338,6 @@ at compile time, e.g. for macros and inline functions."
338 (cc-bytecomp-debug-msg 338 (cc-bytecomp-debug-msg
339 "cc-bytecomp-defun: Covered function %s" ',fun)))))) 339 "cc-bytecomp-defun: Covered function %s" ',fun))))))
340 340
341(put 'cc-bytecomp-defmacro 'lisp-indent-function 'defun)
342(defmacro cc-bytecomp-defmacro (fun &rest temp-macro)
343 "Bind the symbol as a macro during compilation (and evaluation) of the
344file. Don't use outside `eval-when-compile'."
345 `(let ((orig-fun (assq ',fun cc-bytecomp-original-functions)))
346 (if (not orig-fun)
347 (setq orig-fun
348 (list ',fun
349 nil
350 (if (fboundp ',fun)
351 (progn
352 (cc-bytecomp-debug-msg
353 "cc-bytecomp-defmacro: Saving %s" ',fun)
354 (symbol-function ',fun))
355 (cc-bytecomp-debug-msg
356 "cc-bytecomp-defmacro: Saving %s as unbound" ',fun)
357 'unbound))
358 cc-bytecomp-original-functions
359 (cons orig-fun cc-bytecomp-original-functions)))
360 (defmacro ,fun ,@temp-macro)
361 (cc-bytecomp-debug-msg
362 "cc-bytecomp-defmacro: Bound macro %s" ',fun)
363 (setcar (cdr orig-fun) (symbol-function ',fun))))
364
365(defmacro cc-bytecomp-put (symbol propname value) 341(defmacro cc-bytecomp-put (symbol propname value)
366 "Set a property on a symbol during compilation (and evaluation) of 342 "Set a property on a symbol during compilation (and evaluation) of
367the file. Don't use outside `eval-when-compile'." 343the file. Don't use outside `eval-when-compile'."
diff --git a/lisp/progmodes/cc-vars.el b/lisp/progmodes/cc-vars.el
index 5201e4a26ed..d56c1124a9c 100644
--- a/lisp/progmodes/cc-vars.el
+++ b/lisp/progmodes/cc-vars.el
@@ -49,16 +49,6 @@
49 (require 'custom) 49 (require 'custom)
50 (require 'widget)) 50 (require 'widget))
51 51
52(cc-eval-when-compile
53 ;; Need the function form of `backquote', which isn't standardized
54 ;; between Emacsen. It's called `bq-process' in XEmacs, and
55 ;; `backquote-process' in Emacs. `backquote-process' returns a
56 ;; slightly more convoluted form, so let `bq-process' be the norm.
57 (if (fboundp 'backquote-process)
58 (cc-bytecomp-defmacro bq-process (form)
59 `(cdr (backquote-process ,form)))))
60
61
62;;; Helpers 52;;; Helpers
63 53
64;; This widget exists in newer versions of the Custom library 54;; This widget exists in newer versions of the Custom library