From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: michael@cadilhac.name (=?iso-8859-1?Q?Micha=EBl?= Cadilhac) Newsgroups: gmane.emacs.devel Subject: Re: [Toby.Allsopp@navman.com: auto-fill in c-mode messes up incomplete comments] Date: Tue, 26 Dec 2006 11:47:26 +0100 Organization: Epita/LRDE Message-ID: <87slf353y9.fsf@lrde.org> References: <87d568b4jp.fsf@lrde.org> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1858143366==" X-Trace: sea.gmane.org 1167130090 15558 80.91.229.10 (26 Dec 2006 10:48:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Dec 2006 10:48:10 +0000 (UTC) Cc: bug-cc-mode@gnu.org, Toby.Allsopp@navman.com, monnier@IRO.UMontreal.CA, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 26 11:48:08 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1Gz9qq-0005r7-91 for ged-emacs-devel@m.gmane.org; Tue, 26 Dec 2006 11:48:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gz9qp-0006QP-Q2 for ged-emacs-devel@m.gmane.org; Tue, 26 Dec 2006 05:48:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gz9qY-0006Oj-MQ for emacs-devel@gnu.org; Tue, 26 Dec 2006 05:47:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gz9qW-0006Mv-LX for emacs-devel@gnu.org; Tue, 26 Dec 2006 05:47:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gz9qW-0006MP-5b for emacs-devel@gnu.org; Tue, 26 Dec 2006 05:47:48 -0500 Original-Received: from [80.12.242.26] (helo=smtp20.orange.fr) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gz9qK-000140-4R; Tue, 26 Dec 2006 05:47:36 -0500 Original-Received: from localhost (AMontpellier-157-1-167-45.w90-14.abo.wanadoo.fr [90.14.62.45]) by mwinf2006.orange.fr (SMTP Server) with ESMTP id 046F51C00084; Tue, 26 Dec 2006 11:47:32 +0100 (CET) X-ME-UUID: 20061226104733182.046F51C00084@mwinf2006.orange.fr Original-To: rms@gnu.org Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAYFBMVEUWCwUyFQk6JBNLGglQK BVRMiRkHQtwMBZuOCRyRi1iQiZyUUCFNxuIPCKRTC2mVTSpZTqVVS2SW0OYZkixb0qraE/KeU7EcT +4h2bPhVfQkm7hlnDkvZjYqIjrwJnzwqB5+4wZAAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWc AAAAwAAAAMADO7oxXAAADvUlEQVRIx32Wi5ajIAyGRcCAchErVqu27/+W+wfbs724i3Mcz5n/S0JI wlTbyXrs+zrFEL1zPuIdY7xO6+PBf6u27f4DrFPO3jvoQYRYFoj9CXyu+7ZPEWrXUNM0zpEfgjuY9 RTY1hyg5qUNgMb44Dwiiz5OZ8DCwVCjpdLaGNOVtw+M+Lz+AlNwRAhGSamh1abrtFKmG0DkmL8BhE +GdCNlreChBaO7DpjpIvbv/fr4AnqErhoYF6KI4aPrLIeFQLGj6RO4JWLjtdZ1WQXhvegGG0EKyO/ vwH7xJBk4tLrW5UPxN3zAufHDO3Axh4MCMPLisKQyRuJo/Btw60gpWcu6OogjsmIeiRIKgUlj3oCp a1QtRP1ywT9VfXCiZMEg4X+BfYADAHhhdc+NV1UBBT9SIedvgFFwDFslkO7S8e+KtQcohJCyefdgt DoC4pe+FB8VL3bDeiGB/AVurZJCvY5AtdaSKpYLJArxCXCOlMUpiRpF0Sbb8nZYBnGBPoGZuOCGAd lTqgXRlrrDuUgpDh+VNPYN0IRALnkIFsVTiBanbBQbesYl1Num584iojnnHIPVJRSJvFnrrFHPmD6 yBKJVbZ+nKScjIVfatlSaJ9BBiIbcW1rnOSF4F/OYGiFLQaCXyAUsLTggnAN9VOuMaBtuX1QmHwok RD4CIHzXChG5z37oWkRhxx5tCmdKNUSp7/tUYlQwQ/6z424JPtr+mlwwwbbGQj5CXwBjyPj4NQRmJ J7GZez7mPpk02W+jvgMnFrUaozhE7jPF9va+QZinMaxn0dGMSy5ExuHmdZ8APf7felTv9zGccGal3 le2JdHt0lJaGklvjwA6JcVACwXpugd+gAJQvuIL2C7r9eJgQscXQH0I+sxkrBjjE0ukW9gui7rMo9 DAoGnTzyZceA8lYh+AMxWeFiu/ZhSLCeAUex4hhPr6XsPPAqu0xRxNVAaS0J58pODvhCN/AFWziLP rMtYjsxD6y0dDpDeH2Cf+sxEyPmSYuIJbOi1zCmQc/DkbQg2FQ/O2RfgDP0Aj8eU+VpDmlpLvBkqe kTJpe5+r6xtz9A7VnCxlthfAJkz4JGRJfzVcEiHHK36BOgE2PYRPpIna0K5wAzGCLcWN6A6A3CRRu SJWo+NoybQfag9TA/CxymwTdnDWkh4cPOweckTRCkhzgH8K+ChxkKG2L4oQBlPp8B2G/sc02CDKTp xXExlOJ3q79vcpyGYlmelFOXRxyj/hwe+XnBhw6osY17wJfB/IB/3o2a14Hl8jNfqDx44iLN4w0aG AAAAAElFTkSuQmCC In-Reply-To: (Richard Stallman's message of "Mon\, 25 Dec 2006 21\:26\:04 -0500") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.90 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:64292 Archived-At: --===============1858143366== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Richard Stallman writes: > Please install your change, and then I'd like people to try the > latest code for editing C files to see if this introduces any new bug. As Toby pointed out, this patch only cures part of the problem. I think the way `hang-ender-stuck' is processed has to be read by some knowledgeable people, and patched once and for all. I'll try to see if I can find a fix. ATM, I can fix Toby's problem but I still have weird behaviors: *** cc-cmds.el 03 Dec 2006 01:56:56 +0100 1.46 =2D-- cc-cmds.el 26 Dec 2006 11:32:25 +0100=09 *************** *** 3733,3739 **** ;; text and the ender, depending on how ;; many there are now. (unless spaces ! (setq spaces (- ender-column (current-column)))) (setq auto-fill-spaces (c-delete-and-extract-region (point) ender-start)) ;; paragraph filling condenses multiple spaces to =2D-- 3730,3736 ---- ;; text and the ender, depending on how ;; many there are now. (unless spaces ! (setq spaces (max 1 (- ender-column (current-column)))))e (setq auto-fill-spaces (c-delete-and-extract-region (point) ender-start)) ;; paragraph filling condenses multiple spaces to Still leads to weird things, for example: Buffer--------- /* * * =2D-------------- Point on second line, then hit `space', you're on the third line. This is already the case with the current code, but in another fashion. Well. There's hope, I think. Merry Juanma's-birthday-mas. =2D-=20 | Micha=EBl `Micha' Cadilhac | La culture c'est comme la confitu= re, | | Epita/LRDE Promo 2007 | c'est meilleur avec du pain. = | | http://michael.cadilhac.name | -- MOI59 = | `--JID: michael.cadilhac@gmail.com--' - = --' --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFkP3BUJhDmOfFA3URAiskAJ9IHdgkIn+QUMqhu58MWeHDjUFgcQCfU8RG xpX6QAKAvm6/JtAhUPYbtHk= =NKwD -----END PGP SIGNATURE----- --=-=-=-- --===============1858143366== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============1858143366==--