From 6571b975fa9155c99cf9d4c5a788a37212a35d7c Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Sun, 26 Apr 2026 19:56:11 +0200 Subject: [PATCH] update julia-mode --- elpa/julia-mode-20260204.807/README-elpa | 1 + .../julia-mode-autoloads.el | 10 ++++-- .../julia-mode-latexsubs.el | 0 .../julia-mode-pkg.el | 6 ++-- .../julia-mode.el | 36 ++++++++++++++----- 5 files changed, 38 insertions(+), 15 deletions(-) create mode 100644 elpa/julia-mode-20260204.807/README-elpa rename elpa/{julia-mode-20250407.841 => julia-mode-20260204.807}/julia-mode-autoloads.el (76%) rename elpa/{julia-mode-20250407.841 => julia-mode-20260204.807}/julia-mode-latexsubs.el (100%) rename elpa/{julia-mode-20250407.841 => julia-mode-20260204.807}/julia-mode-pkg.el (62%) rename elpa/{julia-mode-20250407.841 => julia-mode-20260204.807}/julia-mode.el (97%) diff --git a/elpa/julia-mode-20260204.807/README-elpa b/elpa/julia-mode-20260204.807/README-elpa new file mode 100644 index 00000000..19296213 --- /dev/null +++ b/elpa/julia-mode-20260204.807/README-elpa @@ -0,0 +1 @@ +This is the official Emacs mode for editing Julia programs. diff --git a/elpa/julia-mode-20250407.841/julia-mode-autoloads.el b/elpa/julia-mode-20260204.807/julia-mode-autoloads.el similarity index 76% rename from elpa/julia-mode-20250407.841/julia-mode-autoloads.el rename to elpa/julia-mode-20260204.807/julia-mode-autoloads.el index a973d233..23ab994a 100644 --- a/elpa/julia-mode-20250407.841/julia-mode-autoloads.el +++ b/elpa/julia-mode-20260204.807/julia-mode-autoloads.el @@ -12,10 +12,14 @@ ;;; Generated autoloads from julia-mode.el (add-to-list 'auto-mode-alist '("\\.jl\\'" . julia-mode)) -(autoload 'julia-mode "julia-mode" "\ -Major mode for editing julia code. +(autoload 'julia-mode "julia-mode" +"Major mode for editing julia code. -(fn)" t) +In addition to any hooks its parent mode `prog-mode' might have run, +this mode runs the hook `julia-mode-hook', as the final or penultimate +step during initialization. + +\\{julia-mode-map}" t) (register-definition-prefixes "julia-mode" '("julia-")) diff --git a/elpa/julia-mode-20250407.841/julia-mode-latexsubs.el b/elpa/julia-mode-20260204.807/julia-mode-latexsubs.el similarity index 100% rename from elpa/julia-mode-20250407.841/julia-mode-latexsubs.el rename to elpa/julia-mode-20260204.807/julia-mode-latexsubs.el diff --git a/elpa/julia-mode-20250407.841/julia-mode-pkg.el b/elpa/julia-mode-20260204.807/julia-mode-pkg.el similarity index 62% rename from elpa/julia-mode-20250407.841/julia-mode-pkg.el rename to elpa/julia-mode-20260204.807/julia-mode-pkg.el index 23456b61..fbb97fca 100644 --- a/elpa/julia-mode-20250407.841/julia-mode-pkg.el +++ b/elpa/julia-mode-20260204.807/julia-mode-pkg.el @@ -1,8 +1,8 @@ ;; -*- no-byte-compile: t; lexical-binding: nil -*- -(define-package "julia-mode" "20250407.841" +(define-package "julia-mode" "20260204.807" "Major mode for editing Julia source code." '((emacs "26.1")) :url "https://github.com/JuliaEditorSupport/julia-emacs" - :commit "7fc071eb2c383d44be6d61ea6cef73b0cc8ef9b7" - :revdesc "7fc071eb2c38" + :commit "aadf29523a120c666939cd7adac4b7dece5bd6ef" + :revdesc "aadf29523a12" :keywords '("languages")) diff --git a/elpa/julia-mode-20250407.841/julia-mode.el b/elpa/julia-mode-20260204.807/julia-mode.el similarity index 97% rename from elpa/julia-mode-20250407.841/julia-mode.el rename to elpa/julia-mode-20260204.807/julia-mode.el index 2a002aca..18c17bda 100644 --- a/elpa/julia-mode-20250407.841/julia-mode.el +++ b/elpa/julia-mode-20260204.807/julia-mode.el @@ -2,8 +2,8 @@ ;; Copyright (C) 2009-2014 Julia contributors, 2015-2024 julia-mode.el contributors ;; URL: https://github.com/JuliaEditorSupport/julia-emacs -;; Package-Version: 20250407.841 -;; Package-Revision: 7fc071eb2c38 +;; Package-Version: 20260204.807 +;; Package-Revision: aadf29523a12 ;; Keywords: languages ;; Package-Requires: ((emacs "26.1")) @@ -453,12 +453,6 @@ As a result, it is true inside \"foo\", \\=`foo\\=` and \\='f\\='." ;; of overlapping triple-quotes with first escaped ((backward-char 2))))) -(defun julia-in-multiline-string (&optional syntax-pps) - "Return non-nil if point is inside multi-line string using SYNTAX-PPS." - (and (julia-in-string syntax-pps) - (save-excursion (beginning-of-line) - (julia-in-string syntax-pps)))) - (defun julia-in-brackets () "Return non-nil if point is inside square brackets." (let ((start-pos (point)) @@ -675,7 +669,7 @@ only comments." (defun julia-indent-line () "Indent current line of julia code." (interactive) - (if (julia-in-multiline-string) + (if (save-excursion (beginning-of-line) (julia-in-string)) 'noindent (let* ((point-offset (- (current-column) (current-indentation)))) (indent-line-to @@ -706,6 +700,29 @@ only comments." (when (>= point-offset 0) (move-to-column (+ (current-indentation) point-offset)))))) +(defun julia-fill-paragraph (&optional justify region) + "`fill-paragraph-function' in julia-mode" + (interactive "P") + (let ((fill-paragraph-function nil)) + (cond (region (fill-paragraph justify region)) + ;; in strings, only consider the line containing the first + ;; non-whitespace character in the string up until the closing quote + ;; (not including it or its indentation). + ((julia-in-string) + (let* ((str-start (nth 8 (syntax-ppss))) + (str-fill-start + (save-excursion + (goto-char str-start) (skip-syntax-forward " \"|>") + (beginning-of-line) (point))) + (str-inner-end + (save-excursion + (goto-char str-start) (forward-sexp) + (skip-syntax-backward " \"|") (point)))) + (save-restriction (narrow-to-region str-fill-start str-inner-end) + (fill-paragraph justify)))) + ((julia-in-comment) (fill-comment-paragraph justify)) + (t (fill-paragraph justify region))))) + ;;; Navigation ;; based off python.el @@ -851,6 +868,7 @@ Return nil if point is not in a function, otherwise point." (setq-local indent-line-function #'julia-indent-line) (setq-local beginning-of-defun-function #'julia-beginning-of-defun) (setq-local end-of-defun-function #'julia-end-of-defun) + (setq-local fill-paragraph-function #'julia-fill-paragraph) ;; If completion before point has higher priority than around, \lamb ;; can get completed to \lambdamb (add-hook 'completion-at-point-functions -- 2.47.3