emacs-wiki-discuss
[Top][All Lists]
Advanced

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

Re: [emacs-wiki-discuss] [commit][emacs-wiki--main--1.0] Allow Emacs 21.


From: Sergey Vlasov
Subject: Re: [emacs-wiki-discuss] [commit][emacs-wiki--main--1.0] Allow Emacs 21.3 to use extended character classes in regexps.
Date: Sun, 28 Aug 2005 23:31:47 +0400

On Fri, Aug 26, 2005 at 09:28:12PM -0500, Michael Olson wrote:
> Revision: emacs-wiki--main--1.0--patch-129
> Archive: address@hidden
> Creator: Michael Olson <address@hidden>
> Date: Fri Aug 26 21:28:05 EST 2005
> Standard-date: 2005-08-27 02:28:05 GMT
> Modified-files: ChangeLog emacs-wiki-regexps.el
> New-patches: address@hidden/emacs-wiki--main--1.0--patch-129
> Summary: Allow Emacs 21.3 to use extended character classes in regexps.
> Keywords: 
> 
> * emacs-wiki-regexps.el (emacs-wiki-extreg-usable-p): Use a simpler
>   algorithm.  Since enough positive reports have come in about the
>   usability of 21.3, we'll allow it to use extended character classes in
>   regexps by default.

This breaks filling of paragraphs in GNU Emacs 21.3 because of this
fragment in `emacs-wiki-mode':

  ;; Make fill not split up links
  (when (boundp 'fill-nobreak-predicate)
    (make-local-variable 'fill-nobreak-predicate)
    ;; Work around annoying inconsistency in fill handling
    (if (not (emacs-wiki-extreg-usable-p))
        (setq fill-nobreak-predicate 'emacs-wiki-fill-nobreak-p)
      (add-to-list 'fill-nobreak-predicate
                   'emacs-wiki-fill-nobreak-p)))

After this change (emacs-wiki-extreg-usable-p) returns t for GNU Emacs
21.3, and fill-nobreak-predicate is set to a list, which causes errors
when attempting to fill paragraph.

Attachment: pgplXoL8SQQP3.pgp
Description: PGP signature


reply via email to

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