From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22560: forward-word etc should be interactive-only Date: Sat, 06 Feb 2016 00:15:15 +0200 Message-ID: <83mvreu7m4.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1454710585 28844 80.91.229.3 (5 Feb 2016 22:16:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Feb 2016 22:16:25 +0000 (UTC) Cc: 22560-done@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 05 23:16:13 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aRofk-0000hM-JI for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Feb 2016 23:16:12 +0100 Original-Received: from localhost ([::1]:50628 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRofj-0006W6-U6 for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Feb 2016 17:16:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRofe-0006T2-IP for bug-gnu-emacs@gnu.org; Fri, 05 Feb 2016 17:16:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRofa-0006aT-Hf for bug-gnu-emacs@gnu.org; Fri, 05 Feb 2016 17:16:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54510) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRofa-0006aP-EV for bug-gnu-emacs@gnu.org; Fri, 05 Feb 2016 17:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aRofa-0007je-9j for bug-gnu-emacs@gnu.org; Fri, 05 Feb 2016 17:16:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Feb 2016 22:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 22560 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 22560@debbugs.gnu.org, eliz@gnu.org, rgm@gnu.org Original-Received: via spool by 22560-done@debbugs.gnu.org id=D22560.145471055229713 (code D ref 22560); Fri, 05 Feb 2016 22:16:02 +0000 Original-Received: (at 22560-done) by debbugs.gnu.org; 5 Feb 2016 22:15:52 +0000 Original-Received: from localhost ([127.0.0.1]:34865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aRofQ-0007jA-Au for submit@debbugs.gnu.org; Fri, 05 Feb 2016 17:15:52 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42478) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aRofO-0007iz-2b for 22560-done@debbugs.gnu.org; Fri, 05 Feb 2016 17:15:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRofE-0006Wr-Dg for 22560-done@debbugs.gnu.org; Fri, 05 Feb 2016 17:15:44 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:32889) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRofD-0006Wm-Pf for 22560-done@debbugs.gnu.org; Fri, 05 Feb 2016 17:15:39 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2195 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aRofC-0000RH-Ry; Fri, 05 Feb 2016 17:15:39 -0500 In-reply-to: (message from Glenn Morris on Thu, 04 Feb 2016 16:02:10 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:112532 Archived-At: > From: Glenn Morris > Date: Thu, 04 Feb 2016 16:02:10 -0500 > > The new implementation of subword-mode means that forward-word etc need > to be marked as interactive-only, all existing uses of such functions > need to be reviewed, and the issue needs to be mentioned in NEWS. The documentation is now fixed, including NEWS. There are 2 new functions, forward-word-strictly and backward-word-strictly, that move by words using only the syntax table and disregarding find-word-boundary-function-table. I've reviewed all the users of forward-word and backward-word, and made those of them which IMO should not heed to the likes of subword-mode (there were quite a few) use these new functions. I didn't mark forward-word and backward-word interactive-only, as I don't think this is needed, or even TRT, since the sub-word feature explicitly wants to be honored in many word-related commands. I therefore consider this bug "done". As an aside, I don't understand how could we admit such pervasive changes into our codebase without proper documentation and without carefully considering its non-trivial implications. I also think that the implementation of sub-word mode, which uses find-word-boundary-function-table, is a kludge, and shouldn't have been accepted in its present form. find-word-boundary-function-table is a char-table, which should have made it crystal clear that (ab)using it to have the same function called for _any_ character is against the spirit of char-tables. This char-table was introduced for script-specific word motion. Patches to fix this aspect of sub-word mode will be very welcome (on master). But all this is a ship that sailed long ago, sadly, so all we can do is lick our wounds and hope not to make such mistakes in the future. Thanks.