From: Ian Zimmerman <itz@buug.org>
To: help-gnu-emacs@gnu.org
Subject: Re: How to switch off the touchpad when Emacs window is active under Linux?
Date: Mon, 24 Aug 2015 12:14:51 -0700 [thread overview]
Message-ID: <20150824190903.3079.0B60605E@ahiker.mooo.com> (raw)
In-Reply-To: <18033119.faXLECKoLl@linux-k2bd.site>
On 2015-08-24 21:02 +0200, AW wrote:
> Synclient on this notebook works, but this function doesn't:
> (defun turn-off-mouse (&optional frame)
> (interactive)
> (let ((inhibit-message t) (default-directory "~"))
> (shell-command "synclient TouchpadOff=1")))
>
> (defun turn-on-mouse (&optional frame)
> (interactive)
> (let ((inhibit-message t) (default-directory "~"))
> (shell-command "synclient 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)
The variable inhibit-message doesn't exist in my emacs (probably a
recent addition), but I'm guessing that it discards any output from the
subprocess. I would leave it out so you see what prevents synclient
from working.
Also, I don't see why changing default-directory should be necessary,
either.
--
Please *no* private copies of mailing list or newsgroup messages.
Rule 420: All persons more than eight miles high to leave the court.
next prev parent reply other threads:[~2015-08-24 19:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-24 19:02 How to switch off the touchpad when Emacs window is active under Linux? AW
2015-08-24 19:14 ` Ian Zimmerman [this message]
2015-08-24 19:51 ` AW
[not found] ` <mailman.28.1440443703.28410.help-gnu-emacs@gnu.org>
2015-08-24 19:37 ` Pascal J. Bourguignon
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=20150824190903.3079.0B60605E@ahiker.mooo.com \
--to=itz@buug.org \
--cc=help-gnu-emacs@gnu.org \
/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.
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).