unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#18753: [PATCH] .rbw and .pyw support, more Ruby files recognized
@ 2014-10-17 10:47 Vasily Korytov
  2015-11-15 23:39 ` Dmitry Gutov
  0 siblings, 1 reply; 2+ messages in thread
From: Vasily Korytov @ 2014-10-17 10:47 UTC (permalink / raw)
  To: 18753

[-- 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#18753: [PATCH] .rbw and .pyw support, more Ruby files recognized
  2014-10-17 10:47 bug#18753: [PATCH] .rbw and .pyw support, more Ruby files recognized Vasily Korytov
@ 2015-11-15 23:39 ` Dmitry Gutov
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Gutov @ 2015-11-15 23:39 UTC (permalink / raw)
  To: 18753-done

Thank you, I've applied the fist patch, but not the second one, because 
the Berksfile entry has already been added in the meantime, and Procfile 
doesn't use the Ruby syntax.

Branch emacs-25, dbc090a.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-15 23:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-17 10:47 bug#18753: [PATCH] .rbw and .pyw support, more Ruby files recognized Vasily Korytov
2015-11-15 23:39 ` Dmitry Gutov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).