unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: 47205@debbugs.gnu.org
Cc: lin.sun@zoom.us
Subject: bug#47205: 27.1.91; [bug] unexpected input event interrupted expand-file
Date: Wed, 17 Mar 2021 12:51:23 +0100	[thread overview]
Message-ID: <87blbic81w.fsf@gmx.de> (raw)
In-Reply-To: <91C87C24-0236-45D7-B448-C6C631BF49F1@hxcore.ol> (LinSun via's message of "Wed, 17 Mar 2021 11:36:47 +0800")

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.





  reply	other threads:[~2021-03-17 11:51 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-17  3:36 bug#47205: 27.1.91; [bug] unexpected input event interrupted expand-file LinSun via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-03-17 11:51 ` Michael Albinus [this message]
2021-03-17 15:45 ` bug#47205: " Lin Sun via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-03-17 17:41   ` Michael Albinus
2021-03-18  0:27     ` LinSun via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-03-18  3:42       ` LinSun via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-03-18  4:31         ` LinSun via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-03-18  8:21       ` Eli Zaretskii
2021-03-18 10:02         ` LinSun via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-03-18 10:13           ` Michael Albinus
2021-03-18 10:21             ` LinSun via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-03-18 10:07         ` Michael Albinus
2021-03-18 10:18           ` LinSun via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-03-18 10:21           ` Eli Zaretskii
2021-03-18 11:45             ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87blbic81w.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=47205@debbugs.gnu.org \
    --cc=lin.sun@zoom.us \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).