[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/julia-mode 6408b96 306/352: Transition to cl-lib, drop sup
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/julia-mode 6408b96 306/352: Transition to cl-lib, drop support for Emacs 23. |
Date: |
Sun, 29 Aug 2021 11:23:07 -0400 (EDT) |
branch: elpa/julia-mode
commit 6408b96c1c97e41bc2af060d661afee4f7b22e89
Author: Tamas K. Papp <tkpapp@gmail.com>
Commit: Tamas K. Papp <tkpapp@gmail.com>
Transition to cl-lib, drop support for Emacs 23.
Incidental changes:
- use lexical binding (requires Emacs 24)
- rename a variable map which was shadowing the eponymous
function (innocuous here, but bad style)
---
julia-mode.el | 25 +++++++++++--------------
1 file changed, 11 insertions(+), 14 deletions(-)
diff --git a/julia-mode.el b/julia-mode.el
index 3c656cb..cffc466 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -1,8 +1,8 @@
-;;; julia-mode.el --- Major mode for editing Julia source code
+;;; julia-mode.el --- Major mode for editing Julia source code -*-
lexical-binding: t -*-
;; Copyright (C) 2009-2014 Julia contributors
;; URL: https://github.com/JuliaLang/julia
-;; Version: 0.3
+;; Version: 0.4
;; Keywords: languages
;;; Usage:
@@ -35,10 +35,7 @@
;;; Code:
-;; We can't use cl-lib whilst supporting Emacs 23 users who don't use
-;; ELPA.
-(with-no-warnings
- (require 'cl)) ;; incf, decf, plusp
+(require 'cl-lib)
(defvar julia-mode-hook nil)
@@ -402,14 +399,14 @@ As a result, it is true inside \"foo\", `foo` and 'f'."
(unless (or (julia-in-string) (julia-in-comment))
(when (looking-at (rx "["))
- (incf open-count))
+ (cl-incf open-count))
(when (looking-at (rx "]"))
- (decf open-count)))
+ (cl-decf open-count)))
(forward-char 1)))
;; If we've opened more than we've closed, we're inside brackets.
- (plusp open-count)))
+ (cl-plusp open-count)))
(defun julia-at-keyword (kw-list)
"Return the word at point if it matches any keyword in KW-LIST.
@@ -462,7 +459,7 @@ symbol, gives up when this is not true."
"Return the position of the last open block, if one found.
Do not move back beyond position MIN."
(save-excursion
- (let ((count 0))
+ (let ((cl-count 0))
(while (not (or (> count 0) (<= (point) min)))
(julia-safe-backward-sexp)
(setq count
@@ -548,7 +545,7 @@ the (possibly narrowed) buffer, so there is nowhere else to
go."
((and (= 0 this-move)
(or (looking-at-p "^\\s-*\\(?:#.*\\)*$")
(julia-in-comment)))
- (incf moved))
+ (cl-incf moved))
;; success
((= 0 this-move)
(throw 'result (1+ moved)))
@@ -898,10 +895,10 @@ following commands are defined:
"Regexp for matching `inferior-julia' prompt.")
(defvar inferior-julia-mode-map
- (let ((map (nconc (make-sparse-keymap) comint-mode-map)))
+ (let ((map2 (nconc (make-sparse-keymap) comint-mode-map)))
;; example definition
- (define-key map (kbd "TAB") 'julia-latexsub-or-indent)
- map)
+ (define-key map2 (kbd "TAB") 'julia-latexsub-or-indent)
+ map2)
"Basic mode map for `inferior-julia-mode'.")
;;;###autoload
- [nongnu] elpa/julia-mode 8bfc709 325/352: bump version for release, (continued)
- [nongnu] elpa/julia-mode 8bfc709 325/352: bump version for release, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode a31868d 340/352: font-lock ccall as a builtin, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode a4eeb6c 343/352: Merge pull request #134 from non-Jedi/font-lock-builtin-face, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode a1ba9a0 352/352: add logo, README tweaks, add section on testing (#163), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode dc17943 351/352: Indent imports from submodule correctly (#154), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode af5eb63 273/352: short function syntax: support return type declaration, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 1eacdc6 298/352: Create FUNDING.yml, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 023df24 322/352: add latest PR to changelog, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 140369e 337/352: Simplify char-regex, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 10b0eff 286/352: beginning/end of defun functions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 6408b96 306/352: Transition to cl-lib, drop support for Emacs 23.,
ELPA Syncer <=
- [nongnu] elpa/julia-mode 4f024cb 313/352: make loading "julia-latexsubs" work when using `eval-buffer` (#83), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 10ce821 310/352: Add MELPA badge, clarify installation., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 088fb0b 314/352: Load latexsub table as a feature, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 66ef2db 317/352: Merge branch 'master' into tp/drop-emacs-23, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode b295e36 345/352: Merge pull request #133 from non-Jedi/triple-quote-cmd, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode e10a730 056/352: FFT of real vectors as well, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 7065601 138/352: julia-mode symbol-table update from #7018, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 5d693ab 349/352: Fix CI using actions. (#160), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 307b42b 189/352: If the previous line has a trailing =, that should take precedence over blocks., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode c4a75b4 271/352: update short function syntax w.r.t. spaces, ELPA Syncer, 2021/08/29