From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Skip Montanaro Newsgroups: gmane.emacs.help Subject: Re: Skipping words with C- like other editors do Date: Sun, 15 Apr 2018 17:09:51 -0500 Message-ID: References: <778085015.663724.1523818187137.ref@mail.yahoo.com> <778085015.663724.1523818187137@mail.yahoo.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1523830134 24453 195.159.176.226 (15 Apr 2018 22:08:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 15 Apr 2018 22:08:54 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: "R. Diez" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 16 00:08:49 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f7ppJ-0006Hk-CE for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Apr 2018 00:08:49 +0200 Original-Received: from localhost ([::1]:47007 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f7prP-0006qq-Ul for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Apr 2018 18:10:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f7pqq-0006pi-1c for help-gnu-emacs@gnu.org; Sun, 15 Apr 2018 18:10:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f7pqo-0003vH-QI for help-gnu-emacs@gnu.org; Sun, 15 Apr 2018 18:10:23 -0400 Original-Received: from mail-pg0-x234.google.com ([2607:f8b0:400e:c05::234]:36515) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f7pqo-0003ut-Jx for help-gnu-emacs@gnu.org; Sun, 15 Apr 2018 18:10:22 -0400 Original-Received: by mail-pg0-x234.google.com with SMTP id z135so520753pgz.3 for ; Sun, 15 Apr 2018 15:10:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=trHOUZ5qDzi2BexCszBTKSV4w0RJKlCdNs/wrUhNNuA=; b=Mpk7ZiGQdJTJc59QRNaWUzpfl9KCHPAIaJYGL3a/WeiP/mm0zdyalV/OsSWIV3IVNP 2YWrgN5KM360vCTFcdOoHLsszIV4LwXQVMPWpgmS/BXOZOk3LuqWsha0nRymGysm0NCY yAIycV0FDhNlc9xHXmoec6S8VvxD8HxJ/Mg5mMXwrQGwnex22TOFMvwI9yY9qp8lQ6SB j9RO8L3gfX/FyTVS2lS5FEKEvFDvgD4FSTAqTLJuXL1Wx77FisGCDnpktM+x8VqNJXEX c/5dEbWmECQg6qu+Wc81kYyqzRwEr3Vk78xf2jgFmt6wM94Xgdx5rivtEOv2srdztUT8 qsoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=trHOUZ5qDzi2BexCszBTKSV4w0RJKlCdNs/wrUhNNuA=; b=uHTrlfbf/deP4SUW/SWhl4T+CZh8P80Yj3wDiZUv4QYXsqeQohRhAB6GhJEEorts4D wn8TmoGazJqwMViPfEAiVowVjBukX+WolXm9Gc/QFYF7WsHb34DEiA65T+wueha6CPAz kxd303sIDJ9hyekALQoszdMMZ8ph6C2uLDAwh4Voe+9E3AxzmCEVV1pjNiqdlJff+jmp IWZ62FXTyyJCBDVG2he212iF0lOIDoX+Sb9wO7Us9JIxVK3oDH9KEaa+kjYW8yHz3gI3 1cJoAceaOkUwv/oPgSkGuk1u85B9nRSmdoenvfBL8skO9cfdd4YTTra3EFbRbn2Wh8av sD9Q== X-Gm-Message-State: ALQs6tA5ebgvDnNzdJ55vi6Ac5MJ6GhgGqIRI+V8lEfBo2j9SEl9PKvH BmhdwNzlygrn+ATBpSuzib3e8F5qZXsbpe0RdxKpJzisaOMb X-Google-Smtp-Source: AIpwx49dN8SPAKIbVpG+UAnTKsk4PfOPvrfXWUYzE21r/n4eyHrXxoh4ymISqu59VqayAaL3bXGUSxz7X8K1fLblD3A= X-Received: by 10.101.87.201 with SMTP id q9mr11139107pgr.215.1523830221509; Sun, 15 Apr 2018 15:10:21 -0700 (PDT) Original-Received: by 10.100.221.23 with HTTP; Sun, 15 Apr 2018 15:09:51 -0700 (PDT) In-Reply-To: <778085015.663724.1523818187137@mail.yahoo.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::234 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116539 Archived-At: While I agree with Emanuel's and Tim's comments (learning the basics of Emacs' elementary cursor movement bindings is a good idea), I think rdiez is actually complaining about how streams of characters are divided into "words". I suspect the problem would exist with forward-word. Right-word (target of C-right key binding) is little more than a choice between forward-word and backward-word. I think you probably want to tweak the relevant syntax table for the editing mode you find yourself in most of the time. If you write Python code, then overriding python-mode-syntax-table is probably what you want. If, on the other hand, you mostly edit prose in text-mode, then look at replacing text-mode-syntax-table. The key bit of documentation you will want is the function documentation for modify-syntax-entry. (C-h f modify-syntax-entry RET). The Emacs Lisp reference manual has more detail: https://www.gnu.org/software/emacs/manual/html_node/elisp/Syntax-Tables.html I'd actually start there, maybe with an example syntax table for something you are familiar with by your side. Skip