X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/dffe6e58fa0d55147217d45052a36d511325f411..ebecf964123ab7b4e6deec85aa2f2fd58eddea29:/packages/js2-mode/js2-mode.el diff --git a/packages/js2-mode/js2-mode.el b/packages/js2-mode/js2-mode.el index 6820c12f4..3568f189d 100644 --- a/packages/js2-mode/js2-mode.el +++ b/packages/js2-mode/js2-mode.el @@ -292,8 +292,8 @@ If `js2-dynamic-idle-timer-adjust' is 0 or negative, :group 'js2-mode) (defcustom js2-concat-multiline-strings t - "Non-nil to automatically turn a newline in mid-string into a -string concatenation. When `eol', the '+' will be inserted at the + "When non-nil, `js2-line-break' in mid-string will make it a +string concatenation. When `eol', the '+' will be inserted at the end of the line, otherwise, at the beginning of the next line." :type '(choice (const t) (const eol) (const nil)) :group 'js2-mode) @@ -10230,8 +10230,10 @@ Selecting an error will jump it to the corresponding source-buffer error. (define-derived-mode js2-mode prog-mode "Javascript-IDE" ;; FIXME: Should derive from js-mode. "Major mode for editing JavaScript code." - (setq comment-start "//" ; used by comment-region; don't change it - comment-end "") + ;; Used by comment-region; don't change it. + (set (make-local-variable 'comment-start) "//") + (set (make-local-variable 'comment-end) "") + (set (make-local-variable 'comment-start-skip) js2-comment-start-skip) (set (make-local-variable 'max-lisp-eval-depth) (max max-lisp-eval-depth 3000)) (set (make-local-variable 'indent-line-function) #'js2-indent-line) @@ -10260,7 +10262,6 @@ Selecting an error will jump it to the corresponding source-buffer error. c-line-comment-starter "//" c-paragraph-start js2-paragraph-start c-paragraph-separate "$" - comment-start-skip js2-comment-start-skip c-syntactic-ws-start js2-syntactic-ws-start c-syntactic-ws-end js2-syntactic-ws-end c-syntactic-eol js2-syntactic-eol)