[Top][All Lists]

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

address@hidden: auto-fill in c-mode messes up incomplete comments]

From: Richard Stallman
Subject: address@hidden: auto-fill in c-mode messes up incomplete comments]
Date: Sun, 24 Dec 2006 19:43:02 -0500

Would someone please work on this?

------- Start of forwarded message -------
To: address@hidden
From: Toby Allsopp <address@hidden>
Date: Tue, 28 Nov 2006 11:48:39 +1300
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Cc: address@hidden
Subject: auto-fill in c-mode messes up incomplete comments
X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO 
        autolearn=failed version=3.0.4

>From a shell prompt:

emacs -q /tmp/tmp.c
M-x auto-fill-mode

(That's / * <return> * SPC).

When typing the final space, the second line gets deleted.  Pressing
return instead messes it up differently.  This seems to be a problem
with c-mask-paragraph.

After space:
- --8<---------------cut here---------------start------------->8---
- --8<---------------cut here---------------end--------------->8---

After return:
- --8<---------------cut here---------------start------------->8---
- --8<---------------cut here---------------end--------------->8---

In GNU Emacs (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2006-11-24 on pacem, modified by Debian
 (Debian emacs-snapshot package, version 1:20061123-1)
X server distributor `The X.Org Foundation', version 11.0.70101000
configured using `configure  '--build' 'i486-linux-gnu' '--host' 
'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' 
'--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' 
'--mandir=/usr/share/man' '--with-pop=yes' 
 '--with-x=yes' '--with-x-toolkit=athena' '--with-toolkit-scroll-bars' 
'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN 

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_NZ.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: C/l

Minor modes in effect:
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t
  abbrev-mode: t

Recent input:
M-x a u t o - f i l l - m o d e <return> / * <return> 
* SPC M-x r e p o <tab> r <tab> <return>

Recent messages:
Loading /etc/emacs/site-start.d/60hyperspec.el (source)...done
Loading /etc/emacs/site-start.d/65bitmap-mule.el (source)...done
Loading /etc/emacs/site-start.d/70x-face-el.el (source)...done
For information about the GNU Project and its goals, type C-h C-p.
tmp.c has auto save data; consider M-x recover-this-file
Loading cc-mode...done
Loading tabify...done
c-mask-paragraph: Beginning of buffer
Making completion list...
Loading emacsbug...done

emacs-pretest-bug mailing list
------- End of forwarded message -------

reply via email to

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