unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: kaushal.modi@gmail.com, 29067@debbugs.gnu.org
Subject: bug#29067: 26.0.90; "Invalid client frame" when doing save-buffers-kill-terminal
Date: Tue, 31 Oct 2017 09:41:57 +0100	[thread overview]
Message-ID: <59F83755.7020609@gmx.at> (raw)
In-Reply-To: <CAFyQvY1hvVPSBysVy8_q2261VsuBz1N24UPE4-e_+2jFQCGtEQ@mail.gmail.com>

 > Today I happened to run it with just emacs&. But then when I tried to quit
 > via save-buffers-kill-terminal, I got "Invalid client frame".
 >
 > In files.el, we have:
 >
 > (defun save-buffers-kill-terminal (&optional arg)
 >    "Offer to save each buffer, then kill the current connection.
 > If the current frame has no client, kill Emacs itself using
 > `save-buffers-kill-emacs'.
 >
 > With prefix ARG, silently save all file-visiting buffers, then kill.
 >
 > If emacsclient was started with a list of filenames to edit, then
 > only these files will be asked to be saved."
 >    (interactive "P")
 >    (if (frame-parameter nil 'client)
 >        (server-save-buffers-kill-terminal arg)
 >      (save-buffers-kill-emacs arg)))
 >
 > When I eval'ed (frame-parameter nil 'client), I got "Unprintable entity"!
 >
 > So server-save-buffers-kill-terminal gets called incorrectly instead of
 > save-buffers-kill-emacs when I actually do not have the emacsclient or
 > daemon running.
 >
 > I do not see this issue on emacs 25.3 using my same emacs config.

Evaluate (frame-parameter nil 'client) first after starting emacs with
the -Q option and then with your customizations and tell us what you
get.  In a non-client session this parameter should be always nil.

Thanks, martin





  parent reply	other threads:[~2017-10-31  8:41 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-30 17:10 bug#29067: 26.0.90; "Invalid client frame" when doing save-buffers-kill-terminal Kaushal Modi
2017-10-30 18:40 ` Eli Zaretskii
2017-10-30 18:49   ` Kaushal Modi
2017-10-31  8:41 ` martin rudalics [this message]
2017-11-01 13:32   ` Kaushal Modi
2017-11-01 13:40     ` Kaushal Modi
2017-11-01 13:51       ` Kaushal Modi
2017-11-01 17:43     ` martin rudalics
2017-11-01 18:52       ` Kaushal Modi
2017-11-02  9:51         ` martin rudalics

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=59F83755.7020609@gmx.at \
    --to=rudalics@gmx.at \
    --cc=29067@debbugs.gnu.org \
    --cc=kaushal.modi@gmail.com \
    /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).