branch: scratch/editorconfig-cc commit 0e299b75286066a3b526cce5937616ea661d0d95 Author: Brian Leung <29217594+leun...@users.noreply.github.com> Commit: Stefan Monnier <monn...@iro.umontreal.ca>
Silence byte-compiler warnings (#235) Move aliases before their referents Co-authored-by: 10sr <8.slas...@gmail.com> --- editorconfig.el | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/editorconfig.el b/editorconfig.el index 9c7d2154c8..5e74fb9049 100644 --- a/editorconfig.el +++ b/editorconfig.el @@ -59,6 +59,10 @@ coding styles between different editors and IDEs." :prefix "editorconfig-" :group 'tools) +(define-obsolete-variable-alias + 'edconf-exec-path + 'editorconfig-exec-path + "0.5") (defcustom editorconfig-exec-path "editorconfig" "Path to EditorConfig executable. @@ -66,11 +70,11 @@ coding styles between different editors and IDEs." Used by `editorconfig-call-editorconfig-exec'." :type 'string :group 'editorconfig) + (define-obsolete-variable-alias - 'edconf-exec-path - 'editorconfig-exec-path + 'edconf-get-properties-function + 'editorconfig-get-properties-function "0.5") - (defcustom editorconfig-get-properties-function 'editorconfig-core-get-properties-hash "A function which gets EditorConofig properties for current buffer. @@ -100,11 +104,15 @@ Possible known values are: * Get properties by executing EditorConfig executable" :type 'function :group 'editorconfig) + (define-obsolete-variable-alias - 'edconf-get-properties-function - 'editorconfig-get-properties-function + 'edconf-custom-hooks + 'editorconfig-after-apply-functions "0.5") - +(define-obsolete-variable-alias + 'editorconfig-custom-hooks + 'editorconfig-after-apply-functions + "0.7.14") (defcustom editorconfig-after-apply-functions () "A list of functions after loading common EditorConfig settings. @@ -127,14 +135,6 @@ This hook will be run even when there are no matching sections in \".editorconfig\", or no \".editorconfig\" file was found at all." :type 'hook :group 'editorconfig) -(define-obsolete-variable-alias - 'edconf-custom-hooks - 'editorconfig-after-apply-functions - "0.5") -(define-obsolete-variable-alias - 'editorconfig-custom-hooks - 'editorconfig-after-apply-functions - "0.7.14") (defcustom editorconfig-hack-properties-functions () "A list of function to alter property values before applying them. @@ -157,6 +157,10 @@ This hook will be run even when there are no matching sections in :type 'hook :group 'editorconfig) +(define-obsolete-variable-alias + 'edconf-indentation-alist + 'editorconfig-indentation-alist + "0.5") (defcustom editorconfig-indentation-alist ;; For contributors: Sort modes in alphabetical order '((apache-mode apache-indent-level) @@ -251,10 +255,6 @@ NOTE: Only the **buffer local** value of VARIABLE will be set." :type '(alist :key-type symbol :value-type sexp) :risky t :group 'editorconfig) -(define-obsolete-variable-alias - 'edconf-indentation-alist - 'editorconfig-indentation-alist - "0.5") (defcustom editorconfig-exclude-modes () "Modes in which `editorconfig-mode-apply' will not run."