Fix initial blank line in <src> tag
[muse-el.git] / ChangeLog
blob6bdb0ea30941cc61fc2247281b02e9fb9e669374
1 2007-01-04  Michael Olson  <mwolson@gnu.org>
3         * lisp/muse-html.el (muse-html-src-tag): Remove initial blank
4         line.
6         * lisp/muse-publish.el (muse-publish-markup-tags): Make "src"
7         point to muse-publish-src-tag by default, since <src> and
8         <example> have different parameters.
9         (muse-publish-src-tag): New barebones publishing function for
10         <src>, which is superseded when publishing in an HTML-based style.
12 2007-01-03  Michael Olson  <mwolson@gnu.org>
14         * lisp/muse-html.el (muse-html-src-tag): Document.
16         * lisp/muse-publish.el (muse-publish-call-tag-on-buffer): New
17         command that calls a given tag on the current buffer.  Attributes
18         may be passed.
19         (muse-publish-examplify-buffer, muse-publish-versify-buffer): Use
20         it.
21         (muse-publish-srcify-buffer): New function that allows
22         markup="src" in the <include> tag.
23         (muse-publish-get-and-delete-attr): New macro that gets an
24         attribute from a list and removes the first instance of that
25         attribute from said list.
26         (muse-publish-markup-attribute): Handle markup="src".
27         (muse-publish-command-tag, muse-publish-include-tag): Use
28         muse-publish-get-and-delete-attr.  This allows the remaining
29         attributes to be passed.
31         * texi/muse.texi (Tag Summary): Update for new <src> tag as well
32         as changes to <command> and <include>.
34 2006-12-30  Michael Olson  <mwolson@gnu.org>
36         * NEWS: Update.
38         * experimental/muse-mathml.el (muse-publish-mathml-tag): Rename
39         from muse-publish-math-tag to avoid conflict with
40         muse-latex2png.el.
42 2006-12-23  Michael Olson  <mwolson@gnu.org>
44         * lisp/muse-latex2png.el: Update header, since this has been
45         rewritten sufficiently to not need an assignment from the original
46         author.
47         (muse-latex2png-use-xhtml): Remove, since we now autodetect this.
48         (muse-latex2png): Use two underscores to separate prefix and hash.
49         (muse-latex2png-region): New function split from
50         muse-publish-latex-tag that can be used easily by other code.
51         Detect whether we are using an HTML-based publishing style, and
52         insert a simpler markup if we are not.  If we are using a
53         Latex-based publishing style, do not generate an image, and leave
54         the region alone.  Return the path of the generated image, in case
55         other functions want to use this programmatically.
56         (muse-publish-latex-tag): Set a default prefix based on the name
57         of the current file.
58         (muse-publish-math-tag): New tag that surrounds the region with
59         "$" characters, so that it becomes a Latex math region, and then
60         publishes it.
62         * lisp/muse-publish.el (muse-style-derived-p): New function that
63         returns non-nil if a given style, or the current style if omitted,
64         is equal to or derived from the given base style.  This is useful
65         in <lisp> tags, because it allows the user to specify markup that
66         is only to be inserted for one particular style.
68 2006-12-22  Michael Olson  <mwolson@gnu.org>
70         * lisp/muse-html.el (muse-html-markup-tags): Add <src> tag.
71         (muse-html-src-tag): New function which publishes the <src> tag.
72         Thanks to Clinton Ebadi and Charles Wang for the initial
73         implementations.
75         * lisp/muse-publish.el (muse-publish-markup-tags): Add <src> tag.
77 2006-12-21  Michael Olson  <mwolson@gnu.org>
79         * examples/johnw/muse-johnw.el: Update for preferred
80         muse-derive-style usage.  Rename to muse-init.el.
82         * examples/mwolson/muse-init.el: Update.
84         * lisp/muse-book.el (muse-book-publish): New function split from
85         muse-book-publish-project.  This is used in the definitions for
86         the book-latex and book-pdf styles.
87         (muse-book-publish-p): New function split from muse-book-publish.
88         (muse-book-get-directives): New function that retrieves the
89         publishing directives from the given file.
90         (muse-book-publish): Use muse-book-get-directives to set the title
91         if no title was specified.
93         * lisp/muse-project.el (muse-project): Add :publish-project entry
94         to widget.
95         (muse-read-project, muse-project-find-file): Message fix.
96         (muse-project-publish-file-default): New function split from
97         muse-project-publish-file.
98         (muse-project-publish-file): Allow file-level publishing function
99         to be specified by the :publish element.  The default is
100         muse-project-publish-file-default.
101         (muse-project-publish-default): New function split from
102         muse-project-publish.
103         (muse-project-publish): Allow project-level publishing function to
104         be specified by :publish-project element.  The default is
105         muse-project-publish-default.
107         * lisp/muse-publish.el (muse-publish-file): Message fix.
109         * texi/muse.texi (Book): Mention new way to publish books and
110         provide an example, since the process may be non-obvious.
112 2006-12-20  Michael Olson  <mwolson@gnu.org>
114         * lisp/muse-docbook.el (muse-docbook-munge-buffer): Split out
115         content-modifying code from the rest of
116         muse-docbook-finalize-buffer.
118         * lisp/muse-groff.el (muse-groff-munge-buffer): Rename from
119         muse-groff-finalize-buffer, since it adds content to the buffer.
121         * lisp/muse-html.el (muse-html-munge-buffer): Split out
122         content-modifying code from the rest of muse-html-finalize-buffer.
123         This fixes a bug when using <include> with <content> tags.
125         * lisp/muse-journal.el (muse-journal-html-munge-buffer)
126         (muse-journal-latex-munge-buffer)
127         (muse-journal-rss-munge-buffer): Rename, since they add content to
128         the buffer.
130         * lisp/muse-latex.el (muse-latex-munge-buffer): Rename from
131         muse-latex-finalize-buffer, since it adds content to the buffer.
133         * lisp/muse-mode.el:
134         * lisp/muse-project.el:
135         * lisp/muse-publish.el:
136         * lisp/muse.el: Fix recursive load error.
138         * lisp/muse-texinfo.el (muse-texinfo-munge-buffer): Rename from
139         muse-texinfo-finalize-buffer, since it adds content to the buffer.
141         * lisp/muse-wiki.el: Comment cleanup.
143         * lisp/muse-xml.el (muse-xml-charset-default): Docfix.
145 2006-12-17  Michael Olson  <mwolson@gnu.org>
147         * lisp/muse-latex.el (muse-latex-header, muse-latexcjk-header):
148         Remove the definition of \comment, since Latex already has comment
149         syntax.
150         (muse-latex-markup-strings): Use the Latex comment syntax, rather
151         than our own.  Thanks to Ryan Stutsman for pointing this out.
153 2006-12-02  Michael Olson  <mwolson@gnu.org>
155         * lisp/muse-html.el (muse-html-insert-contents): Tweak regexp so
156         that this can generate a proper table of contents for Planner HTML
157         publishing.
159 2006-12-01  Michael Olson  <mwolson@gnu.org>
161         * lisp/muse.el (muse-replace-regexp-in-string): In case someone is
162         using a very old Emacs, avoid an infinite loop that could occur
163         when the regexp is an empty string.
165 2006-11-26  Michael Olson  <mwolson@gnu.org>
167         * NEWS: Bring up to date.
169         * lisp/muse-docbook.el (muse-docbook-markup-paragraph): Fix nested
170         list issues and multiple-stanza verse issues.  This takes care of
171         all of the markup issues I was worried about.
173         * lisp/muse-project.el (muse-project-ignore-regexp): Minor docfix.
174         (muse-project-publish-private-files): New option that indicates
175         whether files with private filesystem permissions should be
176         published.  The default is to publish them, since it avoids
177         confusion in new users.
178         (muse-project-private-p): Use it.
180 2006-11-19  Michael Olson  <mwolson@gnu.org>
182         * lisp/muse-project.el (muse-project-resolve-link): If no remote
183         style is found, which means that the link is not a Muse page, do
184         not add a suffix or prefix to it.  This should fix the
185         "[[thing.owl]]" bug that Phillip Lord reported.
187         * lisp/muse-publish.el (muse-publish-link-file): Simplify by
188         removing unused 2nd argument.
190 2006-11-17  Michael Olson  <mwolson@gnu.org>
192         * lisp/muse-publish.el (muse-publish-surround-text): Fix bug in
193         latex publishing where nested enumerated lists would be squashed
194         together at the end.
196 2006-11-16  Michael Olson  <mwolson@gnu.org>
198         * lisp/muse-latex.el (muse-latex-markup-strings): Make an ordered
199         list embedded in a definition list look right.  This also allows
200         for definitions to be separated from their terms, much like the
201         way HTML does it by default, if the user puts a blank line or a
202         line break between the term and the definition.  If the term and
203         definition are on the same line, they will be that way in the
204         output as well.
206 2006-11-11  Michael Olson  <mwolson@gnu.org>
208         * muse.texi (Markup Strings): Fix typo.  Thanks to Haiyong Zheng
209         for the report.
210         (Getting Help and Reporting Bugs): Fix emacswiki.org page URL.
212 2006-11-07  Michael Olson  <mwolson@gnu.org>
214         * lisp/muse.el (muse-version): Make Emacs Muse 3.02.93, the third
215         release candidate for Muse 3.03, available.
217         * NEWS: Update.
219 2006-11-06  Michael Olson  <mwolson@gnu.org>
221         * lisp/muse-project.el (muse-project-find-file): Fix bug when
222         following a relative link worked even when the path was incorrect.
224 2006-11-04  John Sullivan  <john@wjsullivan.net>
226         * lisp/muse-mode.el (muse-mode-map): Remove C-c C-c binding for
227         muse-follow-name-at-point to reduce collisions with other
228         modes (Planner).
230         * muse.texi (Keystroke Summary): Remove C-c C-c binding.
232 2006-11-04  Michael Olson  <mwolson@gnu.org>
234         * lisp/muse-wiki.el (muse-wiki-update-interwiki-regexp): Make page
235         optional, and make interwiki delimiter a regular rather than shy
236         group.
237         (muse-wiki-handle-implicit-interwiki): Rename from
238         muse-wiki-handle-interwiki.  Use match group 3 to get the page.
239         (muse-wiki-handle-explicit-interwiki): New function that is
240         smarter about where an explicit link ends in a buffer.  This
241         allows you to refer to page names with invalid Wiki characters,
242         such as underscores and dashes, merely by enclosing them in double
243         brackets.  Also, a bug with recognizing project names too loosely
244         has been fixed.
246 2006-11-03  Michael Olson  <mwolson@gnu.org>
248         * lisp/muse-project.el (muse-project-page-file): Make relative
249         links work as expected, hopefully.
251         * lisp/muse-publish.el (muse-publish-this-file): Set the current
252         output style manually, since it will differ from anything in the
253         publishing style list.
255 2006-10-30  Michael Olson  <mwolson@gnu.org>
257         * lisp/muse-colors.el (muse-colors-markup): Remove note about
258         grouping elements, since that no longer applies.
259         (muse-colors-custom-tags): Explicitly match against
260         muse-tag-regexp to get the match-data set the way we want.  This
261         really fixes the <example> highlighting bug that Stefan reported.
262         (muse-configure-highlighting): Set the original value to the
263         symbol, not the modified value.  Re-use modified rules properly.
265         * lisp/muse-wiki.el (muse-wiki-update-interwiki-regexp): Fix bug
266         introduced yesterday.
268 2006-10-29  Michael Olson  <mwolson@gnu.org>
270         * examples/mwolson: Update my example configuration.
272         * NEWS: Update.
274         * lisp/muse-colors.el (muse-configure-highlighting): Remove rules
275         without a regexp in the first position before iterating through
276         them to build muse-colors-vector.  This fixes a bug with the
277         display of <example> tags.  Thanks to Stefan Reichör for the
278         report.
280         * lisp/muse-project.el (muse-project-find-file): Permit non-Muse
281         files in projects to be linked to.
283         * lisp/muse-publish.el (muse-publish-url): Allow the original link
284         to serve as a description for a URL, as long as it differs from
285         the destination URL.  This fixes the description of WikPage links
286         in PDF output.
287         (muse-publish-link-file): Check to see whether the given link
288         points at a valid file.  If so, return it.  Otherwise, apply other
289         transforms like prefix and link suffix.
291         * lisp/muse-regexps.el (muse-file-regexp): If something ends in
292         "/", it is a file or directory, not a Muse page.  Thanks to
293         Phillip Lord for the suggestion.
295         * lisp/muse-wiki.el (muse-wiki-resolve-project-page): Use the path
296         of the current page as the local path, instead of duplicating the
297         remote file's path.  This probably fixes at least one reported
298         bug. since it's quite major.
299         (muse-wiki-update-project-file-regexp)
300         (muse-wiki-update-interwiki-regexp): Ensure that nil is never
301         passed to regexp-opt, since that can cause Emacs 21 to throw an
302         "maximum binding depth exceeded" error.  Thanks to xs32 AT cornell
303         DOT edu for the report.
304         (muse-wiki-handle-wikiword): Avoid a potential stringp error.
306 2006-10-28  Michael Olson  <mwolson@gnu.org>
308         * lisp/muse-project.el (muse-project-choose-style-by-link-suffix)
309         (muse-project-resolve-link): If the given style does not have a
310         link-suffix, default to suffix.  This fixes a bug I was noticing
311         when linking to a file that was published in both PDF and HTML
312         form.
314         * lisp/muse-publish.el (muse-publish-determine-dl-indent): New
315         function that is used as a callback to determine the initial
316         amount of indentation that the current dl item has.
317         (muse-publish-surround-dl): Use it.  Pass the initial indent value
318         and the post-indent value, instead of trying to determine them
319         both.
320         (muse-publish-strip-list-indentation): New function stripped from
321         `muse-publish-surround-text' for readability.
322         (muse-publish-surround-text): Instead of taking a determine-indent
323         value, take a determine-indent-func function, which is called just
324         after finding the next list item.  If we are asked to determine
325         the amount of indentation, concatenate indent and post-indent the
326         first time around.  This effectively fixes all known definition
327         list issues.
329 2006-10-16  Michael Olson  <mwolson@gnu.org>
331         * lisp/muse.el: Provide the 'muse-nested-tags feature so that
332         other software -- namely, Planner -- can detect whether they are
333         using a version of Muse that supports nested tags.
334         (muse-goto-tag-end): Moved from muse-publish.el and renamed from
335         muse-publish-goto-tag-end.
337         * lisp/muse-colors.el (muse-colors-tags, muse-colors-custom-tags):
338         Adapt for nested tags.
340         * lisp/muse-html.el (muse-html-markup-tags): Indicate that the
341         <class> tag is nestable.  Thanks to Phillip Lord for noticing
342         this.
344         * lisp/muse-publish.el (muse-publish-markup-tag)
345         (muse-publish-quote-tag): Use muse-goto-tag-end.
347         * lisp/muse-wiki.el ("muse-colors"): Adapt for nested tags.
349 2006-10-15  Michael Olson  <mwolson@gnu.org>
351         * AUTHORS: Bookkeeping.
353         * lisp/muse-blosxom.el (muse-blosxom-header): Indent code in lisp
354         tag.
356         * lisp/muse-groff.el (muse-groff-markup-tags): Adapt for nested
357         tags.
359         * lisp/muse-html.el (muse-html-markup-tags): Ditto.
361         * lisp/muse-import-docbook.el (muse-import-docbook)
362         (muse-import-docbook-files): Docfix.
363         (muse-import-docbook-get-title): Remove cl.el-ism.
365         * lisp/muse-import-xml.el (muse-import-xml): Fix compiler warning.
367         * lisp/muse-journal.el (muse-journal-latex-markup-tags): Ditto.
369         * lisp/muse-latex2png.el (muse-publish-markup-tags): Ditto.
371         * lisp/muse-mode.el (muse-previous-reference): Minor docfix.
372         (muse-next-reference, muse-previous-reference): Minor whitespace
373         changes.
374         (muse-mode-choose-mode): Add autoload cookie.  Thanks to Leo for
375         the suggestion.
377         * lisp/muse-poem.el (muse-poem-tag): Ditto.
379         * lisp/muse-publish.el (muse-publish-markup-tags)
380         (muse-publish-markup-header-footer-tags): Shift 4th element to 5th
381         element and make 4th element determine whether tags are nestable.
382         (muse-publish-goto-tag-end): New function that moves to the end of
383         a tag.  Handle nested tags when NESTED is non-nil.
384         (muse-publish-markup-tag): Call muse-publish-goto-tag-end.  Use
385         5th element for function.
386         (muse-publish-quote-tag): Handle nested quote tags.  I've tested
387         this on several scenarios, and it seems to work.
388         (muse-publish-surround-text): Accept new optional argument
389         LIST-ITEM which determines the regexp to use for list items.  The
390         default is to use muse-list-item-regexp.
392         * muse.texi (Markup Tags): Mention nestable tags.
394         * NEWS: Mention new files.
396 2006-10-15  Elena Pomohaci  <e.pomohaci@gmail.com>
398         * lisp/muse-import-docbook.el: New file that converts Docbook XML
399         into Muse format.
401         * lisp/muse-import-xml.el: New file that provides helper routines
402         for converting XML-ish files to Muse format.
404 2006-10-10  Michael Olson  <mwolson@gnu.org>
406         * NEWS: Update for 3.02.7 bugfix release.
408 2006-10-06  Sasha Kovar  <sasha@arcocene.org>
410         * lisp/muse-blosxom.el (muse-blosxom-header): Insert the date
411         using the value in the muse #date directive.
412         (muse-blosxom-use-metadate): New option that determines whether or
413         not to use the #postdate directive.
414         (muse-blosxom-format-date): Convert a date string to PyBlosxom
415         metadate plugin format.
417 2006-09-30  Stefan Schlee  <stefan_schlee@yahoo.com>
419         * lisp/muse-protocols.el: Fix bug #6741: Exclude colon in
420         recognised URLs.
422         * muse.texi: Clarify handling of implicit links by mentioning
423         which characters can prevent Muse from recognizing something as an
424         implicit link.
426 2006-09-26  Stefan Schlee  <stefan_schlee@yahoo.com>
428         * lisp/muse-mode.el (muse-next-reference)
429         (muse-previous-reference): Fix bug #6367 by moving point to the
430         beginning of the link.
432 2006-09-26  Michael Olson  <mwolson@gnu.org>
434         * lisp/muse-colors.el (muse-use-font-lock): Don't quote
435         beginning-of-line.  This should fix a bug that was noticed in
436         recent Emacs 22 builds.
438         * lisp/muse-backlink.el: Wrap muse-backlink-split-string in an
439         eval-and-compile block to avoid a compiler warning.
441 2006-09-25  Jim Ottaway  <j.ottaway@lse.ac.uk>
443         * lisp/muse-backlink.el (muse-backlink-split-string):
444         Compatibility with Emacs versions < 22
445         (muse-backlink-pending): New internal variable
446         (muse-backlink-get-mode-hook): Find the major mode hook to use, so
447         that backlinks are inserted at the right time.
448         (muse-backlink-insert-hook-func): Remove unwind-protection; check
449         for pending backlink, and that this is the targe page.
450         (muse-backlink-handle-link): Don’t handle the link if we are
451         already handling one. Return the link as well as the parent links.
453 2006-09-25  Sasha Kovar  <sasha@arcocene.org>
455         * lisp/muse-blosxom.el (muse-blosxom-new-entry): : Fix for bug
456         #6942 - muse-blosxom-new-entry fails when using tags.
458 2006-09-14  Michael Olson  <mwolson@gnu.org>
460         * lisp/muse-texinfo.el (muse-texinfo-protect-wikiwords): Silence
461         compiler warning.
463 2006-09-14  Jim Ottaway  <j.ottaway@lse.ac.uk>
465         * lisp/muse-texinfo.el (muse-texinfo-protect-wikiwords): New
466         function: Protect all wikiwords from START to END from further
467         processing.
468         (muse-texinfo-markup-heading): Use muse-texinfo-protect-wikiwords.
470 2006-09-13  Michael Olson  <mwolson@gnu.org>
472         * lisp/muse-texinfo.el (muse-texinfo-markup-heading): New function
473         adopted from Jim Ottaway's patch.  It removes links from the
474         heading, and then marks the region read-only to inhibit WikiWord
475         detection.
477 2006-09-13  Jim Ottaway  <j.ottaway@lse.ac.uk>
479         * lisp/muse-texinfo.el (muse-texinfo-markup-functions): Add
480         special handling for headings.
481         (muse-texinfo-remove-links): New function that removes explicit
482         links from the given strings, replacing them with a description.
484 2006-09-11  Michael Olson  <mwolson@gnu.org>
486         * muse.texi (Getting Help and Reporting Bugs): Mention the
487         muse-el-internationalization mailing list.
489         * lisp/muse.el (muse-path-sans-extension): New function that acts
490         like file-name-sans-extension, but guarantees to never modify the
491         directory part of the path.  Thanks to Evan Monroig for
492         investigating this.
494         * lisp/muse-book.el (muse-book-publish-project): Use
495         muse-path-sans-extension instead of file-name-sans-extension.
497         * lisp/muse-publish.el (muse-publish-file, muse-publish-url):
498         Ditto.
500 2006-08-30  Michael Olson  <mwolson@gnu.org>
502         * muse.texi (Blosxom Requirements): Fix typo.
504         * contrib/pyblosxom/getstamps.py (recurse): Ignore metadata
505         directories for bzr and darcs.
507         * contrib/pyblosxom/make-blog, contrib/pyblosxom/hardcodedates.py:
508         contrib/pyblosxom/getstamps.py: Update version and headers.
510 2006-08-27  Michael Olson  <mwolson@gnu.org>
512         * lisp/muse-colors.el (muse-configure-highlighting): Prune out any
513         nil values before they get to mapconcat.  This fixes a lockup when
514         muse-wiki-match-all-project-files is nil.
516         * lisp/muse-wiki.el (muse-wiki-match-all-project-files)
517         (muse-wiki-ignore-implicit-links-to-current-page)
518         (muse-wiki-interwiki-regexp, muse-wiki-interwiki-alist)
519         (muse-wiki-resolve-project-page, muse-wiki-handle-interwiki)
520         (muse-wiki-publish-small-title-words)
521         (muse-wiki-publish-pretty-title): Docfix.
522         (muse-wiki-update-local-wikiword-regexp): Rename from
523         muse-wiki-update-local-wikiword-regexp.  Set
524         muse-wiki-project-file-regexp instead of
525         muse-wiki-wikiword-regexp, as suggested by Per Sederberg.  Don't
526         take muse-wiki-use-wikiword into account, since this is a
527         different concept now.
528         (muse-wiki-update-wikiword-regexp): Remove.
529         (muse-wiki-wikiword-regexp): In-line the :set function.
530         (muse-wiki-handle-wikiword): Use muse-wiki-project-file-regexp.
532 2006-08-26  Michael Olson  <mwolson@gnu.org>
534         * lisp/muse-publish.el (muse-publish-surround-text): When looking
535         for indented list items, ignore blank lines.
537         * lisp/muse-wiki.el (muse-wiki-update-local-wikiword-regexp)
538         (muse-wiki-update-interwiki-regexp): Use regexp-opt instead of
539         mapconcat.  This should hopefully fix a problem with large amounts
540         of files with spaces in their name.  Thanks to Greg Detre for the
541         report.
543 2006-08-24  Michael Olson  <mwolson@gnu.org>
545         * lisp/muse-blosxom.el (muse-blosxom-new-entry): Remove the
546         numbers from the argument to format-time-string.  This fixes an
547         XEmacs bug.  Thanks to Michael Welle for the report and analysis.
549 2006-08-18  Michael Olson  <mwolson@gnu.org>
551         * lisp/muse-project.el (muse-project-file-entries): Since we are
552         given a full path, match against the filename as well.  This fixes
553         an issue where backup files were being added to the file alist.
555         * lisp/muse-docbook.el (muse-docbook-markup-regexps): Apply a fix
556         from muse-html.el.
558 2006-08-12  Michael Olson  <mwolson@gnu.org>
560         * Makefile (.PHONY): Don't use line continuations.
561         (realclean fullclean): Call realclean in subdirs, not distclean.
562         (distclean): Don't call realclean, since this would wipe out our
563         autoloads file.
564         (dist): Use correct path to autoloads file.
566         * NEWS: Catch up with the latest changes.
568         * experimental/Makefile (.PHONY): Wrap long line.
570         * lisp/Makefile (distclean): Do the same thing as "clean", not
571         "realclean".
573         * lisp/muse-project.el (muse-project-get-applicable-style):
574         Indentation tweak.
575         (muse-project-ignore-regexp, muse-project-recurse-directory):
576         Docfix.
577         (muse-project-of-file): Try the ignored files regexp against the
578         base filename as well as the entire path.
580         * lisp/muse-publish.el (muse-publish-this-file): Display message
581         if the buffer is not associated with any file, so that we avoid
582         errors later on.
583         (muse-publish-url-desc): New function taken from muse-publish-url
584         that causes a URL description to be transformed.
585         (muse-publish-url): Call muse-publish-url-desc on either the
586         description or the original URL if it will be used as a
587         description.  Accept the original URL as an argument, in case it
588         was transformed earlier.
589         (muse-publish-insert-url): Pass original URL as an argument.
590         (muse-publish-markup-link): Make this somewhat easier to follow.
591         Pass original URL as argument.
592         (muse-publish-get-style): If the same style is used to publish to
593         two different directories, prompt the user for which directory to
594         use.
595         (muse-publish-markup-header-footer-tags): Sync lisp tag with the
596         latest changes.
597         (muse-publish-markup-url): Pass original URL as an argument.  This
598         fixes the "nil" description for bare URLs that was in 3.02.91.
599         Nothing like finding a bug just after completing the announcement
600         of a release.
602         * lisp/muse.el: Use defalias whenever convenient.
603         (muse-version): Set version to 3.02.92 (3.03 RC2).
605 2006-08-10  Michael Olson  <mwolson@gnu.org>
607         * lisp/muse-html.el (muse-html-finalize-buffer): Since the html
608         style does not derive from any other class, return `t' here.
609         This, along with the corresponding change to muse-publish.el,
610         fixes a problem with the table of contents getting inserted
611         multiple times for custom html-based styles.
612         (muse-html-markup-strings, muse-xhtml-markup-strings): Use a
613         smarter method for table centering that works with XHTML.
615         * lisp/muse-latex2png.el Rename all functions to have a
616         "muse-latex2png" prefix.  Turn all variables into customizable
617         options in the muse-latex2png group.
618         (muse-latex2png-img-dest): New option specifying where to place
619         the images.
620         (muse-latex2png-template): New option containing the template to
621         use for the surrounding LaTeX code.
622         (muse-latex2png-use-xhtml): New option that toggles strict XHTML
623         compliance.
624         (muse-latex2png-move2pubdir): Avoid multiple redundant error
625         messages when something else goes wrong.  Create the image
626         subdirectory if it doesn't exist already -- thanks to Christian
627         Straßer for the report.  Expand the filename properly.
628         (muse-publish-latex-tag, muse-latex2png): Ditto on error messages
629         and filename expansion.
630         (muse-latex2png): Use the "muse-latex2png" prefix by default.  Set
631         the default directory properly.
633         * lisp/muse-publish.el (muse-style-run-hooks): Make sure that we
634         do not run the same function twice.
636 2006-08-08  Michael Olson  <mwolson@gnu.org>
638         * lisp/muse-colors.el (muse-colors-explicit-link): Fix recently
639         introduced wrong-type-argument error.
641         * lisp/muse-html.el (muse-html-markup-strings)
642         (muse-xhtml-markup-string): Cause table definition that contains
643         image to be center-aligned.  This should fix an issue with images
644         not being centered when captions are very long.
646         * lisp/muse-publish.el (muse-publish-table-fields): Trim
647         whitespace from fields once we have split them up.
649         * lisp/muse.el (muse-trim-whitespace): New function that strips
650         leading and trailing whitespace from a string.
652 2006-08-07  Michael Olson  <mwolson@gnu.org>
654         * NEWS: Update through patch-95.
656         * lisp/muse-colors.el (muse-colors-lisp-tag): Use a simpler regexp
657         to match the tags.
658         (muse-colors-explicit-link): Show images in link descriptions if
659         inlined images are enabled.
661         * lisp/muse-docbook.el (muse-docbook-markup-strings): Add
662         definitions for 'image-with-desc, 'image, and 'image-link.
663         (muse-docbook-markup-paragraph): If an inlined image begins a
664         paragraph, insert <para> before it.
665         (muse-docbook-fixup-images): New function that upper-cases the
666         "format" attribute of the <imagedata> tag.
667         (muse-docbook-finalize-buffer): Call it.
669         * lisp/muse-html.el (muse-html-markup-strings): Publish images
670         with descriptions as centered tables, with a centered caption
671         underneath.  The resulting look is consistent with the way that
672         they are published in the LaTeX style.  Thanks to Jody Klymak for
673         the suggestion.
674         (muse-xhtml-markup-strings): Ditto, but XHTML apparently has no
675         valid way to center a table.
676         (muse-html-markup-paragraph): Use class="image" instead of
677         "image-link" for paragraphs that start with an embedded image.
679         * lisp/muse-latex.el (muse-latex-markup-specials-url): Use
680         \textbackslash{} for "\".  Thanks to Jim Ottaway for the
681         suggestion.
682         (muse-latex-markup-specials-image): New option that enables
683         escaping of specials in images.  This was split from the URL
684         specials.
685         (muse-latex-decide-specials): Handle 'image context.
686         (muse-latex-fixup-dquotes): Go to beginning of document, instead
687         of relying on caller to do this for us.
689         * lisp/muse-publish.el (muse-publish-escape-specials): Document
690         'image context.
691         (muse-publish-url): Use 'image context for images.  Use 'image
692         instead of 'image-link and 'image-link in place of
693         'url-with-image.  Separate the image file from its extension so
694         that docbook and texinfo can publish images correctly.
695         (muse-publish-markup-link): Don't force a description if one is
696         not given.  This fixes a bug where images without descriptions
697         were being published as 'image-with-desc instead of 'image.
699         * lisp/muse-texinfo.el (muse-texinfo-decide-specials): Treat
700         images the same as URLs.
701         (muse-texinfo-markup-strings): Improve image markup to achieve an
702         effect similar to that of the LaTeX publishing style.  Simplify
703         'url string.
705         * lisp/muse-xml-common.el (muse-xml-decide-specials): Ditto.
707         * lisp/muse.el (muse-replace-regexp-in-string): Save match data
708         when we have to use the custom version of this function.
710         * muse.texi (Images): Explain how to toggle inlining of images and
711         give better examples.  Mention captions and that captioned images
712         should not be used inside of text paragraphs.
713         (Markup Strings): Bring up-to-date with the changes made since
714         3.02.
716 2006-08-06  Michael Olson  <mwolson@gnu.org>
718         * ChangeLog.1: Rename from ChangeLog.2004 to comply with standards
719         in the Emacs source tree.
721         * ChangeLog.2: Rename from ChangeLog.2005 to comply with standards
722         in the Emacs source tree.
724         * ChangeLog.3: New file created from the old ChangeLog.
726         * Makefile.defs (VERSION): Set to 3.02.91.
728         * NEWS: Update through patch-84.
730         * lisp/muse.el (muse-version): Set to 3.02.91.
732         * lisp/muse-colors.el (muse-colors-tags): Allow <lisp> to take
733         attributes.
734         (muse-colors-lisp-tag): Figure out where the <lisp> tag and its
735         delimiter are instead of hard-coding it.
737         * lisp/muse-mode.el (muse-insert-thing): Qualify "tag".
738         (muse-mode): Make filling definition lists work better.  This
739         should fix #5359.
741         * lisp/muse-publish.el (muse-style-run-hooks): Use
742         `muse-style-element' instead of `muse-get-keyword' here.  This
743         should fix #6399.
745         * muse.texi: Set version to 3.02.91 (3.02 RC2).
747 See ChangeLog.3 for earlier changes.
749 ;; Local Variables:
750 ;; coding: utf-8
751 ;; End: