From: "Guillaume J. Charmes" <guillaume@charmes.net>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 17857@debbugs.gnu.org
Subject: bug#17857: 24.3; terminal issue on darwin/emacsclient
Date: Tue, 1 Jul 2014 12:02:40 -0400 [thread overview]
Message-ID: <CAEzNxedVtjvi9fRvSogToOV4QAi502mGoZKvOd99TNmNyCGg3g@mail.gmail.com> (raw)
In-Reply-To: <jwvlhsdgk51.fsf-monnier+emacsbugs@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1638 bytes --]
--
Guillaume J. Charmes
about.me/guillaumecharmes
[image: Guillaume J. Charmes on about.me]
<http://about.me/guillaumecharmes>
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
>
[-- Attachment #2: Type: text/html, Size: 6169 bytes --]
next prev parent reply other threads:[~2014-07-01 16:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-26 16:28 bug#17857: 24.3; terminal issue on darwin/emacsclient Guillaume J. Charmes
2014-07-01 15:48 ` Stefan Monnier
2014-07-01 16:02 ` Guillaume J. Charmes [this message]
2014-07-01 16:12 ` Stefan Monnier
2014-07-01 19:55 ` Guillaume J. Charmes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAEzNxedVtjvi9fRvSogToOV4QAi502mGoZKvOd99TNmNyCGg3g@mail.gmail.com \
--to=guillaume@charmes.net \
--cc=17857@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).