From: "Francesco Potortì" <Potorti@isti.cnr.it>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 27901@debbugs.gnu.org
Subject: bug#27901: 25.1; x-win-suspend-error: Cannot suspend Emacs while running under X
Date: Sat, 05 Aug 2017 21:03:36 +0200 [thread overview]
Message-ID: <E1de4MK-0008Lc-Gq@tucano.isti.cnr.it> (raw)
In-Reply-To: <83y3qxua7g.fsf@gnu.org>
>> Date: Sat, 05 Aug 2017 20:27:00 +0200
>> From: Francesco Potortì <Potorti@isti.cnr.it>
>> Cc: 27901@debbugs.gnu.org
>>
>> >> The terminal frame is running inside a terminal under Screen. When I
>> >> access it remotely, I have no access to the GUI. I cannot suspend Emacs
>> >> because there is a graphical frame alive, and I cannot close it because
>> >> I do not know how, and the only way I can think of makes the terminal
>> >> frame unusable (which I suspect is a bug).
>> >
>> >What does frame-list return?
>>
>> (frame-list)
>> (#<frame emacs@tucano.isti.cnr.it 0x116995f8> #<frame F1 0xc41680>)
>>
>> (next-frame)
>> #<frame F1 0xc41680>
>>
>> (delete-frame (next-frame))
>> ^^
>> shows the bug (I won't do it now because I am working remotely)
>
>The F1 frame is a TTY frame, so it sounds like you are trying to
>delete the frame through which you are communicating with Emacs?
Wow, that's it, thanks! I had not realised that (next-frame) is the
wrong way to choose a frame, because it looks for frames in the same
terminal!
I was looking for a function that gives me the same frame that C-x 5 o
switches to.
>And do you see the same problem when both frames are on the same
>machine?
Yes, I only tried those things when on the same machine, but now the
reason looks obvious to me: I was just deleting the frame I was using,
because (next-frame) returns that, so there is no bug here.
>> A shell inside Emacs does not have the environment I am looking for
>
>Why not?
Because I want a real terminal, not a shell buffer, and I do not want to
use a terminal emulator inside Emacs. But this is out of scope.
Ok, so now the problem reduces to:
- find a simple recipe for deleting all GUI frames from a terminal frame
- add this recipe to the error message mentioned at the start of this
bug report
Thanks so far
prev parent reply other threads:[~2017-08-05 19:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-01 9:01 bug#27901: 25.1; x-win-suspend-error: Cannot suspend Emacs while running under X Francesco Potortì
2017-08-05 9:02 ` Eli Zaretskii
2017-08-05 9:13 ` Francesco Potortì
2017-08-05 9:38 ` Eli Zaretskii
2017-08-05 11:44 ` Francesco Potortì
2017-08-05 12:00 ` Eli Zaretskii
2017-08-05 17:39 ` Francesco Potortì
2017-08-05 18:17 ` Eli Zaretskii
2017-08-05 18:27 ` Francesco Potortì
2017-08-05 18:43 ` Eli Zaretskii
2017-08-05 19:01 ` Eli Zaretskii
2017-08-05 19:03 ` Francesco Potortì [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1de4MK-0008Lc-Gq@tucano.isti.cnr.it \
--to=potorti@isti.cnr.it \
--cc=27901@debbugs.gnu.org \
--cc=eliz@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.