From: Damien Wyart <damien.wyart@free.fr>
To: help-gnu-emacs@gnu.org
Subject: Re: c-auto-newline question
Date: Thu, 10 Jan 2013 17:30:54 +0100 [thread overview]
Message-ID: <50eeecbf$0$2026$426a74cc@news.free.fr> (raw)
In-Reply-To: mailman.17050.1357829207.855.help-gnu-emacs@gnu.org
* Luca Ferrari <fluca1978@infinito.it> in gnu.emacs.help:
> Anyway, even with your suggestion the feature is not working properly
> and I've got still Emacs inserting a new blank line every time.
I tested my snippet before posting it and it worked on my side (no blank
line when following line is not empty), so this might depend on many
other factors (Emacs version, other elisp packages, other .emacs
settings...).
> Moreover, now the RET does not completes the autocomplete suggestion
> but works as a "bare" return. Could it be therefore something that
> clashes among autocomplete and auto-state?
No idea, and I have to say I can't go further in debugging this, you
have to investigate on your side (cc-mode is not too hard to debug with
the elisp debugguer and breakpoints on the functions you want to trace,
then checking why the line gets inserted or not/removed or not after
typing ';'). Check if removing the two "add-to-list" statements in my
snippet brings back the autocomplete on RET, then you will now this
comes from this part... This is quite basic debugging, so I think you
will learn more by doing it by yourself.
Maybe if you want to tune more fully your cc-mode you need to define
your own style (it is easy to find lots of examples on the Web, for
example :
http://google-styleguide.googlecode.com/svn/trunk/google-c-style.el).
--
DW
next prev parent reply other threads:[~2013-01-10 16:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.17033.1357807327.855.help-gnu-emacs@gnu.org>
2013-01-10 8:52 ` c-auto-newline question Damien Wyart
2013-01-10 9:22 ` Luca Ferrari
[not found] ` <mailman.17034.1357809745.855.help-gnu-emacs@gnu.org>
2013-01-10 9:42 ` Damien Wyart
2013-01-10 14:46 ` Luca Ferrari
[not found] ` <mailman.17050.1357829207.855.help-gnu-emacs@gnu.org>
2013-01-10 16:30 ` Damien Wyart [this message]
2013-01-11 8:51 ` Luca Ferrari
2013-01-10 8:42 Luca Ferrari
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='50eeecbf$0$2026$426a74cc@news.free.fr' \
--to=damien.wyart@free.fr \
--cc=help-gnu-emacs@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.