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: Thu, 24 Mar 2011 21:07:33 +0900 (JST) [thread overview]
Message-ID: <20110324.210733.682669433015821938.yamato@redhat.com> (raw)
In-Reply-To: <20110324113541.GA3227@muc.de>
Hi,
> 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? :-)
Yes, I'll write.
> 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?
I agree about the requirement if I understand the requirement correctly.
`cc-guess-view-guessed-style' in my patch
is not enough? It is just do `pp' guessed style like:
(with-output-to-temp-buffer "*Guessed Style*"
(pp style))
I can change the code like:
(with-output-to-temp-buffer "*Guessed Style*"
(pp `(c-add-style ,(cc-guess-style-name) ,style ,t)))
Do you think this code satisfies the requirement?
Masatake YAMATO
next prev parent reply other threads:[~2011-03-24 12:07 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
2011-03-24 11:35 ` Alan Mackenzie
2011-03-24 12:07 ` Masatake YAMATO [this message]
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=20110324.210733.682669433015821938.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).