filldapt vs. modern Emacs

43 views
Skip to first unread message

Win Treese

unread,
Jun 28, 2016, 11:12:51 PM6/28/16
to aquamac...@googlegroups.com

Proposal: remove filladapt.el from the Aquamacs distribution:

Why:

Back in the 90s Kyle Jones wrote filladapt.el for better and more flexible filling of paragraphs, especially in the programming modes. Among other things, it redefines the standard Emacs fill-paragraph function.

A long time ago, Aquamacs started including filladapt.el as the default (as far as I can tell, anyway). Which was fine then, because it was very useful.

But in 2007, the signature of the standard Emacs fill-paragraph changed from

(fill-paragraph arg)

to

(fill-paragraph &optional justify region)

So now if you call (fill-paragraph), it works in standard Emacs, but not in Aquamacs. And there are packages out there now using it that way.

Also, Emacs has also acquired a built-in Adaptive Fill mode. There’s some disagreement about which one is better, but that is now closer to a matter of taste than basic function.

Therefore, I propose that filladapt be removed from the Aquamacs distribution, or at least not load it by default.

In the meantime, here’s a little piece of function advice that works around the problem temporarily:

(defun wt/fix-filladapt-fill-paragraph (orig-fun &optional arg)
"Add argument to call to filladapt's fill-paragraph."
(apply orig-fun (list arg)))

(advice-add 'fill-paragraph :around #'wt/fix-filladapt-fill-paragraph)

Thanks,

Win

--
Win Treese
tre...@acm.org

David Reitter

unread,
Jun 29, 2016, 7:36:26 PM6/29/16
to aquamac...@googlegroups.com
Win,
This is a well-argued proposal. I agree that we should retire it in favor of adaptive-fill-mode.

Will you make the change and document it with a good entry in changelog.tex?

- David
> --
> You received this message because you are subscribed to the Google Groups "aquamacs-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to aquamacs-deve...@googlegroups.com.

David Reitter

unread,
Jul 1, 2016, 10:58:52 PM7/1/16
to aquamac...@googlegroups.com, Win Treese
Win,
I wasn’t sure if you were going to do it, so I went ahead because I didn’t want to forget about it.
Please take a look and let me know if you think we need to do something to make old initialization files that people might have more compatible, i.e., define filladapt-mode as a no-op.

- David



--
http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and support the Aquamacs Project!

Win Treese

unread,
Jul 6, 2016, 5:45:26 PM7/6/16
to David Reitter, aquamac...@googlegroups.com
Hi, David. Sorry for the silence—I was sick for about a week and way behind on email.

Your changes look correct to me. I think it’s unlikely that many Aquamacs users have anything in their configurations that loads it directly, either with require or load-library. If they do, it’s been in their configuration for a while before coming to Aquamacs, and they’re likely to be able to figure it out.

Thanks,

Win
Reply all
Reply to author
Forward
0 new messages