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: Guillaume J. Charmes
Subject: bug#17857: 24.3; terminal issue on darwin/emacsclient
Date: Tue, 1 Jul 2014 12:02:40 -0400



-- 
 
Guillaume J. Charmes
about.me/guillaumecharmes
Guillaume J. Charmes on about.me
 


On Tue, Jul 1, 2014 at 11:48 AM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> 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).

Well, it is not :) (or at least does not work), likely already considered as suspended.
 

> enable xterm-mouse-mode,

If you mean `M-x xterm-mouse-mode' this should be trying to *disable*
xterm-mouse-mode.


As the xterm-mouse-mode does not work, yes, I try `M-x xterm-mouse-mode',
but in does not *disable* (nor *enable*), it just say `Terminal is currently suspended'
 
> 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))))


Thanks!, works fine (I mean, doesn't crash emacs anymore, but still no mouse)
 

-- Stefan


reply via email to

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