bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#17857: 24.3; terminal issue on darwin/emacsclient


From: Stefan Monnier
Subject: bug#17857: 24.3; terminal issue on darwin/emacsclient
Date: Tue, 01 Jul 2014 11:48:36 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

> 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*
xterm-mouse-mode.

> 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

  (add-hook 'after-make-frame-functions
    (lambda (frame)
      (unless (or window-system xterm-mouse-mode) (xterm-mouse-mode))))


-- Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]