all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Subject: [PATCH] * lisp/progmodes/ruby-mode.el: Set `ruby-insert-encoding-magic-comment' to nil by default.
@ 2013-11-01 12:59 Bozhidar Batsov
  2013-11-01 17:46 ` Stefan Monnier
  2013-11-02  0:00 ` Dmitry Gutov
  0 siblings, 2 replies; 17+ messages in thread
From: Bozhidar Batsov @ 2013-11-01 12:59 UTC (permalink / raw
  To: emacs-devel


[-- Attachment #1.1: Type: text/plain, Size: 336 bytes --]

Hi guys,  

Since Ruby 1.8 reached end of life in the summer and most projects these days use Ruby 2.0 (which assumes source files use utf8 by default) having `ruby-insert-encoding-magic-comment’ doesn’t make much sense. Most people just disable it anyways, so why not have it disabled by default?  

--  
Cheers,
Bozhidar


[-- Attachment #1.2: Type: text/html, Size: 598 bytes --]

[-- Attachment #2: 0001-lisp-progmodes-ruby-mode.el-Set.patch --]
[-- Type: application/octet-stream, Size: 883 bytes --]

From 9e0bcf177292d0c62f7ad6730700a8eee21e80b1 Mon Sep 17 00:00:00 2001
From: Bozhidar Batsov <bozhidar@batsov.com>
Date: Fri, 1 Nov 2013 14:51:28 +0200
Subject: [PATCH] * lisp/progmodes/ruby-mode.el: Set  
 `ruby-insert-encoding-magic-comment' to nil by default.

---
 lisp/progmodes/ruby-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el
index 1a49f70..2f68dfd 100644
--- a/lisp/progmodes/ruby-mode.el
+++ b/lisp/progmodes/ruby-mode.el
@@ -260,7 +260,7 @@ explicitly declared in magic comment."
   :type '(repeat (cons (symbol :tag "From") (symbol :tag "To")))
   :group 'ruby)
 
-(defcustom ruby-insert-encoding-magic-comment t
+(defcustom ruby-insert-encoding-magic-comment nil
   "Insert a magic Emacs 'coding' comment upon save if this is non-nil."
   :type 'boolean :group 'ruby)
 
-- 
1.8.4


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

end of thread, other threads:[~2013-11-14 13:23 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-01 12:59 Subject: [PATCH] * lisp/progmodes/ruby-mode.el: Set `ruby-insert-encoding-magic-comment' to nil by default Bozhidar Batsov
2013-11-01 17:46 ` Stefan Monnier
2013-11-01 18:51   ` Bozhidar Batsov
2013-11-02  0:00 ` Dmitry Gutov
2013-11-02 10:38   ` Bozhidar Batsov
2013-11-02 20:15     ` Dmitry Gutov
2013-11-03  7:35       ` Bozhidar Batsov
2013-11-03  9:22         ` Dmitry Gutov
2013-11-04 13:40           ` Bozhidar Batsov
2013-11-06 17:10             ` Bozhidar Batsov
2013-11-06 21:45               ` Dmitry Gutov
2013-11-07 10:23                 ` Bozhidar Batsov
2013-11-07 11:06                   ` Dmitry Gutov
2013-11-13 14:36                     ` Bozhidar Batsov
2013-11-13 19:19                       ` Dmitry Gutov
2013-11-14  9:53                         ` Bozhidar Batsov
2013-11-14 13:23                           ` Dmitry Gutov

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.