diff options
| author | Stefan Monnier | 2000-05-10 22:43:28 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2000-05-10 22:43:28 +0000 |
| commit | ac5cb26d90238cc01056928a99f086cfb188dae5 (patch) | |
| tree | 2f560d78ee2d4387dd4386fe88fc12ca82eddb5a | |
| parent | 8947a5e23255b77ff0dae73675d3a2e77122c066 (diff) | |
| download | emacs-ac5cb26d90238cc01056928a99f086cfb188dae5.tar.gz emacs-ac5cb26d90238cc01056928a99f086cfb188dae5.zip | |
(regexp-opt-depth): Fix regexp.
| -rw-r--r-- | lisp/ChangeLog | 39 | ||||
| -rw-r--r-- | lisp/emacs-lisp/regexp-opt.el | 3 |
2 files changed, 41 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 03159b7e637..c46a4a94cdc 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,42 @@ | |||
| 1 | 2000-05-10 Stefan Monnier <monnier@cs.yale.edu> | ||
| 2 | |||
| 3 | * emacs-lisp/regexp-opt.el (regexp-opt-depth): Fix regexp. | ||
| 4 | |||
| 5 | * subr.el (add-hook, remove-hook): Make hook buffer-local if needed.. | ||
| 6 | (add-minor-mode): Don't make the variable buffer-local and add a | ||
| 7 | reference to define-minor-mode in the docstring. | ||
| 8 | |||
| 9 | * pcvs.el (cvs-cleanup-collection): Remove obsolete code for | ||
| 10 | HEADER/FOOTER and fix bug with trailing empty directory. | ||
| 11 | (cvs-append-to-ignore): Use vc-editable-p if available. | ||
| 12 | (cvs-dir-member-p): Remove obsolete code for HEADER/FOOTER. | ||
| 13 | (vc-do-command): Tweak advice to handle the new VC. | ||
| 14 | |||
| 15 | * log-view.el (log-view-goto-rev): New function for the new VC. | ||
| 16 | (log-view-minor-wrap): Use mark-active. | ||
| 17 | |||
| 18 | * log-edit.el (cvs-changelog-full-paragraphs): Mark obsolete. | ||
| 19 | (log-edit-changelog-full-paragraphs): New var. | ||
| 20 | (log-edit-insert-changelog): Remove a lonely leading `* file'. | ||
| 21 | (log-edit-narrow-changelog, log-edit-changelog-paragraph) | ||
| 22 | (log-edit-changelog-subparagraph, log-edit-changelog-entry) | ||
| 23 | (log-edit-changelog-ours-p, log-edit-changelog-entries) | ||
| 24 | (log-edit-changelog-insert-entries, log-edit-insert-changelog-entries): | ||
| 25 | Replace the `cvs' prefix with `log-edit'. | ||
| 26 | |||
| 27 | * iswitchb.el (iswitchb-completion-help): Unquote lambda. | ||
| 28 | |||
| 29 | * diff-mode.el (diff-font-lock-keywords): Recognize comments. | ||
| 30 | (diff-font-lock-defaults): Explicitly turn off multiline. | ||
| 31 | (diff-end-of-hunk): Handle comments and fix end-of-buffer bug. | ||
| 32 | (diff-ediff-patch): Fix call to ediff-patch-file. | ||
| 33 | (diff-end-of-file, diff-reverse-direction, diff-fixup-modifs): | ||
| 34 | Handle comments. | ||
| 35 | |||
| 36 | * frame.el (automatic-hscrolling): Typo. | ||
| 37 | |||
| 38 | * cvs-status.el (cvs-status-minor-wrap): Use mark-active. | ||
| 39 | |||
| 1 | 2000-05-09 Sam Steingold <sds@goems.com> | 40 | 2000-05-09 Sam Steingold <sds@goems.com> |
| 2 | 41 | ||
| 3 | * apropos.el (apropos-print): use `describe-face' instead of | 42 | * apropos.el (apropos-print): use `describe-face' instead of |
diff --git a/lisp/emacs-lisp/regexp-opt.el b/lisp/emacs-lisp/regexp-opt.el index 8c77e9ea5cb..a7ff7b54a58 100644 --- a/lisp/emacs-lisp/regexp-opt.el +++ b/lisp/emacs-lisp/regexp-opt.el | |||
| @@ -112,7 +112,8 @@ in REGEXP." | |||
| 112 | (string-match regexp "") | 112 | (string-match regexp "") |
| 113 | ;; Count the number of open parentheses in REGEXP. | 113 | ;; Count the number of open parentheses in REGEXP. |
| 114 | (let ((count 0) start) | 114 | (let ((count 0) start) |
| 115 | (while (string-match "\\\\\\(\\\\\\\\\\)*([^?]" regexp start) | 115 | (while (string-match "\\(\\`\\|[^\\]\\)\\\\\\(\\\\\\\\\\)*([^?]" |
| 116 | regexp start) | ||
| 116 | (setq count (1+ count) start (match-end 0))) | 117 | (setq count (1+ count) start (match-end 0))) |
| 117 | count))) | 118 | count))) |
| 118 | 119 | ||