[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#8942: 23.3; emacsclient doesn't exit when called Emacs function is q
bug#8942: 23.3; emacsclient doesn't exit when called Emacs function is quited.
Mon, 04 Jul 2011 14:43:31 -0400
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)
>> So if you want to remove with-local-quit, you need to add a let-binding
>> of inhibit-quit to nil within your condition-case.
> No, I don't have a particular interest in removing with-local-quit. As
> I said, this
> === modified file 'lisp/server.el'
> --- lisp/server.el 2011-07-04 01:04:29 +0000
> +++ lisp/server.el 2011-07-04 18:04:02 +0000
> @@ -1153,7 +1153,7 @@
> "When done with a buffer, type
> (when (and frame (null tty-name))
> (server-unselect-display frame)))
> - (error (server-return-error proc err)))))
> + ((error quit) (server-return-error proc err)))))
> (defun server-return-error (proc err)
> is more than enough to fix the bug.
> The question is if you still want to show the user some feedback about
> the fact that he quit the emacsclient eval, and how to do so.
Ah, yes, that could be useful.
> (message "Quit") perhaps? :-)
OK, although we could also be a bit more informative that the quit
interrupted an emacsclient command, like "Quit emacsclient request".