unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* server-save-buffers-kill-terminal: Invalid client frame
@ 2017-04-28  6:11 Matthias Pfeifer
  2017-04-28  6:56 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Matthias Pfeifer @ 2017-04-28  6:11 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-05-04 12:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-28  6:11 server-save-buffers-kill-terminal: Invalid client frame Matthias Pfeifer
2017-04-28  6:56 ` Eli Zaretskii
2017-05-04 12:12   ` Matthias Pfeifer

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).