# HG changeset patch # User Stefan Monnier # Date 1295642900 18000 # Node ID f7f90410cc52c9ff5a8d4cd8c6a91c63e12b8296 # Parent a651b7492a7863665f8d7f90d7d38a75b9ef32a8 * lisp/progmodes/js.el (js--regexp-literal): Count backslashes. diff -r a651b7492a78 -r f7f90410cc52 lisp/ChangeLog --- a/lisp/ChangeLog Fri Jan 21 13:12:32 2011 -0500 +++ b/lisp/ChangeLog Fri Jan 21 15:48:20 2011 -0500 @@ -1,3 +1,7 @@ +2011-01-21 Stefan Monnier + + * progmodes/js.el (js--regexp-literal): Count backslashes (bug#7882). + 2011-01-21 Jari Aalto * emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine): (bug#7705) @@ -28,12 +32,12 @@ 2011-01-14 Kenichi Handa - * mail/rmailmm.el (rmail-mime-insert-header): Set - rmail-mime-coding-system to a cons whose car is the last coding + * mail/rmailmm.el (rmail-mime-insert-header): + Set rmail-mime-coding-system to a cons whose car is the last coding system used to decode the header. (rmail-mime-find-header-encoding): New function. - (rmail-mime-insert-decoded-text): Override - rmail-mime-coding-system if it is a cons. + (rmail-mime-insert-decoded-text): + Override rmail-mime-coding-system if it is a cons. (rmail-show-mime): If only a header part was decoded, find the coding system while ignoring mm-charset-override-alist. @@ -46,8 +50,8 @@ * mail/rmailmm.el (rmail-mime-next-item) (rmail-mime-previous-item): Delete them. (rmail-mime-shown-mode): Recursively call for children. - (rmail-mime-hidden-mode): Delete the 2nd arg TOP. Callers - changed. + (rmail-mime-hidden-mode): Delete the 2nd arg TOP. + Callers changed. (rmail-mime-raw-mode): Recursively call for children. (rmail-mode-map): Change mapping of tab and backtab to forward-button and backward-button respectively. @@ -56,7 +60,7 @@ (rmail-mime-update-tagline): New function. (rmail-mime-insert-text): Call rmail-mime-update-tagline if the body display is changed. - (rmail-mime-toggle-button): Renamed from rmail-mime-image. + (rmail-mime-toggle-button): Rename from rmail-mime-image. (rmail-mime-image): Delete this button type. (rmail-mime-toggle): New button type. (rmail-mime-insert-bulk): Call rmail-mime-update-tagline if the diff -r a651b7492a78 -r f7f90410cc52 lisp/progmodes/js.el --- a/lisp/progmodes/js.el Fri Jan 21 13:12:32 2011 -0500 +++ b/lisp/progmodes/js.el Fri Jan 21 15:48:20 2011 -0500 @@ -1654,7 +1654,7 @@ ;; as the newline is escaped with \. Account for that in the regexp ;; below. (defconst js--regexp-literal - "[=(,:]\\(?:\\s-\\|\n\\)*\\(/\\)\\(?:\\\\/\\|[^/*]\\)\\(?:\\\\/\\|[^/]\\)*\\(/\\)" + "[=(,:]\\(?:\\s-\\|\n\\)*\\(/\\)\\(?:\\\\.\\|[^/*\\]\\)\\(?:\\\\.\\|[^/\\]\\)*\\(/\\)" "Regexp matching a JavaScript regular expression literal. Match groups 1 and 2 are the characters forming the beginning and end of the literal.")