From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#10145: 24.0.91; Word Isearch backward Date: Wed, 30 Nov 2011 17:32:45 +0200 Organization: JURTA Message-ID: <87aa7dd48q.fsf@mail.jurta.org> References: <87k46jyd79.fsf@mail.jurta.org> <8739d6j62p.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1322667973 6555 80.91.229.12 (30 Nov 2011 15:46:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 Nov 2011 15:46:13 +0000 (UTC) Cc: Andreas Schwab , 10145@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 30 16:46:07 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RVmMJ-0007xw-47 for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Nov 2011 16:46:07 +0100 Original-Received: from localhost ([::1]:59269 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVmMI-0000x2-9Q for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Nov 2011 10:46:06 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:38396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVmMF-0000vv-Ca for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2011 10:46:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RVmMB-0008MG-4u for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2011 10:46:03 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVmMB-0008MA-1U for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2011 10:45:59 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RVmME-0002ez-8L for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2011 10:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Nov 2011 15:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10145 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10145-submit@debbugs.gnu.org id=B10145.132266791910171 (code B ref 10145); Wed, 30 Nov 2011 15:46:02 +0000 Original-Received: (at 10145) by debbugs.gnu.org; 30 Nov 2011 15:45:19 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RVmLW-0002du-RA for submit@debbugs.gnu.org; Wed, 30 Nov 2011 10:45:19 -0500 Original-Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RVmLQ-0002dS-Cr for 10145@debbugs.gnu.org; Wed, 30 Nov 2011 10:45:13 -0500 Original-Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id CFAD768405A; Wed, 30 Nov 2011 07:45:07 -0800 (PST) Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 20F10451C5C7; Wed, 30 Nov 2011 07:44:54 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Wed, 30 Nov 2011 09:02:05 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 30 Nov 2011 10:46:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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:54484 Archived-At: >> In the patch below the first line is a complete sentence, >> and `wordify' is renamed to a better and more correct name >> `word-regexp': > > While `wordify' was OK as a local function in search.c, I think that > both `wordify' and `word-regexp' are too terse names for (global) > Elisp functions. Maybe `search-words-regexp' would be appropriate. I constructed that name based on the naming pattern of related functions `word-search-forward' and `word-search-backward'. A similar name would be `word-search-regexp'. However, it is used not only for search, but for `looking-at' too, so we have to eliminate the `search' part from the name. Therefore `word-regexp'. Another naming pattern would be `regexp-quote' that takes a string and returns a regexp. `quote' is a verb here, so using a verb would produce a name like `regexp-wordify'. Yet another naming pattern is `number-to-string'. Using that we get the name `words-to-regexp'. > Of course, I also see no reason why it should be implemented in C, so > moving it to Elisp would be welcome. I'll provide an Elisp version once the function name is agreed upon.