From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: macOS keybindings (alt in emacs vs alt in macOS) Date: Thu, 20 Apr 2023 09:11:55 +0300 Message-ID: <83fs8v6q1g.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5709"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 20 08:12:14 2023 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 1ppNWf-0001HR-FR for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 20 Apr 2023 08:12:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ppNWC-00037s-KP; Thu, 20 Apr 2023 02:11:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppNWB-00037k-Hi for help-gnu-emacs@gnu.org; Thu, 20 Apr 2023 02:11:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppNWB-0001lL-AC for help-gnu-emacs@gnu.org; Thu, 20 Apr 2023 02:11:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=B/vTrxMny4hamYy9EzXeskQ/HMFb8eHifL5WVNwTigc=; b=m6Da0t/7i20oShNLsA65 0LYFDabGdgVQCtoSODIInHL7/qxRiGl8GjYHDUTIeBVrZGGF8z0OgsD9F/s4I9IAcD1iaRgKOIe3m UE59pKOIdzYKxgPE/IOgfb2De3VKeRgkOGynXbUx75xB6WIqwjtqGMV7fKO/ddNSXmJctwXfZzayj wLI5zxGLn+AHTOvJaW9/A4G42PRlmTsmB9C6TRQML8jJKIm7iBnA+pW8N0QnwzBAqBewGaNKpQCwv K8kydcl8s3+EaMv4Raf9TMsOJUI9x/T6E9L9SFQr+XvDUeCoknooGOFOyySIwWfpudOwQfbGYtjmr Odfpda7lp87TWg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppNW9-0004Yo-CH for help-gnu-emacs@gnu.org; Thu, 20 Apr 2023 02:11:41 -0400 In-Reply-To: (lists@traduction-libre.org) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143314 Archived-At: > From: "l@tlo" > Date: Thu, 20 Apr 2023 00:10:53 +0900 > Cc: help-gnu-emacs@gnu.org > > > On Apr 19, 2023, at 21:59, Daniel Martín wrote: > > > > "l@tlo" writes: > > > >> I'm trying to set cursor/point navigation in emacs is a way that's similar to the standard macOS settings. > >> > >> I'm stuck at using alt/option + left-right as "left-word" / "right-word". > >> > >> I have (ns-alternate-modifier 'none), because I need access to access > >> special non ascii characters, but that means that alt/option is then > >> ignored by Emacs, when I need A- and A- (and a few > >> others) for my setting. > >> > >> Is there a way to have Emacs accept Alt as a modifier key in some defined contexts only and ignore it otherwise? > > > > Could you set ns-right-alternate-modifier to 'none? That'd free the > > right Option key to enter non-ASCII characters, while you could use the > > left one to navigate by words. > > Thank you Daniel, > > There never was a right option key on (my) mac laptops. Since this variable is described in the Emacs manual, where I assume you looked in your search for the solution, I wonder if something there should be clarified/augmented/improved to make the solution of this problem more obvious? Would you care to take a look and suggest any such improvements for the manual?