[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/julia-mode 97325c4 318/352: Merge pull request #87 from tp
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/julia-mode 97325c4 318/352: Merge pull request #87 from tpapp/tp/drop-emacs-23 |
Date: |
Sun, 29 Aug 2021 11:23:10 -0400 (EDT) |
branch: elpa/julia-mode
commit 97325c44bc48f92f545952574c81158cd031a791
Merge: d21b83d 66ef2db
Author: Tamas K. Papp <tkpapp@gmail.com>
Commit: GitHub <noreply@github.com>
Merge pull request #87 from tpapp/tp/drop-emacs-23
Transition to cl-lib, drop support for Emacs 23.
---
.travis.yml | 10 +---------
julia-mode.el | 46 ++++++++++++++++++++--------------------------
2 files changed, 21 insertions(+), 35 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index a542264..dd2bfde 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,7 +3,6 @@ sudo: required
dist: trusty
env:
matrix:
- - EMACS=emacs23
- EMACS=emacs24
- EMACS=emacs-snapshot
@@ -16,11 +15,6 @@ branches:
- master
install:
- - if [ "$EMACS" = 'emacs23' ]; then
- sudo apt-get -qq update &&
- sudo apt-get -qq -f install &&
- sudo apt-get -qq install emacs23 emacs23-el;
- fi
- if [ "$EMACS" = 'emacs24' ]; then
sudo apt-get -qq update &&
sudo apt-get -qq -f install &&
@@ -37,9 +31,7 @@ install:
script:
- $EMACS --version
- $EMACS --batch -L . --eval "(and (>= emacs-major-version 24) (setq
byte-compile-error-on-warn t))" -f batch-byte-compile julia-mode.el
- - if [ "$EMACS" != emacs23 ]; then
- $EMACS -batch -L . -l ert -l julia-mode-tests.el -f
ert-run-tests-batch-and-exit;
- fi
+ - $EMACS -batch -L . -l ert -l julia-mode-tests.el -f
ert-run-tests-batch-and-exit;
notifications:
email: false
diff --git a/julia-mode.el b/julia-mode.el
index a4f74dd..c0dfdb4 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,11 +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
-;; populate LaTeX symbols hash table from a generated file.
+(require 'cl-lib)
(require 'julia-mode-latexsubs)
(defvar julia-mode-hook nil)
@@ -404,14 +400,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.
@@ -464,17 +460,17 @@ 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))
- (while (not (or (> count 0) (<= (point) min)))
+ (let ((nesting-count 0))
+ (while (not (or (> nesting-count 0) (<= (point) min)))
(julia-safe-backward-sexp)
- (setq count
+ (setq nesting-count
(cond ((julia-at-keyword julia-block-start-keywords)
- (+ count 1))
+ (+ nesting-count 1))
((and (equal (current-word t) "end")
(not (julia-in-comment)))
- (- count 1))
- (t count))))
- (if (> count 0)
+ (- nesting-count 1))
+ (t nesting-count))))
+ (if (> nesting-count 0)
(point)
nil))))
@@ -550,7 +546,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)))
@@ -736,12 +732,11 @@ Return non-nil (point) if point moved to
`beginning-of-defun'."
(setq arg (if (> arg 0) (1- arg) (1+ arg))))
found))
-(defun julia-end-of-defun (&optional arg)
+(defun julia-end-of-defun ()
"Move point to the end of the current function.
Return nil if point is not in a function, otherwise point."
(interactive)
- (let ((beg-defun-indent)
- (beg-pos (point)))
+ (let ((beg-defun-indent))
(when (or (julia-looking-at-beginning-of-defun)
(julia-beginning-of-defun 1)
(julia-beginning-of-defun -1))
@@ -895,18 +890,17 @@ 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
(defun inferior-julia ()
"Run an inferior instance of `julia' inside Emacs."
(interactive)
- (let ((julia-program julia-program)
- (buffer (get-buffer-create "*Julia*")))
+ (let ((julia-program julia-program))
(when (not (comint-check-proc "*Julia*"))
(apply #'make-comint-in-buffer "Julia" "*Julia*"
julia-program nil julia-arguments))
- [nongnu] elpa/julia-mode 1f254f8 260/352: Fix indentation for anonymous functions., (continued)
- [nongnu] elpa/julia-mode 1f254f8 260/352: Fix indentation for anonymous functions., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 5812bc3 261/352: Added tests for parentheses following keywords., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode b99710c 251/352: `python-mode`-like paren-indent, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 483805b 257/352: Merge pull request #29 from nverno/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 9f990bb 281/352: Handle string escapes, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 2ef6992 278/352: Fixed import export etc indentation at start of buffer. (#47), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 117b791 294/352: Replace `Associative` by `AbstractDict` (thanks to @tpapp), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode dc21978 289/352: Merge pull request #63 from nverno/movement-functions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 61e22f6 312/352: Merge pull request #90 from tpapp/tp/add-melpa-badge, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode a174d0e 315/352: Fix indentation of generated elisp, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 97325c4 318/352: Merge pull request #87 from tpapp/tp/drop-emacs-23,
ELPA Syncer <=
- [nongnu] elpa/julia-mode 0eec10a 333/352: Do not consider `:end` as block ending, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode c9d8230 329/352: Give \ punctuation syntax outside of strings (#113), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 6b7e956 321/352: Fix for derived parent mode (#66), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 9dcabbc 334/352: Simplify the logic to find the end of last block, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 796ddfd 338/352: Apply proper syntax to triple-quoted cmds, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 505d71b 339/352: Add all problemmatic strings from issue #15 to tests, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode b800403 326/352: Font lock tweaks (#102), ELPA Syncer, 2021/08/29
- [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