[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#47205: 27.1.91; [bug] unexpected input event interrupted expand-file
From: |
Michael Albinus |
Subject: |
bug#47205: 27.1.91; [bug] unexpected input event interrupted expand-file |
Date: |
Wed, 17 Mar 2021 12:51:23 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
LinSun via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs@gnu.org> writes:
Hi,
> There is a bug that `helm-projectile-find-file' is interrupted by an
> unexpected input event. After inspecting emacs code, I found it can
> simply reproduce by follow code, and the expected out is a path,
> while actually result is t:
>
> emacs --batch --eval "(message \"%s\" (catch 'input
> (let ((throw-on-input 'input)) (expand-file-name \"a.iso/b\"
> \"/\"))))"
>
> From the backtrace, it seems caused by `tramp-archive-file-name-handler’.
>
> How to avoid input event in this situation? Thanks
This input event is expected. You expand the file name "a.iso/b", which
is recognized as archive due to the ".iso/" extension. This triggers the
Tramp archive file name handler, which is implemented using D-Bus. The
input event is a D-Bus event, as you can see:
--8<---------------cut here---------------start------------->8---
# emacs --batch --eval "(message \"%s %s\" (catch 'input (let ((throw-on-input
'input)) (expand-file-name \"a.iso/b\" \"/\"))) last-input-event)"
=> t (dbus-event :system 2 2 org.freedesktop.DBus :1.527417 nil nil nil
dbus-call-method-handler)
--8<---------------cut here---------------end--------------->8---
Which problem do you have with D-Bus events?
Best regards, Michael.
- bug#47205: 27.1.91; [bug] unexpected input event interrupted expand-file, LinSun, 2021/03/16
- bug#47205: 27.1.91; [bug] unexpected input event interrupted expand-file,
Michael Albinus <=
- bug#47205: Re: bug#47205: 27.1.91; [bug] unexpected input event interrupted expand-file, Lin Sun, 2021/03/17
- bug#47205: 27.1.91; [bug] unexpected input event interrupted expand-file, Michael Albinus, 2021/03/17
- bug#47205: 27.1.91; [bug] unexpected input event interrupted expand-file, Eli Zaretskii, 2021/03/18
- bug#47205: 27.1.91; [bug] unexpected input event interrupted expand-file, LinSun, 2021/03/18
- bug#47205: 27.1.91; [bug] unexpected input event interrupted expand-file, Michael Albinus, 2021/03/18
- bug#47205: 27.1.91; [bug] unexpected input event interrupted expand-file, LinSun, 2021/03/18
- bug#47205: 27.1.91; [bug] unexpected input event interrupted expand-file, Michael Albinus, 2021/03/18