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: request for reviewing the updated version of cc-guess.el Date: Thu, 24 Mar 2011 11:35:41 +0000 Message-ID: <20110324113541.GA3227@muc.de> References: <20110211.052337.141994890934352619.yamato@redhat.com> <20110323101302.GA2247@muc.de> <20110323.192443.143530944314823184.yamato@redhat.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1300965949 30273 80.91.229.12 (24 Mar 2011 11:25:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Mar 2011 11:25:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: Masatake YAMATO Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 24 12:25:44 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 1Q2ifd-0005HR-Nv for ged-emacs-devel@m.gmane.org; Thu, 24 Mar 2011 12:25:41 +0100 Original-Received: from localhost ([127.0.0.1]:35204 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2ifc-0007u9-U0 for ged-emacs-devel@m.gmane.org; Thu, 24 Mar 2011 07:25:40 -0400 Original-Received: from [140.186.70.92] (port=44741 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2ifX-0007pW-7i for emacs-devel@gnu.org; Thu, 24 Mar 2011 07:25:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2ifV-0004PJ-Vl for emacs-devel@gnu.org; Thu, 24 Mar 2011 07:25:35 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:3382 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2ifV-0004P9-Kf for emacs-devel@gnu.org; Thu, 24 Mar 2011 07:25:33 -0400 Original-Received: (qmail 9327 invoked by uid 3782); 24 Mar 2011 11:18:51 -0000 Original-Received: from acm.muc.de (pD9E227E7.dip.t-dialin.net [217.226.39.231]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Thu, 24 Mar 2011 12:18:49 +0100 Original-Received: (qmail 3593 invoked by uid 1000); 24 Mar 2011 11:35:41 -0000 Content-Disposition: inline In-Reply-To: <20110323.192443.143530944314823184.yamato@redhat.com> 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 eggs.gnu.org: FreeBSD 4.6-4.9 X-Received-From: 193.149.48.1 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:137629 Archived-At: Hi, Masatake. On Wed, Mar 23, 2011 at 07:24:43PM +0900, Masatake YAMATO wrote: > > Which commands need key bindings? > I think no key binding is needed. That's fine with me. > I think it will not be invoked frequently. However, I think the > commands should be listed in "C" pull-down menu. > C > ... > [Style >] [Set Manually (c-set-style) ] > [Examine Current Buffer and Guess Style] > [Examine Current Buffer, Guess Style and Install It] > [Install Guessed Result (cc-guess-install)] > [View Guessed Result (cc-guess-view-guessed-style)] > or > C > ... > [Set Style Manually (c-set-style) ] > [Examine Current Buffer and Guess Style] > [Examine Current Buffer, Guess Style and Install It] > [Install Guessed Style (cc-guess-install)] > [View Guessed Style (cc-guess-view-guessed-style)] > The fine controllable indentation engine of cc-mode is the one of the > greatest point of cc-mode. So I think "style" menu item should be in C > pull-down menu entry. > How do you think? OK. Could you please submit a patch for this? :-) One other thing: there doesn't seem to be a mechanism for dumping out a guessed style so that it can be used in a future Emacs session. Something like M-x c-dump-guessed-style which would print out the style a bit like c-submit-but-report (C-c C-b) dumps the entire configuration. Do you think something like this is needed? > Masatake YAMATO -- Alan Mackenzie (Nuremberg, Germany).