all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Matthias Pfeifer <mpfeifer77@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: server-save-buffers-kill-terminal: Invalid client frame
Date: Fri, 28 Apr 2017 08:11:17 +0200	[thread overview]
Message-ID: <CAPzsW6iXpskzcGz0OdUx9K2mSP82vdm1uZPWzMo6Rz8o9yrxkA@mail.gmail.com> (raw)

Hello,

I must have broken something in my emacs init and cannot exactly recall how
I did it...

Emacs tells me "server-save-buffers-kill-terminal: Invalid client frame"
when i want to call save-buffers-kill-terminal. I don't know about this
function and have tried to find something similar using some search engine
with no luck. I have also edebugged the function
server-save-buffers-kill-terminal which looks like this:

(defun server-save-buffers-kill-terminal (arg)
  ;; Called from save-buffers-kill-terminal in files.el.
  "Offer to save each buffer, then kill the current client.
With ARG non-nil, 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."
  (let ((proc (frame-parameter nil 'client)))
    (cond ((eq proc 'nowait)
       ;; Nowait frames have no client buffer list.
       (if (cdr (frame-list))
           (progn (save-some-buffers arg)
              (delete-frame))
         ;; If we're the last frame standing, kill Emacs.
         (save-buffers-kill-emacs arg)))
      ((processp proc)
       (let ((buffers (process-get proc 'buffers)))
         ;; If client is bufferless, emulate a normal Emacs exit
         ;; and offer to save all buffers.  Otherwise, offer to
         ;; save only the buffers belonging to the client.
         (save-some-buffers
          arg (if buffers
              (lambda () (memq (current-buffer) buffers))
            t))
         (server-delete-client proc)))
      (t (error "Invalid client frame")))))

In this function (frame-parameter nil 'client) evaluates into "Unprintable
entity". So the cond form goes into the default case and signals an error
"Invalid client frame".

Question is: How can I fix it...

Matthias


             reply	other threads:[~2017-04-28  6:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-28  6:11 Matthias Pfeifer [this message]
2017-04-28  6:56 ` server-save-buffers-kill-terminal: Invalid client frame Eli Zaretskii
2017-05-04 12:12   ` Matthias Pfeifer

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=CAPzsW6iXpskzcGz0OdUx9K2mSP82vdm1uZPWzMo6Rz8o9yrxkA@mail.gmail.com \
    --to=mpfeifer77@gmail.com \
    --cc=help-gnu-emacs@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.