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: Tue, 17 Apr 2018 16:27:51 +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 1523957201 15405 195.159.176.226 (17 Apr 2018 09:26:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 17 Apr 2018 09:26:41 +0000 (UTC) Cc: help-gnu-emacs To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 17 11:26:37 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 1f8Msm-0003sN-UY for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Apr 2018 11:26:37 +0200 Original-Received: from localhost ([::1]:54300 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8Mur-0006ge-WC for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Apr 2018 05:28:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8MuL-0006g4-SK for help-gnu-emacs@gnu.org; Tue, 17 Apr 2018 05:28:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8MuK-0003Dt-Mq for help-gnu-emacs@gnu.org; Tue, 17 Apr 2018 05:28:13 -0400 Original-Received: from mail-oi0-x229.google.com ([2607:f8b0:4003:c06::229]:38032) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f8MuK-000391-Ga for help-gnu-emacs@gnu.org; Tue, 17 Apr 2018 05:28:12 -0400 Original-Received: by mail-oi0-x229.google.com with SMTP id y20-v6so5830621oix.5 for ; Tue, 17 Apr 2018 02:28:12 -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=VyFM2DjAvlmIeYKzJgAT7UwLUhiTQyV6RnHr8n9BUYk=; b=XK5NNv0LdGPPUDzJrT/40KXHdkq8mLjVwlw4yJ+osakzDaSS982jCAaLVtupEaONDy ugMwYaEXkSZpFO17SixQrEuQpmwm4xqBU+WcGJyVs1CWw7uUE0OceZty+WFjE/I8lRBo mJGz32loXgzbzJrQ5USnoFRwlsLYIF6bdRg+bTu56XXLWC2s5paOj9fqJeeEHCbz4zoy SzY8DJTEBP+fEPsvefB0PhlX8PqKGFiPk7F/HxsSt+2G20Htyjp4JdX9zUChKeDyXnRW 7FM9WdoKYl5jZw5p7yVVOzPkGMrGjovpWIQtlY2a7DrJeoas2eQf8aEv7GIqc6hkdUt7 aNRQ== 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=VyFM2DjAvlmIeYKzJgAT7UwLUhiTQyV6RnHr8n9BUYk=; b=KCYHT+Ob035TNy7JQdVzb8z10Q/M+dD1ZRX3Jp3lickCIFQ85o4GiNqLLe4jxQG4gh FhFw5evMi8V/53KnSeCY7o9ISDxBneJVYN4M39+qxjjWsEAP61oRCQK1DFppITVB8QY1 zEFBara70Nvc0Ctl3k3NkajX9mWaK634bY6HMVUAr2d9oJGLHQyV0hTi6sBJh7VYu8Oy LU8z9lNryv4wADf/DxyTqzmp+WSinJNBxFyAnPC5e3JjW2NFzNWWOY9Yb7O7u3xwLJyf gHsR/sz8fMJx05iG5zKJh8DUGeHufUe8UY378VFxTAsYR2ss6mPZvjs3b4n+oM1Mo4KW FGeA== X-Gm-Message-State: ALQs6tDSDPO3C8GyKPq1B6/b87md4KLPp3foVL+hvjqLQqw5YvQRs3a2 Y7J7T7MsC2phpVV15wOJaHnZAlwaJINTdHzgWYQ= X-Google-Smtp-Source: AIpwx4/pfhwHviUkEO5t3oaAbgMpa5SOVsBs+tysXXhj16FbSv6eGjtI8MU6IElgDzRsOFADJrsnySMTj9bqdWehTv0= X-Received: by 2002:aca:3946:: with SMTP id g67-v6mr650450oia.292.1523957291783; Tue, 17 Apr 2018 02:28:11 -0700 (PDT) Original-Received: by 10.74.186.8 with HTTP; Tue, 17 Apr 2018 02:27:51 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: c1kgZZ0F-QeFskPp-FHXHdm61dA X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::229 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:116556 Archived-At: On Tue, Apr 17, 2018 at 1:49 AM, Stefan Monnier wrote: >> I came up with the following functions. Usage: > > Why not use find-word-boundary-function-table? Hm, no luck. Consider the following buffer text (with =E2=80=98|=E2=80=99 indicating poi= nt and second line showing numeric positions): foo| *** +++ bar 1.. .5...10....5 Invoking =E2=80=98forward-word=E2=80=99 here causes the function registered= in =E2=80=98find-word-boundary-function-table=E2=80=99 to be called with argum= ents (13 16), but we wanted to stop at 8. By the time the driver asks if anyone wants off the bus, we=E2=80=99re already way past our stop!