473,396 Members | 2,158 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Emacs CC Mode's auto-newline facility: INFORMAL SURVEY

[Followup-To: gnu.emacs.help. Add your own group if you wish.]

To all those who use (X)Emacs's CC Mode to edit C, C++, Java,
Objective-C, Pike, AWK or IDL:

To help direct the development of CC Mode, it would be useful to find out
how people use the auto-newline "minor mode" facility. If you could
spare a little time, would you answer these questions, please:

o Do you program with auto-newline switched on (e.g. do you get NLs
inserted automatically after typing a `;' or `{')?
o Did you configure this auto-newline setting yourself, and if not, are
you happy with it?
o Are you aware of the key binding C-c C-a to toggle this mode on and
off?
o How often do you use C-c C-a (or even C-c C-t) to toggle auto-newline
mode?
o In which language(s) (C, C++, ....) do you program in (X)Emacs?

Further pertinent comments are, of course, welcome. Thanks in advance
for your time.

--
Alan Mackenzie (Munich, Germany)
Email: aa**@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").

Nov 14 '05 #1
9 2486
[Followup-To: set to gnu.emacs.help once again]

In gnu.emacs.help Alan Mackenzie <ac*@muc.de> wrote:
To help direct the development of CC Mode, it would be useful to find
out how people use the auto-newline "minor mode" facility. If you
could spare a little time, would you answer these questions, please:
A big thank you to all who responded, including another 7 who answered me
by email.

OK: Here are the results (Sometimes with a little necessary
interpretation), with my comments.
o Do you program with auto-newline switched on (e.g. do you get NLs
inserted automatically after typing a `;' or `{')? Yes: 13
No: 6
Wow! Lots of people use auto-newline. Like some respondents, I can't
stand it. It shows that we need it, and it needs to be optional.
o Did you configure this auto-newline setting yourself, and if not, are
you happy with it? Yes: 11
No: 4 No/Yes: 3
No/No: 0
Dumb double question there. Sorry.
o Are you aware of the key binding C-c C-a to toggle this mode on and
off? Yes: 6
No: 13
I counted someone who said "No, but I use the menu item" as a yes.
o How often do you use C-c C-a (or even C-c C-t) to toggle auto-newline
mode? Frequently:
Seldomly: 4
Never: 14
Not a popular toggle. It would seem that most people either definitely
want auto-newline or definitely don't want it. Very few seem to want to
toggle it whilst editing; maybe because most people don't know it
exists.
o In which language(s) (C, C++, ....) do you program in (X)Emacs?

C: 14
C++: 14
Objective-C: 2
Java: 7
Pike: 0
IDL: 1
AWK: 0
Most (but not all) C hackers are also C++ hackers. It's good to see that
Objective-C and IDL Modes are actually used. But where are the Pikers and
Awkers? (We know that there's _at least_ one of each ;-).

--
Alan Mackenzie (Munich, Germany)
Email: aa**@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").

Nov 14 '05 #2
On Sun, 24 Apr 2005 16:42:08 +0000, Alan Mackenzie
<ac*@muc.de> wrote:
[Followup-To: set to gnu.emacs.help once again]
Sorry, I've overridden it because I don't get that group...
Most (but not all) C hackers are also C++ hackers. It's good to see that
Objective-C and IDL Modes are actually used. But where are the Pikers and
Awkers? (We know that there's _at least_ one of each ;-).


I use C, C++ and Awk (I've never heard of Pike), but I don't use emacs
<g>. I use Vim, and Vim's C mode works fine for Awk and C++ as well.
Perhaps all the other Awk writers don't use emacs either <g>...

Chris C
Nov 14 '05 #3
In comp.lang.awk Chris Croughton <ch***@keristor.net> wrote:
On Sun, 24 Apr 2005 16:42:08 +0000, Alan Mackenzie
<ac*@muc.de> wrote:
[Followup-To: set to gnu.emacs.help once again] Sorry, I've overridden it because I don't get that group...
No problem! But without the Fup-To:, I'd have been getting hassle from 8
groups' worth of netcops. I've left comp.lang.awk in because I'm not
reading comp.lang.c at the moment.
Most (but not all) C hackers are also C++ hackers. It's good to see
that Objective-C and IDL Modes are actually used. But where are the
Pikers and Awkers? (We know that there's _at least_ one of each ;-).

I use C, C++ and Awk (I've never heard of Pike) .....
To quote from the pertinent Manual, "A C-like scripting language with its
roots in the LPC language used in some MUD engines. See
`http://pike.ida.liu.se/'". I've never seen any either, though it looks
like it's got some fairly sophisticated syntax.
...., but I don't use emacs <g>. I use Vim, and Vim's C mode works
fine for Awk and C++ as well. Perhaps all the other Awk writers don't
use emacs either <g>...
The big reason could be that a properly working AWK Mode hasn't yet been
incorporated into a main version of GNU Emacs.

Vim, you say. Hmm. There was a remark here (comp.lang.awk) recently
that Vim's syntax highlighting fails on this monstrosity:

{print a /(b+1)/ c, /(b+1)/, a (/b+1/) c}
1 2 3 4 5 6

.. Emacs's highlighting, by contrast, correctly highlights slashes 1 and
2 as division signs, and (3 4) and (5 6) as two pairs of regexp
delimiters. It also paints "a (" bright red, to warn that you've
possibly committed the syntax error of putting an erroneous space before
the l-paren of a non-built-in function call.
Chris C


--
Alan Mackenzie (Munich, Germany)
Email: aa**@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").

Nov 14 '05 #4
On Mon, 25 Apr 2005 19:05:17 +0000, Alan Mackenzie <ac*@muc.de> wrote:
In comp.lang.awk Chris Croughton <ch***@keristor.net> wrote:
On Sun, 24 Apr 2005 16:42:08 +0000, Alan Mackenzie
<ac*@muc.de> wrote:

[Followup-To: set to gnu.emacs.help once again]

Sorry, I've overridden it because I don't get that group...


No problem! But without the Fup-To:, I'd have been getting hassle from 8
groups' worth of netcops. I've left comp.lang.awk in because I'm not
reading comp.lang.c at the moment.


But why did you leave comp.lang.c in?
Is it really that much trouble for the OP to subscribe to the proper
group?

--
Al Balmer
Balmer Consulting
re************************@att.net
Nov 14 '05 #5
[Followup-To: _not_ set]

Alan Balmer <al******@att.net> wrote on Mon, 25 Apr 2005 15:59:29 -0700:
On Mon, 25 Apr 2005 19:05:17 +0000, Alan Mackenzie <ac*@muc.de> wrote:
In comp.lang.awk Chris Croughton <ch***@keristor.net> wrote:
On Sun, 24 Apr 2005 16:42:08 +0000, Alan Mackenzie
<ac*@muc.de> wrote: [Followup-To: set to gnu.emacs.help once again] Sorry, I've overridden it because I don't get that group...
No problem! But without the Fup-To:, I'd have been getting hassle from
8 groups' worth of netcops. I've left comp.lang.awk in because I'm not
reading comp.lang.c at the moment.

But why did you leave comp.lang.c in?
That's seems to be the "home" group of whom I'm replying to.
comp.lang.awk is the group for which the current theme is most on topic.
Is it really that much trouble for the OP to subscribe to the proper
group?
For whatever values of "OP" and "proper". But you've certainly given
point to my point about the netcops. ;-)

Have a great day!
--
Al Balmer


--
Alan Mackenzie (Munich, Germany)
Email: aa**@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").

Nov 14 '05 #6
On Mon, 25 Apr 2005 19:05:17 +0000, Alan Mackenzie
<ac*@muc.de> wrote:
In comp.lang.awk Chris Croughton <ch***@keristor.net> wrote:
On Sun, 24 Apr 2005 16:42:08 +0000, Alan Mackenzie
<ac*@muc.de> wrote:
[Followup-To: set to gnu.emacs.help once again]
Sorry, I've overridden it because I don't get that group...


No problem! But without the Fup-To:, I'd have been getting hassle from 8
groups' worth of netcops. I've left comp.lang.awk in because I'm not
reading comp.lang.c at the moment.


Fair enough. It wasn't a complaint, I was just mentioning why I did it.
I probably should subscribe to comp.lang.awk...
I use C, C++ and Awk (I've never heard of Pike) .....


To quote from the pertinent Manual, "A C-like scripting language with its
roots in the LPC language used in some MUD engines. See
`http://pike.ida.liu.se/'". I've never seen any either, though it looks
like it's got some fairly sophisticated syntax.


I'll look for that...
...., but I don't use emacs <g>. I use Vim, and Vim's C mode works
fine for Awk and C++ as well. Perhaps all the other Awk writers don't
use emacs either <g>...


The big reason could be that a properly working AWK Mode hasn't yet been
incorporated into a main version of GNU Emacs.


Could be <g>. I'm not getting into editor wars (de gustibus non
disputandem est!), I just don't like emacs.
Vim, you say. Hmm. There was a remark here (comp.lang.awk) recently
that Vim's syntax highlighting fails on this monstrosity:

{print a /(b+1)/ c, /(b+1)/, a (/b+1/) c}
1 2 3 4 5 6

. Emacs's highlighting, by contrast, correctly highlights slashes 1 and
2 as division signs, and (3 4) and (5 6) as two pairs of regexp
delimiters. It also paints "a (" bright red, to warn that you've
possibly committed the syntax error of putting an erroneous space before
the l-paren of a non-built-in function call.


Ah, yes, Vim marks the first two as a regexp. I wonder if I can do
something about that...

I don't know that I'd want the "a (" marked, because it's not an error
in this case.

Followups now to comp.lang.awk where it's on-topic...

Chris C
Nov 14 '05 #7
On Mon, 25 Apr 2005 15:59:29 -0700, Alan Balmer
<al******@att.net> wrote:
On Mon, 25 Apr 2005 19:05:17 +0000, Alan Mackenzie <ac*@muc.de> wrote:
In comp.lang.awk Chris Croughton <ch***@keristor.net> wrote:
On Sun, 24 Apr 2005 16:42:08 +0000, Alan Mackenzie
<ac*@muc.de> wrote:
[Followup-To: set to gnu.emacs.help once again]

Sorry, I've overridden it because I don't get that group...


No problem! But without the Fup-To:, I'd have been getting hassle from 8
groups' worth of netcops. I've left comp.lang.awk in because I'm not
reading comp.lang.c at the moment.


But why did you leave comp.lang.c in?


I don't know which group you're reading (you didn't set followups), but
if he hadn't left comp.lang.c in I wouldn't have seen his reply because
I wasn't subscribed to either of the other likely groups (comp.lang.awk
or the emacs one).
Is it really that much trouble for the OP to subscribe to the proper
group?


If I'd known which "proper group" to subscribe to, but how would I know
that until he replied in a group which I do read? I'm not going to read
every newsgroup in existance just in case the reply might be there.

Now that I know he is using comp.lang.awk I'm subscribed here (and
followups are set to comp.lang.awk as well), because it could be of
interest (the emacs one isn't for me).

Chris C
Nov 14 '05 #8
On Tue, 26 Apr 2005 07:08:02 +0000, Alan Mackenzie <ac*@muc.de> wrote:
Is it really that much trouble for the OP to subscribe to the proper
group?


For whatever values of "OP" and "proper". But you've certainly given
point to my point about the netcops. ;-)


Just as you illustrate the characteristics of clueless posters. We
need a bad example now and then.

I really is little trouble, especially when there are archives such as
Google, to ascertain the topicality of a newsgroup before posting
there.

--
Al Balmer
Balmer Consulting
re************************@att.net
Nov 14 '05 #9
[fu-t set -- will it survive?]

in comp.lang.c i read:
On Sun, 24 Apr 2005 16:42:08 +0000, Alan Mackenzie
<ac*@muc.de> wrote:

[Followup-To: set to gnu.emacs.help once again]


Sorry, I've overridden it because I don't get that group...


wonderful. thanks for keeping the off-topic chatter here, rather than
finding a way to subscribe to that other group.

--
a signature
Nov 14 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Christian Seberino | last post by:
I am looking at the ELSE home page and trying to figure out if I should invest the time to learn about the ELSE minor mode for Emacs. Is there any programmer out there using ELSE that is getting...
5
by: Tuxtrax | last post by:
Hi all My editor of choice on linux for python, bar none, is xemacs. I love the python mode that detects a python file and handles indentation and coloration for me automagically. I have been...
12
by: Rex Eastbourne | last post by:
Hi, I'm interested in running a Python interpreter in Emacs. I have Python extensions for Emacs, and my python menu lists "C-c !" as the command to run the interpreter. Yet when I run it I get...
0
by: David Abrahams | last post by:
Hi, I recently translated the DTD at http://www.boost.org/doc/dtd/boostbook.dtd (a refinement of docbook) to RelaxNG using Trang, using no special command-line options. Now if I try to...
12
by: Thomas Bartkus | last post by:
Does anyone use emacs together with both WordStar key bindings and python mode? I'm afraid that Wordstar editing key commands are burned R/O into my knuckles! I would like to play with emacs...
2
by: sparkw | last post by:
I am using WinXP, GNU Emacs 23, MySQL 5. When I start a mysql process with `sql-mysql' in emacs, no output is displayed in the buffer until I quit or kill the process. After I add the following...
7
by: Xah Lee | last post by:
Summary: when encountering ex as a unit in css, FireFox (and iCab) did not take into account the font-family. Detail: http://xahlee.org/js/ff_pre_ex.html Xah xah@xahlee.org ∑...
4
by: emin.shopper | last post by:
Emacs seems to freeze when doing certain shell commands on Microsoft Windows. The following is a simple example with Xemacs: ---------------------------------------------------------- ...
331
by: Xah Lee | last post by:
http://xahlee.org/emacs/modernization.html ] The Modernization of Emacs ---------------------------------------- THE PROBLEM Emacs is a great editor. It is perhaps the most powerful and...
1
by: Xah Lee | last post by:
Text Processing with Emacs Lisp Xah Lee, 2007-10-29 This page gives a outline of how to use emacs lisp to do text processing, using a specific real-world problem as example. If you don't know...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.