commit emacs-jinx for openSUSE:Factory
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-06-27 16:03:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/emacs-jinx (Old) and /work/SRC/openSUSE:Factory/.emacs-jinx.new.18349 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "emacs-jinx" Thu Jun 27 16:03:08 2024 rev:5 rq:1183481 version:1.8 Changes: -------- --- /work/SRC/openSUSE:Factory/emacs-jinx/emacs-jinx.changes 2024-04-14 12:24:48.081958977 +0200 +++ /work/SRC/openSUSE:Factory/.emacs-jinx.new.18349/emacs-jinx.changes 2024-06-27 16:04:10.100520309 +0200 @@ -1,0 +2,12 @@ +Wed Jun 26 19:05:01 UTC 2024 - Björn Bidar <bjorn.bidar@thaodan.de> + +- Rebase p0001-Only-export-necessary-symbols.-Fixes-105.patch + against version 1.8. +- Update to version 1.8: + * Fix wrong-type-argument (Fix #175) + * README: Fix grammatical mistake + * Ignore message-separator + * Add jinx-save-languages + * jinx--word-valid-p: Do not error on invalid characters (Fix #93, #164) + +------------------------------------------------------------------- Old: ---- jinx-1.6.tar.gz New: ---- jinx-1.8.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ emacs-jinx.spec ++++++ --- /var/tmp/diff_new_pack.QsZiQL/_old 2024-06-27 16:04:11.176559842 +0200 +++ /var/tmp/diff_new_pack.QsZiQL/_new 2024-06-27 16:04:11.176559842 +0200 @@ -20,7 +20,7 @@ %global _name jinx Name: emacs-%{_name} -Version: 1.6 +Version: 1.8 Release: 0 Summary: Enchanted Spell Checker for Emacs License: GPL-3.0-or-later ++++++ 0001-Only-export-necessary-symbols.-Fixes-105.patch ++++++ --- /var/tmp/diff_new_pack.QsZiQL/_old 2024-06-27 16:04:11.204560871 +0200 +++ /var/tmp/diff_new_pack.QsZiQL/_new 2024-06-27 16:04:11.208561018 +0200 @@ -16,7 +16,7 @@ 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/jinx-mod.c b/jinx-mod.c -index 0e6a4e66f4f88a7f8d636a1beaddbe957d3f55a2..c999abd7e6b1668ab26585fc00c18511517412e9 100644 +index 4c1c42f6247bba04ff543481a5a0f611559996f3..0a33c48de83ae6c727f5c7253704675e7f0141bb 100644 --- a/jinx-mod.c +++ b/jinx-mod.c @@ -21,10 +21,25 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ @@ -46,7 +46,7 @@ static EnchantBroker* broker = 0; static emacs_value Qt, Qnil, Qcons; -@@ -171,7 +186,7 @@ static emacs_value jinx_suggest(emacs_env* env, ptrdiff_t jinx_unused(nargs), +@@ -173,7 +188,7 @@ static emacs_value jinx_suggest(emacs_env* env, ptrdiff_t jinx_unused(nargs), return list; } @@ -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 7bfc8705f9f5bcd35c349ec140a3eb02fa098d93..5accf4a6b4c823b344e46eebb587a58a09751c96 100644 +index f4398973e5db636382a84ee66a329b435e759872..b5bcf95b43759226f3eb8afc3623d20cca6f0c19 100644 --- a/jinx.el +++ b/jinx.el -@@ -582,7 +582,7 @@ If CHECK is non-nil, always check first." +@@ -588,7 +588,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.6.tar.gz -> jinx-1.8.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jinx-1.6/CHANGELOG.org new/jinx-1.8/CHANGELOG.org --- old/jinx-1.6/CHANGELOG.org 2024-04-12 00:07:03.000000000 +0200 +++ new/jinx-1.8/CHANGELOG.org 2024-06-19 12:30:54.000000000 +0200 @@ -2,6 +2,16 @@ #+author: Daniel Mendler #+language: en +* Version 1.8 (2024-06-19) + +- Bugfix in ~jinx-correct~: Fix ~wrong-type-argument~ error if no Enchant + dictionaries are found. + +* Version 1.7 (2024-05-15) + +- ~jinx--word-valid-p~: Do not error on invalid characters. +- ~jinx-save-languages~: New custom variable. + * Version 1.6 (2024-04-12) - Bugfix (again): Ensure that directory local variables work correctly with diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jinx-1.6/README.org new/jinx-1.8/README.org --- old/jinx-1.6/README.org 2024-04-12 00:07:03.000000000 +0200 +++ new/jinx-1.8/README.org 2024-06-19 12:30:54.000000000 +0200 @@ -104,7 +104,7 @@ * Correcting misspellings -The easiest way to correct a misspellings is to right click on the word, +The easiest way to correct a misspelling is to right click on the word, underlined with a wavy line. Then a context menu will open where you can select from suggestions. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jinx-1.6/jinx-mod.c new/jinx-1.8/jinx-mod.c --- old/jinx-1.6/jinx-mod.c 2024-04-12 00:07:03.000000000 +0200 +++ new/jinx-1.8/jinx-mod.c 2024-06-19 12:30:54.000000000 +0200 @@ -130,6 +130,8 @@ emacs_value args[], void* jinx_unused(data)) { EnchantDict* dict = env->get_user_ptr(env, args[0]); jinx_autofree char* str = jinx_cstr(env, args[1]); + // Do not error in the checking function (Non-Unicode strings) + env->non_local_exit_clear(env); return !dict || !str || enchant_dict_check(dict, str, -1) ? Qnil : Qt; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jinx-1.6/jinx.el new/jinx-1.8/jinx.el --- old/jinx-1.6/jinx.el 2024-04-12 00:07:03.000000000 +0200 +++ new/jinx-1.8/jinx.el 2024-06-19 12:30:54.000000000 +0200 @@ -5,7 +5,7 @@ ;; Author: Daniel Mendler <mail@daniel-mendler.de> ;; Maintainer: Daniel Mendler <mail@daniel-mendler.de> ;; Created: 2023 -;; Version: 1.6 +;; Version: 1.8 ;; Package-Requires: ((emacs "27.1") (compat "29.1.4.4")) ;; Homepage: https://github.com/minad/jinx ;; Keywords: convenience, text @@ -81,6 +81,12 @@ "Dictionary language codes, as a string separated by whitespace." :type 'string) +(defcustom jinx-save-languages 'ask + "Save the variable `jinx-languages' as file-local variable?" + :type '(choice (const :tag "Never" nil) + (const :tag "Always" t) + (const :tag "Ask" ask))) + ;;;###autoload (put 'jinx-languages 'safe-local-variable #'stringp) @@ -136,11 +142,11 @@ (emacs-lisp-mode font-lock-constant-face font-lock-warning-face) (message-mode - message-header-cc message-header-name message-header-newsgroups - message-header-other message-header-to message-header-xheader - message-cited-text-1 message-cited-text-2 message-cited-text-3 - message-cited-text-4 gnus-cite-1 gnus-cite-2 gnus-cite-3 - gnus-cite-4 gnus-cite-5 gnus-cite-6 gnus-cite-7 gnus-cite-8 + message-separator message-header-cc message-header-name + message-header-newsgroups message-header-other message-header-to + message-header-xheader message-cited-text-1 message-cited-text-2 + message-cited-text-3 message-cited-text-4 gnus-cite-1 gnus-cite-2 + gnus-cite-3 gnus-cite-4 gnus-cite-5 gnus-cite-6 gnus-cite-7 gnus-cite-8 gnus-cite-9 gnus-cite-10 gnus-cite-11)) "Alist of faces per major mode. These faces mark regions which should be excluded in spell @@ -732,7 +738,8 @@ (setq list (jinx--add-suggestion list ht w "Suggestions from session"))) (cl-loop for (key . fun) in jinx--save-keys for actions = (funcall fun nil key word) do - (unless (consp (car actions)) (setq actions (list actions))) + (when (and actions (not (consp (car actions)))) + (setq actions (list actions))) (cl-loop for (k w a) in actions do (push (propertize (concat (propertize (if (stringp k) k (char-to-string k)) @@ -935,8 +942,10 @@ (t (setq-local jinx-languages langs) (when (or (assq 'jinx-languages file-local-variables-alist) - (and buffer-file-name - (y-or-n-p "Save `jinx-languages' as file-local variable? "))) + (if (eq jinx-save-languages 'ask) + (and buffer-file-name + (y-or-n-p "Save `jinx-languages' as file-local variable? ")) + jinx-save-languages)) (add-file-local-variable 'jinx-languages jinx-languages) (setf (alist-get 'jinx-languages file-local-variables-alist) jinx-languages)))) (jinx--load-dicts)
participants (1)
-
Source-Sync