From: Vasily Korytov <vasily.korytov@yahoo.com>
To: 18753@debbugs.gnu.org
Subject: bug#18753: [PATCH] .rbw and .pyw support, more Ruby files recognized
Date: Fri, 17 Oct 2014 13:47:36 +0300 [thread overview]
Message-ID: <D066CE78.B73%vasily.korytov@yahoo.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 234 bytes --]
Hello,
I would like to propose two patches for Emacs (I have the papers signed):
1. w.patch: this makes Emacs recognize .rbw and .pyw files.
2. ruby.patch: this adds Procfile and Berksfile to the list of ruby-mode
files.
Thanks.
[-- Attachment #2: w.patch --]
[-- Type: application/octet-stream, Size: 1116 bytes --]
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index b230992..acd22eb 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -256,7 +256,7 @@
(autoload 'comint-mode "comint")
;;;###autoload
-(add-to-list 'auto-mode-alist (cons (purecopy "\\.py\\'") 'python-mode))
+(add-to-list 'auto-mode-alist (cons (purecopy "\\.pyw?\\'") 'python-mode))
;;;###autoload
(add-to-list 'interpreter-mode-alist (cons (purecopy "python[0-9.]*") 'python-mode))
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el
index 2f23e33..1553bbc 100644
--- a/lisp/progmodes/ruby-mode.el
+++ b/lisp/progmodes/ruby-mode.el
@@ -2205,7 +2205,7 @@ See `font-lock-syntax-table'.")
;;;###autoload
(add-to-list 'auto-mode-alist
(cons (purecopy (concat "\\(?:\\."
- "rb\\|ru\\|rake\\|thor"
+ "rbw?\\|ru\\|rake\\|thor"
"\\|jbuilder\\|gemspec\\|podspec"
"\\|/"
"\\(?:Gem\\|Rake\\|Cap\\|Thor"
[-- Attachment #3: ruby.patch --]
[-- Type: application/octet-stream, Size: 779 bytes --]
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el
index 2f23e33..6c9ab92 100644
--- a/lisp/progmodes/ruby-mode.el
+++ b/lisp/progmodes/ruby-mode.el
@@ -2208,8 +2208,8 @@ See `font-lock-syntax-table'.")
"rb\\|ru\\|rake\\|thor"
"\\|jbuilder\\|gemspec\\|podspec"
"\\|/"
- "\\(?:Gem\\|Rake\\|Cap\\|Thor"
- "\\|Vagrant\\|Guard\\|Pod\\)file"
+ "\\(?:Gem\\|Rake\\|Cap\\|Thor\\|Proc"
+ "\\|Vagrant\\|Guard\\|Pod\\|Berks\\)file"
"\\)\\'")) 'ruby-mode))
;;;###autoload
next reply other threads:[~2014-10-17 10:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-17 10:47 Vasily Korytov [this message]
2015-11-15 23:39 ` bug#18753: [PATCH] .rbw and .pyw support, more Ruby files recognized Dmitry Gutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D066CE78.B73%vasily.korytov@yahoo.com \
--to=vasily.korytov@yahoo.com \
--cc=18753@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.