Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
5834812a
Commit
5834812a
authored
Jul 16, 2005
by
Richard M. Stallman
Browse files
(reb-cook-regexp): Avoid warning calling lre-compile-string.
(reb-color-display-p): Avoid warning.
parent
d88757d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
lisp/emacs-lisp/re-builder.el
lisp/emacs-lisp/re-builder.el
+4
-2
No files found.
lisp/emacs-lisp/re-builder.el
View file @
5834812a
...
...
@@ -319,7 +319,8 @@ Except for Lisp syntax this is the same as `reb-regexp'.")
;; emacs/xemacs compatibility
(
if
(
fboundp
'frame-parameter
)
(
frame-parameter
(
selected-frame
)
'display-type
)
(
frame-property
(
selected-frame
)
'display-type
))))
(
if
(
fboundp
'frame-property
)
(
frame-property
(
selected-frame
)
'display-type
)))))
(
defsubst
reb-lisp-syntax-p
()
"Return non-nil if RE Builder uses a Lisp syntax."
...
...
@@ -610,7 +611,8 @@ optional fourth argument FORCE is non-nil."
(
defun
reb-cook-regexp
(
re
)
"Return RE after processing it according to `reb-re-syntax'."
(
cond
((
eq
reb-re-syntax
'lisp-re
)
(
lre-compile-string
(
eval
(
car
(
read-from-string
re
)))))
(
if
(
fboundp
'lre-compile-string
)
(
lre-compile-string
(
eval
(
car
(
read-from-string
re
))))))
((
eq
reb-re-syntax
'sregex
)
(
apply
'sregex
(
eval
(
car
(
read-from-string
re
)))))
((
eq
reb-re-syntax
'rx
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment