emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/rubocop e9a74ce 20/64: Use lexical binding as default


From: ELPA Syncer
Subject: [nongnu] elpa/rubocop e9a74ce 20/64: Use lexical binding as default
Date: Wed, 11 Aug 2021 10:07:57 -0400 (EDT)

branch: elpa/rubocop
commit e9a74cee1c341421fea76c08f9c7d74fec3bb850
Author: renan-ranelli <renanranelli@gmail.com>
Commit: renan-ranelli <renanranelli@gmail.com>

    Use lexical binding as default
    
    The `recompile` command won't work since the definitions of `file-name`
    in `rubocop--file-command` (line 122) and `directory` in
    `rubocop--dir-command` (line 86) won't be available in the lambdas given
    to the `compilation-start` function.
    
    By adding lexical binding as a default option for the file, the problem
    is seamlessly solved.
---
 rubocop.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rubocop.el b/rubocop.el
index 386bcb2..dae674a 100644
--- a/rubocop.el
+++ b/rubocop.el
@@ -1,4 +1,4 @@
-;;; rubocop.el --- An Emacs interface for RuboCop
+;;; rubocop.el --- An Emacs interface for RuboCop -*- lexical-binding: t -*-
 
 ;; Copyright © 2011-2013 Bozhidar Batsov
 
@@ -6,7 +6,7 @@
 ;; URL: https://github.com/bbatsov/rubocop-emacs
 ;; Version: 0.3
 ;; Keywords: project, convenience
-;; Package-Requires: ((dash "1.0.0"))
+;; Package-Requires: ((dash "1.0.0") (emacs "24"))
 
 ;; This file is NOT part of GNU Emacs.
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]