comparison lisp/progmodes/js.el @ 109258:1df511d197fe

Minor js.el fix. * lisp/progmodes/js.el (js-mode-map): Use standard capitalization and ellipses for menu entries.
author Glenn Morris <rgm@gnu.org>
date Tue, 22 Jun 2010 00:04:20 -0700
parents 642b031fce0f
children d7a517f1b312 376148b31b5e
comparison
equal deleted inserted replaced
109257:d55f872d898a 109258:1df511d197fe
472 :group 'js) 472 :group 'js)
473 473
474 (defcustom js-js-tmpdir 474 (defcustom js-js-tmpdir
475 "~/.emacs.d/js/js" 475 "~/.emacs.d/js/js"
476 "Temporary directory used by `js-mode' to communicate with Mozilla. 476 "Temporary directory used by `js-mode' to communicate with Mozilla.
477 This directory must be readable and writable by both Mozilla and 477 This directory must be readable and writable by both Mozilla and Emacs."
478 Emacs."
479 :type 'directory 478 :type 'directory
480 :group 'js) 479 :group 'js)
481 480
482 (defcustom js-js-timeout 5 481 (defcustom js-js-timeout 5
483 "Reply timeout for executing commands in Mozilla via `js-mode'. 482 "Reply timeout for executing commands in Mozilla via `js-mode'.
497 (define-key keymap [(control ?c) (control ?j)] #'js-set-js-context) 496 (define-key keymap [(control ?c) (control ?j)] #'js-set-js-context)
498 (define-key keymap [(control meta ?x)] #'js-eval-defun) 497 (define-key keymap [(control meta ?x)] #'js-eval-defun)
499 (define-key keymap [(meta ?.)] #'js-find-symbol) 498 (define-key keymap [(meta ?.)] #'js-find-symbol)
500 (easy-menu-define nil keymap "Javascript Menu" 499 (easy-menu-define nil keymap "Javascript Menu"
501 '("Javascript" 500 '("Javascript"
502 ["Select new Mozilla context…" js-set-js-context 501 ["Select New Mozilla Context..." js-set-js-context
503 (fboundp #'inferior-moz-process)] 502 (fboundp #'inferior-moz-process)]
504 ["Evaluate expression in Mozilla context…" js-eval 503 ["Evaluate Expression in Mozilla Context..." js-eval
505 (fboundp #'inferior-moz-process)] 504 (fboundp #'inferior-moz-process)]
506 ["Send current function to Mozilla…" js-eval-defun 505 ["Send Current Function to Mozilla..." js-eval-defun
507 (fboundp #'inferior-moz-process)])) 506 (fboundp #'inferior-moz-process)]))
508 keymap) 507 keymap)
509 "Keymap for `js-mode'.") 508 "Keymap for `js-mode'.")
510 509
511 (defun js-insert-and-indent (key) 510 (defun js-insert-and-indent (key)