Re: No more next/previous month button on calendars

Michael Olson <[email protected]> Thu, 18 May 2006 03:17:06 -0400
Newsgroups gmane.emacs.wiki.general
Message-ID <[email protected]>
RenĂ© <[email protected]> writes:

> René <jlr_0 <at> yahoo.com> writes:
>
>> When using <calendar> I get the following warning
>> but the calendar gets published:
>> 
>> (muse/warning) An error occurred while publishing index:
>> (wrong-type-argument char-or-string-p nil)
>
> I know now where this problem comes from.  I used to place the
> <calendar> tag inside my planner-header file.  If I place it in the
> day page itself then I do not get the warning anymore.
>
> That was very convenient though because I did not have to explicitly
> insert this tag in my day pages

Placing it in the planner-header should work now, even when adding the
arrows="t" part.

>> On the other hand, when using <calendar arrows="t"> nothing gets
>> published: no arrows and not even the calendar.
>
> Now I get the next/previous buttons, but instead of the arrows I get
> the string "&raquo;".
>
> How can I make muse interpret it as an actual HTML code?

By default, Muse will not display the arrows properly, due to
limitations in the special-escaping algorithm.  To work around this,
remove the & rule from `muse-xml-markup-specials' (assuming you are
using a recent snapshot of Muse, not 3.02.6).

(setq muse-xml-markup-specials
      '((?\" . "&quot;")
        (?\< . "&lt;")
        (?\> . "&gt;")))

-- 
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: Emacs Lisp, text markup, protocols -- Jabber: mwolson_at_hcoop.net
  /` |\ | | | IRC: mwolson on freenode.net: #hcoop, #muse, #PurdueLUG
 |_] | \| |_| Project involvement: Emacs, Muse, Planner, ERC, EMMS

_______________________________________________
emacs-wiki-discuss mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss
signature.asc (application/pgp-signature, 190 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEbB9z+1Ho2POo0xkRAjytAJ0Tg8zbA1AYkY6vAJKQ55hsJeStbgCdE/p5
Mhh/8mNPncIsRootwTeKrvw=
=Abhc
-----END PGP SIGNATURE-----