aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-07-16 17:35:09 +0000
committerRichard M. Stallman2005-07-16 17:35:09 +0000
commit5834812aad6d086241b9bdbfc3032189596dc472 (patch)
treea9d1ddf5ca782f85d1a54228fe794a9b56ac3e59
parentd88757d61b84855d9860155c424ab6bfdcf5a77d (diff)
downloademacs-5834812aad6d086241b9bdbfc3032189596dc472.tar.gz
emacs-5834812aad6d086241b9bdbfc3032189596dc472.zip
(reb-cook-regexp): Avoid warning calling lre-compile-string.
(reb-color-display-p): Avoid warning.
-rw-r--r--lisp/emacs-lisp/re-builder.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/re-builder.el b/lisp/emacs-lisp/re-builder.el
index 67a682358f4..9aab41f41dd 100644
--- a/lisp/emacs-lisp/re-builder.el
+++ b/lisp/emacs-lisp/re-builder.el
@@ -319,7 +319,8 @@ Except for Lisp syntax this is the same as `reb-regexp'.")
319 ;; emacs/xemacs compatibility 319 ;; emacs/xemacs compatibility
320 (if (fboundp 'frame-parameter) 320 (if (fboundp 'frame-parameter)
321 (frame-parameter (selected-frame) 'display-type) 321 (frame-parameter (selected-frame) 'display-type)
322 (frame-property (selected-frame) 'display-type)))) 322 (if (fboundp 'frame-property)
323 (frame-property (selected-frame) 'display-type)))))
323 324
324(defsubst reb-lisp-syntax-p () 325(defsubst reb-lisp-syntax-p ()
325 "Return non-nil if RE Builder uses a Lisp syntax." 326 "Return non-nil if RE Builder uses a Lisp syntax."
@@ -610,7 +611,8 @@ optional fourth argument FORCE is non-nil."
610(defun reb-cook-regexp (re) 611(defun reb-cook-regexp (re)
611 "Return RE after processing it according to `reb-re-syntax'." 612 "Return RE after processing it according to `reb-re-syntax'."
612 (cond ((eq reb-re-syntax 'lisp-re) 613 (cond ((eq reb-re-syntax 'lisp-re)
613 (lre-compile-string (eval (car (read-from-string re))))) 614 (if (fboundp 'lre-compile-string)
615 (lre-compile-string (eval (car (read-from-string re))))))
614 ((eq reb-re-syntax 'sregex) 616 ((eq reb-re-syntax 'sregex)
615 (apply 'sregex (eval (car (read-from-string re))))) 617 (apply 'sregex (eval (car (read-from-string re)))))
616 ((eq reb-re-syntax 'rx) 618 ((eq reb-re-syntax 'rx)