Bug#977397: uim-el: missing *-uim in input-method-alist on Emacs 27

2020-12-14 Thread dai
Control: tag -1 patch fixed-upstream

On Tue, Dec 15, 2020 at 02:31:46AM +0900, Nobuhiro Ban wrote:
> I used the japanese-anthy-utf8-uim input-method on my Debian Emacs 26 env.
> But after upgrading Emacs 27,
> I cannot set input-method to japanese-anthy-utf8-uim.
> 
> (Same cause as #977257)
> 
> There is a problem at initializing uim-el.
> So none of the input methods *-uim are prepared on startup.
> 
> From *Message* buffer:
> >Error while loading 50uim-el: Symbol’s function definition is void: 
> >process-kill-without-query
> 
> 
> How to fix:
> 
> Replace process-kill-without-query with set-process-query-on-exit-flag
> in /usr/share/emacs/site-lisp/uim-el/*.el .

Reproduced.  This is already fixed in upstream, so I will backport it:

https://github.com/uim/uim/commit/164e2eb050b5fec25033124834cf49ea1a7d8cbb
-- 
Regards,
dai

GPG Fingerprint = 0B29 D88E 42E6 B765 B8D8 EA50 7839 619D D439 668E


signature.asc
Description: PGP signature


Processed: Re: Bug#977397: uim-el: missing *-uim in input-method-alist on Emacs 27

2020-12-14 Thread Debian Bug Tracking System
Processing control commands:

> tag -1 patch fixed-upstream
Bug #977397 [uim-el] uim-el: missing *-uim in input-method-alist on Emacs 27
Added tag(s) fixed-upstream.

-- 
977397: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977397
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#977397: uim-el: missing *-uim in input-method-alist on Emacs 27

2020-12-14 Thread Nobuhiro Ban
Package: uim-el
Version: 1:1.8.8-6.1+b2
Severity: grave
Justification: renders package unusable
Tags: patch

Dear Maintainer,

I used the japanese-anthy-utf8-uim input-method on my Debian Emacs 26 env.
But after upgrading Emacs 27,
I cannot set input-method to japanese-anthy-utf8-uim.

(Same cause as #977257)

There is a problem at initializing uim-el.
So none of the input methods *-uim are prepared on startup.

>From *Message* buffer:
>Error while loading 50uim-el: Symbol’s function definition is void: 
>process-kill-without-query


How to fix:

Replace process-kill-without-query with set-process-query-on-exit-flag
in /usr/share/emacs/site-lisp/uim-el/*.el .
This patch fixes this problem.
- Begin
--- uim-1.8.8.orig/emacs/uim-helper.el
+++ uim-1.8.8/emacs/uim-helper.el
@@ -106,7 +106,7 @@
 (if (not proc)
 (error "uim.el: Couldn't invoke uim-el-helper-agent."))

-(process-kill-without-query proc)
+(set-process-query-on-exit-flag proc nil)

 ;; wait "OK"
 (let ((patience uim-startup-timeout) (ok nil))
--- uim-1.8.8.orig/emacs/uim.el
+++ uim-1.8.8/emacs/uim.el
@@ -488,7 +488,7 @@
 (error "uim.el: Couldn't invoke uim-el-agent."))

 ;; don't ask kill
-(process-kill-without-query proc)
+(set-process-query-on-exit-flag proc nil)

 ;; wait "OK"
 (let ((patience uim-startup-timeout) (ok nil))
- End


Regards,
Nobuhiro Ban




-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'stable-debug'), (500,
'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.9.0-4-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages uim-el depends on:
ii  emacs1:27.1+1-3
ii  emacs-gtk [emacsen]  1:27.1+1-3
ii  libc62.31-5
ii  libuim8  1:1.8.8-6.1+b2
ii  uim  1:1.8.8-6.1+b2
ii  uim-data 1:1.8.8-6.1

uim-el recommends no packages.

uim-el suggests no packages.

-- no debconf information