Subject: Re: bug#34648: 26.1; emacs-client: gpm-mouse rejected at daemon launch

From: Eli Zaretskii <[email-masked]>
Date: Tue, 26 Feb 2019 17:48:49 +0200

> Date: Tue, 26 Feb 2019 00:12:07 +0000 (UTC)
> From: Luc Pierard de Maujouy <[email-masked]>
> Cc: "[email-masked]" <[email-masked]>
> 
> I've just tried in .emacs:
> (add-hook 'after-make-frame-functions
>       (lambda (frame)
>         (when (display-graphic-p frame)  <<<<<<<<<<<<<<<<<
>           (gpm-mouse-mode t))))
> Which does nothing.

The display-graphic-p test is wrong: you want GPM on TTY frames, not
on GUI frames.

> Switching from when to unless trigger the initial error message.

Parse error.