diff options
| author | Glenn Morris | 2013-09-10 23:44:35 -0700 |
|---|---|---|
| committer | Glenn Morris | 2013-09-10 23:44:35 -0700 |
| commit | 2a08047aed0017cc2b639e189fc3b5d41c46fcbd (patch) | |
| tree | b75a8ecbec1344d13f630dcc2e00eb2220df9f8b /lisp/progmodes | |
| parent | cb55925848ce8359ac695b69bf7b278024c304c0 (diff) | |
| download | emacs-2a08047aed0017cc2b639e189fc3b5d41c46fcbd.tar.gz emacs-2a08047aed0017cc2b639e189fc3b5d41c46fcbd.zip | |
Improve previous interpreter-mode-alist change
* lisp/files.el (interpreter-mode-alist): Remove \\` \\' parts.
(set-auto-mode): Don't regexp-quote elements.
* lisp/progmodes/python.el (interpreter-mode-alist): Remove \\` \\'.
* lisp/progmodes/cc-mode.el (interpreter-mode-alist):
* lisp/progmodes/ruby-mode.el (interpreter-mode-alist):
Revert previous change.
* etc/NEWS: Update.
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/cc-mode.el | 7 | ||||
| -rw-r--r-- | lisp/progmodes/python.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/ruby-mode.el | 3 |
3 files changed, 8 insertions, 4 deletions
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el index bffc5b95d25..e977a415d62 100644 --- a/lisp/progmodes/cc-mode.el +++ b/lisp/progmodes/cc-mode.el | |||
| @@ -1555,7 +1555,7 @@ Key bindings: | |||
| 1555 | (cons "Pike" (c-lang-const c-mode-menu pike))) | 1555 | (cons "Pike" (c-lang-const c-mode-menu pike))) |
| 1556 | 1556 | ||
| 1557 | ;;;###autoload (add-to-list 'auto-mode-alist '("\\.\\(u?lpc\\|pike\\|pmod\\(\\.in\\)?\\)\\'" . pike-mode)) | 1557 | ;;;###autoload (add-to-list 'auto-mode-alist '("\\.\\(u?lpc\\|pike\\|pmod\\(\\.in\\)?\\)\\'" . pike-mode)) |
| 1558 | ;;;###autoload (add-to-list 'interpreter-mode-alist '("\\`pike\\'" . pike-mode)) | 1558 | ;;;###autoload (add-to-list 'interpreter-mode-alist '("pike" . pike-mode)) |
| 1559 | 1559 | ||
| 1560 | ;;;###autoload | 1560 | ;;;###autoload |
| 1561 | (define-derived-mode pike-mode prog-mode "Pike" | 1561 | (define-derived-mode pike-mode prog-mode "Pike" |
| @@ -1589,7 +1589,10 @@ Key bindings: | |||
| 1589 | ;; Support for AWK | 1589 | ;; Support for AWK |
| 1590 | 1590 | ||
| 1591 | ;;;###autoload (add-to-list 'auto-mode-alist '("\\.awk\\'" . awk-mode)) | 1591 | ;;;###autoload (add-to-list 'auto-mode-alist '("\\.awk\\'" . awk-mode)) |
| 1592 | ;;;###autoload (add-to-list 'interpreter-mode-alist '("\\`[gmn]?awk\\'" . awk-mode)) | 1592 | ;;;###autoload (add-to-list 'interpreter-mode-alist '("awk" . awk-mode)) |
| 1593 | ;;;###autoload (add-to-list 'interpreter-mode-alist '("mawk" . awk-mode)) | ||
| 1594 | ;;;###autoload (add-to-list 'interpreter-mode-alist '("nawk" . awk-mode)) | ||
| 1595 | ;;;###autoload (add-to-list 'interpreter-mode-alist '("gawk" . awk-mode)) | ||
| 1593 | 1596 | ||
| 1594 | (c-define-abbrev-table 'awk-mode-abbrev-table | 1597 | (c-define-abbrev-table 'awk-mode-abbrev-table |
| 1595 | '(("else" "else" c-electric-continued-statement 0) | 1598 | '(("else" "else" c-electric-continued-statement 0) |
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 5eecc347f03..5f919bf495f 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -225,7 +225,7 @@ | |||
| 225 | ;;;###autoload | 225 | ;;;###autoload |
| 226 | (add-to-list 'auto-mode-alist (cons (purecopy "\\.py\\'") 'python-mode)) | 226 | (add-to-list 'auto-mode-alist (cons (purecopy "\\.py\\'") 'python-mode)) |
| 227 | ;;;###autoload | 227 | ;;;###autoload |
| 228 | (add-to-list 'interpreter-mode-alist (cons (purecopy "\\`python[0-9.]*\\'") 'python-mode)) | 228 | (add-to-list 'interpreter-mode-alist (cons (purecopy "python[0-9.]*") 'python-mode)) |
| 229 | 229 | ||
| 230 | (defgroup python nil | 230 | (defgroup python nil |
| 231 | "Python Language's flying circus support for Emacs." | 231 | "Python Language's flying circus support for Emacs." |
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 9dc2c4fb6c9..0f868255589 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el | |||
| @@ -1968,7 +1968,8 @@ The variable `ruby-indent-level' controls the amount of indentation. | |||
| 1968 | "\\)\\'")) 'ruby-mode)) | 1968 | "\\)\\'")) 'ruby-mode)) |
| 1969 | 1969 | ||
| 1970 | ;;;###autoload | 1970 | ;;;###autoload |
| 1971 | (add-to-list 'interpreter-mode-alist (cons (purecopy "\\`\\(rbx\\|j?ruby\\(1\\.[89]\\)?\\)\\'") 'ruby-mode)) | 1971 | (dolist (name (list "ruby" "rbx" "jruby" "ruby1.9" "ruby1.8")) |
| 1972 | (add-to-list 'interpreter-mode-alist (cons (purecopy name) 'ruby-mode))) | ||
| 1972 | 1973 | ||
| 1973 | (provide 'ruby-mode) | 1974 | (provide 'ruby-mode) |
| 1974 | 1975 | ||