[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/julia-mode 3cb85b4 141/352: Fixing some byte-compilation w
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/julia-mode 3cb85b4 141/352: Fixing some byte-compilation warnings. |
Date: |
Sun, 29 Aug 2021 11:22:32 -0400 (EDT) |
branch: elpa/julia-mode
commit 3cb85b4ee96dfe0c498e5316ec4989f19ddce704
Author: Wilfred Hughes <me@wilfred.me.uk>
Commit: Yichao Yu <yyc1992@gmail.com>
Fixing some byte-compilation warnings.
---
julia-mode.el | 43 +++++++++++++++++++++++--------------------
1 file changed, 23 insertions(+), 20 deletions(-)
diff --git a/julia-mode.el b/julia-mode.el
index 2df1631..8d3bbf1 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -12,6 +12,8 @@
(defvar julia-mode-hook nil)
+(defvar julia-basic-offset)
+
(add-to-list 'auto-mode-alist '("\\.jl\\'" . julia-mode))
;; define ignore-errors macro if it isn't present
@@ -239,6 +241,26 @@ Do not move back beyond MIN."
'prog-mode
'fundamental-mode))
+;;; IMENU
+(defvar julia-imenu-generic-expression
+ ;; don't use syntax classes, screws egrep
+ '(("Function (_)" "[ \t]*function[ \t]+\\(_[^ \t\n]*\\)" 1)
+ ("Function" "^[ \t]*function[ \t]+\\([^_][^\t\n]*\\)" 1)
+ ("Const" "[ \t]*const \\([^ \t\n]*\\)" 1)
+ ("Type" "^[ \t]*[a-zA-Z0-9_]*type[a-zA-Z0-9_]* \\([^ \t\n]*\\)" 1)
+ ("Require" " *\\(\\brequire\\)(\\([^ \t\n)]*\\)" 2)
+ ("Include" " *\\(\\binclude\\)(\\([^ \t\n)]*\\)" 2)
+ ;; ("Classes" "^.*setClass(\\(.*\\)," 1)
+ ;; ("Coercions" "^.*setAs(\\([^,]+,[^,]*\\)," 1) ; show from and to
+ ;; ("Generics" "^.*setGeneric(\\([^,]*\\)," 1)
+ ;; ("Methods" "^.*set\\(Group\\|Replace\\)?Method(\"\\(.+\\)\"," 2)
+ ;; ;;[ ]*\\(signature=\\)?(\\(.*,?\\)*\\)," 1)
+ ;; ;;
+ ;; ;;("Other" "^\\(.+\\)\\s-*<-[
\t\n]*[^\\(function\\|read\\|.*data\.frame\\)]" 1)
+ ;; ("Package" "^.*\\(library\\|require\\)(\\(.*\\)," 2)
+ ;; ("Data" "^\\(.+\\)\\s-*<-[ \t\n]*\\(read\\|.*data\.frame\\).*(" 1)))
+ ))
+
;;;###autoload
(define-derived-mode julia-mode julia-mode-prog-mode "Julia"
"Major mode for editing julia code."
@@ -262,27 +284,8 @@ Do not move back beyond MIN."
(setq imenu-generic-expression julia-imenu-generic-expression)
(imenu-add-to-menubar "Imenu"))
-;;; IMENU
-(defvar julia-imenu-generic-expression
- ;; don't use syntax classes, screws egrep
- '(("Function (_)" "[ \t]*function[ \t]+\\(_[^ \t\n]*\\)" 1)
- ("Function" "^[ \t]*function[ \t]+\\([^_][^\t\n]*\\)" 1)
- ("Const" "[ \t]*const \\([^ \t\n]*\\)" 1)
- ("Type" "^[ \t]*[a-zA-Z0-9_]*type[a-zA-Z0-9_]* \\([^ \t\n]*\\)" 1)
- ("Require" " *\\(\\brequire\\)(\\([^ \t\n)]*\\)" 2)
- ("Include" " *\\(\\binclude\\)(\\([^ \t\n)]*\\)" 2)
- ;; ("Classes" "^.*setClass(\\(.*\\)," 1)
- ;; ("Coercions" "^.*setAs(\\([^,]+,[^,]*\\)," 1) ; show from and to
- ;; ("Generics" "^.*setGeneric(\\([^,]*\\)," 1)
- ;; ("Methods" "^.*set\\(Group\\|Replace\\)?Method(\"\\(.+\\)\"," 2)
- ;; ;;[ ]*\\(signature=\\)?(\\(.*,?\\)*\\)," 1)
- ;; ;;
- ;; ;;("Other" "^\\(.+\\)\\s-*<-[
\t\n]*[^\\(function\\|read\\|.*data\.frame\\)]" 1)
- ;; ("Package" "^.*\\(library\\|require\\)(\\(.*\\)," 2)
- ;; ("Data" "^\\(.+\\)\\s-*<-[ \t\n]*\\(read\\|.*data\.frame\\).*(" 1)))
- ))
+(defvar latexsubs (make-hash-table :test 'equal))
-(setq latexsubs (make-hash-table :test 'equal))
(defun latexsub (arg)
"Perform a LaTeX-like Unicode symbol substitution."
(interactive "*i")
- [nongnu] elpa/julia-mode efce160 032/352: adding bitstype syntax, (continued)
- [nongnu] elpa/julia-mode efce160 032/352: adding bitstype syntax, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 29c7950 033/352: adding boot.j, allowing us to move more primitive definitions to julia, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 6ae7fab 043/352: improvements to julia-mode indenting:, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 2f7441b 058/352: AbstractArray, AbstractVector, AbstractMatrix highlighting in julia-mode.el, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 1312fa7 062/352: removing Tensor from list of syntax highlighted types, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode b35dd82 088/352: more | -> for conversion, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode e225b48 098/352: Update mailmap, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 2ee8be9 089/352: fix #828, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 3fe9882 114/352: Add emacs mode usage, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 3913d39 117/352: Add BigInt and BigFloat to julia-mode.el, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 3cb85b4 141/352: Fixing some byte-compilation warnings.,
ELPA Syncer <=
- [nongnu] elpa/julia-mode c47ccdc 150/352: Highlight parent types in type declarations., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode d76f89a 155/352: Preserve point position when indenting., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 7eb9038 161/352: Highlight the function name, not the module name, in declarations., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 9795a7c 021/352: Mailmap file to normalize commit names and emails., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 116a9f9 013/352: disabling automatic conversion, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 1f9a1a7 014/352: redesign of type system and its syntax:, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode de2a2a3 016/352: Rename: Double => Float64, double => float64., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode ecc3f0c 017/352: parsing chains of * or + into single calls, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 16969b1 018/352: removing special syntax of quote(), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 8603d3b 019/352: making array dims an ntuple, ELPA Syncer, 2021/08/29