From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: HELP, PLEASE! Syntax problem! Date: Thu, 26 Nov 2009 08:53:34 +0000 Message-ID: <20091126085334.GA2737@muc.de> References: <20091125125810.GA4734@muc.de> <20091125203039.GA4874@muc.de> <20091125221328.GB4874@muc.de> <87hbsi87pw.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1259225328 29358 80.91.229.12 (26 Nov 2009 08:48:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Nov 2009 08:48:48 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 26 09:48:38 2009 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.50) id 1NDa1m-0002hZ-4z for ged-emacs-devel@m.gmane.org; Thu, 26 Nov 2009 09:48:38 +0100 Original-Received: from localhost ([127.0.0.1]:48946 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDa1l-00040Y-PY for ged-emacs-devel@m.gmane.org; Thu, 26 Nov 2009 03:48:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDa1d-0003yy-MO for emacs-devel@gnu.org; Thu, 26 Nov 2009 03:48:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDa1Z-0003y1-Q0 for emacs-devel@gnu.org; Thu, 26 Nov 2009 03:48:29 -0500 Original-Received: from [199.232.76.173] (port=41803 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDa1Z-0003xy-KV for emacs-devel@gnu.org; Thu, 26 Nov 2009 03:48:25 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:1384 helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NDa1Z-0007jL-4T for emacs-devel@gnu.org; Thu, 26 Nov 2009 03:48:25 -0500 Original-Received: (qmail 28551 invoked by uid 3782); 26 Nov 2009 08:48:21 -0000 Original-Received: from acm.muc.de (pD9E50E70.dip.t-dialin.net [217.229.14.112]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Thu, 26 Nov 2009 09:48:19 +0100 Original-Received: (qmail 2995 invoked by uid 1000); 26 Nov 2009 08:53:34 -0000 Content-Disposition: inline In-Reply-To: <87hbsi87pw.fsf@uwakimon.sk.tsukuba.ac.jp> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-operating-system: by monty-python.gnu.org: FreeBSD 4.6-4.9 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:117810 Archived-At: Hi, Stephen! On Thu, Nov 26, 2009 at 09:12:27AM +0900, Stephen J. Turnbull wrote: > Alan Mackenzie writes: > > Hahaha! Yes, indeed. But I'm dealing with C, Objective C, AWK, ... > > and even (excuse somebody else's language) C++. With that little bag, > > life is one problem after another. The secret is to hack the problems > > so that they become former problems. ;-) > (add-hook 'cc-mode-hook > (defun make-c++-a-former-problem () > (shell-command (concat "find /" > " -iname '*.cc'" > " -o -name '*.C'" > " -exec rm -f \\{\\}\\;")))) > should do the trick. Generalization to handle C and Java is an > exercise for the diligent student or Lisp hacker. Some people may > find this a bit invasive, of course. YMMV.... It should indeed do the trick. Just a word to our younger users, though: DON'T TRY THIS ON YOUR OWN. MAKE SURE YOUR MUM OR DAD ARE THERE TO HELP!!! Just as a matter of interest (ha!) Stephen, does XEmacs have an equivalent to the 'category text property? I've had a look through the sources, but didn't find it. The essential characteristic of 'category is a level of indirection in text properties (or overlay properties) - one can set a 'category TP on 1000 separate characters, and by merely one invocation of `put', can set the TPs on all these 1000 chars at once. Is there anything in XEmacs that does this? -- Alan Mackenzie (Nuremberg, Germany).