[elpa] externals/async updated (886be4600a -> 20f7757c08)

2024-07-19 Thread ELPA Syncer
elpasync pushed a change to branch externals/async.

  from  886be4600a Bind package-pinned-packages in children
   new  230b53606f Update commentary in async-package
   new  d08a41295b No need to call package-initialize which is costly
   new  2276bccd62 Only load the new or upgraded packages
   new  93957f5b0f Refresh package-alist in call-back
   new  20f7757c08 Update README


Summary of changes:
 README.md|  7 +++
 async-package.el | 57 ++--
 2 files changed, 38 insertions(+), 26 deletions(-)



[elpa] externals/async 230b53606f 1/5: Update commentary in async-package

2024-07-19 Thread ELPA Syncer
branch: externals/async
commit 230b53606f7cc01d7a5951c0dfe3d5ab34790a2a
Author: Thierry Volpiatto 
Commit: Thierry Volpiatto 

Update commentary in async-package
---
 async-package.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/async-package.el b/async-package.el
index f1542ca4c3..7c7510d28c 100644
--- a/async-package.el
+++ b/async-package.el
@@ -22,6 +22,9 @@
 
 ;;; Commentary:
 
+;; Provide the function `async-package-do-action' to
+;; (re)install/upgrade packages asynchronously.
+
 ;;; Code:
 
 (eval-when-compile (require 'cl-lib))



[elpa] externals/async 93957f5b0f 4/5: Refresh package-alist in call-back

2024-07-19 Thread ELPA Syncer
branch: externals/async
commit 93957f5b0f2ed22aeef02972de860fb9c45b4422
Author: Thierry Volpiatto 
Commit: Thierry Volpiatto 

Refresh package-alist in call-back
---
 async-package.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/async-package.el b/async-package.el
index 6ae6892c84..b8c29baa7e 100644
--- a/async-package.el
+++ b/async-package.el
@@ -103,7 +103,8 @@ Argument ERROR-FILE is the file where errors are logged, if 
some."
 (customize-save-variable
  'package-selected-packages
  (delete-dups (append pkgs package-selected-packages
-  (mapc #'package-activate pkgs); load packages.
+  (package-load-all-descriptors) ; refresh package-alist.
+  (mapc #'package-activate pkgs) ; load packages.
   (async-package--modeline-mode -1)
   (message "%s %s packages done" action-string (length packages))
   (run-with-timer



[elpa] externals/async 20f7757c08 5/5: Update README

2024-07-19 Thread ELPA Syncer
branch: externals/async
commit 20f7757c08d998c79ca6c9d724c0500281dd512b
Author: Thierry Volpiatto 
Commit: Thierry Volpiatto 

Update README
---
 README.md | 7 +++
 1 file changed, 7 insertions(+)

diff --git a/README.md b/README.md
index 236de27c60..caf7ab3d94 100644
--- a/README.md
+++ b/README.md
@@ -12,6 +12,7 @@ Some async applications are provided as well with this 
package:
 * Dired-async
 * smtp-mail-async
 * async-bytecomp
+* async-package
 
 # Install
 
@@ -97,6 +98,12 @@ to do this, add to your init file:
 You can control which packages will compile async with 
`async-bytecomp-allowed-packages`.
 Set it to `'(all)` to be sure you will compile all packages asynchronously.
 
+## Install/upgrade packages asynchronously
+
+When using `async-bytecomp-package-mode` only compilation is done
+async.  To do all async (download and (re)install) the function
+`async-package-do-action` is provided, it is used by Helm packages UI.
+
 ## Send mails asynchronously with smtp mail async
 
 To enable this feature, ensure smtp-mail-async.el is loaded and use



[elpa] externals/async 2276bccd62 3/5: Only load the new or upgraded packages

2024-07-19 Thread ELPA Syncer
branch: externals/async
commit 2276bccd622b998ed3633da1d54f0e13c788fcfd
Author: Thierry Volpiatto 
Commit: Thierry Volpiatto 

Only load the new or upgraded packages
---
 async-package.el | 47 +++
 1 file changed, 23 insertions(+), 24 deletions(-)

