From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Fill for // style comments in C Date: Tue, 28 Nov 2006 22:41:58 +0100 Message-ID: <456CAD26.8000104@gmx.at> References: <456AB431.4020103@gmx.at> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050004060408080608040504" X-Trace: sea.gmane.org 1164750656 14866 80.91.229.2 (28 Nov 2006 21:50:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Nov 2006 21:50:56 +0000 (UTC) Cc: rms@gnu.org, lennart.borgman.073@student.lu.se, emacs-devel@gnu.org, bug-cc-mode@gnu.org, monnier@iro.umontreal.ca, Herbert Euler Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 28 22:50:53 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GpAql-0007PP-99 for ged-emacs-devel@m.gmane.org; Tue, 28 Nov 2006 22:50:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GpAqk-0003ol-LM for ged-emacs-devel@m.gmane.org; Tue, 28 Nov 2006 16:50:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GpApz-000354-IP for emacs-devel@gnu.org; Tue, 28 Nov 2006 16:49:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GpApx-00033i-Qq for emacs-devel@gnu.org; Tue, 28 Nov 2006 16:49:59 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GpApx-00033P-J8 for emacs-devel@gnu.org; Tue, 28 Nov 2006 16:49:57 -0500 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1GpApu-0006Dk-BH for emacs-devel@gnu.org; Tue, 28 Nov 2006 16:49:55 -0500 Original-Received: (qmail invoked by alias); 28 Nov 2006 21:49:52 -0000 Original-Received: from N871P009.adsl.highway.telekom.at (EHLO [62.47.52.201]) [62.47.52.201] by mail.gmx.net (mp034) with SMTP; 28 Nov 2006 22:49:52 +0100 X-Authenticated: #14592706 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en Original-To: Miles Bader In-Reply-To: X-Y-GMX-Trusted: 0 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:62995 Archived-At: This is a multi-part message in MIME format. --------------050004060408080608040504 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit > I tried this patch, and it does indeed seem to fix the filling problem > -- but it has a serious side-effect: with this patch applied, the SPC > key (bound to self-insert-command) no longer works! [There's no error > or anything, but no spaces get inserted when you type SPC.] Sorry. I did experiment with auto-filling but failed to see that it swallowed the spaces. Please try the attached patch instead. But we should probably wait for Alan to comment on this. --------------050004060408080608040504 Content-Type: text/plain; name="cc-cmds.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="cc-cmds.patch" *** progmodes/cc-cmds.el Mon Nov 27 10:32:48 2006 --- progmodes/cc-cmds.el Tue Nov 28 22:29:14 2006 *************** *** 3897,3903 **** (prog1 (save-restriction (narrow-to-region beg end) ! (apply fun args)) (if point-rel ;; Restore point if it was outside the region. (if (< point-rel 0) --- 3897,3906 ---- (prog1 (save-restriction (narrow-to-region beg end) ! (if (eq c-lit-type 'c++) ! (let ((comment-end "")) ! (apply fun args)) ! (apply fun args))) (if point-rel ;; Restore point if it was outside the region. (if (< point-rel 0) --------------050004060408080608040504 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 --------------050004060408080608040504--