From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.devel Subject: Re: To non-native English writers: expunging the solecism "This allows to do something." Date: Mon, 25 Jan 2016 14:03:40 +0000 Message-ID: <87oac9g3ib.fsf@russet.org.uk> References: <20160124210602.GA7711@acm.fritz.box> <87fuxmzj03.fsf@rub.de> <20160125125156.GB4500@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1453730650 27823 80.91.229.3 (25 Jan 2016 14:04:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Jan 2016 14:04:10 +0000 (UTC) Cc: Stephen Berman , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 25 15:04:05 2016 Return-path: Envelope-to: ged-emacs-devel@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 1aNhkS-0006v4-PB for ged-emacs-devel@m.gmane.org; Mon, 25 Jan 2016 15:04:04 +0100 Original-Received: from localhost ([::1]:38757 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNhkS-0002eg-6H for ged-emacs-devel@m.gmane.org; Mon, 25 Jan 2016 09:04:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNhk9-0002eP-W4 for emacs-devel@gnu.org; Mon, 25 Jan 2016 09:03:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aNhk5-0005yv-Tg for emacs-devel@gnu.org; Mon, 25 Jan 2016 09:03:45 -0500 Original-Received: from cheviot12.ncl.ac.uk ([128.240.234.12]:59714) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNhk5-0005yr-OG for emacs-devel@gnu.org; Mon, 25 Jan 2016 09:03:41 -0500 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129] helo=smtpauth.ncl.ac.uk) by cheviot12.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1aNhk4-0001Zc-Cf; Mon, 25 Jan 2016 14:03:40 +0000 Original-Received: from jangai.ncl.ac.uk ([10.66.67.223] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1aNhk4-0005GF-ON; Mon, 25 Jan 2016 14:03:40 +0000 In-Reply-To: <20160125125156.GB4500@acm.fritz.box> (Alan Mackenzie's message of "Mon, 25 Jan 2016 12:51:56 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.240.234.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:198762 Archived-At: Alan Mackenzie writes: > >> You missed some instances, which I found by running rgrep on the Emacs >> source tree with this regexp (without the quotes): > >> "[^-]\(allow\|enable\|permit\|prevent\|require\)[^-de ]* to " > > Yes, I'd overlooked "require"; but there are instances of "requires to" > which are OK. The regexp I ended up using was: > > '\b\(require\|allow\|prevent\|permit\|enable\)s\? to\b' > > , and some fancy playing around with -A1 and -B1 flags to grep to find > instances (and there were a few) where the verb is at the end of a line > and the "to" at the beginning of the next line (modulo comment markers, > etc.). > >> This does, however, also return several false positives, most of them >> with "require" (one is written as `require' and one or two of the others >> should probably be quoted like that). I don't have time in the next few >> days to commit a fix for these, so if you do, please go ahead. > > Well, I've knocked down quite a few more instances. I can't guarantee > there're none left, of course, but there aren't many. Can't we build this into checkdoc in some form? Phil