Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package emacs-jinx for openSUSE:Factory checked in at 2024-07-08 19:08:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/emacs-jinx (Old) and /work/SRC/openSUSE:Factory/.emacs-jinx.new.2080 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "emacs-jinx" Mon Jul 8 19:08:18 2024 rev:6 rq:1186010 version:1.9 Changes: -------- --- /work/SRC/openSUSE:Factory/emacs-jinx/emacs-jinx.changes 2024-06-27 16:04:10.100520309 +0200 +++ /work/SRC/openSUSE:Factory/.emacs-jinx.new.2080/emacs-jinx.changes 2024-07-08 19:08:36.719511897 +0200 @@ -1,0 +2,13 @@ +Sun Jul 07 13:16:50 UTC 2024 - Björn Bidar <[email protected]> + +- Rebase p0001-Only-export-necessary-symbols.-Fixes-105.patch + against version 1.9. +- Update to version 1.9: + * Expose (jinx-correct-all t) via C-u C-u C-u M-x jinx-correct + * jinx-correct-all: Add ONLY-CHECK argument. + * A better fix for #156 + * Revert "Fix bug in jinx--find-visible-pending (See #156)" + * Fix bug in jinx--find-visible-pending (See #156) + * correct link to enchant manual (#185) + +------------------------------------------------------------------- Old: ---- jinx-1.8.tar.gz New: ---- jinx-1.9.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ emacs-jinx.spec ++++++ --- /var/tmp/diff_new_pack.7XzDoL/_old 2024-07-08 19:08:37.315533695 +0200 +++ /var/tmp/diff_new_pack.7XzDoL/_new 2024-07-08 19:08:37.315533695 +0200 @@ -20,7 +20,7 @@ %global _name jinx Name: emacs-%{_name} -Version: 1.8 +Version: 1.9 Release: 0 Summary: Enchanted Spell Checker for Emacs License: GPL-3.0-or-later @@ -52,6 +52,8 @@ %install %make_install DYNMODDRIR=%{_emacs_archsitelispdir} +%check + %files %doc README.org CHANGELOG.org %license LICENSE ++++++ 0001-Only-export-necessary-symbols.-Fixes-105.patch ++++++ --- /var/tmp/diff_new_pack.7XzDoL/_old 2024-07-08 19:08:37.331534280 +0200 +++ /var/tmp/diff_new_pack.7XzDoL/_new 2024-07-08 19:08:37.335534426 +0200 @@ -56,10 +56,10 @@ return 1; // Require Emacs binary compatibility emacs_env* env = runtime->get_environment(runtime); diff --git a/jinx.el b/jinx.el -index f4398973e5db636382a84ee66a329b435e759872..b5bcf95b43759226f3eb8afc3623d20cca6f0c19 100644 +index c03aabdf6ea7f12a110d62324e35fa68b56e30af..55965d59082e19f5e14f2ba703e8572eb4fcad66 100644 --- a/jinx.el +++ b/jinx.el -@@ -588,7 +588,7 @@ If CHECK is non-nil, always check first." +@@ -592,7 +592,7 @@ If CHECK is non-nil, always check first." (or (locate-library c-name t) (error "Jinx: %s not found" c-name)))) (command ++++++ jinx-1.8.tar.gz -> jinx-1.9.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jinx-1.8/CHANGELOG.org new/jinx-1.9/CHANGELOG.org --- old/jinx-1.8/CHANGELOG.org 2024-06-19 12:30:54.000000000 +0200 +++ new/jinx-1.9/CHANGELOG.org 2024-06-29 10:58:29.000000000 +0200 @@ -2,6 +2,11 @@ #+author: Daniel Mendler #+language: en +* Version 1.9 (2024-06-29) + +- Bugfix: In some rare scenarios, Jinx could hang when checking pending regions. +- ~jinx-correct-all~: Add ~ONLY-CHECK~ prefix argument. + * Version 1.8 (2024-06-19) - Bugfix in ~jinx-correct~: Fix ~wrong-type-argument~ error if no Enchant diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jinx-1.8/README.org new/jinx-1.9/README.org --- old/jinx-1.8/README.org 2024-06-19 12:30:54.000000000 +0200 +++ new/jinx-1.9/README.org 2024-06-29 10:58:29.000000000 +0200 @@ -164,7 +164,7 @@ Depending on the backend the personal dictionary will be taken from different locations, e.g., =~/.aspell.LANG.pws= or =~/.config/enchant/LANG.dic=. It is possible to symlink different personal dictionaries such that they are shared by -different spell checkers. See the [[https://abiword.github.io/enchant/src/enchant.html][Enchant manual]] for details. +different spell checkers. See the [[https://abiword.github.io/enchant/lib/enchant.html][Enchant manual]] for details. * Alternative spell-checking packages diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jinx-1.8/jinx.el new/jinx-1.9/jinx.el --- old/jinx-1.8/jinx.el 2024-06-19 12:30:54.000000000 +0200 +++ new/jinx-1.9/jinx.el 2024-06-29 10:58:29.000000000 +0200 @@ -5,7 +5,7 @@ ;; Author: Daniel Mendler <[email protected]> ;; Maintainer: Daniel Mendler <[email protected]> ;; Created: 2023 -;; Version: 1.8 +;; Version: 1.9 ;; Package-Requires: ((emacs "27.1") (compat "29.1.4.4")) ;; Homepage: https://github.com/minad/jinx ;; Keywords: convenience, text @@ -403,9 +403,13 @@ (eq flag (not (and (get-text-property start 'jinx--pending) (not (invisible-p start)))))) - (setq start (next-single-char-property-change + (let ((next (next-single-char-property-change start 'jinx--pending nil (next-single-char-property-change start 'invisible nil end)))) + ;; END can be outside the buffer if the buffer size has changed in + ;; between. Then `next-single-property-change' will return (point-max) + ;; instead of END. See gh:minad/jinx#156. + (setq start (if (> next start) next end)))) start) (defun jinx--check-pending (start end) @@ -952,22 +956,25 @@ (jinx--cleanup)) ;;;###autoload -(defun jinx-correct-all () - "Correct all misspelled words in the buffer." - (interactive "*") +(defun jinx-correct-all (&optional only-check) + "Correct all misspelled words in the buffer. +With prefix argument ONLY-CHECK, only check the buffer and highlight all +misspellings, but do not open the correction UI." + (interactive "*P") (jinx--correct-guard (let* ((overlays (jinx--force-overlays (or (use-region-beginning) (point-min)) (or (use-region-end) (point-max)) :check t)) (count (length overlays)) (idx 0)) - (deactivate-mark) - (push-mark) - (while-let ((ov (nth idx overlays))) - (if-let (((overlay-buffer ov)) - (skip (jinx--correct-overlay ov :info (format " (%d of %d)" (1+ idx) count)))) - (setq idx (mod (+ idx skip) count)) - (cl-incf idx)))))) + (unless only-check + (deactivate-mark) + (push-mark) + (while-let ((ov (nth idx overlays))) + (if-let (((overlay-buffer ov)) + (skip (jinx--correct-overlay ov :info (format " (%d of %d)" (1+ idx) count)))) + (setq idx (mod (+ idx skip) count)) + (cl-incf idx))))))) ;;;###autoload (defun jinx-correct-nearest () @@ -1015,11 +1022,15 @@ is 4, corresponding to \\[universal-argument] pressed once, correct all misspelled words. - `jinx-correct-word': If prefix ARG is 16, corresponding to - \\[universal-argument] pressed twice, correct word before point." + \\[universal-argument] pressed twice, correct word before point. + - If prefix ARG is 64, corresponding to \\[universal-argument] pressed + three times, check the whole buffer, but do not open the correction + UI." (interactive "*P") (pcase arg ('nil (if (use-region-p) (jinx-correct-all) (jinx-correct-nearest))) ('(16) (jinx-correct-word)) + ('(64) (jinx-correct-all t)) (_ (jinx-correct-all)))) (defun jinx-correct-select ()
