From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Leo Liu <sdl.web@gmail.com>
Cc: 14381@debbugs.gnu.org
Subject: bug#14381: 24.3; smie-auto-fill infinite loop
Date: Mon, 13 May 2013 11:43:38 -0400 [thread overview]
Message-ID: <jwv4ne6x5ih.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <m161yo6flu.fsf@gmail.com> (Leo Liu's message of "Sun, 12 May 2013 11:29:01 +0800")
>> Should enter an infinite loop.
> I would like to simplify and fix octave's fill-paragraph and auto-fill
> feature.
Very good idea (when I moved octave to SMIE, I wanted to do that as
well, but ended up leaving it for later).
> Could you help fix or direct me how to fix this bug and bug#14303?
I think to fix/simplify them well, you'll need to touch some of the
generic code. For bug#14303, the first ting to do is to read the code
of comment-search-backward.
If I were you, I'd start with octave-auto-fill, trying to replace it
with something that hooks elsewhere, such as in fill-nobreak-predicate
and in comment-line-break-function.
For octave-fill-paragraph, I'm not sure what should be done there, but
the functionality looks like it could be useful in many
programming modes. So maybe it should be moved to prog-mode.
Stefan
next prev parent reply other threads:[~2013-05-13 15:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-10 13:06 bug#14381: 24.3; smie-auto-fill infinite loop Leo Liu
2013-05-12 3:29 ` Leo Liu
2013-05-13 15:43 ` Stefan Monnier [this message]
2013-05-17 23:16 ` Leo Liu
2013-05-23 17:45 ` Stefan Monnier
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=jwv4ne6x5ih.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=14381@debbugs.gnu.org \
--cc=sdl.web@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.