Skip to content

Commit

Permalink
[cage] Set emacs buffer-read-only analog to vim set ro #1034
Browse files Browse the repository at this point in the history
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
Reini Urban committed Feb 25, 2014
1 parent 8661574 commit a9947f4
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion compilers/imcc/imcc.l
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions config/gen/config_pm.pm
@@ -1,4 +1,4 @@
# Copyright (C) 2001-2012, Parrot Foundation.
# Copyright (C) 2001-2014, Parrot Foundation.

=head1 NAME
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion config/gen/config_pm/config_lib_pir.in
@@ -1,4 +1,4 @@
# Copyright (C) 2004-2012, Parrot Foundation.
# Copyright (C) 2004-2014, Parrot Foundation.

.include 'datatypes.pasm'
.include 'parrot_version.pir'
Expand Down
2 changes: 1 addition & 1 deletion lib/Parrot/BuildUtil.pm
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion tools/build/c2str.pl
Expand Up @@ -100,7 +100,7 @@ sub process_cfile {

my $line = 0;
print <<"HEADER";
/* ex: set ro:
/* ex: set ro: -*- buffer-read-only:t -*-
* !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
*
* This file is generated automatically from '$infile'
Expand Down
2 changes: 1 addition & 1 deletion tools/build/fixup_gen_file.pl
@@ -1,5 +1,5 @@
#! perl
# Copyright (C) 2007, Parrot Foundation.
# Copyright (C) 2007-2014, Parrot Foundation.

=head1 NAME
Expand Down

0 comments on commit a9947f4

Please sign in to comment.