Max Nikulin <maniku...@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