emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lexical-binding in paredit


From: Stefan Monnier
Subject: Re: lexical-binding in paredit
Date: Sun, 03 Nov 2024 20:54:36 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

> Since paredit.el still works fine in GNU Emacs 21, I don't see the
> need for the large amount of churn to drop support for it, but maybe I

The only part of the patch related to support for older Emacsen was the
part described as:

    (paredit-initialize-comment-dwim): Delete function needed only for Emacs-21.
    (paredit-comment-dwim): Call `comment-normalize-vars` instead.


> missed some other important fix in the churn.

Nothing important, no:

    Add `declare`s to `defmacro`s.

would help Edebugging, but I guess that hasn't been a problem so far.

    Avoid obsolete `point-at-eol/bol`.

silences compiler warnings but apparently not in the version of Emacs
you're using.

    (paredit-xemacs-p, paredit-gnu-emacs-p): Inline all calls (so the
    byte-compiler can throw away the irrelevant code) and then delete.
    (xcond): Delete macro, since after expanding `paredit-*emacs-p` it's

makes the source code simpler and the .elc code shorter.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]