all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacsclient -c: Mouse jumps to new frame
@ 2011-08-02  7:04 Stefan
  2011-08-02 20:08 ` Drew Adams
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan @ 2011-08-02  7:04 UTC (permalink / raw)
  To: help-gnu-emacs

Hi, I'm having two problems with newly created frames when running ‘emacsclient
-c <file>’:


-1-
Situation: A new frame is created (as intended), and the mouse jumps to the
top-right corner of the new frame.

I'd like emacs to leave my mouse where it is, because quite often I continue
typing in the terminal, and don't want to be bothered wich having to change the
focus.


-2-
Situation: When a buffer visiting the file already exists, a new frame is
created (as intended). If the existing buffer was shown in /another/ frame, the
/new/ frame contains *scratch* (basically useless), and the mouse jumps to the
/old/ frame. If the existing buffer was not shown in any frame, the new frame
displays that buffer.

I'd like the new frame to display the existing buffer in any case. I would also
like to see point at the beginning of the file.


I'm pretty sure these things can be configured, but I could not find the right
place. Any suggestions?


Thank you!
Stefan


-- 
Stefan Klinger                                      o/klettern
                                                    /\/  bis zum
send plaintext only - max size 32kB - no spam         \   Abfallen
http://stefan-klinger.de



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

* RE: emacsclient -c: Mouse jumps to new frame
  2011-08-02  7:04 emacsclient -c: Mouse jumps to new frame Stefan
@ 2011-08-02 20:08 ` Drew Adams
  2011-08-03 11:20   ` Gregor Zattler
  0 siblings, 1 reply; 3+ messages in thread
From: Drew Adams @ 2011-08-02 20:08 UTC (permalink / raw)
  To: 'Stefan', help-gnu-emacs

> Situation: A new frame is created (as intended), and the 
> mouse jumps to the top-right corner of the new frame.
> 
> I'd like emacs to leave my mouse where it is, because quite 
> often I continue typing in the terminal, and don't want to be
> bothered wich having to change the focus.

1. Sounds reminiscent of `mouse-avoidance-mode'.
See file `avoid.el'.  Perhaps you are using this mode?

2. Googling shows this, which might also be pertinent ("emacsclient plays games
with the mouse... Emacsclient switches desktops and warps the mouse pointer on
start."):
https://bugs.launchpad.net/ubuntu/+source/emacs23/+bug/589035




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

* Re: emacsclient -c: Mouse jumps to new frame
  2011-08-02 20:08 ` Drew Adams
@ 2011-08-03 11:20   ` Gregor Zattler
  0 siblings, 0 replies; 3+ messages in thread
From: Gregor Zattler @ 2011-08-03 11:20 UTC (permalink / raw)
  To: help-gnu-emacs

Hi Stefan, Drew,
* Drew Adams <drew.adams@oracle.com> [02. Aug. 2011]:
>> Situation: A new frame is created (as intended), and the 
>> mouse jumps to the top-right corner of the new frame.
>> 
>> I'd like emacs to leave my mouse where it is, because quite 
>> often I continue typing in the terminal, and don't want to be
>> bothered wich having to change the focus.
> 
> 1. Sounds reminiscent of `mouse-avoidance-mode'.
> See file `avoid.el'.  Perhaps you are using this mode?

Sounds like focus-follows-mouse see bugs 1980, 7269 to me.
Perhaps Stefans focus-follows-mouse isn't nil?


M-x customize-save-variable focus-follows-mouse n

(workaround mentioned by Anders Kaseorg in the discussion of the
aforementioned bug 7269)


HTH, Gregor
-- 
 -... --- .-. . -.. ..--.. ...-.-



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

end of thread, other threads:[~2011-08-03 11:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-02  7:04 emacsclient -c: Mouse jumps to new frame Stefan
2011-08-02 20:08 ` Drew Adams
2011-08-03 11:20   ` Gregor Zattler

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.