From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jim Meyering Newsgroups: gmane.emacs.devel Subject: Re: Patch for fields of `struct buffer' Date: Wed, 09 Feb 2011 11:16:03 +0100 Message-ID: <87hbcdpl7g.fsf@rho.meyering.net> References: <4D485ECB.8090106@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297247504 15913 80.91.229.12 (9 Feb 2011 10:31:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Feb 2011 10:31:44 +0000 (UTC) Cc: Paul Eggert , emacs-devel@gnu.org To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 09 11:31:39 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pn7Kl-0006tT-0g for ged-emacs-devel@m.gmane.org; Wed, 09 Feb 2011 11:31:39 +0100 Original-Received: from localhost ([127.0.0.1]:40722 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pn75z-0007LN-HH for ged-emacs-devel@m.gmane.org; Wed, 09 Feb 2011 05:16:23 -0500 Original-Received: from [140.186.70.92] (port=40729 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pn75l-0007K0-95 for emacs-devel@gnu.org; Wed, 09 Feb 2011 05:16:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pn75j-0003Do-Qu for emacs-devel@gnu.org; Wed, 09 Feb 2011 05:16:09 -0500 Original-Received: from mx.meyering.net ([82.230.74.64]:36187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pn75j-0003D9-LW for emacs-devel@gnu.org; Wed, 09 Feb 2011 05:16:07 -0500 Original-Received: by rho.meyering.net (Acme Bit-Twister, from userid 1000) id DBB8E600EB; Wed, 9 Feb 2011 11:16:03 +0100 (CET) In-Reply-To: (Tom Tromey's message of "Tue, 01 Feb 2011 12:42:34 -0700") Original-Lines: 24 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 82.230.74.64 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:135790 Archived-At: Tom Tromey wrote: >>>>>> "Paul" == Paul Eggert writes: > > Tom> It is rather slow. On my laptop it takes 10 seconds to scan src/*.c. > Tom> This would have to be done with every change to a .c file. > > Paul> Prepending "/DEFVAR_/!d" to the script sped it up > Paul> by a factor of 8 on my server; it then ran in > Paul> 0.142 seconds real-time. > > Thanks. > > Can I use 'sort -u' or 'uniq' in GNU Makefiles these days? > Testing my script revealed that some things are DEFVAR'd twice. Yes, but you may want to ensure use of the C locale so the result is the same for everyone. We have this in coreutils, but I don't particularly like the variable name: # Sort in traditional ASCII order, regardless of the current locale; # otherwise we may get into trouble with distinct strings that the # current locale considers to be equal. ASSORT = LC_ALL=C sort