diff options
| author | Eli Zaretskii | 2019-03-07 16:19:00 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2019-03-07 16:19:00 +0200 |
| commit | 953cbce77be9a8da1cbf0ca5ee6442923478e186 (patch) | |
| tree | 578ee0cc4c4314df07913d5b790ab89ab50a123b | |
| parent | a0b2a5ad9ec8186b679ee80e1c5b9786672344a0 (diff) | |
| parent | 3fd2100bff58008b1eaf48922539d914c6ce6c16 (diff) | |
| download | emacs-953cbce77be9a8da1cbf0ca5ee6442923478e186.tar.gz emacs-953cbce77be9a8da1cbf0ca5ee6442923478e186.zip | |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
| -rw-r--r-- | doc/lispref/searching.texi | 4 | ||||
| -rw-r--r-- | lisp/emacs-lisp/regexp-opt.el | 6 | ||||
| -rw-r--r-- | src/frame.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/doc/lispref/searching.texi b/doc/lispref/searching.texi index 38e62040550..740be2a31ff 100644 --- a/doc/lispref/searching.texi +++ b/doc/lispref/searching.texi | |||
| @@ -950,7 +950,7 @@ whitespace: | |||
| 950 | @end defun | 950 | @end defun |
| 951 | 951 | ||
| 952 | @cindex optimize regexp | 952 | @cindex optimize regexp |
| 953 | @defun regexp-opt strings &optional paren noreorder | 953 | @defun regexp-opt strings &optional paren keep-order |
| 954 | This function returns an efficient regular expression that will match | 954 | This function returns an efficient regular expression that will match |
| 955 | any of the strings in the list @var{strings}. This is useful when you | 955 | any of the strings in the list @var{strings}. This is useful when you |
| 956 | need to make matching or searching as fast as possible---for example, | 956 | need to make matching or searching as fast as possible---for example, |
| @@ -988,7 +988,7 @@ if it is necessary to ensure that a postfix operator appended to | |||
| 988 | it will apply to the whole expression. | 988 | it will apply to the whole expression. |
| 989 | @end table | 989 | @end table |
| 990 | 990 | ||
| 991 | The optional argument @var{noreorder}, if @code{nil} or omitted, | 991 | The optional argument @var{keep-order}, if @code{nil} or omitted, |
| 992 | allows the returned regexp to match the strings in any order. If | 992 | allows the returned regexp to match the strings in any order. If |
| 993 | non-@code{nil}, the match is guaranteed to be performed in the order | 993 | non-@code{nil}, the match is guaranteed to be performed in the order |
| 994 | given, as if the strings were made into a regexp by joining them with | 994 | given, as if the strings were made into a regexp by joining them with |
diff --git a/lisp/emacs-lisp/regexp-opt.el b/lisp/emacs-lisp/regexp-opt.el index 4404b905a6f..fce6a47d989 100644 --- a/lisp/emacs-lisp/regexp-opt.el +++ b/lisp/emacs-lisp/regexp-opt.el | |||
| @@ -84,7 +84,7 @@ | |||
| 84 | ;;; Code: | 84 | ;;; Code: |
| 85 | 85 | ||
| 86 | ;;;###autoload | 86 | ;;;###autoload |
| 87 | (defun regexp-opt (strings &optional paren noreorder) | 87 | (defun regexp-opt (strings &optional paren keep-order) |
| 88 | "Return a regexp to match a string in the list STRINGS. | 88 | "Return a regexp to match a string in the list STRINGS. |
| 89 | Each string should be unique in STRINGS and should not contain | 89 | Each string should be unique in STRINGS and should not contain |
| 90 | any regexps, quoted or not. Optional PAREN specifies how the | 90 | any regexps, quoted or not. Optional PAREN specifies how the |
| @@ -114,7 +114,7 @@ nil | |||
| 114 | necessary to ensure that a postfix operator appended to it will | 114 | necessary to ensure that a postfix operator appended to it will |
| 115 | apply to the whole expression. | 115 | apply to the whole expression. |
| 116 | 116 | ||
| 117 | The optional argument NOREORDER, if nil or omitted, allows the | 117 | The optional argument KEEP-ORDER, if nil or omitted, allows the |
| 118 | returned regexp to match the strings in any order. If non-nil, | 118 | returned regexp to match the strings in any order. If non-nil, |
| 119 | the match is guaranteed to be performed in the order given, as if | 119 | the match is guaranteed to be performed in the order given, as if |
| 120 | the strings were made into a regexp by joining them with the | 120 | the strings were made into a regexp by joining them with the |
| @@ -149,7 +149,7 @@ usually more efficient than that of a simplified version: | |||
| 149 | (concat (or open "\\(?:") "a\\`\\)")) | 149 | (concat (or open "\\(?:") "a\\`\\)")) |
| 150 | ;; If we cannot reorder, give up all attempts at | 150 | ;; If we cannot reorder, give up all attempts at |
| 151 | ;; optimisation. There is room for improvement (Bug#34641). | 151 | ;; optimisation. There is room for improvement (Bug#34641). |
| 152 | ((and noreorder (regexp-opt--contains-prefix sorted-strings)) | 152 | ((and keep-order (regexp-opt--contains-prefix sorted-strings)) |
| 153 | (concat (or open "\\(?:") | 153 | (concat (or open "\\(?:") |
| 154 | (mapconcat #'regexp-quote strings "\\|") | 154 | (mapconcat #'regexp-quote strings "\\|") |
| 155 | "\\)")) | 155 | "\\)")) |
diff --git a/src/frame.c b/src/frame.c index 3d83dc0a0d8..1219569068e 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -2236,7 +2236,7 @@ delete_frame (Lisp_Object frame, Lisp_Object force) | |||
| 2236 | for at least one other frame - so make it visible | 2236 | for at least one other frame - so make it visible |
| 2237 | and quit. */ | 2237 | and quit. */ |
| 2238 | if (!FRAME_VISIBLE_P (f1) && !FRAME_ICONIFIED_P (f1)) | 2238 | if (!FRAME_VISIBLE_P (f1) && !FRAME_ICONIFIED_P (f1)) |
| 2239 | Fmake_frame_visible (frame1); | 2239 | Fmake_frame_visible (minibuffer_child_frame); |
| 2240 | 2240 | ||
| 2241 | return Qnil; | 2241 | return Qnil; |
| 2242 | } | 2242 | } |