| Index: third_party/closure_linter/closure_linter/gjslint.py
|
| diff --git a/third_party/closure_linter/closure_linter/gjslint.py b/third_party/closure_linter/closure_linter/gjslint.py
|
| index 824e025dcb00de1eaea0bf1a7367972f7e8da038..b67c5a98bab2b1c8d34e0681673188b3895a55f7 100755
|
| --- a/third_party/closure_linter/closure_linter/gjslint.py
|
| +++ b/third_party/closure_linter/closure_linter/gjslint.py
|
| @@ -255,6 +255,14 @@ def main(argv=None):
|
| if FLAGS.time:
|
| start_time = time.time()
|
|
|
| + # Emacs sets the environment variable INSIDE_EMACS in the subshell.
|
| + # Request Unix mode as emacs will expect output to be in Unix format
|
| + # for integration.
|
| + # See https://www.gnu.org/software/emacs/manual/html_node/emacs/
|
| + # Interactive-Shell.html
|
| + if 'INSIDE_EMACS' in os.environ:
|
| + FLAGS.unix_mode = True
|
| +
|
| suffixes = ['.js']
|
| if FLAGS.additional_extensions:
|
| suffixes += ['.%s' % ext for ext in FLAGS.additional_extensions]
|
|
|