* How to get rid of horrible GUI functionality
@ 2016-03-23 6:06 Davin Pearson
2016-03-23 6:55 ` Dale Snell
` (6 more replies)
0 siblings, 7 replies; 9+ messages in thread
From: Davin Pearson @ 2016-03-23 6:06 UTC (permalink / raw)
To: help-gnu-emacs
My new computer is a laptop and from time to time my fingers brush against the mouse sensor pad, causing the following window to appear:
Change Default Buffer Size
Change Buffer Font
Increase Text Size
Decrease Text Size
Reset to Default
I want to kill such pop up windows as it annoys me when I am trying to use GNU Emacs to do useful work.
Does anyone know how to go about disabling the mouse sensor pad, given that I have purchased an old fashioned mouse for GUI work.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to get rid of horrible GUI functionality
2016-03-23 6:06 How to get rid of horrible GUI functionality Davin Pearson
@ 2016-03-23 6:55 ` Dale Snell
2016-03-23 7:21 ` Yuri Khan
` (5 subsequent siblings)
6 siblings, 0 replies; 9+ messages in thread
From: Dale Snell @ 2016-03-23 6:55 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1001 bytes --]
On Tue, 22 Mar 2016 23:06:36 -0700 (PDT), in message
cffc8040-b5aa-4c96-97b2-ab5729d1e6cf@googlegroups.com, Davin Pearson
wrote:
> My new computer is a laptop and from time to time my fingers brush
> against the mouse sensor pad, causing the following window to appear:
>
> Change Default Buffer Size
> Change Buffer Font
> Increase Text Size
> Decrease Text Size
> Reset to Default
>
> I want to kill such pop up windows as it annoys me when I am trying
> to use GNU Emacs to do useful work.
>
> Does anyone know how to go about disabling the mouse sensor pad,
> given that I have purchased an old fashioned mouse for GUI work.
Hi Davin,
Your best bet is probably to boot into your laptop's BIOS and turn
off the trackpad from there. That's what I had to do with my old
IBM Thinkpad.
Hope this helps.
--Dale
--
"Shambling, drooling, bent on destruction and biting people's
heads off... it's either zombies or upper management." -- Ebenezer
Dusk, Esquire
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to get rid of horrible GUI functionality
2016-03-23 6:06 How to get rid of horrible GUI functionality Davin Pearson
2016-03-23 6:55 ` Dale Snell
@ 2016-03-23 7:21 ` Yuri Khan
2016-03-23 10:58 ` tomas
` (4 subsequent siblings)
6 siblings, 0 replies; 9+ messages in thread
From: Yuri Khan @ 2016-03-23 7:21 UTC (permalink / raw)
To: Davin Pearson; +Cc: help-gnu-emacs@gnu.org
On Wed, Mar 23, 2016 at 12:06 PM, Davin Pearson <davin.pearson@gmail.com> wrote:
> My new computer is a laptop and from time to time my fingers brush against the mouse sensor pad, causing the following window to appear:
>
> Change Default Buffer Size
> Change Buffer Font
> Increase Text Size
> Decrease Text Size
> Reset to Default
This menu appears when you shift+click a buffer. If you never use it, unbind it:
(global-set-key [S-down-mouse-1] 'ignore)
> I want to kill such pop up windows as it annoys me when I am trying to use GNU Emacs to do useful work.
>
> Does anyone know how to go about disabling the mouse sensor pad, given that I have purchased an old fashioned mouse for GUI work.
That would depend on your operating system and desktop environment.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to get rid of horrible GUI functionality
2016-03-23 6:06 How to get rid of horrible GUI functionality Davin Pearson
2016-03-23 6:55 ` Dale Snell
2016-03-23 7:21 ` Yuri Khan
@ 2016-03-23 10:58 ` tomas
2016-03-23 18:31 ` Bob Proulx
2016-03-24 9:08 ` Phillip Lord
` (3 subsequent siblings)
6 siblings, 1 reply; 9+ messages in thread
From: tomas @ 2016-03-23 10:58 UTC (permalink / raw)
To: Davin Pearson; +Cc: help-gnu-emacs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, Mar 22, 2016 at 11:06:36PM -0700, Davin Pearson wrote:
> My new computer is a laptop and from time to time my fingers brush against the mouse sensor pad, causing the following window to appear:
>
> Change Default Buffer Size
> Change Buffer Font
> Increase Text Size
> Decrease Text Size
> Reset to Default
>
> I want to kill such pop up windows as it annoys me when I am trying to use GNU Emacs to do useful work.
I'm assuming you are running on some variant of Gnu/Linux or *BSD.
Apart from other's suggestions, which seem fine, if you are using a
touchpad driven by the Synaptics driver (which seems to be pretty
common these days), there's `synclient' which allows, among other things to
switch on/off a synaptics touchpad.
I know I've seen some use it to disable the touchpad when any key
was pressed, to re-enable it . Here's a link (a program called
syndaemon does the trick):
<https://wiki.archlinux.org/index.php/Touchpad_Synaptics#Disable_trackpad_while_typing>
So you can tune the behaviour of your touchpad (from completely off
to less obtrusive), and that'll work OS-wide, not only for Emacs
(I know, I know ;-)
regards
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlbydsgACgkQBcgs9XrR2kbkGACcDEtFBsLA7//BcLwuf+/mywJ0
NPYAn3BxA40P+vs0HW3IOJ3K5MISHZQK
=YVZj
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to get rid of horrible GUI functionality
2016-03-23 10:58 ` tomas
@ 2016-03-23 18:31 ` Bob Proulx
0 siblings, 0 replies; 9+ messages in thread
From: Bob Proulx @ 2016-03-23 18:31 UTC (permalink / raw)
To: Davin Pearson, help-gnu-emacs
tomas@tuxteam.de wrote:
> Davin Pearson wrote:
> > My new computer is a laptop and from time to time my fingers brush
> > against the mouse sensor pad, causing the following window to
> > appear:
> >...
> > I want to kill such pop up windows as it annoys me when I am
> > trying to use GNU Emacs to do useful work.
>...
> Apart from other's suggestions, which seem fine, if you are using a
> touchpad driven by the Synaptics driver (which seems to be pretty
> common these days), there's `synclient' which allows, among other things to
> switch on/off a synaptics touchpad.
Along these same lines I use the 'syndaemon' to turn off the touchpad
when I don't need it. This is a halfway config that doesn't
completely disable the touchpad but doesn't completely allow it to be
on all of the time and annoy me either. Because I also drag my palm
across the touchpad and zinging the touchpad annoying. When typing it
will disable the touchpad but when not typing the touchpad can be used
normally.
syndaemon -i 2 -K -p $HOME/var/run/syndaemon.pid -d
-i 2 is the default 2 second idle before enabling touchpad
-K ignore shift, alt, control, combinations
-p create a pid file
-d run as a daemon
My full config that I share between multiple devices and software
distributions is the following. First it determines if I have the
syndaemon installed and does nothing if it is not there. Then it
launches the daemon with a 20 second idle delay before enabling it.
(20 seconds because I often pause a while to think.) I also instruct
it to keep a pid file in my home. But because it doesn't leave the
pid file with the proper permissions I immediately chmod it as I
desire so that it isn't world writable.
which syndaemon >/dev/null \
&& syndaemon -i 20 -K -p $HOME/var/run/syndaemon.pid -d \
&& chmod go-w $HOME/var/run/syndaemon.pid
Since I am very old-school I put this in a very old-school config file
that I won't mention because it is unlikely you are doing that way.
But if you put that in your .xsessionrc file I believe that is most
likely the best place for it for most people.
Bob
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to get rid of horrible GUI functionality
2016-03-23 6:06 How to get rid of horrible GUI functionality Davin Pearson
` (2 preceding siblings ...)
2016-03-23 10:58 ` tomas
@ 2016-03-24 9:08 ` Phillip Lord
2016-03-28 3:14 ` David Hansen
` (2 subsequent siblings)
6 siblings, 0 replies; 9+ messages in thread
From: Phillip Lord @ 2016-03-24 9:08 UTC (permalink / raw)
To: Davin Pearson; +Cc: help-gnu-emacs
It's better handled at OS level, if possible. Is there not a "disable
track-pad when typing" option? These work seamlessly for me.
Phil
Davin Pearson <davin.pearson@gmail.com> writes:
> My new computer is a laptop and from time to time my fingers brush against the
> mouse sensor pad, causing the following window to appear:
>
> Change Default Buffer Size
> Change Buffer Font
> Increase Text Size
> Decrease Text Size
> Reset to Default
>
> I want to kill such pop up windows as it annoys me when I am trying to use GNU
> Emacs to do useful work.
>
> Does anyone know how to go about disabling the mouse sensor pad, given that I
> have purchased an old fashioned mouse for GUI work.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to get rid of horrible GUI functionality
2016-03-23 6:06 How to get rid of horrible GUI functionality Davin Pearson
` (3 preceding siblings ...)
2016-03-24 9:08 ` Phillip Lord
@ 2016-03-28 3:14 ` David Hansen
2016-04-06 2:12 ` Davin Pearson
2016-04-07 22:08 ` Pascal J. Bourguignon
6 siblings, 0 replies; 9+ messages in thread
From: David Hansen @ 2016-03-28 3:14 UTC (permalink / raw)
To: help-gnu-emacs
Davin Pearson <davin.pearson@gmail.com> writes:
> My new computer is a laptop and from time to time my fingers brush
> against the mouse sensor pad
If you are on GNU/Linux or similar:
(defun turn-off-mouse (&optional _frame)
(interactive)
(let ((default-directory "~"))
(call-process "synclient" nil nil nil "TouchpadOff=1")))
(defun turn-on-mouse (&optional _frame)
(interactive)
(let ((default-directory "~"))
(call-process "synclient" nil nil nil "TouchpadOff=0")))
(add-hook 'focus-in-hook #'turn-off-mouse)
(add-hook 'focus-out-hook #'turn-on-mouse)
(add-hook 'delete-frame-functions #'turn-on-mouse)
(add-hook 'kill-emacs-hook #'turn-on-mouse)
(global-set-key (kbd "C-c m") #'turn-on-mouse)
David
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to get rid of horrible GUI functionality
2016-03-23 6:06 How to get rid of horrible GUI functionality Davin Pearson
` (4 preceding siblings ...)
2016-03-28 3:14 ` David Hansen
@ 2016-04-06 2:12 ` Davin Pearson
2016-04-07 22:08 ` Pascal J. Bourguignon
6 siblings, 0 replies; 9+ messages in thread
From: Davin Pearson @ 2016-04-06 2:12 UTC (permalink / raw)
To: help-gnu-emacs
On Wednesday, March 23, 2016 at 7:06:39 PM UTC+13, Davin Pearson wrote:
> My new computer is a laptop and from time to time my fingers brush against the mouse sensor pad, causing the following window to appear:
>
> Change Default Buffer Size
> Change Buffer Font
> Increase Text Size
> Decrease Text Size
> Reset to Default
>
> I want to kill such pop up windows as it annoys me when I am trying to use GNU Emacs to do useful work.
>
> Does anyone know how to go about disabling the mouse sensor pad, given that I have purchased an old fashioned mouse for GUI work.
Thank you everyone out there who helped me to get rid of the horrible pop-up
windows and help with turning off the mouse touch pad. My computer is so much ore usable now.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to get rid of horrible GUI functionality
2016-03-23 6:06 How to get rid of horrible GUI functionality Davin Pearson
` (5 preceding siblings ...)
2016-04-06 2:12 ` Davin Pearson
@ 2016-04-07 22:08 ` Pascal J. Bourguignon
6 siblings, 0 replies; 9+ messages in thread
From: Pascal J. Bourguignon @ 2016-04-07 22:08 UTC (permalink / raw)
To: help-gnu-emacs
How to get rid of horrible GUI functionality:
(mapc (lambda (f) (when (fboundp (car f)) (apply (function funcall) f)))
'((scroll-bar-mode -1)
(menu-bar-mode -1)
(tool-bar-mode -1)
(transient-mark-mode +1)
(goto-address-mode +1)))
Davin Pearson <davin.pearson@gmail.com> writes:
> My new computer is a laptop and from time to time my fingers brush
> against the mouse sensor pad, causing the following window to appear:
>
> Change Default Buffer Size
> Change Buffer Font
> Increase Text Size
> Decrease Text Size
> Reset to Default
>
> I want to kill such pop up windows as it annoys me when I am trying to use GNU Emacs to do useful work.
>
> Does anyone know how to go about disabling the mouse sensor pad, given
> that I have purchased an old fashioned mouse for GUI work.
In general, when you have problems like that, you should use C-h k
C-h k followed by the key or mouse button or trackpad anything.
This will show you
1- what key sym is generated by the event you provide,
2- what command is bound to that key.
So now you can bind this key to 'ignore or some other useful command.
For example, I have in my .emacs:
(loop for key in (list (kbd "<mouse-5>") (kbd "C-<mouse-5>") (kbd "S-<mouse-5>")
(kbd "<mouse-4>") (kbd "C-<mouse-4>") (kbd "S-<mouse-4>"))
do (global-set-key key 'ignore))
--
__Pascal Bourguignon__ http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2016-04-07 22:08 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-23 6:06 How to get rid of horrible GUI functionality Davin Pearson
2016-03-23 6:55 ` Dale Snell
2016-03-23 7:21 ` Yuri Khan
2016-03-23 10:58 ` tomas
2016-03-23 18:31 ` Bob Proulx
2016-03-24 9:08 ` Phillip Lord
2016-03-28 3:14 ` David Hansen
2016-04-06 2:12 ` Davin Pearson
2016-04-07 22:08 ` Pascal J. Bourguignon
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).