From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#12215: CSET is unnecessarily confusing Date: Fri, 24 Aug 2012 11:46:40 +0800 Message-ID: <87fw7d3qan.fsf@gnu.org> References: <502D8A95.7060609@cs.ucla.edu> <5034511B.7010409@cs.ucla.edu> <50350A4C.5050103@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1345780059 2902 80.91.229.3 (24 Aug 2012 03:47:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Aug 2012 03:47:39 +0000 (UTC) Cc: Paul Eggert , 12215@debbugs.gnu.org, Dmitry Antipov To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 24 05:47:39 2012 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 1T4krw-0007ih-Ep for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Aug 2012 05:47:36 +0200 Original-Received: from localhost ([::1]:40782 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4kru-00049M-76 for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Aug 2012 23:47:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34558) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4krq-00047m-A0 for bug-gnu-emacs@gnu.org; Thu, 23 Aug 2012 23:47:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T4krp-00079S-62 for bug-gnu-emacs@gnu.org; Thu, 23 Aug 2012 23:47:30 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36357) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4krp-00079E-1L for bug-gnu-emacs@gnu.org; Thu, 23 Aug 2012 23:47:29 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T4ksM-0003mV-5Z for bug-gnu-emacs@gnu.org; Thu, 23 Aug 2012 23:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Aug 2012 03:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12215 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 12215-submit@debbugs.gnu.org id=B12215.134578004314493 (code B ref 12215); Fri, 24 Aug 2012 03:48:02 +0000 Original-Received: (at 12215) by debbugs.gnu.org; 24 Aug 2012 03:47:23 +0000 Original-Received: from localhost ([127.0.0.1]:45903 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T4krj-0003lh-Gd for submit@debbugs.gnu.org; Thu, 23 Aug 2012 23:47:23 -0400 Original-Received: from mail-pb0-f44.google.com ([209.85.160.44]:37889) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T4krh-0003la-6i for 12215@debbugs.gnu.org; Thu, 23 Aug 2012 23:47:22 -0400 Original-Received: by pbbrr4 with SMTP id rr4so2542881pbb.3 for <12215@debbugs.gnu.org>; Thu, 23 Aug 2012 20:46:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=kl0ZnkJIwlAn44Ja7w8NrG0wdCOJEj+QQuBHVc8Ugtg=; b=XmhheOGB5fDfOcV9FVRj1MQCptvH0QZDEmiSSo6XI13x2iLH0r49wl3OrZAc2i4W60 m4lQwep6oQ+9r3q2OcMmHvFXk/tCQKNfO9ajlLSFrouQZzGhPKDoaus75sYl4/CAk7lU znoxmexUHUp10Qva9j54TaDh+4ab//0vw34mshysaRsB4ty0aVozA6YneklQh6Jah3rt I7gs9Jmz/JCS5qH873WkA7Fa2xebq7MgeyybqumDAjep7kW35i3zVDuH9yzn+6mkII3O nnfGLfWMZs3QmwYY+evrRPcV8iIjRma2NlRvQkwCMhZ/8K1+C/ArtCK5VMsnGDKOOCxr RPHA== Original-Received: by 10.68.132.228 with SMTP id ox4mr9550843pbb.13.1345780006817; Thu, 23 Aug 2012 20:46:46 -0700 (PDT) Original-Received: from ulysses ([155.69.16.255]) by mx.google.com with ESMTPS id th6sm7391545pbc.0.2012.08.23.20.46.42 (version=SSLv3 cipher=OTHER); Thu, 23 Aug 2012 20:46:45 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Thu, 23 Aug 2012 08:26:27 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list 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:63443 Archived-At: Stefan Monnier writes: > Yes, I didn't like it much when I first thought about it, but I'm > beginning to think it's the least bad option (the next one is to use > another preprocessor than cpp ;-). Maybe we could use macros that are a no-op under CPP, and serve only as guides for a non-CPP code transformation tool. That is to say, instead of the horrible bset_directory (b, current_buffer ? BVAR (current_buffer, directory) : Qnil); we could have the slightly less horrible BVAR (b->directory) = current_buffer ? BVAR (current_buffer->directory) : Qnil; with BVAR a no-op under CPP: #define BVAR(x) x The GC branch wouldn't be able to use CPP to convert this to the desired form, but I think there would be enough information for a non-CPP tool or a script to automatically transform all snippets of the form BVAR (x->y) = z to set_buffer_y (x, z)