Permalink
Browse files

[cage] Set emacs buffer-read-only analog to vim set ro #1034

Analog to vim ex: set ro: also set it up for emacs, if there's no
special emacs coda with buffer-read-only:t at the end.

Also touch tools/build/fixup_gen_file.pl since the library was updated.
  • Loading branch information...
1 parent f5bbdef commit 22696aa4a0135df58cae42e0aee86dc50eda04ad Reini Urban committed Feb 25, 2014
View
@@ -1,6 +1,6 @@
%top{
-/* ex: set ro ft=c:
+/* ex: set ro ft=c: -*- buffer-read-only:t -*-
* !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
*
* This file is generated automatically by the Parrot build process
View
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2012, Parrot Foundation.
+# Copyright (C) 2001-2014, Parrot Foundation.
=head1 NAME
@@ -107,7 +107,7 @@ sub runstep {
my $pkg = __PACKAGE__;
print {$OUT} <<"END";
-# ex: set ro:
+# ex: set ro: -*- buffer-read-only:t -*-
# DO NOT EDIT THIS FILE
# Generated by $pkg from $template
@@ -129,7 +129,7 @@ END
open( $OUT, ">", $c_l_pir ) or die "Can't open $c_l_pir: $!";
print {$OUT} <<"END";
-# ex: set ro:
+# ex: set ro: -*- buffer-read-only:t -*-
# DO NOT EDIT THIS FILE
# Generated by $pkg from $template and \%PConfig
# This file should be the last thing run during
@@ -1,4 +1,4 @@
-# Copyright (C) 2004-2012, Parrot Foundation.
+# Copyright (C) 2004-2014, Parrot Foundation.
.include 'datatypes.pasm'
.include 'parrot_version.pir'
View
@@ -120,7 +120,7 @@ sub generated_file_header {
$script =~ s/\\/\//g;
my $header = <<"END_HEADER";
-/* ex: set ro ft=c:
+/* ex: set ro ft=c: -*- buffer-read-only:t -*-
* !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
*
* This file is generated automatically from '$filename'
@@ -1,5 +1,5 @@
#! perl
-# Copyright (C) 2007, Parrot Foundation.
+# Copyright (C) 2007-2014, Parrot Foundation.
=head1 NAME

0 comments on commit 22696aa

Please sign in to comment.