diff --git a/anthy.changes b/anthy.changes index 27b2087..27bfb0b 100644 --- a/anthy.changes +++ b/anthy.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Aug 18 11:19:51 UTC 2020 - Dr. Werner Fink + +- Add patch bugzilla-1175274-emacs-27.1.patch + There is no (process-kill-without-query) anymore, use + (set-process-query-on-exit-flag) instead (boo#1175274). + ------------------------------------------------------------------- Thu Jun 13 07:07:00 UTC 2019 - Dominique Leuenberger diff --git a/anthy.spec b/anthy.spec index 8c03959..e26b541 100644 --- a/anthy.spec +++ b/anthy.spec @@ -1,7 +1,7 @@ # # spec file for package anthy # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -46,6 +46,7 @@ Patch2: anthy-last-command-char-xemacs.patch Patch3: bugzilla-224463-comparison-with-string-literal.patch # PATCH-FIX-OPENSUSE anthy-use-last-command-event.diff bnc#849211 tiwai@suse.de Patch4: anthy-use-last-command-event.diff +Patch5: bugzilla-1175274-emacs-27.1.patch BuildRequires: fdupes BuildRequires: libtool %if %{with emacs} @@ -86,6 +87,7 @@ to develop applications that require libanthy. %patch2 -p 1 %patch3 -p 1 %patch4 -p 1 +%patch5 -p 0 %build autoreconf --force --install diff --git a/bugzilla-1175274-emacs-27.1.patch b/bugzilla-1175274-emacs-27.1.patch new file mode 100644 index 0000000..ae44e32 --- /dev/null +++ b/bugzilla-1175274-emacs-27.1.patch @@ -0,0 +1,35 @@ +There is no (process-kill-without-query) anymore, use +(set-process-query-on-exit-flag) instead. + +--- + src-util/anthy.el | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +--- src-util/anthy.el ++++ src-util/anthy.el 2020-08-18 11:58:02.915408190 +0000 +@@ -161,11 +161,11 @@ + + ;; From skk-macs.el From viper-util.el. Welcome! + (defmacro anthy-deflocalvar (var default-value &optional documentation) +- (` (progn +- (defvar (, var) (, default-value) +- (, (format "%s\n\(buffer local\)" documentation))) +- (make-variable-buffer-local '(, var)) +- ))) ++ `(progn ++ (defvar ,var ,default-value ++ ,(format "%s\n\(buffer local\)" documentation)) ++ (make-variable-buffer-local ',var) ++ )) + + ;; buffer local variables + (anthy-deflocalvar anthy-context-id nil "コンテキストのid") +@@ -745,7 +745,7 @@ + (if anthy-agent-process + (kill-process anthy-agent-process)) + (setq anthy-agent-process proc) +- (process-kill-without-query proc) ++ (set-process-query-on-exit-flag proc nil) + (if anthy-xemacs + (if (coding-system-p (find-coding-system 'euc-japan)) + (set-process-coding-system proc 'euc-japan 'euc-japan))