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

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

[emacs-wiki-discuss] Re: [patch] Counting bug in muse-publish-escape-spe


From: Michael Olson
Subject: [emacs-wiki-discuss] Re: [patch] Counting bug in muse-publish-escape-specials
Date: Thu, 29 Dec 2005 16:50:18 -0500
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Sacha Chua <address@hidden> writes:

> muse-publish-escape-specials limits itself to beg and end. However,
> inserting characters without updating end causes this function to
> occasionally miss later characters that need to be escaped. Solution
> A is to use save-restriction and then narrow to the region, checking
> against (point-max).

Good catch!  I'll go with Solution A, since it seems the most
bug-proof.

2005-12-29 21:33:08 GMT Michael Olson <address@hidden>  patch-328

    Summary:
      muse-publish: Use narrow-to-region to fix various bugs.
    Revision:
      muse--main--1.0--patch-328

    * lisp/muse-publish.el (muse-publish-markup-tag): Code indent change.
      (muse-publish-escape-specials): Use `narrow-to-region' so that we
      better define the region to work with.  Thanks to Sacha Chua for the
      advice.  Also make sure that we are more careful with the result from
      next-single-property-change.
      (muse-publish-surround-text): Use narrow-to-region.  Make this routine
      less brain-dead.
      (muse-publish-verse-tag): Use narrow-to-region.

    modified files:
     ChangeLog lisp/muse-publish.el

-- 
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: manga, Debian, XHTML, wiki, Emacs Lisp
  /` |\ | | | IRC: mwolson on freenode.net: #hcoop, #muse, #PurdueLUG
 |_] | \| |_| Jabber: mwolson_at_hcoop.net

Attachment: pgpUVf4G8EDoQ.pgp
Description: PGP signature


reply via email to

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