diff --git a/async-package.el b/async-package.el
index 6773e1da06..6ae6892c84 100644
--- a/async-package.el
+++ b/async-package.el
@@ -98,32 +98,31 @@ Argument ERROR-FILE is the file where errors are logged, if 
some."
   (delete-file error-file)
   (async-package--modeline-mode -1))
   (when result
-(when (eq action 'install)
-  (let ((pkgs (when result
-(if (listp result) result (list result)
+(let ((pkgs (if (listp result) result (list result
+  (when (eq action 'install)
 (customize-save-variable
  'package-selected-packages
- (delete-dups (append pkgs package-selected-packages)
-(package-activate-all) ; load packages.
-(async-package--modeline-mode -1)
-(message "%s %s packages done" action-string (length packages))
-(run-with-timer
- 0.1 nil
- (lambda (lst str)
-   (dired-async-mode-line-message
-"%s %d package(s) done"
-'async-package-message
-str (length lst)))
- packages action-string)
-(when (file-exists-p async-byte-compile-log-file)
-  (let ((buf (get-buffer-create byte-compile-log-buffer)))
-(with-current-buffer buf
-  (goto-char (point-max))
-  (let ((inhibit-read-only t))
-(insert-file-contents async-byte-compile-log-file)
-(compilation-mode))
-  (display-buffer buf)
-  (delete-file async-byte-compile-log-file
+ (delete-dups (append pkgs package-selected-packages
+  (mapc #'package-activate pkgs); load packages.
+  (async-package--modeline-mode -1)
+  (message "%s %s packages done" action-string (length packages))
+  (run-with-timer
+   0.1 nil
+   (lambda (lst str)
+ (dired-async-mode-line-message
+  "%s %d package(s) done"
+  'async-package-message
+  str (length lst)))
+   packages action-string)
+  (when (file-exists-p async-byte-compile-log-file)
+(let ((buf (get-buffer-create byte-compile-log-buffer)))
+  (with-current-buffer buf
+(goto-char (point-max))
+(let ((inhibit-read-only t))
+  (insert-file-contents async-byte-compile-log-file)
+  (compilation-mode))
+(display-buffer buf)
+(delete-file async-byte-compile-log-file)
  'async-pkg-install t)
 (async-package--modeline-mode 1)))
 



[elpa] externals/async d08a41295b 2/5: No need to call package-initialize which is costly

2024-07-19 Thread ELPA Syncer
branch: externals/async
commit d08a41295bde2ed9e7890f4b4fbda7c54cfb259c
Author: Thierry Volpiatto 
Commit: Thierry Volpiatto 

No need to call package-initialize which is costly

Reuse already defined vars which should be enough.
---
 async-package.el | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/async-package.el b/async-package.el
index 7c7510d28c..6773e1da06 100644
--- a/async-package.el
+++ b/async-package.el
@@ -67,8 +67,10 @@ Argument ERROR-FILE is the file where errors are logged, if 
some."
   `(lambda ()
  (require 'bytecomp)
  (setq package-archives ',package-archives
-   package-pinned-packages ',package-pinned-packages)
- (package-initialize)
+   package-pinned-packages ',package-pinned-packages
+   package-archive-contents ',package-archive-contents
+   package-alist ',package-alist
+   load-path ',load-path)
  (prog1
  (condition-case err
  (mapc ',fn ',packages)



[elpa] externals/elisa 7298d3ee8d: Add GNU ELPA badge

2024-07-19 Thread ELPA Syncer
branch: externals/elisa
commit 7298d3ee8da09005520722a6e160cb0ef66f16e9
Author: Sergey Kostyaev 
Commit: Sergey Kostyaev 

Add GNU ELPA badge
---
 README.org | 1 +
 1 file changed, 1 insertion(+)

diff --git a/README.org b/README.org
index 421ebc5c1b..85bb106cff 100644
--- a/README.org
+++ b/README.org
@@ -3,6 +3,7 @@
 
[[http://www.gnu.org/licenses/gpl-3.0.txt][file:https://img.shields.io/badge/license-GPL_3-green.svg]]
 [[https://melpa.org/#/elisa][file:https://melpa.org/packages/elisa-badge.svg]]
 
[[https://stable.melpa.org/#/elisa][file:https://stable.melpa.org/packages/elisa-badge.svg]]
+[[https://elpa.gnu.org/packages/elisa.html][https://elpa.gnu.org/packages/elisa.svg]]
 
 ELISA (Emacs Lisp Information System Assistant) is a system designed
 to provide informative answers to user queries by leveraging a



[elpa] externals/diff-hl 57d9d4e3e1: diff-hl-git-index-revision: Better compatibility with MS Windows

2024-07-19 Thread ELPA Syncer
branch: externals/diff-hl
commit 57d9d4e3e17397bf178c3aa5c369b5edd24523e0
Author: Dmitry Gutov 
Commit: Dmitry Gutov 

diff-hl-git-index-revision: Better compatibility with MS Windows

Fixes #222
---
 diff-hl.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diff-hl.el b/diff-hl.el
index 0afa9d4395..c9b5c11301 100644
--- a/diff-hl.el
+++ b/diff-hl.el
@@ -1146,7 +1146,7 @@ CONTEXT-LINES is the size of the unified diff context, 
defaults to 0."
 
 (defun diff-hl-git-index-revision (file object-name)
   (let ((filename (diff-hl-make-temp-file-name file
-   (concat ":" object-name)
+   (concat ";" object-name)
'manual))
 (filebuf (get-file-buffer file)))
 (unless (file-exists-p filename)



[elpa] externals/eev 919129f5e4: Mention (find-dot-emacs-links) in more places.

2024-07-19 Thread ELPA Syncer
branch: externals/eev
commit 919129f5e4929ce82d3f08d1eaed68983b9ee478
Author: Eduardo Ochs 
Commit: Eduardo Ochs 

Mention (find-dot-emacs-links) in more places.
---
 VERSION   |  4 ++--
 eev-intro.el  | 11 ---
 eev-tlinks.el |  9 ++---
 3 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/VERSION b/VERSION
index 5700bf0045..633383df5c 100644
--- a/VERSION
+++ b/VERSION
@@ -1,2 +1,2 @@
-Thu Jul 18 06:15:28 GMT 2024
-Thu Jul 18 03:15:28 -03 2024
+Fri Jul 19 16:13:19 GMT 2024
+Fri Jul 19 13:13:19 -03 2024
diff --git a/eev-intro.el b/eev-intro.el
index 1edea9ad9d..1e57d3497a 100644
--- a/eev-intro.el
+++ b/eev-intro.el
@@ -19,7 +19,7 @@
 ;;
 ;; Author: Eduardo Ochs 
 ;; Maintainer: Eduardo Ochs 
-;; Version:20240710
+;; Version:20240719
 ;; Keywords:   e-scripts
 ;;
 ;; Latest version: <http://anggtwu.net/eev-current/eev-intro.el>
@@ -2845,6 +2845,7 @@ This intro is unfinished!
 It is a rewrite of some sections of:
   (find-eev-install-intro)
 TODO: mention:
+  (find-dot-emacs-links)
   (find-eev-install-intro \"5.1. With `M-x list-packages'\")
   (find-eev-install-intro \"5.2. With `package-install'\")
 
@@ -17609,8 +17610,12 @@ It is meant as both a tutorial and a sandbox.
 
 Note:
 THIS IS A VERY EARLY DRAFT!
-THIS IS A MESS!!!
-  See:
+THIS IS OBSOLETE!
+Now it is better to start with this:
+  (find-dot-emacs-links)
+  http://anggtwu.net/2024-find-dot-emacs-links.html
+
+I need to rewrite the material below...
 
 
 
diff --git a/eev-tlinks.el b/eev-tlinks.el
index 1cfbf0484f..9728c62660 100644
--- a/eev-tlinks.el
+++ b/eev-tlinks.el
@@ -19,7 +19,7 @@
 ;;
 ;; Author: Eduardo Ochs 
 ;; Maintainer: Eduardo Ochs 
-;; Version:    20240718
+;; Version:20240719
 ;; Keywords:   e-scripts
 ;;
 ;; Latest version: <http://anggtwu.net/eev-current/eev-tlinks.el>
@@ -3886,9 +3886,12 @@ is nil, use the result of (ee-1stclassvideos)."
(find-dot-emacs-links "eev angges melpa lean4 maxima5470 mfms")
;; Convention: the first sexp always regenerates the buffer.
(find-efunction 'find-dot-emacs-links)
-   (find-dot-emacs-intro)
-   ""
+   ";;"
,(ee-template0 "\
+;; See: http://anggtwu.net/2024-find-dot-emacs-links.html
+;;  (find-dot-emacs-intro)
+
+
 ;; (ee-copy-rest-3 nil \";;--end\" \"~/.emacs\")
 {body}\
 ;;--end



[elpa] externals/greader cf1db7405b: dict filters fixed.

2024-07-19 Thread ELPA Syncer
branch: externals/greader
commit cf1db7405bfa694c837e1d3e4d759b47d5956524
Author: Michelangelo Rodriguez 
Commit: Michelangelo Rodriguez 

dict filters fixed.

Now filters support multiple lines, them will be transformed in a
regexp that don't conflict with the routine that reads the dictionary.
More precisely, a "\n" will be replaced with "[[:space:]]" when it is
saved in the database.
furthermore, now filters can be replaced with an empty string.
---
 greader-dict.el | 10 +++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/greader-dict.el b/greader-dict.el
index 807e5fd741..ae00dcfcda 100644
--- a/greader-dict.el
+++ b/greader-dict.el
@@ -350,6 +350,8 @@ If you want to add a partial replacement, you should
 add `\*'to the end of the WORD string parameter."
   ;; We prevent an infinite loop if disallowing that key and values
   ;; are the same.
+  (unless replacement
+(setq replacement ""))
   (when (string-equal-ignore-case word replacement)
 (user-error "key and value are the same, aborting"))
   (puthash word replacement greader-dictionary)
@@ -926,6 +928,8 @@ in the current sentence."
(gethash (concat key greader-dict-filter-indicator)
 greader-dictionary
  (list key value)))
+  (while (string-match "\n" key)
+(setq key (replace-match "[[:space:]]" nil nil key)))
   (greader-dict-add (concat key greader-dict-filter-indicator) value)
   (greader-dict--filter-init))
 
@@ -982,11 +986,11 @@ hash table."
   "Apply filters defined in sequence to the current buffer."
   (maphash
(lambda (k v)
+ (setq k (string-remove-suffix greader-dict-filter-indicator k))
+ (setq k (string-trim-right k))
  (save-excursion
(goto-char (point-min))
-   (while (re-search-forward (string-remove-suffix
- greader-dict-filter-indicator k)
-nil t)
+   (while (re-search-forward k nil t)
 (replace-match v
greader-filters))
 



[nongnu] elpa/helm d5878c24e0 2/2: Merge pull request #2676 from taquangtrung/master

2024-07-19 Thread ELPA Syncer
branch: elpa/helm
commit d5878c24e04e8ef6382ef79851dea21c1a8aa059
Merge: 602c128a7d 910daa3025
Author: Thierry Volpiatto 
Commit: GitHub 

Merge pull request #2676 from taquangtrung/master

include checking tab in helm-ff-last-expanded-candidate-regexp
---
 helm-files.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/helm-files.el b/helm-files.el
index babf5581e5..ef432e2759 100644
--- a/helm-files.el
+++ b/helm-files.el
@@ -114,10 +114,10 @@
 
 ;;; Internal vars
 ;;
-(defvar helm-ff-last-expanded-candidate-regexp "^[[:multibyte:] ]*%s"
+(defvar helm-ff-last-expanded-candidate-regexp "^[[:multibyte:] \t]*%s"
   "Regexp that retrieve previous candidate when going up one level.
 The default value matching a multibyte char at bol allows
-prefixing candidate with an icon.  The format part will be
+prefixing candidate with an icon. The format part will be
 replaced by the display part of the candidate regexp quoted.
 This should be used for all preselection code for helm-find-files
 to handle icons.")



[nongnu] elpa/helm-core updated (602c128a7d -> d5878c24e0)

2024-07-19 Thread ELPA Syncer
elpasync pushed a change to branch elpa/helm-core.

  from  602c128a7d Fix dups in helm-imenu
  adds  910daa3025 include checking tab in 
helm-ff-last-expanded-candidate-regexp
  adds  d5878c24e0 Merge pull request #2676 from taquangtrung/master

No new revisions were added by this update.

Summary of changes:
 helm-files.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)



[nongnu] elpa/git-commit 9d4192b7b1: Fix visiting file from buffer created with magit-diff-paths

2024-07-19 Thread ELPA Syncer
branch: elpa/git-commit
commit 9d4192b7b12c6b7f0664d99c4f876cfcc0a30ad4
Author: Jonas Bernoulli 
Commit: Jonas Bernoulli 

Fix visiting file from buffer created with magit-diff-paths

Closes #5116.
---
 lisp/magit-diff.el | 8 +---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/lisp/magit-diff.el b/lisp/magit-diff.el
index f2d017073a..7c07e5fb3c 100644
--- a/lisp/magit-diff.el
+++ b/lisp/magit-diff.el
@@ -1673,6 +1673,7 @@ the Magit-Status buffer for DIRECTORY."
(magit-diff-visit--range-from spec)
  (magit-diff-visit--range-to spec)))
  (buf  (if (or goto-worktree
+   (equal magit-buffer-typearg "--no-index")
(and (not (stringp rev))
 (or magit-diff-visit-avoid-head-blob
 (not goto-from
@@ -1705,9 +1706,10 @@ the Magit-Status buffer for DIRECTORY."
 (magit-current-section) nil)
(oref file-section source))
   (oref file-section value
-  (if expand
-  (expand-file-name file (magit-toplevel))
-file)
+  (cond ((equal magit-buffer-typearg "--no-index")
+ (concat "/" file))
+(expand (expand-file-name file (magit-toplevel)))
+(file))
 (when assert
   (user-error "No file at point"
 



[nongnu] elpa/helm 910daa3025 1/2: include checking tab in helm-ff-last-expanded-candidate-regexp

2024-07-19 Thread ELPA Syncer
branch: elpa/helm
commit 910daa30254385f8f771120e8d1609034db9e1c7
Author: Ta Quang Trung 
Commit: Ta Quang Trung 

include checking tab in helm-ff-last-expanded-candidate-regexp
---
 helm-files.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/helm-files.el b/helm-files.el
index babf5581e5..ef432e2759 100644
--- a/helm-files.el
+++ b/helm-files.el
@@ -114,10 +114,10 @@
 
 ;;; Internal vars
 ;;
-(defvar helm-ff-last-expanded-candidate-regexp "^[[:multibyte:] ]*%s"
+(defvar helm-ff-last-expanded-candidate-regexp "^[[:multibyte:] \t]*%s"
   "Regexp that retrieve previous candidate when going up one level.
 The default value matching a multibyte char at bol allows
-prefixing candidate with an icon.  The format part will be
+prefixing candidate with an icon. The format part will be
 replaced by the display part of the candidate regexp quoted.
 This should be used for all preselection code for helm-find-files
 to handle icons.")



[nongnu] elpa/magit updated (b9948f9571 -> 9d4192b7b1)

2024-07-19 Thread ELPA Syncer
elpasync pushed a change to branch elpa/magit.

  from  b9948f9571 Bump dependencies
  adds  9d4192b7b1 Fix visiting file from buffer created with 
magit-diff-paths

No new revisions were added by this update.

Summary of changes:
 lisp/magit-diff.el | 8 +---
 1 file changed, 5 insertions(+), 3 deletions(-)



[nongnu] elpa/magit-section updated (b9948f9571 -> 9d4192b7b1)

2024-07-19 Thread ELPA Syncer
elpasync pushed a change to branch elpa/magit-section.

  from  b9948f9571 Bump dependencies
  adds  9d4192b7b1 Fix visiting file from buffer created with 
magit-diff-paths

No new revisions were added by this update.

Summary of changes:
 lisp/magit-diff.el | 8 +---
 1 file changed, 5 insertions(+), 3 deletions(-)



[nongnu] scratch/editorconfig c70df61772: (editorconfig-core-handle--parse-file): Streamline

2024-07-19 Thread Stefan Monnier via
branch: scratch/editorconfig
commit c70df617723d1bf06ad390089e6a7bc7395a9eca
Author: Stefan Monnier 
Commit: Stefan Monnier 

(editorconfig-core-handle--parse-file): Streamline

* editorconfig-core-handle.el: Change copyright to the FSF since all
the contributors have signed the corresponding paperwork.
(editorconfig-core-handle--parse-file): Directly return
a `editorconfig-core-handle`; parse the buffer directly rather than
matching on strings extracted from the buffer; avoid O(N²) complexity
by constructing the lists in reverse and using `nreverse` at the end.
(editorconfig-core-handle): Simplify accordingly.
(editorconfig-core-handle--string-trim): Delete function, not used any more.
---
 editorconfig-core-handle.el | 130 ++--
 1 file changed, 53 insertions(+), 77 deletions(-)

diff --git a/editorconfig-core-handle.el b/editorconfig-core-handle.el
index 20f52a3b97..8ab8a5b191 100644
--- a/editorconfig-core-handle.el
+++ b/editorconfig-core-handle.el
@@ -1,27 +1,29 @@
 ;;; editorconfig-core-handle.el --- Handle Class for EditorConfig File  -*- 
lexical-binding: t -*-
 
-;; Copyright (C) 2011-2024 EditorConfig Team
+;; Copyright (C) 2011-2024  Free Software Foundation, Inc.
 
 ;; Author: EditorConfig Team 
+;; Package: editorconfig
 
 ;; See
-;; https://github.com/editorconfig/editorconfig-emacs/graphs/contributors
-;; or the CONTRIBUTORS file for the list of contributors.
+;; https://github.com/editorconfig/editorconfig-emacs/graphs/contributors or
+;; https://github.com/editorconfig/editorconfig-emacs/blob/master/CONTRIBUTORS
+;; for the list of contributors.
 
 ;; This file is part of EditorConfig Emacs Plugin.
 
 ;; EditorConfig Emacs Plugin is free software: you can redistribute it and/or
 ;; modify it under the terms of the GNU General Public License as published by
-;; the Free Software Foundation, either version 3 of the License, or (at your
-;; option) any later version.
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
 
 ;; EditorConfig Emacs Plugin is distributed in the hope that it will be useful,
 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
-;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
-;; Public License for more details.
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+;; See the GNU General Public License for more details.
 
-;; You should have received a copy of the GNU General Public License along with
-;; EditorConfig Emacs Plugin. If not, see .
+;; You should have received a copy of the GNU General Public License
+;; along with GNU Emacs.  If not, see .
 
 ;;; Commentary:
 
@@ -75,8 +77,7 @@ Slots:
   Last modified time of .editorconfig file.
 
 `path'
-  Absolute path to .editorconfig file.'
-"
+  Absolute path to .editorconfig file."
   (top-props nil)
   (sections nil)
   (mtime nil)
@@ -94,12 +95,7 @@ If CONF does not exist return nil."
(equal (editorconfig-core-handle-mtime cached) mtime))
   cached
 (let ((parsed (editorconfig-core-handle--parse-file conf)))
-  (puthash conf
-   (make-editorconfig-core-handle :top-props (plist-get parsed 
:top-props)
-  :sections (plist-get parsed 
:sections)
-  :mtime mtime
-  :path conf)
-   editorconfig-core-handle--cache-hash))
+  (puthash conf parsed editorconfig-core-handle--cache-hash))
 
 (defun editorconfig-core-handle-root-p (handle)
   "Return non-nil if HANDLE represent root EditorConfig file.
@@ -153,21 +149,10 @@ This function is a fnmatch with a few modification for 
EditorConfig usage."
 (or (editorconfig-fnmatch-p name pattern)
 (editorconfig-fnmatch-p name (concat "**/" pattern)
 
-(defsubst editorconfig-core-handle--string-trim (str)
-  "Remove leading and trailing whitespaces from STR."
-  (replace-regexp-in-string "[[:space:]]+\\'"
-""
-(replace-regexp-in-string "\\`[[:space:]]+"
-  ""
-  str)))
-
 (defun editorconfig-core-handle--parse-file (conf)
   "Parse EditorConfig file CONF.
 
-This function returns cons of its top properties alist and
-alist of patterns and its properties alist.
-The list returned will be ordered by the lines they appear.
-
+This function returns a `editorconfig-core-handle'.
 If CONF is not found return nil."
   (when (file-readable-p conf)
 (with-temp-buffer
@@ -175,12 +160,9 @@ If CONF is not found return nil."
   ;; code conversion
   (insert-file-contents conf)
   (goto-char (point-min))
-  (let ((point-max (point-ma

[nongnu] branch scratch/editorconfig deleted (was 4f543558fe)

2024-07-19 Thread Stefan Monnier via
monnier pushed a change to branch scratch/editorconfig.

   was  4f543558fe editorconfig-core-handle.el: Don't use file names as 
glob pattern

This change permanently discards the following revisions:

  discards  4f543558fe editorconfig-core-handle.el: Don't use file names as 
glob pattern



[nongnu] branch scratch/editorconfig created (now c70df61772)

2024-07-19 Thread Stefan Monnier via
monnier pushed a change to branch scratch/editorconfig.

at  c70df61772 (editorconfig-core-handle--parse-file): Streamline

This branch includes the following new commits:

   new  c70df61772 (editorconfig-core-handle--parse-file): Streamline




[nongnu] scratch/editorconfig updated (c70df61772 -> abd2e42c90)

2024-07-19 Thread Stefan Monnier via
monnier pushed a change to branch scratch/editorconfig.

  from  c70df61772 (editorconfig-core-handle--parse-file): Streamline
   new  25f45dc3b5 (editorconfig-fnmatch-p): Speed up
   new  abd2e42c90 (editorconfig-fnmatch--do-translate): Reduce redundancy


Summary of changes:
 editorconfig-fnmatch.el | 266 +++-
 1 file changed, 130 insertions(+), 136 deletions(-)



[nongnu] scratch/editorconfig 25f45dc3b5 1/2: (editorconfig-fnmatch-p): Speed up

2024-07-19 Thread Stefan Monnier via
branch: scratch/editorconfig
commit 25f45dc3b506558087a312ceda98192195612adf
Author: Stefan Monnier 
Commit: Stefan Monnier 

(editorconfig-fnmatch-p): Speed up

* editorconfig-fnmatch.el: Change copyright to the FSF since all
the contributors have signed the corresponding paperwork.
(editorconfig-fnmatch-p): Remove autoload cookie since all users do
`require` anyway.
(editorconfig-fnmatch--do-translate): Push in reverse order and `reverse`
at the end to avoid the usual O(N²) complexity.
---
 editorconfig-fnmatch.el | 124 ++--
 1 file changed, 67 insertions(+), 57 deletions(-)

diff --git a/editorconfig-fnmatch.el b/editorconfig-fnmatch.el
index 520aeb16c2..374c814394 100644
--- a/editorconfig-fnmatch.el
+++ b/editorconfig-fnmatch.el
@@ -1,27 +1,29 @@
-;;; editorconfig-fnmatch.el --- Glob pattern matching in Emacs lisp  -*- 
lexical-binding: t -*-
+;;; editorconfig-fnmatch.el --- Glob pattern matching  -*- lexical-binding: t 
-*-
 
-;; Copyright (C) 2011-2024 EditorConfig Team
+;; Copyright (C) 2011-2024  Free Software Foundation, Inc.
 
 ;; Author: EditorConfig Team 
+;; Package: editorconfig
 
 ;; See
-;; https://github.com/editorconfig/editorconfig-emacs/graphs/contributors
-;; or the CONTRIBUTORS file for the list of contributors.
+;; https://github.com/editorconfig/editorconfig-emacs/graphs/contributors or
+;; https://github.com/editorconfig/editorconfig-emacs/blob/master/CONTRIBUTORS
+;; for the list of contributors.
 
 ;; This file is part of EditorConfig Emacs Plugin.
 
 ;; EditorConfig Emacs Plugin is free software: you can redistribute it and/or
 ;; modify it under the terms of the GNU General Public License as published by
-;; the Free Software Foundation, either version 3 of the License, or (at your
-;; option) any later version.
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
 
 ;; EditorConfig Emacs Plugin is distributed in the hope that it will be useful,
 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
-;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
-;; Public License for more details.
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+;; See the GNU General Public License for more details.
 
-;; You should have received a copy of the GNU General Public License along with
-;; EditorConfig Emacs Plugin. If not, see .
+;; You should have received a copy of the GNU General Public License
+;; along with GNU Emacs.  If not, see .
 
 ;;; Commentary:
 
@@ -83,7 +85,6 @@
 string (substring string (match-end 0
 num))
 
-;;;###autoload
 (defun editorconfig-fnmatch-p (string pattern)
   "Test whether STRING match PATTERN.
 
@@ -128,7 +129,7 @@ translation is found for PATTERN."
 (length (length pattern))
 (brace-level 0)
 (in-brackets nil)
-;; List of strings of resulting regexp
+;; List of strings of resulting regexp, in reverse order.
 (result ())
 (is-escaped nil)
 (matching-braces (= (editorconfig-fnmatch--match-num
@@ -146,14 +147,15 @@ translation is found for PATTERN."
 
 (while (< index length)
   (if (and (not is-escaped)
-   (string-match "[^]\\*?[{},/\\-]+"
+   (string-match "[^]\\*?[{},/-]+"
  ;;(string-match "[^]\\*?[{},/\\-]+" "?.a")
  pattern
  index)
(eq index (match-beginning 0)))
-  (setq result `(,@result ,(regexp-quote (match-string 0 pattern)))
-index (match-end 0)
-is-escaped nil)
+  (progn
+(push (regexp-quote (match-string 0 pattern)) result)
+(setq index (match-end 0)
+  is-escaped nil))
 
 (setq current-char (aref pattern index)
   index (1+ index))
@@ -163,19 +165,20 @@ translation is found for PATTERN."
(setq pos index)
(if (and (< pos length)
 (= (aref pattern pos) ?*))
-   (setq result `(,@result ".*"))
- (setq result `(,@result "[^/]*"
+   (push ".*" result)
+ (push "[^/]*" result)))
 
   (??
-   (setq result `(,@result "[^/]")))
+   (push "[^/]" result))
 
   (?\[
(if in-brackets
-   (setq result `(,@result "\\["))
+   (push "\\[" result)
  (if (= (aref pattern index) ?/)
  ;; Slash after an half-open bracket
- (setq result `(,@result "\\[/")
-   index (+ index 1))
+ (progn
+   (push "\\[/" result)
+   (setq index (+ index 1)))
(setq pos index
  has-slash nil)
(while (and (< pos l

[nongnu] scratch/editorconfig abd2e42c90 2/2: (editorconfig-fnmatch--do-translate): Reduce redundancy

2024-07-19 Thread Stefan Monnier via
branch: scratch/editorconfig
commit abd2e42c90806d245b30d001ce3ff311e7b529e2
Author: Stefan Monnier 
Commit: Stefan Monnier 

(editorconfig-fnmatch--do-translate): Reduce redundancy

* editorconfig-fnmatch.el (editorconfig-fnmatch--do-translate):
Consolidate the `push`s outside of `cl-case`.  Use `regexp-opt`.
---
 editorconfig-fnmatch.el | 236 ++--
 1 file changed, 110 insertions(+), 126 deletions(-)

diff --git a/editorconfig-fnmatch.el b/editorconfig-fnmatch.el
index 374c814394..a3edfc3c5d 100644
--- a/editorconfig-fnmatch.el
+++ b/editorconfig-fnmatch.el
@@ -160,132 +160,116 @@ translation is found for PATTERN."
 (setq current-char (aref pattern index)
   index (1+ index))
 
-(cl-case current-char
-  (?*
-   (setq pos index)
-   (if (and (< pos length)
-(= (aref pattern pos) ?*))
-   (push ".*" result)
- (push "[^/]*" result)))
-
-  (??
-   (push "[^/]" result))
-
-  (?\[
-   (if in-brackets
-   (push "\\[" result)
- (if (= (aref pattern index) ?/)
- ;; Slash after an half-open bracket
- (progn
-   (push "\\[/" result)
-   (setq index (+ index 1)))
-   (setq pos index
- has-slash nil)
-   (while (and (< pos length)
-   (not (= (aref pattern pos) ?\]))
-   (not has-slash))
- (if (and (= (aref pattern pos) ?/)
-  (not (= (aref pattern (- pos 1)) ?\\)))
- (setq has-slash t)
-   (setq pos (1+ pos
-   (if has-slash
-   (progn
- (push (concat "\\["
-   (substring pattern
-  index
-  (1+ pos))
-   "\\]")
-   result)
- (setq index (+ pos 2)))
- (if (and (< index length)
-  (memq (aref pattern index)
-'(?! ?^)))
- (progn
-   (setq index (1+ index))
-   (push "[^" result))
-   (push "[" result))
- (setq in-brackets t)
-
-  (?-
-   (if in-brackets
-   (push "-" result)
- (push "\\-" result)))
-
-  (?\]
-   (push "]" result)
-   (setq in-brackets nil))
-
-  (?{
-   (setq pos index
- has-comma nil)
-   (while (and (or (and (< pos length)
-(not (= (aref pattern pos) ?})))
-   is-escaped)
-   (not has-comma))
- (if (and (eq (aref pattern pos) ?,)
-  (not is-escaped))
- (setq has-comma t)
-   (setq is-escaped (and (eq (aref pattern pos)
- ?\\)
- (not is-escaped))
- pos (1+ pos
-   (if (and (not has-comma)
-(< pos length))
-   (let ((pattern-sub (substring pattern index pos)))
- (setq num-range (string-match 
editorconfig-fnmatch--numeric-range-regexp
-   pattern-sub))
- (if num-range
- (let ((number-start (string-to-number (match-string 1
- 
pattern-sub)))
-   (number-end (string-to-number (match-string 2
-   
pattern-sub
-   (push (concat "\\(?:"
- (mapconcat #'number-to-string
-(cl-loop for i from 
number-start to number-end
- collect i)
-"\\|")
- "\\)")
- result))
-   (let ((inner (editorconfig-fnmatch--do-translate 
pattern-sub t)))
- (push (format "{%s}" inner) result)))
- (setq index (1+ pos)))
- (if matching-braces
- (progn
-   (push "\\(?:" result)
-   (setq brace-level (1+ brace-level)))
-   (push "{" result
-
-  (?,
-   (if (and (> brace-level 0)
-(not is-escaped))
-   (push "\\|" result)
- (push "\\," result)))
-
-  (?}
-   (if (and (> brace-level 0)
-  

[elpa] externals/ellama 6373528783 2/3: Merge pull request #150 from byronclark/bugfix/ellama-provider-validation

2024-07-19 Thread ELPA Syncer
branch: externals/ellama
commit 6373528783e9ed841b28d66443c56573929df015
Merge: 633fb58383 c7c30aa1c3
Author: Sergey Kostyaev 
Commit: GitHub 

Merge pull request #150 from byronclark/bugfix/ellama-provider-validation

Fix ellama-providers validation
---
 ellama.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ellama.el b/ellama.el
index 1b6ae6e028..e89a400732 100644
--- a/ellama.el
+++ b/ellama.el
@@ -95,7 +95,7 @@
   "LLM provider list for fast switching."
   :group 'ellama
   :type '(alist :key-type string
-   :value-type '(sexp :validate 'llm-standard-provider-p)))
+   :value-type (sexp :validate 'llm-standard-provider-p)))
 
 (defcustom ellama-spinner-type 'progress-bar
   "Spinner type for ellama."



[elpa] externals/ellama c7c30aa1c3 1/3: Fix ellama-providers validation

2024-07-19 Thread ELPA Syncer
branch: externals/ellama
commit c7c30aa1c317ed665acb96580986cbd5f2e52079
Author: Byron Clark 
Commit: Byron Clark 

Fix ellama-providers validation

Extra quote caused validation to fail for all values.

Fixes #149
---
 ellama.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ellama.el b/ellama.el
index 1b6ae6e028..e89a400732 100644
--- a/ellama.el
+++ b/ellama.el
@@ -95,7 +95,7 @@
   "LLM provider list for fast switching."
   :group 'ellama
   :type '(alist :key-type string
-   :value-type '(sexp :validate 'llm-standard-provider-p)))
+   :value-type (sexp :validate 'llm-standard-provider-p)))
 
 (defcustom ellama-spinner-type 'progress-bar
   "Spinner type for ellama."



[elpa] externals/ellama updated (633fb58383 -> a791ec0a70)

2024-07-19 Thread ELPA Syncer
elpasync pushed a change to branch externals/ellama.

  from  633fb58383 Bump version
   new  c7c30aa1c3 Fix ellama-providers validation
   new  6373528783 Merge pull request #150 from 
byronclark/bugfix/ellama-provider-validation
   new  a791ec0a70 Bump version


Summary of changes:
 NEWS.org  | 2 ++
 ellama.el | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)



[elpa] externals/ellama a791ec0a70 3/3: Bump version

2024-07-19 Thread ELPA Syncer
branch: externals/ellama
commit a791ec0a705f09bce27c38ae6e7010d502433d2b
Author: Sergey Kostyaev 
Commit: Sergey Kostyaev 

Bump version
---
 NEWS.org  | 2 ++
 ellama.el | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/NEWS.org b/NEWS.org
index 35c2070aa2..dd0b552fa2 100644
--- a/NEWS.org
+++ b/NEWS.org
@@ -1,3 +1,5 @@
+* Version 0.11.12
+- Fix ellama providers validation.
 * Version 0.11.11
 - Fix llm provider custom variables types.
 * Version 0.11.10
diff --git a/ellama.el b/ellama.el
index e89a400732..705d26bab2 100644
--- a/ellama.el
+++ b/ellama.el
@@ -6,7 +6,7 @@
 ;; URL: http://github.com/s-kostyaev/ellama
 ;; Keywords: help local tools
 ;; Package-Requires: ((emacs "28.1") (llm "0.6.0") (spinner "1.7.4") (compat 
"29.1"))
-;; Version: 0.11.11
+;; Version: 0.11.12
 ;; SPDX-License-Identifier: GPL-3.0-or-later
 ;; Created: 8th Oct 2023
 



[elpa] externals/auctex ba84a2dbd1 09/15: Add new style/tabularray.el

2024-07-19 Thread ELPA Syncer
branch: externals/auctex
commit ba84a2dbd143bb5e576eb7013d84a2f2ed619c79
Author: Arash Esbati 
Commit: Arash Esbati 

Add new style/tabularray.el

* Makefile.in (STYLESRC): Add new style.

* NEWS.org (Added): Announce new styles.

* latex.el (LaTeX-indent-environment-list): Add environments
provided by tabularray.sty.
(LaTeX-keyval-caption-reftex-context-function): New function.

* style/booktabs.el ("booktabs"): Adjust the arguments of
"cmidrule" in case tabularray.el is loaded.

* style/tabularray.el: New file.
---
 Makefile.in |   2 +-
 NEWS.org|   6 +-
 latex.el|  58 ++-
 style/booktabs.el   |  18 +-
 style/tabularray.el | 470 
 5 files changed, 538 insertions(+), 16 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index d38f7a3d9e..dc0e95d84f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -200,7 +200,7 @@ STYLESRC = style/prosper.el \
   style/wasysym.el   style/refcount.el  style/simpleicons.el \
   style/changebar.el style/amsrefs.el   style/standalone.el \
   style/diagbox.el   style/contract.el  style/enotez.el \
-  style/authblk.el
+  style/authblk.el   style/tabularray.el
 
 STYLEELC = $(STYLESRC:.el=.elc)
 
diff --git a/NEWS.org b/NEWS.org
index d8ce565852..a657237260 100644
--- a/NEWS.org
+++ b/NEWS.org
@@ -8,6 +8,10 @@
 
 * [Unreleased]
 
+** Added
+
+- Add new support files =style/authblk.el= and =style/tabularray.el=.
+
 * [14.0.6] - 2024-06-30
 
 ** Added
@@ -32,7 +36,7 @@
 (~TeX-insert-backslash~).  If you need one literal =$=, you can type
 =C-1 $= or =C-q $=.
   - We no longer have explicit support of the special behavior that if
-~TeX-electric-math~ is non-nil and point is inside math mode right
+~TeX-electric-math~ is non-~nil~ and point is inside math mode right
 between a couple of single dollars, pressing =$= will insert another
 pair of dollar signs and leave the point between them.
 
diff --git a/latex.el b/latex.el
index 9b92c743b4..7f709a821c 100644
--- a/latex.el
+++ b/latex.el
@@ -4115,15 +4115,15 @@ consideration just as is in the non-commented source 
code."
   :type 'regexp)
 
 (defcustom LaTeX-indent-environment-list
-  '(("verbatim" current-indentation)
-("verbatim*" current-indentation)
-("filecontents" current-indentation)
+  '(("verbatim"  current-indentation)
+("verbatim*" current-indentation)
+("filecontents"  current-indentation)
 ("filecontents*" current-indentation)
-("tabular" LaTeX-indent-tabular)
-("tabular*" LaTeX-indent-tabular)
-("array" LaTeX-indent-tabular)
-("eqnarray" LaTeX-indent-tabular)
-("eqnarray*" LaTeX-indent-tabular)
+("tabular"   LaTeX-indent-tabular)
+("tabular*"  LaTeX-indent-tabular)
+("array" LaTeX-indent-tabular)
+("eqnarray"  LaTeX-indent-tabular)
+("eqnarray*" LaTeX-indent-tabular)
 ;; envs of amsmath.sty
 ("align"   LaTeX-indent-tabular)
 ("align*"  LaTeX-indent-tabular)
@@ -4168,6 +4168,15 @@ consideration just as is in the non-commented source 
code."
 ("drcases"   LaTeX-indent-tabular)
 ("drcases*"  LaTeX-indent-tabular)
 ("cases*"LaTeX-indent-tabular)
+;; envs of tabularray.sty
+("+array"   LaTeX-indent-tabular)
+("+matrix"  LaTeX-indent-tabular)
+("+bmatrix" LaTeX-indent-tabular)
+("+Bmatrix" LaTeX-indent-tabular)
+("+pmatrix" LaTeX-indent-tabular)
+("+vmatrix" LaTeX-indent-tabular)
+("+Vmatrix" LaTeX-indent-tabular)
+("+cases"   LaTeX-indent-tabular)
 ;; The following should have their own, smart indentation function.
 ;; Some other day.
 ("displaymath")
@@ -9412,6 +9421,39 @@ wrapped in \\(?:...\\)? then."
;; We are done.  Just search until the next closing bracket
"[^]]*\\]"))
 
+(defun LaTeX-keyval-caption-reftex-context-function (env)
+  "Extract and return a key=val caption context string for RefTeX in ENV.
+ENV is the name of current environment passed to this function by
+RefTeX.  The context string is the value given to the caption key.  If
+no caption key is found, an error is issued.  See also the docstring of
+`reftex-label-alist' and its description for CONTEXT-METHOD."
+  (let* ((envstart (save-excursion
+ (re-search-backward (concat "begin{" env "}")
+ nil t)))
+ (capt-key (save-excursion
+ (re-search-backward "\\
 ;; Maintainer: auctex-de...@gnu.org
@@ -51,11 +51,17 @@
 '("toprule" [ "Thickness" ])
 '("midrule" [ "Thickness" ])
 '("bottomrule" [ "Thickness" ])
-;; The `ignore' resets `TeX-last-optional-rejected' to nil so that the trim
-;; argument is prompted also when the thickness is skipped.
-'("cmidrule" [ "Thickness" ] (ignore)
-  [TeX-arg-string "Trim" nil nil nil "(" ")"]
-  "Column(s)")

[elpa] externals/auctex 70422fe0c7 12/15: * style/tabularray.el ("tabularray"): Load ninecolors.el.

2024-07-19 Thread ELPA Syncer
branch: externals/auctex
commit 70422fe0c7e283e6bfe69cbb75bd31feb3030f22
Author: Arash Esbati 
Commit: Arash Esbati 

* style/tabularray.el ("tabularray"): Load ninecolors.el.
---
 style/tabularray.el | 4 
 1 file changed, 4 insertions(+)

diff --git a/style/tabularray.el b/style/tabularray.el
index 05ef263d2b..4b5abcffd2 100644
--- a/style/tabularray.el
+++ b/style/tabularray.el
@@ -298,6 +298,10 @@ insert line break macro."
(LaTeX-tabularray-NewTblrEnviron-cleanup)
(LaTeX-tabularray-update-column-letters)
 
+   ;; Load ninecolors.el if xcolor.el is loaded:
+   (when (member "xcolor" (TeX-style-list))
+ (TeX-run-style-hooks "ninecolors"))
+
(TeX-add-symbols
 ;; 2.6.2 Column Types
 '("NewColumnType"



[elpa] externals/auctex 922545e8af 14/15: Update style/simpleicons.el to package v13.1.0

2024-07-19 Thread ELPA Syncer
branch: externals/auctex
commit 922545e8af7f9081a9852387afddbe65a4ebf48c
Author: Arash Esbati 
Commit: Arash Esbati 

Update style/simpleicons.el to package v13.1.0

* style/simpleicons.el (LaTeX-simpleicons-icons): Update icon
names.
---
 style/simpleicons.el | 9 ++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/style/simpleicons.el b/style/simpleicons.el
index 5fae124b4a..4a99e34443 100644
--- a/style/simpleicons.el
+++ b/style/simpleicons.el
@@ -1,4 +1,4 @@
-;;; simpleicons.el --- AUCTeX style for `simpleicons.sty' (v13.0.0)  -*- 
lexical-binding: t; -*-
+;;; simpleicons.el --- AUCTeX style for `simpleicons.sty' (v13.1.0)  -*- 
lexical-binding: t; -*-
 
 ;; Copyright (C) 2023--2024 Free Software Foundation, Inc.
 
@@ -26,8 +26,8 @@
 
 ;;; Commentary:
 
-;; This file adds support for `simpleicons.sty' (v13.0.0) from
-;; 2024/07/05.  `simpleicons.sty' is part of TeXLive.
+;; This file adds support for `simpleicons.sty' (v13.1.0) from
+;; 2024/07/12.  `simpleicons.sty' is part of TeXLive.
 
 ;;; Code:
 
@@ -2125,6 +2125,7 @@
 "playstation3"
 "playstation4"
 "playstation5"
+"playstationportable"
 "playstationvita"
 "pleroma"
 "plesk"
@@ -2926,6 +2927,7 @@
 "unitedairlines"
 "unitednations"
 "unity"
+"unjs"
 "unlicense"
 "unocss"
 "unpkg"
@@ -3051,6 +3053,7 @@
 "webex"
 "webflow"
 "webgl"
+"webgpu"
 "weblate"
 "webmin"
 "webmoney"



[elpa] externals/auctex 9bc5d19aa5 13/15: ; * NEWS.org: Update the file.

2024-07-19 Thread ELPA Syncer
branch: externals/auctex
commit 9bc5d19aa5843df1802232bb59007714ae4d6869
Author: Arash Esbati 
Commit: Arash Esbati 

; * NEWS.org: Update the file.
---
 NEWS.org | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/NEWS.org b/NEWS.org
index a657237260..673c7c93a9 100644
--- a/NEWS.org
+++ b/NEWS.org
@@ -10,7 +10,8 @@
 
 ** Added
 
-- Add new support files =style/authblk.el= and =style/tabularray.el=.
+- Add new support files =style/authblk.el=, =style/ninecolors.el= and
+  =style/tabularray.el=.
 
 * [14.0.6] - 2024-06-30
 



[elpa] externals/auctex 34818c0307 10/15: Simplify entering of captions in optional argument

2024-07-19 Thread ELPA Syncer
branch: externals/auctex
commit 34818c0307be48d5be323fde1f73c8b9f8cd4980
Author: Arash Esbati 
Commit: Arash Esbati 

Simplify entering of captions in optional argument

* style/listings.el
(LaTeX-listings-reftex-label-context-function): Delete function
and use `LaTeX-keyval-caption-reftex-context-function'.
(LaTeX-listings-auto-cleanup, "listings"): Allow literal "space"
when inserting the optional argument after environments.  This
should simplify entering a value to the caption key.
---
 style/listings.el | 43 +--
 1 file changed, 5 insertions(+), 38 deletions(-)

diff --git a/style/listings.el b/style/listings.el
index d9352fc704..d8e1dce2a4 100644
--- a/style/listings.el
+++ b/style/listings.el
@@ -1,6 +1,6 @@
 ;;; listings.el --- AUCTeX style for `listings.sty'  -*- lexical-binding: t; 
-*-
 
-;; Copyright (C) 2004, 2005, 2009, 2013-2022 Free Software Foundation, Inc.
+;; Copyright (C) 2004-2024 Free Software Foundation, Inc.
 
 ;; Author: Ralf Angeli 
 ;; Maintainer: auctex-de...@gnu.org
@@ -322,7 +322,7 @@
  (LaTeX-add-environments
   `(,env
 LaTeX-env-args
-[TeX-arg-key-val (LaTeX-listings-key-val-options)]
+[TeX-arg-key-val (LaTeX-listings-key-val-options) nil nil ?\s]
 (LaTeX-env-label-as-keyval "caption")
 ,(1- (string-to-number args)
 (;; mandatory argument(s) only
@@ -343,7 +343,7 @@
   (when (fboundp 'reftex-add-label-environments)
 (reftex-add-label-environments
  `((,env ?l "lst:" "~\\ref{%s}"
- LaTeX-listings-reftex-label-context-function
+ LaTeX-keyval-caption-reftex-context-function
  (regexp "[Ll]isting")
   (when (boundp 'reftex-label-regexps)
 (add-to-list (make-local-variable 'reftex-label-regexps)
@@ -367,39 +367,6 @@
 (add-hook 'TeX-auto-cleanup-hook #'LaTeX-listings-auto-cleanup t)
 (add-hook 'TeX-update-style-hook #'TeX-auto-parse t)
 
-(defun LaTeX-listings-reftex-label-context-function (env)
-  "Extract and return a context string for RefTeX.
-The context string is the value given to the caption key.  If no
-caption key is found, an error is issued."
-  (let* ((envstart (save-excursion
- (re-search-backward (concat "begin{" env "}")
- nil t)))
- (capt-key (save-excursion
- (re-search-backward "caption[ \t\n\r%]*=[ \t\n\r%]*"
- envstart t)))
- capt-start capt-end)
-(if capt-key
-(save-excursion
-  (goto-char capt-key)
-  (re-search-forward
-   "caption[ \t\n\r%]*=[ \t\n\r%]*" nil t)
-  (cond (;; Short caption inside [] is available, extract it only
- (looking-at-p (regexp-quote (concat TeX-grop LaTeX-optop)))
- (forward-char)
- (setq capt-start (1+ (point)))
- (setq capt-end (1- (progn (forward-sexp) (point)
-;; Extract the entire caption which is enclosed in braces
-((looking-at-p TeX-grop)
- (setq capt-start (1+ (point)))
- (setq capt-end (1- (progn (forward-sexp) (point)
-;; Extract everything to next comma ,
-(t
- (setq capt-start (point))
- (setq capt-end (progn (skip-chars-forward "^,") (point)
-  ;; Return the extracted string
-  (buffer-substring-no-properties capt-start capt-end))
-  (error "No caption found"
-
 (TeX-add-style-hook
  "listings"
  (lambda ()
@@ -439,7 +406,7 @@ caption key is found, an error is issued."
;; New environments
(LaTeX-add-environments
 '("lstlisting" LaTeX-env-args
-  [TeX-arg-key-val (LaTeX-listings-key-val-options)]
+  [TeX-arg-key-val (LaTeX-listings-key-val-options) nil nil ?\s]
   (LaTeX-env-label-as-keyval "caption")))
 
;; Append "lstlisting" to `LaTeX-label-alist':
@@ -458,7 +425,7 @@ caption key is found, an error is issued."
(when (fboundp 'reftex-add-label-environments)
  (reftex-add-label-environments
   '(("lstlisting" ?l "lst:" "~\\ref{%s}"
- LaTeX-listings-reftex-label-context-function
+ LaTeX-keyval-caption-reftex-context-function
  (regexp "[Ll]isting")
 
;; Fontification



[elpa] externals/company 8bd34f8e73: company-diag: Update to pass the suffix to `candidates`

2024-07-19 Thread ELPA Syncer
branch: externals/company
commit 8bd34f8e73957bb7d5234564a45175c171016e63
Author: Dmitry Gutov 
Commit: Dmitry Gutov 

company-diag: Update to pass the suffix to `candidates`
---
 company.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/company.el b/company.el
index a9155c7e11..ddad6422d6 100644
--- a/company.el
+++ b/company.el
@@ -3419,7 +3419,9 @@ If SHOW-VERSION is non-nil, show the version in the echo 
area."
 (when (or (stringp prefix) (consp prefix))
   (let ((company-backend backend))
 (condition-case nil
-(setq cc (company-call-backend 'candidates (company--prefix-str 
prefix))
+(setq cc (company-call-backend 'candidates
+   (company--prefix-str prefix)
+   (company--suffix-str prefix))
   annotations
   (mapcar
(lambda (c) (cons c (company-call-backend 'annotation c)))



[elpa] externals/auctex updated (3091f2ca61 -> 84e959333b)

2024-07-19 Thread ELPA Syncer
elpasync pushed a change to branch externals/auctex.

  from  3091f2ca61 * auctex.el: Shorten 'Commentary' section to 4 lines.
   new  7fca4a2016 Update style/acro.el to package v3.8
   new  08e7f159e8 Improve fontification of arguments
   new  306a561ad5 Add new style/authblk.el
   new  7fcab23c4b Update style/simpleicons.el to package v13.0.0
   new  89fa93c4f9 ; * latex.el (TeX-arg-ref): Fix docstring.
   new  63087fc4bf * style/longtable.el ("longtable"): Support \LTcaptype 
macro.
   new  10c8f782f8 Keep compatibility with Org mode src editing (bug#71363)
   new  01e3e22c7c ; * doc/changes.texi: Wrap nil in @code and refill 
paragraphs.
   new  ba84a2dbd1 Add new style/tabularray.el
   new  34818c0307 Simplify entering of captions in optional argument
   new  71d25de1c6 Add new style/ninecolors.el
   new  70422fe0c7 * style/tabularray.el ("tabularray"): Load ninecolors.el.
   new  9bc5d19aa5 ; * NEWS.org: Update the file.
   new  922545e8af Update style/simpleicons.el to package v13.1.0
   new  84e959333b Merge remote-tracking branch 'origin/master'


Summary of changes:
 NEWS.org |   7 +-
 doc/changes.texi |  35 +-
 doc/install.texi |  16 +-
 font-latex.el|   6 +-
 latex.el |  66 ++-
 style/acro.el| 905 +++
 style/{ltablex.el => authblk.el} |  50 ++-
 style/booktabs.el|  18 +-
 style/listings.el|  43 +-
 style/longtable.el   |  21 +-
 style/ninecolors.el  |  96 +
 style/simpleicons.el |  81 +---
 style/tabularray.el  | 474 
 tests/latex/font-latex-test.el   |  17 +-
 tex-site.el.in   |  56 ++-
 15 files changed, 1509 insertions(+), 382 deletions(-)
 copy style/{ltablex.el => authblk.el} (54%)
 create mode 100755 style/ninecolors.el
 create mode 100644 style/tabularray.el



[elpa] externals/auctex 71d25de1c6 11/15: Add new style/ninecolors.el

2024-07-19 Thread ELPA Syncer
branch: externals/auctex
commit 71d25de1c6ba178d0626bae2e5246b33535bf6f6
Author: Arash Esbati 
Commit: Arash Esbati 

Add new style/ninecolors.el

* Makefile.in (STYLESRC): Add new style.

* style/ninecolors.el: New file.
---
 Makefile.in |  2 +-
 style/ninecolors.el | 96 +
 2 files changed, 97 insertions(+), 1 deletion(-)

diff --git a/Makefile.in b/Makefile.in
index dc0e95d84f..671be42121 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -200,7 +200,7 @@ STYLESRC = style/prosper.el \
   style/wasysym.el   style/refcount.el  style/simpleicons.el \
   style/changebar.el style/amsrefs.el   style/standalone.el \
   style/diagbox.el   style/contract.el  style/enotez.el \
-  style/authblk.el   style/tabularray.el
+  style/authblk.el   style/tabularray.el style/ninecolors.el
 
 STYLEELC = $(STYLESRC:.el=.elc)
 
diff --git a/style/ninecolors.el b/style/ninecolors.el
new file mode 100755
index 00..68dbb01cd9
--- /dev/null
+++ b/style/ninecolors.el
@@ -0,0 +1,96 @@
+;;; ninecolors.el --- AUCTeX style for `ninecolors.sty' (v2022D)  -*- 
lexical-binding: t; -*-
+
+;; Copyright (C) 2022-2024 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati 
+;; Maintainer: auctex-de...@gnu.org
+;; Created: 2022-09-13
+;; Keywords: tex
+
+;; This file is part of AUCTeX.
+
+;; AUCTeX is free software; you can redistribute it and/or modify it
+;; under the terms of the GNU General Public License as published by
+;; the Free Software Foundation; either version 3, or (at your option)
+;; any later version.
+
+;; AUCTeX is distributed in the hope that it will be useful, but
+;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+;; General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with AUCTeX; see the file COPYING.  If not, write to the Free
+;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+;; 02110-1301, USA.
+
+;;; Commentary:
+
+;; This file adds support for `ninecolors.sty' (v2022D) from
+;; 2022/02/13.  `ninecolors.sty' is part of TeXLive.
+
+;;; Code:
+
+(require 'tex)
+
+;; Silence the compiler:
+(declare-function LaTeX-add-xcolor-definecolors "xcolor"
+  (&rest xcolor-definecolors))
+(declare-function font-latex-add-keywords "font-latex"
+  (keywords class))
+
+(defvar LaTeX-ninecolors-colornames
+  '("gray1""red1"  "brown1"  "yellow1"  "olive1"
+"gray2""red2"  "brown2"  "yellow2"  "olive2"
+"gray3""red3"  "brown3"  "yellow3"  "olive3"
+"gray4""red4"  "brown4"  "yellow4"  "olive4"
+"gray5""red5"  "brown5"  "yellow5"  "olive5"
+"gray6""red6"  "brown6"  "yellow6"  "olive6"
+"gray7""red7"  "brown7"  "yellow7"  "olive7"
+"gray8""red8"  "brown8"  "yellow8"  "olive8"
+"gray9""red9"  "brown9"  "yellow9"  "olive9"
+"green1"   "teal1" "cyan1"   "azure1"   "blue1"
+"green2"   "teal2" "cyan2"   "azure2"   "blue2"
+"green3"   "teal3" "cyan3"   "azure3"   "blue3"
+"green4"   "teal4" "cyan4"   "azure4"   "blue4"
+"green5"   "teal5" "cyan5"   "azure5"   "blue5"
+"green6"   "teal6" "cyan6"   "azure6"   "blue6"
+"green7"   "teal7" "cyan7"   "azure7"   "blue7"
+"green8"   "teal8" "cyan8"   "azure8"   "blue8"
+"green9"   "teal9" "cyan9"   "azure9"   "blue9"
+"violet1"  "magenta1"  "purple1"
+"violet2"  "magenta2"  "purple2"
+"violet3"  "magenta3"  "purple3"
+"violet4"  "magenta4"  "purple4"
+"violet5"  "magenta5"  "purple5"
+"violet6"  "magenta6"  "purple6"
+"violet7"  "magenta7"  "purple7"
+"violet8"  "magenta8"  "purple8"
+"violet9"  "magenta9" " purple9")
+  "List of colors provided by ninecolors package.")
+
+(TeX-add-style-hook
+ "ninecolors"
+ (lambda ()
+   ;; Run the style hook for xcolor.sty:
+   (TeX-run-style-hooks "xcolor")
+
+   ;; Make the colors defined in ninecolors.sty available:
+   (apply #'LaTeX-add-xcolor-definecolors LaTeX-ninecolors-colornames)
+
+   ;; Cater for the only macro provided by the package:
+   (TeX-add-symbols
+'("NineColors"
+  (TeX-arg-key-val (("saturation" ("low" "medium" "high"))
+
+   ;; Fontification
+   (when (and (featurep 'font-latex)
+  (eq TeX-install-font-lock 'font-latex-setup))
+ (font-latex-add-keywords '(("NineColors" "{"))
+  'function)))
+ TeX-dialect)
+
+(defvar LaTeX-ninecolors-package-options nil
+  "Package options for the ninecolors package.")
+
+;;; ninecolors.el ends here



[elpa] externals/auctex 10c8f782f8 07/15: Keep compatibility with Org mode src editing (bug#71363)

2024-07-19 Thread ELPA Syncer
branch: externals/auctex
commit 10c8f782f8c0456443f09db0c54403e8753ee52b
Author: Ikumi Keita 
Commit: Ikumi Keita 

Keep compatibility with Org mode src editing (bug#71363)

* tex-site.el.in (TeX-modes-set): Add entries for AUCTeX LaTeX mode to
`org-src-lang-modes'.
Use `major-mode-remap-defaults' for Emacs 30 and later, instead of
`major-mode-remap-alist', in order to avoid altering user customize
option.
* doc/install.texi (Loading the package): Update the recommendation
accordingly.
---
 doc/install.texi | 16 +---
 tex-site.el.in   | 56 +++-
 2 files changed, 48 insertions(+), 24 deletions(-)

diff --git a/doc/install.texi b/doc/install.texi
index c2499e63dc..74f5566d4d 100644
--- a/doc/install.texi
+++ b/doc/install.texi
@@ -371,13 +371,15 @@ list.  Type
 to manipulate the contents of @code{TeX-modes}.
 @end defopt
 
-Don't remove @code{tex-mode} from @code{TeX-modes} because it results in
-inconsistent behavior.
-
-On Emacs 29 and later, you can alter @code{major-mode-remap-alist} instead
-of @code{TeX-modes} as you like to arrange @AUCTeX{} redirections.  In
-fact, @code{TeX-modes} option does nothing other than setting up
-@code{major-mode-remap-alist} according its value on those Emacsens.
+Don't remove @code{tex-mode} from @code{TeX-modes} unless you set
+@code{TeX-modes} empty to disable @AUCTeX{} completely, otherwise it
+results in inconsistent behavior.
+
+On Emacs 29 and later, @AUCTeX{} uses either
+@code{major-mode-remap-defaults} or @code{major-mode-remap-alist} for
+redirection.  But we recommend not to customize them directly because the
+customization code for @code{TeX-modes} takes care of some other
+compatibility issues.
 
 If you want to remove a preinstalled @AUCTeX{} completely before any of
 its modes have been used,
diff --git a/tex-site.el.in b/tex-site.el.in
index 911a2080be..7dd163334d 100644
--- a/tex-site.el.in
+++ b/tex-site.el.in
@@ -113,29 +113,51 @@ Arrange the redirection of the built-in TeX modes 
according to VALUE.
 - The built-in modes in VALUE are redirected to the corresponding
   AUCTeX major modes.
 - The built-in modes not in VALUE discard redirection, if any.
-If `major-mode-remap-alist' is available, use it for redirection.
-Otherwise, use advice facility."
+If either `major-mode-remap-defaults' or `major-mode-remap-alist' is
+available, use it for redirection in that order.  Otherwise, use advice
+facility."
   (custom-set-default var value)
   (let (elt dst)
 (dolist (entry TeX-mode-alist)
   (setq elt (car entry)
 dst (cdr entry))
   (if (memq elt value)
-  (if (boundp 'major-mode-remap-alist)
-  (or (eq (cdr-safe (assq elt major-mode-remap-alist)) dst)
-  (push (cons elt dst) major-mode-remap-alist))
-;; COMPATIBILITY for Emacs<29
-(advice-add elt :override dst
-;; COMPATIBILITY for Emacs 28.[12]
-;; Give it higher precedence than the :around
-;; advice given to `tex-mode' in tex-mode.el.
-;; 
https://lists.gnu.org/r/auctex-devel/2022-09/msg00050.html>
-'((depth . -10
-(if (boundp 'major-mode-remap-alist)
-(setq major-mode-remap-alist
-  (delete entry major-mode-remap-alist))
-  ;; COMPATIBILITY for Emacs<29
-  (advice-remove elt dst))
+  (progn
+(cond ((boundp 'major-mode-remap-defaults)
+   ;; For Emacs 30 and later
+   (add-to-list 'major-mode-remap-defaults (cons elt dst)))
+  ((boundp 'major-mode-remap-alist)
+   ;; COMPATIBILITY for Emacs 29
+   (add-to-list 'major-mode-remap-alist (cons elt dst)))
+  (t
+   ;; COMPATIBILITY for Emacs<29
+   (advice-add elt :override dst
+   ;; COMPATIBILITY for Emacs 28
+   ;; Give it higher precedence than the :around
+   ;; advice given to `tex-mode' in tex-mode.el.
+   ;; 
https://lists.gnu.org/r/auctex-devel/2022-09/msg00050.html>
+   '((depth . -10)
+;; Keep compatibility.  (bug#71363)
+(if (eq elt 'latex-mode)
+(with-eval-after-load 'org-src
+  (defvar org-src-lang-modes) ; Silence byte compiler.
+  ;; Check the actual presence in the entry in case that
+  ;; the user once choosed AUCTeX LaTeX mode and
+  ;; abandoned it afterwards in the same emacs session.
+  (when (memq 'latex-mode TeX-modes)
+(push '("latex" . LaTeX) org-src-lang-modes)
+(push '("beamer" . LaTeX) org-src-lang-modes)
+(cond ((

[elpa] externals/auctex 63087fc4bf 06/15: * style/longtable.el ("longtable"): Support \LTcaptype macro.

2024-07-19 Thread ELPA Syncer
branch: externals/auctex
commit 63087fc4bfd6b24d85077d0b5be2b150e5a37ca9
Author: Arash Esbati 
Commit: Arash Esbati 

* style/longtable.el ("longtable"): Support \LTcaptype macro.
---
 style/longtable.el | 21 ++---
 1 file changed, 14 insertions(+), 7 deletions(-)

diff --git a/style/longtable.el b/style/longtable.el
index 55384bca4c..67bab1b16b 100644
--- a/style/longtable.el
+++ b/style/longtable.el
@@ -1,6 +1,6 @@
 ;;; longtable.el --- AUCTeX style for `longtable.sty'.  -*- lexical-binding: 
t; -*-
 
-;; Copyright (C) 2013--2022  Free Software Foundation, Inc.
+;; Copyright (C) 2013--2024  Free Software Foundation, Inc.
 
 ;; Maintainer: auctex-de...@gnu.org
 ;; Author: Mosè Giordano 
@@ -117,6 +117,12 @@ insert line break macro."
 ;; Caption commands
 '("caption*" 1))
 
+   ;; longtable.sty v4.21 provides the macro \LTcaptype (from
+   ;; ltcaption.sty) as well.  So check here if ltcaption.el is not
+   ;; loaded before adding the entry as well:
+   (unless (member "ltcaption" (TeX-style-list))
+ (TeX-add-symbols "LTcaptype"))
+
;; These parameters are set with \setlength
(LaTeX-add-lengths
 "LTleft" "LTright" "LTpre" "LTpost" "LTcapwidth")
@@ -125,12 +131,13 @@ insert line break macro."
(LaTeX-add-counters "LTchunksize")
 
;; Use the enhanced table formatting.  Append to
-   ;; `LaTeX-indent-environment-list' in order not to override custom settings.
+   ;; `LaTeX-indent-environment-list' in order not to override custom
+   ;; settings.
(add-to-list (make-local-variable 'LaTeX-indent-environment-list)
 '("longtable" LaTeX-indent-tabular) t)
 
-   ;; Append longtable to `LaTeX-label-alist', in order not to override 
possible
-   ;; custome values.
+   ;; Append longtable to `LaTeX-label-alist', in order not to override
+   ;; possible custome values.
(add-to-list 'LaTeX-label-alist '("longtable" . LaTeX-table-label) t)
 
;; Append longtable to `LaTeX-item-list' with `LaTeX-item-longtable'
@@ -139,9 +146,9 @@ insert line break macro."
;; Fontification
(when (and (featurep 'font-latex)
   (eq TeX-install-font-lock 'font-latex-setup))
- ;; Actually, `\caption*{}' macro takes only one mandatory
- ;; argument, not an optional one, the following is a workaround
- ;; to fontify correctly also the standard `\caption[]{}' macro.
+ ;; Actually, `\caption*{}' macro takes only one mandatory argument,
+ ;; not an optional one, the following is a workaround to fontify
+ ;; correctly also the standard `\caption[]{}' macro.
  (font-latex-add-keywords '(("caption" "*[{"))
   'textual)))
  TeX-dialect)



[elpa] externals/auctex 89fa93c4f9 05/15: ; * latex.el (TeX-arg-ref): Fix docstring.

2024-07-19 Thread ELPA Syncer
branch: externals/auctex
commit 89fa93c4f9cc9616925f2401e0bbb8b04505e017
Author: Arash Esbati 
Commit: Arash Esbati 

; * latex.el (TeX-arg-ref): Fix docstring.
---
 latex.el | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/latex.el b/latex.el
index b90146688f..9b92c743b4 100644
--- a/latex.el
+++ b/latex.el
@@ -2399,11 +2399,11 @@ initial input for the label."
 (defvar reftex-ref-macro-prompt)
 
 (defun TeX-arg-ref (optional &optional prompt definition)
-  "Let-bind `reftex-ref-macro-prompt' to nil and pass arguments
-to `TeX-arg-label'.
+  "Let-bind `reftex-ref-macro-prompt' to nil and call `TeX-arg-label'.
 
-See the documentation of `TeX-arg-label' for details on the
-arguments: OPTIONAL, PROMPT, and DEFINITION."
+All arguments are passed to `TeX-arg-label'.  See the documentation of
+`TeX-arg-label' for details on the arguments: OPTIONAL, PROMPT, and
+DEFINITION."
   (let ((reftex-ref-macro-prompt nil))
 (TeX-arg-label optional prompt definition)))
 



[elpa] externals/auctex 7fcab23c4b 04/15: Update style/simpleicons.el to package v13.0.0

2024-07-19 Thread ELPA Syncer
branch: externals/auctex
commit 7fcab23c4b8e7806f28798955e7ddd81f34aa759
Author: Arash Esbati 
Commit: Arash Esbati 

Update style/simpleicons.el to package v13.0.0

* style/simpleicons.el (LaTeX-simpleicons-icons): Update icon
names.
---
 style/simpleicons.el | 78 +++-
 1 file changed, 10 insertions(+), 68 deletions(-)

diff --git a/style/simpleicons.el b/style/simpleicons.el
index f04d2e1500..5fae124b4a 100644
--- a/style/simpleicons.el
+++ b/style/simpleicons.el
@@ -1,4 +1,4 @@
-;;; simpleicons.el --- AUCTeX style for `simpleicons.sty' (v12.4.0)  -*- 
lexical-binding: t; -*-
+;;; simpleicons.el --- AUCTeX style for `simpleicons.sty' (v13.0.0)  -*- 
lexical-binding: t; -*-
 
 ;; Copyright (C) 2023--2024 Free Software Foundation, Inc.
 
@@ -26,8 +26,8 @@
 
 ;;; Commentary:
 
-;; This file adds support for `simpleicons.sty' (v12.4.0) from
-;; 2024/06/28.  `simpleicons.sty' is part of TeXLive.
+;; This file adds support for `simpleicons.sty' (v13.0.0) from
+;; 2024/07/05.  `simpleicons.sty' is part of TeXLive.
 
 ;;; Code:
 
@@ -341,11 +341,6 @@
 "awssecretsmanager"
 "awwwards"
 "axios"
-"azureartifacts"
-"azuredataexplorer"
-"azuredevops"
-"azurefunctions"
-"azurepipelines"
 "babel"
 "babelio"
 "babylondotjs"
@@ -551,6 +546,7 @@
 "chocolatey"
 "chromatic"
 "chromecast"
+"chromewebstore"
 "chrysler"
 "chupachups"
 "cilium"
@@ -699,7 +695,6 @@
 "cryengine"
 "cryptpad"
 "crystal"
-"csharp"
 "css3"
 "cssdesignawards"
 "cssmodules"
@@ -720,7 +715,6 @@
 "daf"
 "dailydotdev"
 "dailymotion"
-"daimler"
 "daisyui"
 "dapr"
 "darkreader"
@@ -738,7 +732,6 @@
 "datagrip"
 "dataiku"
 "datastax"
-"dataverse"
 "datefns"
 "datev"
 "datocms"
@@ -772,7 +765,6 @@
 "dependencycheck"
 "depositphotos"
 "derspiegel"
-"designernews"
 "deutschebahn"
 "deutschebank"
 "deutschepost"
@@ -810,7 +802,6 @@
 "docsify"
 "doctrine"
 "docusaurus"
-"docusign"
 "dogecoin"
 "doi"
 "dolby"
@@ -847,7 +838,6 @@
 "dvc"
 "dwavesystems"
 "dwm"
-"dynamics365"
 "dynatrace"
 "e"
 "e3"
@@ -1175,7 +1165,6 @@
 "googledatastudio"
 "googledisplayandvideo360"
 "googledocs"
-"googledomains"
 "googledrive"
 "googleearth"
 "googleearthengine"
@@ -1183,7 +1172,6 @@
 "googlefonts"
 "googleforms"
 "googlegemini"
-"googlehangouts"
 "googlehome"
 "googlekeep"
 "googlelens"
@@ -1191,14 +1179,11 @@
 "googlemarketingplatform"
 "googlemeet"
 "googlemessages"
-"googlemybusiness"
 "googlenearby"
 "googlenews"
-"googleoptimize"
 "googlepay"
 "googlephotos"
 "googleplay"
-"googlepodcasts"
 "googlepubsub"
 "googlescholar"
 "googlesearchconsole"
@@ -1344,9 +1329,6 @@
 "iata"
 "ibeacon"
 "iberia"
-"ibm"
-"ibmcloud"
-"ibmwatson"
 "iced"
 "iceland"
 "icicibank"
@@ -1411,7 +1393,6 @@
 "intermarche"
 "internetarchive"
 "internetcomputer"
-"internetexplorer"
 "intigriti"
 "intuit"
 "invision"
@@ -1541,6 +1522,7 @@
 "koc"
 "kodak"
 "kodi"
+"koenigsegg"
 "kofax"
 "kofi"
 "komoot"
@@ -1768,25 +1750,6 @@
 "microeditor"
 "microgenetics"
 "micropython"
-"microsoft"
-"microsoftacademic"
-"microsoftaccess"
-"microsoftazure"
-"microsoftbing"
-"microsoftedge"
-"microsoftexcel"
-"microsoftexchange"
-"microsoftonedrive"
-"microsoftonenote"
-"microsoftoutlook"
-"microsoftpowerpoint"
-"microsoftsharepoint"
-"microsoftsqlserver"
-"microsoftstore"
-"microsoftteams"
-"microsofttranslator"
-"microsoftvisio"
-"microsoftword"
 "microstation"
 "microstrategy"
 "midi"
@@ -1795,7 +1758,6 @@
 "milanote"
 "milvus"
 "minds"
-"minecraft"
 "minetest"
 "mini"
 "minio"
@@ -1818,7 +1780,6 @@
 "modin"
 "modrinth"
 "modx"
-"mojangstudios"
 "moleculer"
 "momenteo"
 "monero"
@@ -1836,6 +1797,7 @@
 "moo"
 "moodle"
 "moonrepo"
+"moq"
 "moqups"
 "morrisons"
 "moscowmetro"
@@ -2037,6 +1999,7 @@
 "orcid"
 "oreilly"
 "org"
+"organicmaps"
 "origin"
 "osano"
 "osf"
@@ -2163,7 +2126,6 @@
 "playstation4"
 "playstation5"
 "playstationvita"
-"playwright"
 "pleroma"
 "plesk"
 "plex"
@@ -2203,14 +2165,7 @@
 "posthog"
 "postman"
 "postmates"
-"powerapps"
-"powerautomate"
-"powerbi"
-"powerfx"
-"powerpages"
 "powers"
-"powershell"
-"powervirtualagents"
 "prdotco"
 "preact"
 "precommit"
@@ -2367,6 +2322,7 @@
 "redis"
 "redmine"
 "redox"
+"redsys"
 "redux"
 "reduxsaga"
 "redwoodjs"
@@ -2380,7 +2336,7 @@
 "removedotb

[elpa] externals/auctex 84e959333b 15/15: Merge remote-tracking branch 'origin/master'

2024-07-19 Thread ELPA Syncer
branch: externals/auctex
commit 84e959333b1790043283520aa34404d3bf86f156
Merge: 3091f2ca61 922545e8af
Author: Arash Esbati 
Commit: Arash Esbati 

Merge remote-tracking branch 'origin/master'
---
 NEWS.org   |   7 +-
 doc/changes.texi   |  35 +-
 doc/install.texi   |  16 +-
 font-latex.el  |   6 +-
 latex.el   |  66 ++-
 style/acro.el  | 905 -
 style/authblk.el   |  73 
 style/booktabs.el  |  18 +-
 style/listings.el  |  43 +-
 style/longtable.el |  21 +-
 style/ninecolors.el|  96 +
 style/simpleicons.el   |  81 +---
 style/tabularray.el| 474 +
 tests/latex/font-latex-test.el |  17 +-
 tex-site.el.in |  56 ++-
 15 files changed, 1552 insertions(+), 362 deletions(-)

diff --git a/NEWS.org b/NEWS.org
index d8ce565852..673c7c93a9 100644
--- a/NEWS.org
+++ b/NEWS.org
@@ -8,6 +8,11 @@
 
 * [Unreleased]
 
+** Added
+
+- Add new support files =style/authblk.el=, =style/ninecolors.el= and
+  =style/tabularray.el=.
+
 * [14.0.6] - 2024-06-30
 
 ** Added
@@ -32,7 +37,7 @@
 (~TeX-insert-backslash~).  If you need one literal =$=, you can type
 =C-1 $= or =C-q $=.
   - We no longer have explicit support of the special behavior that if
-~TeX-electric-math~ is non-nil and point is inside math mode right
+~TeX-electric-math~ is non-~nil~ and point is inside math mode right
 between a couple of single dollars, pressing =$= will insert another
 pair of dollar signs and leave the point between them.
 
diff --git a/doc/changes.texi b/doc/changes.texi
index 75cdabe9b7..496aa7993e 100644
--- a/doc/changes.texi
+++ b/doc/changes.texi
@@ -230,11 +230,10 @@ other symbols, in particular @kbd{"} 
(@code{TeX-insert-quote}) and @kbd{\}
 (@code{TeX-insert-backslash}).  If you need one literal @samp{$}, you can
 type @kbd{C-1 $} or @kbd{C-q $}.
 @item
-We no longer have explicit support of the special behavior that
-if @code{TeX-electric-math} is non-nil and point is inside math
-mode right between a couple of single dollars, pressing @kbd{$}
-will insert another pair of dollar signs and leave the point
-between them.
+We no longer have explicit support of the special behavior that if
+@code{TeX-electric-math} is non-@code{nil} and point is inside math mode
+right between a couple of single dollars, pressing @kbd{$} will insert
+another pair of dollar signs and leave the point between them.
 
 It still works as before if @code{TeX-electric-math} is pair of dollars
 while it inserts @samp{\(} and @samp{\)} when @code{TeX-electric-math} is
@@ -732,7 +731,7 @@ documented in info files nor turned into a customize option 
with
 @item
 The window system focus is pulled back to Emacs when viewing with
 evince-compatible viewers if a new customize option
-@code{TeX-view-evince-keep-focus} is non-nil.
+@code{TeX-view-evince-keep-focus} is non-@code{nil}.
 
 @item
 The usual dose of bug fixes was administered.
@@ -1036,12 +1035,12 @@ only new expansion strings.
 
 @item
 Before running commands like @TeX{} and @LaTeX{}, now @AUCTeX{} performs
-some checks.  If @code{TeX-check-TeX} is non-nil, it will test whether a
-working @TeX{} distribution is actually present in the system and
-available to Emacs.  Instead, when @code{TeX-check-engine} is non-nil,
-before running @LaTeX{} commands @AUCTeX{} will check whether the
-correct engine has been set, based upon known restrictions posed by
-@LaTeX{} packages.
+some checks.  If @code{TeX-check-TeX} is non-@code{nil}, it will test
+whether a working @TeX{} distribution is actually present in the system
+and available to Emacs.  Instead, when @code{TeX-check-engine} is
+non-@code{nil}, before running @LaTeX{} commands @AUCTeX{} will check
+whether the correct engine has been set, based upon known restrictions
+posed by @LaTeX{} packages.
 
 @item
 Basic support to @ConTeXt{} Mark IV has been added.  Users can now
@@ -1063,9 +1062,9 @@ Numbers of bugs have been fixed, many minor features have 
been added.
 @code{TeX-PDF-mode} is now enabled by default.
 
 @item
-Now @code{TeX-previous-error} works with @TeX{} commands if the new
-option @code{TeX-parse-all-errors} is non-nil, which is the default.
-When this option is non-nil, an overview of errors and warnings reported
+Now @code{TeX-previous-error} works with @TeX{} commands if the new option
+@code{TeX-parse-all-errors} is non-@code{nil}, which is the default.  When
+this option is non-@code{nil}, an overview of errors and warnings reported
 by the @TeX{} compiler can be opened with @kbd{M-x TeX-error-overview
 @key{RET}}.
 @ifclear rawfile
@@ -1097,8 +1096,8 @@ Now you can insert @samp{$...$} or @samp{\(...\)} by 
typing a single
 @item
 @kbd{C-c @key{RET} documentclass @key{RET}} completes with all available
 @LaTeX{} classes, if the @code{TeX-arg-input-file-search} v

[elpa] externals/auctex 08e7f159e8 02/15: Improve fontification of arguments

2024-07-19 Thread ELPA Syncer
branch: externals/auctex
commit 08e7f159e8abe971608aea8cd9b08ec204c8ab8e
Author: Arash Esbati 
Commit: Arash Esbati 

Improve fontification of arguments

* font-latex.el (font-latex-built-in-keyword-classes): Improve
fontification of arguments provided as macros and not inside
braces.

* tests/latex/font-latex-test.el
(font-latex-general-fontification): Adjust test.
---
 font-latex.el  |  6 +++---
 tests/latex/font-latex-test.el | 17 -
 2 files changed, 19 insertions(+), 4 deletions(-)

diff --git a/font-latex.el b/font-latex.el
index ec99d54c00..7018674883 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -241,9 +241,9 @@ variable `font-latex-fontify-sectioning'." ',num)
   "makeatletter" "makeatother" "newblock" "suppressfloats" "endinput")
  font-latex-warning-face 1 noarg)
 ("variable"
- (("setlength" "|{\\{") ("settowidth" "|{\\{") ("settoheight" "{{")
-  ("settodepth" "{{") ("setcounter" "{|{\\")
-  ("addtolength" "|{\\{") ("addtocounter" "{|{\\")
+ (("setlength" "|{\\|{\\") ("addtolength" "|{\\|{\\")
+  ("settowidth" "|{\\|{\\") ("settoheight" "|{\\|{\\") ("settodepth" 
"|{\\|{\\")
+  ("setcounter" "{|{\\") ("addtocounter" "{|{\\")
   ("stepcounter" "{") ("refstepcounter" "{")
   ("counterwithin" "*[{{") ("counterwithout" "*[{{")
   ("arabic" "{") ("roman" "{") ("Roman" "{") ("alph" "{") ("Alph" "{")
diff --git a/tests/latex/font-latex-test.el b/tests/latex/font-latex-test.el
index 94150ac04d..3039bf158d 100644
--- a/tests/latex/font-latex-test.el
+++ b/tests/latex/font-latex-test.el
@@ -1,6 +1,6 @@
 ;;; font-latex-test.el --- tests for font-latex  -*- lexical-binding: t; -*-
 
-;; Copyright (C) 2020-2023  Free Software Foundation, Inc.
+;; Copyright (C) 2020-2024  Free Software Foundation, Inc.
 
 ;; This file is part of AUCTeX.
 
@@ -107,6 +107,10 @@ $a$")
   (font-latex-fontify-sectioning 'color))
   (insert "\
 \\documentclass[10pt]{article}
+
+\\setlength{\\parskip}{3cm}
+\\addtolength\\parskip\\foo
+
 \\begin{document}
 
 \\section{Macros}
@@ -186,6 +190,17 @@ x
   (should (font-latex-faces-present-p 'font-lock-function-name-face))
   (end-of-line)
 
+  ;; Test for \setlength alternatives:
+  (re-search-forward "setlength{p")
+  (should (font-latex-faces-present-p 'font-lock-variable-name-face
+  (match-end 0)))
+  (re-search-forward "addtolengthp")
+  (should (font-latex-faces-present-p 'font-lock-variable-name-face
+  (match-end 0)))
+  (re-search-forward "f")
+  (should (font-latex-faces-present-p 'font-lock-variable-name-face
+  (match-end 0)))
+
   ;; Test for \section macro itself:
   (re-search-forward "sec\\(?1:t\\)ion{")
   (should (font-latex-faces-present-p 'font-lock-keyword-face



[elpa] externals/auctex 306a561ad5 03/15: Add new style/authblk.el

2024-07-19 Thread ELPA Syncer
branch: externals/auctex
commit 306a561ad5ec82140fc45598d999cebd3c5e750a
Author: Arash Esbati 
Commit: Arash Esbati 

Add new style/authblk.el

* Makefile.in (STYLESRC): Add new style.

* style/authblk.el ("authblk"): New file.
---
 Makefile.in  |  3 ++-
 style/authblk.el | 73 
 2 files changed, 75 insertions(+), 1 deletion(-)

diff --git a/Makefile.in b/Makefile.in
index 8605246e55..d38f7a3d9e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -199,7 +199,8 @@ STYLESRC = style/prosper.el \
   style/physics.el   style/soul.el  style/algpseudocodex.el \
   style/wasysym.el   style/refcount.el  style/simpleicons.el \
   style/changebar.el style/amsrefs.el   style/standalone.el \
-  style/diagbox.el   style/contract.el  style/enotez.el
+  style/diagbox.el   style/contract.el  style/enotez.el \
+  style/authblk.el
 
 STYLEELC = $(STYLESRC:.el=.elc)
 
diff --git a/style/authblk.el b/style/authblk.el
new file mode 100644
index 00..9e482d2866
--- /dev/null
+++ b/style/authblk.el
@@ -0,0 +1,73 @@
+;;; authblk.el --- AUCTeX style for `authblk.sty' (v1.3)  -*- lexical-binding: 
t; -*-
+
+;; Copyright (C) 2024 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati 
+;; Maintainer: auctex-de...@gnu.org
+;; Created: 2024-07-05
+;; Keywords: tex
+
+;; This file is part of AUCTeX.
+
+;; AUCTeX is free software; you can redistribute it and/or modify it
+;; under the terms of the GNU General Public License as published by
+;; the Free Software Foundation; either version 3, or (at your option)
+;; any later version.
+
+;; AUCTeX is distributed in the hope that it will be useful, but
+;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+;; General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with AUCTeX; see the file COPYING.  If not, write to the Free
+;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+;; 02110-1301, USA.
+
+;;; Commentary:
+
+;; This file adds support for `authblk.sty' (v1.3) from 2001/02/27.
+;; `authblk.sty' is part of TeXLive.
+
+;;; Code:
+
+(require 'tex)
+(require 'latex)
+
+;; Silence the compiler:
+(declare-function font-latex-add-keywords
+  "font-latex"
+  (keywords class))
+
+(TeX-add-style-hook
+ "authblk"
+ (lambda ()
+   (TeX-add-symbols
+'("author" ["Footnote marker"] LaTeX-arg-author)
+'("affil"  ["Footnote marker"] "Affiliation")
+'("authorcr" 0)
+"Authfont"
+"Affilfont"
+"Authsep"
+"Authand"
+"Authands")
+
+   (LaTeX-add-counters "Maxaffil")
+   (LaTeX-add-lengths "affilsep")
+
+   ;; Fontification
+   (when (and (featurep 'font-latex)
+  (eq TeX-install-font-lock 'font-latex-setup))
+ (font-latex-add-keywords '(("author" "[{")
+("affil"  "[{"))
+  'textual)
+ (font-latex-add-keywords '("authorcr")
+  'warning)))
+ TeX-dialect)
+
+(defvar LaTeX-authblk-package-options
+  '("blocks" "noblocks" "max2" "max3" "max4" "max5" "max6"
+"auth-sc" "auth-sc-lg" "auth-lg" "affil-sl" "affil-it" "german")
+  "Package options for the authblk package.")
+
+;;; authblk.el ends here



[elpa] externals/auctex 7fca4a2016 01/15: Update style/acro.el to package v3.8

2024-07-19 Thread ELPA Syncer
branch: externals/auctex
commit 7fca4a201637b1f3ca8fb127b55296853dbd1f83
Author: Arash Esbati 
Commit: Arash Esbati 

Update style/acro.el to package v3.8

* style/acro.el (LaTeX-acro-acsetup-key-val-options)
(LaTeX-acro-declareacronym-key-val-options)
(LaTeX-acro-printacronyms-key-val-options)
(LaTeX-acro-ac-key-val-options): New variables.
(LaTeX-acro-cleanup): Delete the conditional for the "macros"
package option which isn't provided by package v3.8.
(LaTeX-arg-acro-key-val): Delete function and use
`TeX-arg-key-val' instead.
("acro"): Adjust macros and fontification to package v3.8.  Use
'reference' style fontification for acronym macros.
(LaTeX-acro-package-options-list): Update to options of v3.8.
---
 style/acro.el | 905 ++
 1 file changed, 721 insertions(+), 184 deletions(-)

diff --git a/style/acro.el b/style/acro.el
index 26e32b8d6a..f558db1184 100644
--- a/style/acro.el
+++ b/style/acro.el
@@ -1,6 +1,6 @@
-;;; acro.el --- AUCTeX style for `acro.sty' version 1.2a.  -*- 
lexical-binding: t; -*-
+;;; acro.el --- AUCTeX style for `acro.sty' version v3.8  -*- lexical-binding: 
t; -*-
 
-;; Copyright (C) 2013-2015, 2018, 2020 Free Software Foundation, Inc.
+;; Copyright (C) 2013-2024 Free Software Foundation, Inc.
 
 ;; Maintainer: auctex-de...@gnu.org
 ;; Author: Mosè Giordano 
@@ -25,7 +25,7 @@
 
 ;;; Commentary:
 
-;; This file adds support for `acro.sty' version 1.2a.
+;; This file adds support for `acro.sty' version v3.8.
 
 ;;; Code:
 
@@ -37,51 +37,203 @@
   "font-latex"
   (keywords class))
 
-(defvar LaTeX-acro-package-options-list
-  '(;; General Options
-("version" ("0" "1"))
+(defvar LaTeX-acro-acsetup-key-val-options
+  '(("case-sensitive" ("true" "false"))
+("case-insensitive" ("true" "false"))
+;; 6.1. Basic properties
+("use-id-as-short" ("true" "false"))
+;; 9. The first or full appearance
+("first-style" ("long-short" "short-long" "short" "long" "footnote"))
+("subsequent-style" ("long-short" "short-long" "short" "long" "footnote"))
+;; 10. Single appearances of an acronym
 ("single" ("true" "false"))
-("hyperref" ("true" "false"))
-("record-pages" ("true" "false"))
-("only-used" ("true" "false"))
-("mark-as-used" ("first" "any"))
-("macros" ("true" "false"))
-("xspace" ("true" "false"))
-("strict" ("true" "false"))
-("sort" ("true" "false"))
-("cite" ("all" "first" "none"))
-("cite-cmd")
-("cite-space")
+("single-style" ("long-short" "short-long" "short" "long" "footnote"))
+;; 11.1. The main command and its options
+("list/template" ("description" "tabular" "longtable"
+  "supertabular" "tabularray"))
+("list/display" ("all" "used"))
+("list/include")
+("list/exclude")
+("list/add" ("true" "false"))
+("list/heading" ("none" "section" "section*" "chapter" "chapter*"))
+("list/name")
+("list/preamble")
+("list/locale/display" ("true" "false"))
+;; 11.2. Add page numbers to the list
+("pages/display" ("first" "all" "none"))
+("pages/seq/use" ("true" "false"))
+("pages/seq/pre")
+("pages/seq/threshold")
+("pages/fill")
+("pages/name" ("true" "false"))
+;; 11.3. Filter lists using tags
+("list/exclude")
+("list/include")
+;; 11.4. Local lists
+("barriers/use" ("true" "false"))
+("list/local" ("true" "false"))
+;; 12. Formatting
+("format")
+("format/short")
+("format/long")
+("format/first-long")
+("format/alt")
+("format/extra")
+("format/foreign")
+("format/list")
+("format/replace" ("true" "false"))
+("short-plural-ending")
+("long-plural-ending")
+;; 15. Foreign language acronyms
+("foreign/display" ("true" "false"))
+("list/foreign/display" ("true" "false"))
+("locale/display" ("true" "false"))
+("list/locale/display" ("true" "false"))
+("locale/format")
+;; 16. Uppercasing
+("uppercase/first")
+("uppercase/title")
+("uppercase/all")
+("uppercase/none")
+("uppercase/cmd")
+("uppercase/short" ("true" "false"))
+;; 17.1. Citing
+("cite/cmd")
+("cite/group" ("true" "false"))
+("cite/display" ("first" "all" "none"))
+("cite/pre")
+("cite/group/cmd")
+("cite/group/pre")
+;; 17.2. Indexing
+("index/use" ("true" "false" "indexed"))
+("index/cmd")
+("index/disable")
+("index/clear")
+;; 18. Barriers
+("barriers/use" ("true" "false"))
+("barriers/reset" ("true" "false"))
+("barriers/single" ("true" "false"))
+;; 19. Trailing tokens
+("trailing/define")
+("trailing/activate")
+("trailing/deactivate")
+;; 21.1. Backlinks
+("make-links" ("true" "false"))
+("link-only-first" ("true" "false"))
+;; 21.3. pdf comments
+("pdfcomments/use" ("true" "false"))
+("pdfcomme

[elpa] externals/auctex 01e3e22c7c 08/15: ; * doc/changes.texi: Wrap nil in @code and refill paragraphs.

2024-07-19 Thread ELPA Syncer
branch: externals/auctex
commit 01e3e22c7c33c2f6919b88992f47aa02b191196c
Author: Arash Esbati 
Commit: Arash Esbati 

; * doc/changes.texi: Wrap nil in @code and refill paragraphs.
---
 doc/changes.texi | 35 +--
 1 file changed, 17 insertions(+), 18 deletions(-)

diff --git a/doc/changes.texi b/doc/changes.texi
index 75cdabe9b7..496aa7993e 100644
--- a/doc/changes.texi
+++ b/doc/changes.texi
@@ -230,11 +230,10 @@ other symbols, in particular @kbd{"} 
(@code{TeX-insert-quote}) and @kbd{\}
 (@code{TeX-insert-backslash}).  If you need one literal @samp{$}, you can
 type @kbd{C-1 $} or @kbd{C-q $}.
 @item
-We no longer have explicit support of the special behavior that
-if @code{TeX-electric-math} is non-nil and point is inside math
-mode right between a couple of single dollars, pressing @kbd{$}
-will insert another pair of dollar signs and leave the point
-between them.
+We no longer have explicit support of the special behavior that if
+@code{TeX-electric-math} is non-@code{nil} and point is inside math mode
+right between a couple of single dollars, pressing @kbd{$} will insert
+another pair of dollar signs and leave the point between them.
 
 It still works as before if @code{TeX-electric-math} is pair of dollars
 while it inserts @samp{\(} and @samp{\)} when @code{TeX-electric-math} is
@@ -732,7 +731,7 @@ documented in info files nor turned into a customize option 
with
 @item
 The window system focus is pulled back to Emacs when viewing with
 evince-compatible viewers if a new customize option
-@code{TeX-view-evince-keep-focus} is non-nil.
+@code{TeX-view-evince-keep-focus} is non-@code{nil}.
 
 @item
 The usual dose of bug fixes was administered.
@@ -1036,12 +1035,12 @@ only new expansion strings.
 
 @item
 Before running commands like @TeX{} and @LaTeX{}, now @AUCTeX{} performs
-some checks.  If @code{TeX-check-TeX} is non-nil, it will test whether a
-working @TeX{} distribution is actually present in the system and
-available to Emacs.  Instead, when @code{TeX-check-engine} is non-nil,
-before running @LaTeX{} commands @AUCTeX{} will check whether the
-correct engine has been set, based upon known restrictions posed by
-@LaTeX{} packages.
+some checks.  If @code{TeX-check-TeX} is non-@code{nil}, it will test
+whether a working @TeX{} distribution is actually present in the system
+and available to Emacs.  Instead, when @code{TeX-check-engine} is
+non-@code{nil}, before running @LaTeX{} commands @AUCTeX{} will check
+whether the correct engine has been set, based upon known restrictions
+posed by @LaTeX{} packages.
 
 @item
 Basic support to @ConTeXt{} Mark IV has been added.  Users can now
@@ -1063,9 +1062,9 @@ Numbers of bugs have been fixed, many minor features have 
been added.
 @code{TeX-PDF-mode} is now enabled by default.
 
 @item
-Now @code{TeX-previous-error} works with @TeX{} commands if the new
-option @code{TeX-parse-all-errors} is non-nil, which is the default.
-When this option is non-nil, an overview of errors and warnings reported
+Now @code{TeX-previous-error} works with @TeX{} commands if the new option
+@code{TeX-parse-all-errors} is non-@code{nil}, which is the default.  When
+this option is non-@code{nil}, an overview of errors and warnings reported
 by the @TeX{} compiler can be opened with @kbd{M-x TeX-error-overview
 @key{RET}}.
 @ifclear rawfile
@@ -1097,8 +1096,8 @@ Now you can insert @samp{$...$} or @samp{\(...\)} by 
typing a single
 @item
 @kbd{C-c @key{RET} documentclass @key{RET}} completes with all available
 @LaTeX{} classes, if the @code{TeX-arg-input-file-search} variable is
-non-nil.  Completion for class options of the standard @LaTeX{} classes
-is provided as well.
+non-@code{nil}.  Completion for class options of the standard @LaTeX{}
+classes is provided as well.
 
 @item
 New user options @code{LaTeX-default-author},
@@ -1420,7 +1419,7 @@ deprecated.
 @item
 @AUCTeX{} now can automatically insert a pair of braces after typing
 @key{_} or @key{^} in math constructs if the new variable
-@code{TeX-electric-sub-and-superscript} is set to a non-nil value.
+@code{TeX-electric-sub-and-superscript} is set to a non-@code{nil} value.
 
 @item
 Some language-specific support for French was added.  There now is



[elpa] externals/denote cba932b053 2/2: Merge pull request #398 from skissue/template-functions

2024-07-19 Thread ELPA Syncer
branch: externals/denote
commit cba932b05310fa1edd8abac720ffc381e703d6fd
Merge: 6b762364f7 ed21e8b647
Author: Protesilaos Stavrou 
Commit: GitHub 

Merge pull request #398 from skissue/template-functions

Support functions in `denote-templates`
---
 denote.el | 20 
 1 file changed, 12 insertions(+), 8 deletions(-)

diff --git a/denote.el b/denote.el
index 5d6a1b8097..b345f51309 100644
--- a/denote.el
+++ b/denote.el
@@ -499,21 +499,22 @@ it, use the command `org-insert-link'.  Note that 
`org-capture' uses
 A template is arbitrary text that Denote will add to a newly
 created note right below the front matter.
 
-Templates are expressed as a (KEY . STRING) association.
+Templates are expressed as a (KEY . VALUE) association.
 
 - The KEY is the name which identifies the template.  It is an
   arbitrary symbol, such as `report', `memo', `statement'.
 
-- The STRING is ordinary text that Denote will insert as-is.  It
-  can contain newline characters to add spacing.  The manual of
-  Denote contains examples on how to use the `concat' function,
-  beside writing a generic string.
+- The VALUE is ordinary text that Denote will insert as-is. It can
+  contain newline characters to add spacing. The manual of Denote
+  contains examples on how to use the `concat' function, beside writing
+  a generic string. It can also be a function of no arguments that
+  returns a string that Denote will call and insert the result from.
 
 The user can choose a template either by invoking the command
 `denote-template' or by changing the user option `denote-prompts'
 to always prompt for a template when calling the `denote'
 command."
-  :type '(alist :key-type symbol :value-type string)
+  :type '(alist :key-type symbol :value-type (choice string function))
   :package-version '(denote . "0.5.0")
   :link '(info-link "(denote) The denote-templates option")
   :group 'denote)
@@ -1951,7 +1952,10 @@ TEMPLATE, and SIGNATURE should be valid for note 
creation."
   (user-error "A file named `%s' already exists" path))
 (with-current-buffer buffer
   (insert header)
-  (insert template))
+  (insert (cond
+   ((stringp template) template)
+   ((functionp template) (funcall template))
+   (t (user-error "Invalid template")
 path))
 
 (defun denote--dir-in-denote-directory-p (directory)
@@ -2263,7 +2267,7 @@ instead of that of the parameter."
  (directory (if (denote--dir-in-denote-directory-p directory)
 (file-name-as-directory directory)
   (denote-directory)))
- (template (if (stringp template)
+ (template (if (or (stringp template) (functionp template))
template
  (or (alist-get template denote-templates) "")))
  (signature (or signature "")))



[elpa] externals/denote ed21e8b647 1/2: Support functions in `denote-templates`

2024-07-19 Thread ELPA Syncer
branch: externals/denote
commit ed21e8b64774d704ea2c84b977659cc4269636f4
Author: Ad 
Commit: Ad 

Support functions in `denote-templates`
---
 denote.el | 20 
 1 file changed, 12 insertions(+), 8 deletions(-)

diff --git a/denote.el b/denote.el
index 5d6a1b8097..b345f51309 100644
--- a/denote.el
+++ b/denote.el
@@ -499,21 +499,22 @@ it, use the command `org-insert-link'.  Note that 
`org-capture' uses
 A template is arbitrary text that Denote will add to a newly
 created note right below the front matter.
 
-Templates are expressed as a (KEY . STRING) association.
+Templates are expressed as a (KEY . VALUE) association.
 
 - The KEY is the name which identifies the template.  It is an
   arbitrary symbol, such as `report', `memo', `statement'.
 
-- The STRING is ordinary text that Denote will insert as-is.  It
-  can contain newline characters to add spacing.  The manual of
-  Denote contains examples on how to use the `concat' function,
-  beside writing a generic string.
+- The VALUE is ordinary text that Denote will insert as-is. It can
+  contain newline characters to add spacing. The manual of Denote
+  contains examples on how to use the `concat' function, beside writing
+  a generic string. It can also be a function of no arguments that
+  returns a string that Denote will call and insert the result from.
 
 The user can choose a template either by invoking the command
 `denote-template' or by changing the user option `denote-prompts'
 to always prompt for a template when calling the `denote'
 command."
-  :type '(alist :key-type symbol :value-type string)
+  :type '(alist :key-type symbol :value-type (choice string function))
   :package-version '(denote . "0.5.0")
   :link '(info-link "(denote) The denote-templates option")
   :group 'denote)
@@ -1951,7 +1952,10 @@ TEMPLATE, and SIGNATURE should be valid for note 
creation."
   (user-error "A file named `%s' already exists" path))
 (with-current-buffer buffer
   (insert header)
-  (insert template))
+  (insert (cond
+   ((stringp template) template)
+   ((functionp template) (funcall template))
+   (t (user-error "Invalid template")
 path))
 
 (defun denote--dir-in-denote-directory-p (directory)
@@ -2263,7 +2267,7 @@ instead of that of the parameter."
  (directory (if (denote--dir-in-denote-directory-p directory)
 (file-name-as-directory directory)
   (denote-directory)))
- (template (if (stringp template)
+ (template (if (or (stringp template) (functionp template))
template
  (or (alist-get template denote-templates) "")))
  (signature (or signature "")))



[elpa] externals/greader 690d35be1c: Function `greader-dict-substitute-word' fixed.

2024-07-19 Thread ELPA Syncer
branch: externals/greader
commit 690d35be1c28eaf60ae720666ea6ffe86da8d43e
Author: Michelangelo Rodriguez 
Commit: Michelangelo Rodriguez 

Function `greader-dict-substitute-word' fixed.

Now it works with "\" correctly.
---
 greader-dict.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/greader-dict.el b/greader-dict.el
index ae00dcfcda..f0365f9d67 100644
--- a/greader-dict.el
+++ b/greader-dict.el
@@ -335,7 +335,7 @@ as a word definition."
   (concat (match-string 1)
   (gethash match greader-dictionary)
   (match-string 3
- (replace-match replacement))
+ (replace-match replacement nil t))
(goto-char (point-min))
 
 ;; This function adds to the `greader-dictionary' variable the



[nongnu] elpa/cider c698e1454c: Use cider-nrepl 0.49.2

2024-07-19 Thread ELPA Syncer
branch: elpa/cider
commit c698e1454cb416ad55c739961f9df514da9556f0
Author: Oleksandr Yakushev 
Commit: Bozhidar Batsov 

Use cider-nrepl 0.49.2
---
 CHANGELOG.md   |  1 +
 cider.el   |  2 +-
 dev/docker-sample-project/project.clj  |  2 +-
 dev/tramp-sample-project/project.clj   |  2 +-
 .../ROOT/pages/basics/middleware_setup.adoc| 12 +++---
 doc/modules/ROOT/pages/basics/up_and_running.adoc  |  4 +-
 doc/modules/ROOT/pages/cljs/shadow-cljs.adoc   |  2 +-
 doc/modules/ROOT/pages/cljs/up_and_running.adoc|  2 +-
 test/cider-tests.el| 44 +++---
 9 files changed, 36 insertions(+), 35 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8b14c96b64..0dfaa718c5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,7 @@
 ### Changes
 
 - Bump the injected nREPL version to 1.3.
+- Bump the injected `cider-nrepl` to 
[0.49.2](https://github.com/clojure-emacs/cider-nrepl/blob/master/CHANGELOG.md#0492-2024-07-19).
 
 ### Bugs fixed
 
diff --git a/cider.el b/cider.el
index e126d70086..3d68d150c8 100644
--- a/cider.el
+++ b/cider.el
@@ -573,7 +573,7 @@ the artifact.")
 
 Used when `cider-jack-in-auto-inject-clojure' is set to `latest'.")
 
-(defconst cider-required-middleware-version "0.49.1"
+(defconst cider-required-middleware-version "0.49.2"
   "The CIDER nREPL version that's known to work properly with CIDER.")
 
 (defcustom cider-injected-middleware-version cider-required-middleware-version
diff --git a/dev/docker-sample-project/project.clj 
b/dev/docker-sample-project/project.clj
index ef10c499f4..bd3b61744c 100644
--- a/dev/docker-sample-project/project.clj
+++ b/dev/docker-sample-project/project.clj
@@ -2,4 +2,4 @@
   :dependencies [[org.clojure/clojure "1.11.1"]
  [clj-http "3.12.3"]]
   :source-paths ["src"]
-  :plugins [[cider/cider-nrepl "0.49.1"]])
+  :plugins [[cider/cider-nrepl "0.49.2"]])
diff --git a/dev/tramp-sample-project/project.clj 
b/dev/tramp-sample-project/project.clj
index 9e4f59935a..5c7ca4b625 100644
--- a/dev/tramp-sample-project/project.clj
+++ b/dev/tramp-sample-project/project.clj
@@ -2,5 +2,5 @@
   :dependencies [[org.clojure/clojure "1.11.1"]
  [clj-http "3.12.3"]]
   :source-paths ["src"]
-  :plugins [[cider/cider-nrepl "0.49.1"]
+  :plugins [[cider/cider-nrepl "0.49.2"]
 [refactor-nrepl "3.9.0"]])
diff --git a/doc/modules/ROOT/pages/basics/middleware_setup.adoc 
b/doc/modules/ROOT/pages/basics/middleware_setup.adoc
index dfb365475e..67e41c1fb8 100644
--- a/doc/modules/ROOT/pages/basics/middleware_setup.adoc
+++ b/doc/modules/ROOT/pages/basics/middleware_setup.adoc
@@ -32,14 +32,14 @@ Use the convenient plugin for defaults, either in your 
project's
 
 [source,clojure]
 
-:plugins [[cider/cider-nrepl "0.49.1"]]
+:plugins [[cider/cider-nrepl "0.49.2"]]
 
 
 A minimal `profiles.clj` for CIDER would be:
 
 [source,clojure]
 
-{:repl {:plugins [[cider/cider-nrepl "0.49.1"]]}}
+{:repl {:plugins [[cider/cider-nrepl "0.49.2"]]}}
 
 
 WARNING: Be careful not to place this in the `:user` profile, as this way 
CIDER's
@@ -59,7 +59,7 @@ all of their projects using a `~/.boot/profile.boot` file 
like so:
 (require 'boot.repl)
 
 (swap! boot.repl/*default-dependencies*
-   concat '[[cider/cider-nrepl "0.49.1"]])
+   concat '[[cider/cider-nrepl "0.49.2"]])
 
 (swap! boot.repl/*default-middleware*
conj 'cider.nrepl/cider-middleware)
@@ -76,11 +76,11 @@ run `cider-connect` or `cider-connect-cljs`.
 
 [source,clojure]
 
-  :cider-clj {:extra-deps {cider/cider-nrepl {:mvn/version "0.49.1"}}
+  :cider-clj {:extra-deps {cider/cider-nrepl {:mvn/version "0.49.2"}}
   :main-opts ["-m" "nrepl.cmdline" "--middleware" 
"[cider.nrepl/cider-middleware]"]}
 
   :cider-cljs {:extra-deps {org.clojure/clojurescript {:mvn/version "1.10.339"}
-cider/cider-nrepl {:mvn/version "0.49.1"}
+cider/cider-nrepl {:mvn/version "0.49.2"}
 cider/piggieback {:mvn/version "0.5.3"}}
:main-opts ["-m" "nrepl.cmdline" "--middleware"

"[cider.nrepl/cider-middleware,cider.piggieback/wrap-cljs-repl]"]}
@@ -99,7 +99,7 @@ NOTE: Make sure you're using 
https://github.com/clojurephant/clojurephant[Clojur
 
 dependencies {
   devImplementation 'nrepl:nrepl:0.9.0'
-  devImplementation 'cider:cider-nrepl:0.49.1'
+  devImplementation 'cider:cider-nrepl:0.49.2'
 }
 
 tasks.named('clojureRepl') {
diff --git a/doc/modules/ROOT/pages/basics/up_and_running.adoc 
b/doc/modules/ROOT/pages/basics/up_and_running.adoc
index 8b5f679e78..a0b4bf0882 100644
--- a/doc/modules/ROOT/pages/basics/up_and_running.adoc
+++ b/doc/modules/ROOT/pages/basics/up_and_running.adoc
@@ -73,7 +73,7 @@ simple - CIDER simply passes the extra dependencies and nREPL 
configuration to
 yo