From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: Skipping words with C- like other editors do Date: Mon, 16 Apr 2018 15:22:07 +0700 Message-ID: References: <778085015.663724.1523818187137.ref@mail.yahoo.com> <20180415193419.df83012d43d222edbd70e69f@speakeasy.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1523866883 32734 195.159.176.226 (16 Apr 2018 08:21:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 16 Apr 2018 08:21:23 +0000 (UTC) Cc: help-gnu-emacs To: "James K. Lowden" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 16 10:21:19 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 1f7zO0-0008M7-UE for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Apr 2018 10:21:17 +0200 Original-Received: from localhost ([::1]:55470 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f7zQ6-0003da-0p for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Apr 2018 04:23:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59852) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f7zPB-0003bi-Ig for help-gnu-emacs@gnu.org; Mon, 16 Apr 2018 04:22:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f7zPA-00089m-En for help-gnu-emacs@gnu.org; Mon, 16 Apr 2018 04:22:29 -0400 Original-Received: from mail-ot0-x236.google.com ([2607:f8b0:4003:c0f::236]:35517) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f7zPA-00089V-9i for help-gnu-emacs@gnu.org; Mon, 16 Apr 2018 04:22:28 -0400 Original-Received: by mail-ot0-x236.google.com with SMTP id f47-v6so16441623oth.2 for ; Mon, 16 Apr 2018 01:22:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=O6QimwS/S0sXni4mWdBIpit2vz715pxXawv//tWoeIM=; b=qvM94NT3ZLsVEWB5xpvHs3RhOgmT2uuL6ZmnHwoM2tbjaQDCGvwBdyjEbfNCx3Vwsp QLfRrKziJ0k0xa8Jj3CO+N3CC99J7oLMpMBRAbhROFpALSviKBwQ8jyyjSIKAzWz+U8O DrNp9WfQ3GMX0CKXNZrDwnTw6WOGIz/tfDrmPxYwqpirZ+k07Nfgmc5HjAuEsfqLvWpR Wzy26rJYwBsSyKCipC/Z2AC2XTlZ561GPAi4Re1z47weMMLJKot010bd4IPx0Kw16iCL 6rDljBfR6ao2KJpClT8hQZLkOm8eet/rMPWcn84yWZERNudOKhTDEhWqGOBVs6yZAVXO VEkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=O6QimwS/S0sXni4mWdBIpit2vz715pxXawv//tWoeIM=; b=G+KjHy+j4eCjsJrcV23bYJOUQ8cGloJeNkXtGjhcF4BFEX/F9c4VWOu469yZIFJdXQ qHzN5k+7VsyKvGDoFqNQ8N6zupRJgdpRp/sBnF3rSVZwM0Roo3wfXgxvDqAcKibnJmxi cvILZ0O8Nqwybg+2rx2cK7mneQLXpHLtshxtDC3rzlodgFjwHBdWzpBugFOzNPNKOH1Y AR2jhH0jvLfumUxmHD2SbZ03w/6gMwo9ZjKJUL+ejHuGcWNN6oyeJ20Sc0Mizt7Cmwvl MTHEOh1070/CDbHjev86l9ypWH6r1RuSy3dNtX8AnKFTARF/ItenRzlu+DGqXBixrdIp +gnw== X-Gm-Message-State: ALQs6tCGs4+gaV/sszpGUSJhJdiS4OZN8Y+59pyLQs9RU9OTbn5zG4EU sR1KCmxMaYooSHctvC/V1J/szdOEa7wsZsLXzco= X-Google-Smtp-Source: AIpwx48NPV6cqUYe4lqagFhkW9A/KfNC7ThXgqJUtFVlTkQjx5tt3FsoLpQ1YiRthwuPKU8Gt/4o3ca6Kfj04NSyHz4= X-Received: by 2002:a9d:cee:: with SMTP id o43-v6mr9216551otd.293.1523866947422; Mon, 16 Apr 2018 01:22:27 -0700 (PDT) Original-Received: by 10.74.186.8 with HTTP; Mon, 16 Apr 2018 01:22:07 -0700 (PDT) In-Reply-To: <20180415193419.df83012d43d222edbd70e69f@speakeasy.net> X-Google-Sender-Auth: u0M2ZupD7VnsywtFHyioN-Fl2_Q X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c0f::236 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:116544 Archived-At: On Mon, Apr 16, 2018 at 6:34 AM, James K. Lowden w= rote: >> !text! ---! ^^^! ***! ///! ;;;! aa!-!xx! bb! >> !text !--- !^^^ !*** !/// !;;; !aa!-!xx !bb! > > Somewhere in the documentation, a rational argument is made for emacs's > choice. By defining forward-word and back-word asymetrically, > navigation in either direction is sped up. Asymmetry is probably not the source of annoyance here. Speed is. I tested the same line with Mousepad, Gedit, Midnight Commander, Firefox, Vim, and Emacs. (Vim has a richer vocabulary of word motion commands; I noted them separately.) Ctrl+right =E2=86=92 text --- ^^^ *** /// ;;; aa-xx bb | | | | | Emacs *scratch* | | | | | | | || | | Gedit, Mousepad | | | | | | | | Firefox | | | | | | | || | Midnight Commander, Vim w | | | | | | | | Vim W | | | | | | | || | | Vim e | | | | | | | | | Vim E Ctrl+left =E2=86=90 text --- ^^^ *** /// ;;; aa-xx bb | | | | | Emacs *scratch* | | | | | | | | Firefox | | | | | | | || | | Gedit, Mousepad, MC, Vim b | | | | | | | | | Vim B | | | | | | | || | | Vim ge | | | | | | | | | Vim gE So, observations: * Most =E2=80=9Creduced instruction set=E2=80=9D editors have different sto= ps for forward and backward movement. Emacs is not the odd one here. * Firefox does something that is very hard to describe. * Emacs makes much fewer stops in comparison with other editors. Namely, it stops only at transitions from letters to non-letters, while most other editors stop at transitions from letters to whitespace, letters to punctuation, and punctuation to whitespace. I think it might be worthwhile to try implementing word motion commands that takes into account both word-constituent and whitespace syntax classes.