unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Masatake YAMATO <yamato@redhat.com>
To: acm@muc.de
Cc: emacs-devel@gnu.org
Subject: Re: request for reviewing the updated version of cc-guess.el
Date: Wed, 23 Mar 2011 19:24:43 +0900 (JST)	[thread overview]
Message-ID: <20110323.192443.143530944314823184.yamato@redhat.com> (raw)
In-Reply-To: <20110323101302.GA2247@muc.de>

Alan、

> Hello, Masatake.
> 
> I hope you have come through the recent events in Japan OK, and offer my
> sincere condolences for any loss you may have suffered.

Thanks. I'm O.K. I have not got serious trouble till now.
 
> On Fri, Feb 11, 2011 at 05:23:37AM +0900, Masatake YAMATO wrote:
>> Hi,
> 
>> Taking 7 years I've updated cc-guess.el as suggested by Martin
>> Stjernholm. 
> 
>> Currently cc-guess.el is not included in cc-mode official release and
>> as the result it is not included in GNU Emacs.
> 
>> Could you review the updated version with considering inclduing it to
>> the release?
> 
> OK.  I agree with you that it cc-guess.el should become an integral part
> of CC Mode, specifically in the upcoming version 5.32.  Thanks for doing
> the work!  

Thanks.

> I've read the seven year old Email thread between you and
> Martin.
> 
> There are some tasks still to do:
> (i) Tidy up the syntax of the doc strings.
> (ii) Write a new page in the manual.
> (iii) Decide on key bindings.
> 
> The first two of these tasks need to be done by me.  

Thank you very much.

> As for the key
> bindings, I don't really like Martin's suggestion of C-c C-g; when
> somebody has just typed C-c then decides it was a mistake, he's going to
> hit C-g to cancel out of it.  Of all the major mode bindings, we have
> these ones (abbreviated below) still free:
> 
> C-c C-f
> ....C-g   Keep free for cancel?
>      -h
>       i
>       j
>       k
>       m
>       r
>       v
>       x
>       y
>       z
>       {
>       }
>       <
>       >
>       :
>       ;
> 
> .  Like Martin, I don't think C-c C-<, etc. are good bindings here - they
> should be kept for possible backward/forward commands of some sort.  How
> about C-c C-j <letter>?  The C-j is a bit like the indentation command M-j
> `c-indent-new-comment-line'.  What do you think?
> 
> Which commands need key bindings?
> 
> [ Change log and elisp file received with thanks and deleted. ]


I think no key binding is needed. 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?

Masatake YAMATO



  reply	other threads:[~2011-03-23 10:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-10 20:23 request for reviewing the updated version of cc-guess.el Masatake YAMATO
2011-03-23 10:13 ` Alan Mackenzie
2011-03-23 10:24   ` Masatake YAMATO [this message]
2011-03-24 11:35     ` Alan Mackenzie
2011-03-24 12:07       ` Masatake YAMATO
2011-03-25 13:26         ` Alan Mackenzie
2011-03-27 14:43           ` Masatake YAMATO

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110323.192443.143530944314823184.yamato@redhat.com \
    --to=yamato@redhat.com \
    --cc=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).