all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#17857: 24.3; terminal issue on darwin/emacsclient
@ 2014-06-26 16:28 Guillaume J. Charmes
  2014-07-01 15:48 ` Stefan Monnier
  2014-07-01 16:12 ` Stefan Monnier
  0 siblings, 2 replies; 5+ messages in thread
From: Guillaume J. Charmes @ 2014-06-26 16:28 UTC (permalink / raw)
  To: 17857

[-- Attachment #1: Type: text/plain, Size: 3939 bytes --]

Hello,

On OSX, with emacs 24.3, the terminal management as issue with
emacsclient.

Simple case: Start emacs server, start a client, enable
xterm-mouse-mode, ctrl-z, open an other client, enable xterm-mouse-mode,
emacs will tell you that the terminal is suspended and will refuse to
enable it.

Very anoying to be able to have the mouse support only on one instance
of emacsclient.

Where it start to be a real blocking issue:

(xterm-mouse-mode t) in .emacs will fail with emacsclient, as a
workaround, I use this:
(add-hook 'after-make-frame-functions '
  (lambda (frame) (unless window-system (xterm-mouse-mode))))
which works fine.

However, due to the suspended bug, if I have one
emacsclient suspended, I any new emacsclient will crash at sartup and
mess with the terminal.


In GNU Emacs 24.3.1 (x86_64-apple-darwin13.1.0)
of 2014-06-02 on Guillaumes-MacBook-Pro.local
Configured using:
`configure '--prefix=/usr/local/Cellar/emacs/24.3' '--without-dbus'
'--enable-locallisppath=/usr/local/share/emacs/site-lisp'
'--infodir=/usr/local/Cellar/emacs/24.3/share/info/emacs'
'--without-gnutls' '--without-x' 'CC=clang''

Important settings:
  value of $LC_CTYPE: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  xterm-mouse-mode: t
  show-paren-mode: t
  winner-mode: t
  global-hl-line-mode: t
  global-linum-mode: t
  linum-mode: t
  global-flycheck-mode: t
  global-auto-complete-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
C-x C-x 3 DEL DEL C-x 3 ESC [ < 0 ; 3 2 0 ; 5 2 M ESC
[ < 0 ; 3 2 0 ; 5 2 m ESC [ < 0 ; 2 1 5 ; 3 4 M ESC
[ < 0 ; 2 1 5 ; 3 4 m ESC [ < 0 ; 1 6 2 ; 2 9 M ESC
[ < 0 ; 1 6 1 ; 2 9 m ESC [ < 0 ; 1 4 4 ; 2 7 M ESC
[ < 0 ; 1 4 4 ; 2 7 m ESC x r e p o TAB r TAB RET

Recent messages:
("emacs")
Starting Emacs daemon.
Loading term/xterm...done
a has auto save data; consider M-x recover-this-file
Loading vc-git...done
When done with a buffer, type C-x #
delete-backward-char: Beginning of buffer
Making completion list...

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message format-spec rfc822 mml mml-sec
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils vc-git image
xt-mouse server advice advice-preload solarized-dark-theme
solarized-definitions paren ido winner hl-line linum flycheck pcase
easy-mmode find-func help-mode easymenu rx f dash s jka-compr sh-script
smie executable package compile comint regexp-opt ansi-color tool-bar
auto-complete-config go-autocomplete auto-complete popup go-eldoc
thingatpt go-mode cl-macs gv derived url url-proxy url-privacy
url-expand url-methods url-history url-cookie url-domsuf url-util
mailcap find-file ffap url-parse auth-source eieio byte-opt bytecomp
byte-compile cconv gnus-util time-date mm-util mail-prsvr password-cache
url-vars etags ring cl eldoc help-fns cl-lib edmacro kmacro go-mode-load
mouse ediff-hook vc-hooks lisp-float-type tabulated-list newcomment
lisp-mode register page menu-bar rfn-eshadow timer jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process multi-tty emacs)


—
Guillaume J. Charmes

[-- Attachment #2: Type: text/html, Size: 5269 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#17857: 24.3; terminal issue on darwin/emacsclient
  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
  2014-07-01 16:12 ` Stefan Monnier
  1 sibling, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2014-07-01 15:48 UTC (permalink / raw)
  To: Guillaume J. Charmes; +Cc: 17857

> 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





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#17857: 24.3; terminal issue on darwin/emacsclient
  2014-07-01 15:48 ` Stefan Monnier
@ 2014-07-01 16:02   ` Guillaume J. Charmes
  0 siblings, 0 replies; 5+ messages in thread
From: Guillaume J. Charmes @ 2014-07-01 16:02 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 17857

[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#17857: 24.3; terminal issue on darwin/emacsclient
  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:12 ` Stefan Monnier
  2014-07-01 19:55   ` Guillaume J. Charmes
  1 sibling, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2014-07-01 16:12 UTC (permalink / raw)
  To: Guillaume J. Charmes; +Cc: 17857-done

Version:24.5

> (xterm-mouse-mode t) in .emacs will fail with emacsclient, as a

Actually, it shouldn't (at least it doesn't with neither the emacs-24 nor
the trunk code).

I added code into trunk to ignore the suspended terminals's error.


        Stefan





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#17857: 24.3; terminal issue on darwin/emacsclient
  2014-07-01 16:12 ` Stefan Monnier
@ 2014-07-01 19:55   ` Guillaume J. Charmes
  0 siblings, 0 replies; 5+ messages in thread
From: Guillaume J. Charmes @ 2014-07-01 19:55 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 17857-done

[-- Attachment #1: Type: text/plain, Size: 761 bytes --]

I confirm that the trunk for 24.4 works. For the .emacs mouse mode and the
suspended emacsclient.

Just FYI, the drag fail with `Wrong type argument: symbolp,
"drag-mouse-1"', but I guess it is because of trunk. (Version emacsclient
24.4.50, revno: 117458)

Regards,

-- 

Guillaume J. Charmes
about.me/guillaumecharmes
[image: Guillaume J. Charmes on about.me]
   <http://about.me/guillaumecharmes>


On Tue, Jul 1, 2014 at 12:12 PM, Stefan Monnier <monnier@iro.umontreal.ca>
wrote:

> Version:24.5
>
> > (xterm-mouse-mode t) in .emacs will fail with emacsclient, as a
>
> Actually, it shouldn't (at least it doesn't with neither the emacs-24 nor
> the trunk code).
>
> I added code into trunk to ignore the suspended terminals's error.
>
>
>         Stefan
>

[-- Attachment #2: Type: text/html, Size: 4109 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-07-01 19:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2014-07-01 16:12 ` Stefan Monnier
2014-07-01 19:55   ` Guillaume J. Charmes

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.