emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: regression using filladapt with c/c++


From: John Yates
Subject: Re: regression using filladapt with c/c++
Date: Tue, 5 Oct 2010 08:07:46 -0400

[Resending with one addition experiment at the end.]

I have long used filladapt (distribute in Ubuntu as part of
.../site-lisp/emacs-goodies-el) in conjunction with c-mode and
c++-mode.  filladapt.el appears quite stable:

;;; Adaptive fill
;;; Copyright (C) 1989, 1995-1998 Kyle E. Jones


My demonstration example is run with this 3 line .emacs:

+----
| (setq-default fill-column 72)
| (require 'filladapt)
| (setq-default filladapt-mode t)
+----

I use the following C++ fragment as a test:

+----
| int main
=     // a b c
|     // d e f
|     ( int a
|     , int b
|     )
| /*
=     >> a b c
|     >> d e f
| */
| {
|     return 0;
| }
+----

I execute M-q (c-fill-paragraph) twice, once with point position at
the equal sign (=).


GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.0) of
2010-03-29 on yellow, modified by Debian:

+----
| int main
|     // a b c d e f
|     ( int a
|     , int b
|     )
| /*
|     >> a b c d e f
| */
| {
|     return 0;
| }
+----


GNU Emacs 24.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) of
2010-10-01 on elegiac, modified by Debian:

+----
| int main
|     // a b c d e f    ( int a
|     , int b
|     )
| /*
|     >> a b c d e f */ { return 0; }
+----


Repeating the experiment, this time will filladapt turned off:

+----
| int main
|     // a b c d e f
|     ( int a
|     , int b
|     )
| /*
|     >> a b c d e f */ { return 0; }
+----


/john



reply via email to

[Prev in Thread] Current Thread [Next in Thread]