From: Alan Mackenzie <acm@muc.de>
To: Deniz Dogan <deniz.a.m.dogan@gmail.com>
Cc: 193@debbugs.gnu.org
Subject: bug#193: Fix for bug#193.
Date: Fri, 9 Jul 2010 18:51:16 +0000 [thread overview]
Message-ID: <20100709185115.GA3036@muc.de> (raw)
In-Reply-To: <AANLkTill7PHyqYrJ8BWBN5nP_XLksHl9Dm0rPQvnE8b1@mail.gmail.com>
Hi, Deniz,
On Sun, Jun 27, 2010 at 02:47:52PM +0200, Deniz Dogan wrote:
> Did anyone ever agree on what needs to be done to fix the problem?
Would you try this patch, please, and then tell me whether or not it
works fully. Thanks!
*** orig/cc-cmds.el 2010-07-05 20:17:46.000000000 +0000
--- cc-cmds.el 2010-07-09 18:31:52.143059496 +0000
***************
*** 4229,4236 ****
(let ((fill-paragraph-function
;; Avoid infinite recursion.
(if (not (eq fill-paragraph-function 'c-fill-paragraph))
! fill-paragraph-function)))
! (c-mask-paragraph t nil 'fill-paragraph arg))
;; Always return t. This has the effect that if filling isn't done
;; above, it isn't done at all, and it's therefore effectively
;; disabled in normal code.
--- 4229,4239 ----
(let ((fill-paragraph-function
;; Avoid infinite recursion.
(if (not (eq fill-paragraph-function 'c-fill-paragraph))
! fill-paragraph-function))
! (start-point (point-marker)))
! (c-mask-paragraph
! t nil (lambda () (fill-region-as-paragraph (point-min) (point-max) arg)))
! (goto-char start-point))
;; Always return t. This has the effect that if filling isn't done
;; above, it isn't done at all, and it's therefore effectively
;; disabled in normal code.
> Deniz Dogan
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2010-07-09 18:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-06 21:49 Fill for // (C++) style comments in C (C99) Richard Hansen
2010-06-27 12:47 ` bug#193: Deniz Dogan
2010-07-05 20:06 ` bug#193: Alan Mackenzie
2011-03-05 20:43 ` bug#193: Glenn Morris
2010-07-06 19:29 ` bug#193: Alan Mackenzie
2010-07-06 19:29 ` bug#193: Alan Mackenzie
2010-07-09 18:51 ` Alan Mackenzie [this message]
2010-07-10 1:41 ` bug#193: Fix for bug#193 Christoph
2010-07-11 18:55 ` Alan Mackenzie
2010-07-14 1:08 ` Christoph
2010-08-06 18:59 ` Alan Mackenzie
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100709185115.GA3036@muc.de \
--to=acm@muc.de \
--cc=193@debbugs.gnu.org \
--cc=deniz.a.m.dogan@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.