From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: [Toby.Allsopp@navman.com: auto-fill in c-mode messes up incomplete comments]
Date: Sun, 24 Dec 2006 19:43:02 -0500 [thread overview]
Message-ID: <E1Gydvi-0002NK-M0@fencepost.gnu.org> (raw)
Would someone please work on this?
------- Start of forwarded message -------
To: emacs-pretest-bug@gnu.org
From: Toby Allsopp <Toby.Allsopp@navman.com>
Date: Tue, 28 Nov 2006 11:48:39 +1300
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Cc: emacs-snapshot@packages.debian.org
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 22.0.91.1 (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' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/22.0.91/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.0.91/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.0.91/leim' '--with-x=yes' '--with-x-toolkit=athena' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2''
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
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
------- End of forwarded message -------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
next reply other threads:[~2006-12-25 0:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-25 0:43 Richard Stallman [this message]
2006-12-25 11:25 ` [Toby.Allsopp@navman.com: auto-fill in c-mode messes up incomplete comments] Michaël Cadilhac
2006-12-26 0:13 ` Toby Allsopp
2006-12-26 2:26 ` Richard Stallman
2006-12-26 10:47 ` Michaël Cadilhac
2006-12-27 2:59 ` Richard Stallman
2007-01-01 22:49 ` Alan Mackenzie
2006-12-28 22:09 ` Giorgos Keramidas
2007-01-02 21:09 ` Alan Mackenzie
2007-01-03 20:46 ` Alan Mackenzie
2007-01-04 7:59 ` Toby Allsopp
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=E1Gydvi-0002NK-M0@fencepost.gnu.org \
--to=rms@gnu.org \
--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).