diff options
| author | Stefan Monnier | 2011-01-21 15:48:20 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2011-01-21 15:48:20 -0500 |
| commit | 0f1f97caf2128c133ec7c7fae742d6334a912d1b (patch) | |
| tree | ba8b2dafe44955beeff30e12e2921893652e2892 | |
| parent | 26a27884805a63e39f46f612fbe6f8fa618c499d (diff) | |
| download | emacs-0f1f97caf2128c133ec7c7fae742d6334a912d1b.tar.gz emacs-0f1f97caf2128c133ec7c7fae742d6334a912d1b.zip | |
* lisp/progmodes/js.el (js--regexp-literal): Count backslashes.
Fixes: debbugs:7882
| -rw-r--r-- | lisp/ChangeLog | 18 | ||||
| -rw-r--r-- | lisp/progmodes/js.el | 2 |
2 files changed, 12 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 83f3e3f5bc4..380c082d82e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-01-21 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * progmodes/js.el (js--regexp-literal): Count backslashes (bug#7882). | ||
| 4 | |||
| 1 | 2011-01-21 Jari Aalto <jari.aalto@cante.net> | 5 | 2011-01-21 Jari Aalto <jari.aalto@cante.net> |
| 2 | 6 | ||
| 3 | * emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine): (bug#7705) | 7 | * emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine): (bug#7705) |
| @@ -28,12 +32,12 @@ | |||
| 28 | 32 | ||
| 29 | 2011-01-14 Kenichi Handa <handa@m17n.org> | 33 | 2011-01-14 Kenichi Handa <handa@m17n.org> |
| 30 | 34 | ||
| 31 | * mail/rmailmm.el (rmail-mime-insert-header): Set | 35 | * mail/rmailmm.el (rmail-mime-insert-header): |
| 32 | rmail-mime-coding-system to a cons whose car is the last coding | 36 | Set rmail-mime-coding-system to a cons whose car is the last coding |
| 33 | system used to decode the header. | 37 | system used to decode the header. |
| 34 | (rmail-mime-find-header-encoding): New function. | 38 | (rmail-mime-find-header-encoding): New function. |
| 35 | (rmail-mime-insert-decoded-text): Override | 39 | (rmail-mime-insert-decoded-text): |
| 36 | rmail-mime-coding-system if it is a cons. | 40 | Override rmail-mime-coding-system if it is a cons. |
| 37 | (rmail-show-mime): If only a header part was decoded, find the | 41 | (rmail-show-mime): If only a header part was decoded, find the |
| 38 | coding system while ignoring mm-charset-override-alist. | 42 | coding system while ignoring mm-charset-override-alist. |
| 39 | 43 | ||
| @@ -46,8 +50,8 @@ | |||
| 46 | * mail/rmailmm.el (rmail-mime-next-item) | 50 | * mail/rmailmm.el (rmail-mime-next-item) |
| 47 | (rmail-mime-previous-item): Delete them. | 51 | (rmail-mime-previous-item): Delete them. |
| 48 | (rmail-mime-shown-mode): Recursively call for children. | 52 | (rmail-mime-shown-mode): Recursively call for children. |
| 49 | (rmail-mime-hidden-mode): Delete the 2nd arg TOP. Callers | 53 | (rmail-mime-hidden-mode): Delete the 2nd arg TOP. |
| 50 | changed. | 54 | Callers changed. |
| 51 | (rmail-mime-raw-mode): Recursively call for children. | 55 | (rmail-mime-raw-mode): Recursively call for children. |
| 52 | (rmail-mode-map): Change mapping of tab and backtab to | 56 | (rmail-mode-map): Change mapping of tab and backtab to |
| 53 | forward-button and backward-button respectively. | 57 | forward-button and backward-button respectively. |
| @@ -56,7 +60,7 @@ | |||
| 56 | (rmail-mime-update-tagline): New function. | 60 | (rmail-mime-update-tagline): New function. |
| 57 | (rmail-mime-insert-text): Call rmail-mime-update-tagline if the | 61 | (rmail-mime-insert-text): Call rmail-mime-update-tagline if the |
| 58 | body display is changed. | 62 | body display is changed. |
| 59 | (rmail-mime-toggle-button): Renamed from rmail-mime-image. | 63 | (rmail-mime-toggle-button): Rename from rmail-mime-image. |
| 60 | (rmail-mime-image): Delete this button type. | 64 | (rmail-mime-image): Delete this button type. |
| 61 | (rmail-mime-toggle): New button type. | 65 | (rmail-mime-toggle): New button type. |
| 62 | (rmail-mime-insert-bulk): Call rmail-mime-update-tagline if the | 66 | (rmail-mime-insert-bulk): Call rmail-mime-update-tagline if the |
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index 56b9f4c5358..3fb22d85777 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el | |||
| @@ -1654,7 +1654,7 @@ This performs fontification according to `js--class-styles'." | |||
| 1654 | ;; as the newline is escaped with \. Account for that in the regexp | 1654 | ;; as the newline is escaped with \. Account for that in the regexp |
| 1655 | ;; below. | 1655 | ;; below. |
| 1656 | (defconst js--regexp-literal | 1656 | (defconst js--regexp-literal |
| 1657 | "[=(,:]\\(?:\\s-\\|\n\\)*\\(/\\)\\(?:\\\\/\\|[^/*]\\)\\(?:\\\\/\\|[^/]\\)*\\(/\\)" | 1657 | "[=(,:]\\(?:\\s-\\|\n\\)*\\(/\\)\\(?:\\\\.\\|[^/*\\]\\)\\(?:\\\\.\\|[^/\\]\\)*\\(/\\)" |
| 1658 | "Regexp matching a JavaScript regular expression literal. | 1658 | "Regexp matching a JavaScript regular expression literal. |
| 1659 | Match groups 1 and 2 are the characters forming the beginning and | 1659 | Match groups 1 and 2 are the characters forming the beginning and |
| 1660 | end of the literal.") | 1660 | end of the literal.") |