From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#41761: [PATCH] bug#41761: 28.0.50; M-x count-words counts words only up to a field boundary Date: Fri, 14 Aug 2020 02:58:19 -0700 Message-ID: References: <87y2oxwldi.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17799"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 41761@debbugs.gnu.org, Pip Cet To: Daniel Koning Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 14 12:56:53 2020 Return-path: Envelope-to: geb-bug-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 1k6XOG-0004X6-Sk for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Aug 2020 12:56:52 +0200 Original-Received: from localhost ([::1]:39070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k6XOF-0006kS-Up for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Aug 2020 06:56:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56144) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k6WUI-000851-0g for bug-gnu-emacs@gnu.org; Fri, 14 Aug 2020 05:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40319) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k6WUH-0000Dm-NB for bug-gnu-emacs@gnu.org; Fri, 14 Aug 2020 05:59:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k6WUH-0003c3-M9 for bug-gnu-emacs@gnu.org; Fri, 14 Aug 2020 05:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Aug 2020 09:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41761 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 41761-submit@debbugs.gnu.org id=B41761.159739912613860 (code B ref 41761); Fri, 14 Aug 2020 09:59:01 +0000 Original-Received: (at 41761) by debbugs.gnu.org; 14 Aug 2020 09:58:46 +0000 Original-Received: from localhost ([127.0.0.1]:51865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6WU0-0003bM-Bd for submit@debbugs.gnu.org; Fri, 14 Aug 2020 05:58:46 -0400 Original-Received: from mail-yb1-f173.google.com ([209.85.219.173]:39634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6WTh-0003af-AG for 41761@debbugs.gnu.org; Fri, 14 Aug 2020 05:58:40 -0400 Original-Received: by mail-yb1-f173.google.com with SMTP id q16so4898119ybk.6 for <41761@debbugs.gnu.org>; Fri, 14 Aug 2020 02:58:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=CuNLl+QJuo8LLMGP9JEC47YuP1XRDRcwwodtSoCRbc0=; b=mcdcWle+G2OSAT64VW051ad8E6RzFwXKC5gECcCOWG0KuYUUKEKs05yVNnhDrr+u6Y P7679HcMGpq+nD0xMBhzHOS5SeasY2H4MrERrZS/8BasJGuZ9lfPPD28GuF7A2//jJ4D D7Aehwtz/EtYamhxjz6KMi4GrPQyZgLTmE7SQN0/2//uHr/1SF2DdI4z/MhgRuzCh5m4 x8ZDr3DA8afxVn8817cjdj6fPqO0sfM0TXP2QxBbW/E9HLzdbITN7OM1lcz++r6rBgH8 WDjvBR9CcUdxnc3Icv6aRF33RGMdku7UY6hKjGCyCjS+mDCin1HG66Hgu16NPypOI6/5 tPzg== X-Gm-Message-State: AOAM532dWnDw9ioWrwD9xh2lBa2KXn5hjAlp6HDmwKIwT7D7zWcS3ens UIhM21vmr0ASDLkwFbGlad50xEevjtF7LrI7ASU= X-Google-Smtp-Source: ABdhPJxZayPEbrUkpXF8qBQ8myyT4MvXw0hrZ2Rej/a4izsz0e4D8p+0+UmfDUbFO8UnbSTsJhR+7Q41HFP14DmLSXI= X-Received: by 2002:a25:4609:: with SMTP id t9mr2545049yba.231.1597399099799; Fri, 14 Aug 2020 02:58:19 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 14 Aug 2020 02:58:19 -0700 In-Reply-To: (Daniel Koning's message of "Wed, 10 Jun 2020 15:15:32 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:185092 Archived-At: close 41761 28.1 thanks Daniel Koning writes: > Pip Cet writes: > >> Expected result: >> >> message "Region has 1 line, 10 words, and 50 characters" >> >> Actual result: >> >> message "Region has 1 line, 1 word, and 50 characters" > > `count-words' should be disabling field-boundary behavior in > `forward-word-strictly' by setting `inhibit-field-text-motion'. Patch > included. Thanks for the patch. It looks good to me so I pushed it as commit c560ba3036d8. I also pushed a regression test for this bug separately. Closing this bug now. Best regards, Stefan Kangas