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