|From:||Guillaume J. Charmes|
|Subject:||bug#17857: 24.3; terminal issue on darwin/emacsclient|
|Date:||Tue, 1 Jul 2014 12:02:40 -0400|
> Simple case: Start emacs server, start a client, enable
> xterm-mouse-mode, ctrl-z, open an other client,
At this point, xterm-mouse-mode should work already (it's enabled globally).
> enable xterm-mouse-mode,
If you mean `M-x xterm-mouse-mode' this should be trying to *disable*
> emacs will tell you that the terminal is suspended and will refuse to
> enable it.
Right, that's because it tries to disable it in all terminals. Indeed,
we have a problem here. The disabling (or enabling for that matter)
should not burp on suspended terminals.
> (xterm-mouse-mode t) in .emacs will fail with emacsclient, as a
Good point, we should make it work.
> (add-hook 'after-make-frame-functions '
> (lambda (frame) (unless window-system (xterm-mouse-mode))))
> which works fine.
[ Please don't quote your lambdas. ]
In the mean time, you can try
(unless (or window-system xterm-mouse-mode) (xterm-mouse-mode))))
|[Prev in Thread]||Current Thread||[Next in Thread]|