emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] org-open-file immediately termininates when calling xdg-open t


From: Ihor Radchenko
Subject: Re: [BUG] org-open-file immediately termininates when calling xdg-open that calls emacsclient
Date: Fri, 27 May 2022 14:19:39 +0800

Max Nikulin <manikulin@gmail.com> writes:

> On 26/05/2022 21:24, Ihor Radchenko wrote:
>> Max Nikulin writes:
>> 
>> Try the following:
>> 
>> (start-process-shell-command "1" nil "emacsclient -c ~/.bashrc")
>> (let ((process-connection-type nil))
>>    (start-process-shell-command "1" nil "emacsclient -c ~/.bashrc"))
>> 
>> The second command will cause flickering, though opens the file in the
>> same frame (not the new as one would expect from -c switch).
>
> Both commands creates a new frame in Emacs-26 and Emacs-27. I have not 
> tried 28 yet.

Thanks for testing! It appears that the problem was triggered by my
config in some very unexpected way.

I managed to narrow down the reproducer with the following minimal
configuration:

~/.emacs.d/init.el
-----------------------
(require 'server)
(unless (server-running-p) (server-start))
(setenv "DISPLAY" ":0.0")
(define-key input-decode-map (kbd "C-[") [C-\[])
------------------------------

With this exact init.el, trying to run
(let ((process-connection-type nil))
  (start-process-shell-command "1" nil "xdg-open ~/.bashrc"))

triggers flickering/Emacs crash. I am pretty sure that it is some kind
of weird Emacs bug.

Best,
Ihor



reply via email to

[Prev in Thread] Current Thread [Next in Thread]