From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.help Subject: Re: Best strategy to disable a touchpad on a laptop when in Emacs? Date: Wed, 31 Mar 2021 08:05:54 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15530"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (windows-nt) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 31 08:06:31 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lRTzr-0003vx-L3 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 31 Mar 2021 08:06:31 +0200 Original-Received: from localhost ([::1]:57226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRTzq-0008Iu-NC for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 31 Mar 2021 02:06:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33532) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRTzN-0008Ih-TA for help-gnu-emacs@gnu.org; Wed, 31 Mar 2021 02:06:02 -0400 Original-Received: from mail-oln040092069054.outbound.protection.outlook.com ([40.92.69.54]:51258 helo=EUR02-VE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRTzK-00068Y-So for help-gnu-emacs@gnu.org; Wed, 31 Mar 2021 02:06:01 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KCVIkfb0aHVWPMBBOLJHGjGAI3Du7ugYXrWVri9UoHf7Ba3ONAMmFW9LzEllN40cR9iDGTYatQ1rDUtqcZTSiUUDHMqiTl5BfW8uEPOINCAF4jhm1agiSGPnNzNDi3ouAq9MVWzqb16IFu/LXygA3w0VEIYxAyikzw4p+VHlCTn0dirkzzRX7ST+qykGSOuuAXAcqb9/3WSut6RiHG2qBjPzd7FEUY3EZTGx2AG5oG3abjqkQXrRmZeAqW8r/dR6MJWprhd9ZicdtzuiFLn/D0EVEToleRUzCfNisDFOIouChwkk/FDA6/7QMnwlZrcnB8P1Yiwu/IfUPhgup+tx5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ksYsyr6fn0cIzwTA+ju16jCFbUCjmdB8EdnvaCrmAcY=; b=LBEORoWO2cwDo5nyWpWtH3eZLSx9QbwFP/gXw6l+0MGoCSD1Ktwi1sJv8dM63WOMKl15LvmWPDlr6KhzZ6seY9sABlC5KxfR0lXd6fVzY99x/c2ZlazYyubLFjOUqfu1S6crCBi1KWJYUfTsy2W7FH0fiz3fVwAzOgseTn3aX9BVO2vFfnr3NItmT9wFp9fvZ8FJpTBVrV44wuk0DPw0c4WLGGAeKL+JxjAGCANcr4G2i7F+gYrEfBcQDh/SejS68Q9l8+FDBM6u6OCH2H4BJzezPJ31EsJnUJ8AMw2cJe/bfqdY9cB+Q+mREZtwL7dUAECtLPMBq0metYCA4MSbhg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ksYsyr6fn0cIzwTA+ju16jCFbUCjmdB8EdnvaCrmAcY=; b=C7U0AyOWDsq93BJ77SABeJGLMUC+SXZrpwjg4EjdoCWLEIwoGIUMZD0p6DpDh25J6h+8+9Aoj9dzP5hUbcwJJ9Bg+u3MWosKIKLal8eH9iNEv2HvuVA7CHti8f5XSrRD5dA4FdibqJ1/2AHXaxpJvCAw9uM/3TgB+voodSdniIZafOcYTe/jv+XaFpsmsyd731YeTWNAtY34W64ciUq9YSh03bMBgHt6nJNUzKOr8nppWoYqGewHA486nj8hho5aZ1okxzPxRIqel+i3Hd3m56cdBGeDV+OiCQaNswww4QWbNXa8b7gc9N0yLTPJprHM0iDGcAeK3+dEvtaE11eR3g== Original-Received: from VE1EUR02FT047.eop-EUR02.prod.protection.outlook.com (2a01:111:e400:7e1e::52) by VE1EUR02HT239.eop-EUR02.prod.protection.outlook.com (2a01:111:e400:7e1e::268) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.29; Wed, 31 Mar 2021 06:05:55 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:7e1e::40) by VE1EUR02FT047.mail.protection.outlook.com (2a01:111:e400:7e1e::493) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.29 via Frontend Transport; Wed, 31 Mar 2021 06:05:55 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:1BF7E682B262374551E6CBC4B89DEF08D8C4D7C39EC8F1D49EFD0450BA533A77; UpperCasedChecksum:E0BD6A7DD3824C17EB3252282698940794B6A9763FE71C3DCA49394C77CB9F2B; SizeAsReceived:7599; Count:45 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::2103:e705:bc0c:5a8b]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::2103:e705:bc0c:5a8b%6]) with mapi id 15.20.3999.027; Wed, 31 Mar 2021 06:05:55 +0000 In-Reply-To: (Jean Louis's message of "Wed, 31 Mar 2021 08:40:09 +0300") X-TMN: [D/QXtj1yVjfn3XeWkfsfknfA/+MJKpVm] X-ClientProxiedBy: AM6P194CA0010.EURP194.PROD.OUTLOOK.COM (2603:10a6:209:90::23) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <82tuor503h.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from HP-Laptop.homepc (81.232.177.30) by AM6P194CA0010.EURP194.PROD.OUTLOOK.COM (2603:10a6:209:90::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.26 via Frontend Transport; Wed, 31 Mar 2021 06:05:55 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 45 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 37b1c7ba-981b-4dc4-a2f8-08d8f40b0be3 X-MS-TrafficTypeDiagnostic: VE1EUR02HT239: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: i4rn8c5tYOJFFs7LT3YzyxLAPkswT9s+TcOnk/b+TWAdWjI5tiVwMgm/fRBkqFpmgzyB9Q3/rFsNx2fdLqBb3irrYsLZg4eN2GBojFiKG38FZ1XdjPjJsZ7eN6VQsFhCCxZil6iWqmXC7A8Mhib8mM6CtmIA2JPccVKY/5UUq0loxyEXvtmy4LIfZIcqGzapoXh3l+EK0ZQniorzPKtOdACcR1uPeh92+K5JHrlLgymQYS7I1Vf1bJF5ObKpTtKCw6kR7nvwj/pmRQsHNryTjhPkYFIG0f8L+MYEli1L5jNiamXpfkHcqhMrLDAXIFrdGOwpi32dQ+RwgT9Mq8Lq/SzIz+fwLtcYVeGk2c3pWfwrp8MBddbMCnqhabq+KJ4wWLuTP91wZE3lpurIYrTqvK4I9Kzrtrj1jPajA9/4Pg4tommhfuE/O1gc0/1sPOzH X-MS-Exchange-AntiSpam-MessageData: MXqV0+KvICIJuj5T2APcM3tho9qzbF3VyNQ9uxf4kYiBJDt0Llt56AAKRBOugUqJoBqDqvN6siKrEV57oQDW9kUh4H/+dZsOwtbq3++7REuydry4FQa8uCBPrERZ3rBGVXLoPQUb+9URAHox4hkx9g== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 37b1c7ba-981b-4dc4-a2f8-08d8f40b0be3 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2021 06:05:55.7147 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: VE1EUR02FT047.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR02HT239 Received-SPF: pass client-ip=40.92.69.54; envelope-from=arthur.miller@live.com; helo=EUR02-VE1-obe.outbound.protection.outlook.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:128781 Archived-At: Jean Louis writes: > * Arthur Miller [2021-03-31 08:24]: >> > Some solutions are shown here: >> > https://askubuntu.com/questions/886092/how-do-i-disable-the-touchpad-while-typing >> > >> > First tell what operating system do you use, and if you use X.org or >> > what? As solutions vary depending of the environment. >> >> Forgott to say: if I got it to work via Emacs, it would be OS independent. > > Find a way to disable touchpad on command line in Windows, and make > equivalent to this function below. Do you have such solution? > > (defun touchpad-toggle () > (interactive) > (if touchpad-toggle > (progn > (setq touchpad-toggle nil) > (shell-command "xinput disable 11") > (message "Touchpad disabled")) > (progn > (setq touchpad-toggle t) > (shell-command "xinput enable 11") > (message "Touchpad enabled")))) > > Then you add some hook or process to monitor 2 seconds or more after > typing that it remains disabled. I know how to call a shell command from Emacs Jean. I don't want to turn off and on the touchpad every time I borrow the computer. I will sooner or later forgett it and the best of all best ladies will be annoyed why her computer does not work any more :). I just want it to now work in Emacs, not in other apps. I found disable-mouse by Purcell, I'll see how that one works.