Merged from mwolson@gnu.org--2006/muse--main--1.0 (patch 281-282)
[muse-el.git] / ChangeLog
blob7a9890362eb16e9dce72ae4f011a62a4972c5a14
1 2007-02-25  Michael Olson  <mwolson@gnu.org>
3         * lisp/muse-publish.el (muse-publish-date-format): New option that
4         specifies how to format the date when publishing Muse pages.
5         Thanks to Thomas Gehrlein for the suggestion.
6         (muse-publish-markup-buffer): Use it.
8 2007-02-23  Michael Olson  <mwolson@gnu.org>
10         * README: Add Prerequisites section to mention which versions of
11         Emacs work with Muse.  Thanks to Exal de Jesus Garcia Carrillo for
12         the suggestion.  Update link destination for Muse's page on
13         emacswiki.org.
15 2007-02-15  Michael Olson  <mwolson@gnu.org>
17         * lisp/muse.el (muse-goto-tag-end): Modify regexp to allow tags to
18         be not just at beginning of line.  This fixes an error with the
19         <class> tag.  Thanks to Jim Pivarski for the report.
21 2007-02-14  Michael Olson  <mwolson@gnu.org>
23         * lisp/muse-publish.el (muse-publish-classify-url): Check to see
24         whether something is an image before checking to see if it is a
25         URL.  Thanks to ITSUMI ken-ichi for the report.
27 2007-02-13  Michael Olson  <mwolson@gnu.org>
29         * lisp/muse-publish.el (muse-publish-markup-regexps): Handle
30         comments that have no text better.  Thanks to fang.lungang for the
31         report.
32         (muse-publish-markup-comment): Deal with case where no comment
33         text is provided.
35 2007-01-23  Michael Olson  <mwolson@gnu.org>
37         * lisp/muse-publish.el (muse-publish-ensure-block-tag): New macro
38         that ensures that at least one blank line exists at the given
39         position.  This is used to avoid paragraph detection problems when
40         block-level tags like <example> immediately follow a paragraph.
41         Thanks to Hans Ekbrand for the report.
42         (muse-publish-example-tag): Use it.
44 2007-01-19  Michael Olson  <mwolson@gnu.org>
46         * lisp/muse-latex2png.el (muse-publish-math-tag): Only remove the
47         previous blank line if we are publishing in Latex.  Otherwise,
48         that wouldn't be the right thing, so leave it be.
50 2007-01-17  Michael Olson  <mwolson@gnu.org>
52         * lisp/muse-latex2png.el (muse-publish-math-tag): Don't put
53         multiple centered math lines on the same line; keep them on
54         different lines.  Use \[ math-text \] instead of $$math-text$$,
55         since the latter seems to be deprecated.  Thanks to Jody Klymak
56         for the pointer.
58 2007-01-15  Michael Olson  <mwolson@gnu.org>
60         * lisp/muse-latex2png.el (muse-publish-latex-tag)
61         (muse-publish-math-tag): Publish region read-only when current
62         style is Latex-derived, so that Muse does not escape it.
63         (muse-publish-math-tag): If 6 or more spaces come before the tag,
64         surround the region with "$$" rather than "$".  This is the Muse
65         syntax for something centered, so it should be a good fit.
67 2007-01-15  Valery V. Vorotyntsev  <valery.vv@gmail.com>
69         * lisp/muse-protocols.el (muse-url-protocols): Add "woman://"
70         protocol.
71         (muse-browse-url-man): Change man page URL format.  The code is
72         simpler when the section is left inside parentheses.
73         (muse-browse-url-woman): New function.
75 2007-01-14  Michael Olson  <mwolson@gnu.org>
77         * AUTHORS: Bookkeeping.
79         * lisp/muse-latex2png.el: Associate <math> tag with
80         muse-publish-math-tag, not muse-publish-latex-tag.  Thanks to Jody
81         Klymak for the report.
82         (muse-publish-math-tag): Use muse-insert-markup for the "$"
83         characters, so they don't get escaped.
85         * lisp/muse-publish.el (muse-style-derived-p-1): New function to
86         make muse-style-derived-p easier to implement.
87         (muse-style-derived-p): If the style is not provided, fetch it and
88         check to see if the car is a string.  This should fix the other
89         problem that was reported.
91         * texi/muse.texi (Projects): Apply patch from Bradley M. Kuhn that
92         explains a case where setting muse-file-extension to nil can cause
93         unexpected behavior.
95 2007-01-09  Michael Olson  <mwolson@gnu.org>
97         * lisp/muse-publish.el (muse-publish-markup-regexps): Make
98         comments higher priority than tags.  Thanks to Stefan van der Walt
99         for the report.
101 2007-01-08  Michael Olson  <mwolson@gnu.org>
103         * lisp/muse-publish.el (muse-markup-tag-info): Use the given
104         argument rather than calling match-string.  Thanks to Stefan van
105         der Walt for the report.  This should fix a bug with publishing
106         <include file="..." markup="example">.
108 2007-01-06  Michael Olson  <mwolson@gnu.org>
110         * Makefile (debclean): New rule split from debrevision and
111         debrelease.
112         (debbuild): Take distributor into account.
114         * Makefile.defs (DISTRIBUTOR): New field that tracks what
115         vendor/distributor we are building for.
117 2007-01-04  Michael Olson  <mwolson@gnu.org>
119         * lisp/muse-html.el (muse-html-src-tag): Remove initial blank
120         line.
122         * lisp/muse-publish.el (muse-publish-markup-tags): Make "src"
123         point to muse-publish-src-tag by default, since <src> and
124         <example> have different parameters.
125         (muse-publish-src-tag): New barebones publishing function for
126         <src>, which is superseded when publishing in an HTML-based style.
128 2007-01-03  Michael Olson  <mwolson@gnu.org>
130         * lisp/muse-html.el (muse-html-src-tag): Document.
132         * lisp/muse-publish.el (muse-publish-call-tag-on-buffer): New
133         command that calls a given tag on the current buffer.  Attributes
134         may be passed.
135         (muse-publish-examplify-buffer, muse-publish-versify-buffer): Use
136         it.
137         (muse-publish-srcify-buffer): New function that allows
138         markup="src" in the <include> tag.
139         (muse-publish-get-and-delete-attr): New macro that gets an
140         attribute from a list and removes the first instance of that
141         attribute from said list.
142         (muse-publish-markup-attribute): Handle markup="src".
143         (muse-publish-command-tag, muse-publish-include-tag): Use
144         muse-publish-get-and-delete-attr.  This allows the remaining
145         attributes to be passed.
147         * texi/muse.texi (Tag Summary): Update for new <src> tag as well
148         as changes to <command> and <include>.
150 2006-12-30  Michael Olson  <mwolson@gnu.org>
152         * NEWS: Update.
154         * experimental/muse-mathml.el (muse-publish-mathml-tag): Rename
155         from muse-publish-math-tag to avoid conflict with
156         muse-latex2png.el.
158 2006-12-23  Michael Olson  <mwolson@gnu.org>
160         * lisp/muse-latex2png.el: Update header, since this has been
161         rewritten sufficiently to not need an assignment from the original
162         author.
163         (muse-latex2png-use-xhtml): Remove, since we now autodetect this.
164         (muse-latex2png): Use two underscores to separate prefix and hash.
165         (muse-latex2png-region): New function split from
166         muse-publish-latex-tag that can be used easily by other code.
167         Detect whether we are using an HTML-based publishing style, and
168         insert a simpler markup if we are not.  If we are using a
169         Latex-based publishing style, do not generate an image, and leave
170         the region alone.  Return the path of the generated image, in case
171         other functions want to use this programmatically.
172         (muse-publish-latex-tag): Set a default prefix based on the name
173         of the current file.
174         (muse-publish-math-tag): New tag that surrounds the region with
175         "$" characters, so that it becomes a Latex math region, and then
176         publishes it.
178         * lisp/muse-publish.el (muse-style-derived-p): New function that
179         returns non-nil if a given style, or the current style if omitted,
180         is equal to or derived from the given base style.  This is useful
181         in <lisp> tags, because it allows the user to specify markup that
182         is only to be inserted for one particular style.
184 2006-12-22  Michael Olson  <mwolson@gnu.org>
186         * lisp/muse-html.el (muse-html-markup-tags): Add <src> tag.
187         (muse-html-src-tag): New function which publishes the <src> tag.
188         Thanks to Clinton Ebadi and Charles Wang for the initial
189         implementations.
191         * lisp/muse-publish.el (muse-publish-markup-tags): Add <src> tag.
193 2006-12-21  Michael Olson  <mwolson@gnu.org>
195         * examples/johnw/muse-johnw.el: Update for preferred
196         muse-derive-style usage.  Rename to muse-init.el.
198         * examples/mwolson/muse-init.el: Update.
200         * lisp/muse-book.el (muse-book-publish): New function split from
201         muse-book-publish-project.  This is used in the definitions for
202         the book-latex and book-pdf styles.
203         (muse-book-publish-p): New function split from muse-book-publish.
204         (muse-book-get-directives): New function that retrieves the
205         publishing directives from the given file.
206         (muse-book-publish): Use muse-book-get-directives to set the title
207         if no title was specified.
209         * lisp/muse-project.el (muse-project): Add :publish-project entry
210         to widget.
211         (muse-read-project, muse-project-find-file): Message fix.
212         (muse-project-publish-file-default): New function split from
213         muse-project-publish-file.
214         (muse-project-publish-file): Allow file-level publishing function
215         to be specified by the :publish element.  The default is
216         muse-project-publish-file-default.
217         (muse-project-publish-default): New function split from
218         muse-project-publish.
219         (muse-project-publish): Allow project-level publishing function to
220         be specified by :publish-project element.  The default is
221         muse-project-publish-default.
223         * lisp/muse-publish.el (muse-publish-file): Message fix.
225         * texi/muse.texi (Book): Mention new way to publish books and
226         provide an example, since the process may be non-obvious.
228 2006-12-20  Michael Olson  <mwolson@gnu.org>
230         * lisp/muse-docbook.el (muse-docbook-munge-buffer): Split out
231         content-modifying code from the rest of
232         muse-docbook-finalize-buffer.
234         * lisp/muse-groff.el (muse-groff-munge-buffer): Rename from
235         muse-groff-finalize-buffer, since it adds content to the buffer.
237         * lisp/muse-html.el (muse-html-munge-buffer): Split out
238         content-modifying code from the rest of muse-html-finalize-buffer.
239         This fixes a bug when using <include> with <content> tags.
241         * lisp/muse-journal.el (muse-journal-html-munge-buffer)
242         (muse-journal-latex-munge-buffer)
243         (muse-journal-rss-munge-buffer): Rename, since they add content to
244         the buffer.
246         * lisp/muse-latex.el (muse-latex-munge-buffer): Rename from
247         muse-latex-finalize-buffer, since it adds content to the buffer.
249         * lisp/muse-mode.el:
250         * lisp/muse-project.el:
251         * lisp/muse-publish.el:
252         * lisp/muse.el: Fix recursive load error.
254         * lisp/muse-texinfo.el (muse-texinfo-munge-buffer): Rename from
255         muse-texinfo-finalize-buffer, since it adds content to the buffer.
257         * lisp/muse-wiki.el: Comment cleanup.
259         * lisp/muse-xml.el (muse-xml-charset-default): Docfix.
261 2006-12-17  Michael Olson  <mwolson@gnu.org>
263         * lisp/muse-latex.el (muse-latex-header, muse-latexcjk-header):
264         Remove the definition of \comment, since Latex already has comment
265         syntax.
266         (muse-latex-markup-strings): Use the Latex comment syntax, rather
267         than our own.  Thanks to Ryan Stutsman for pointing this out.
269 2006-12-02  Michael Olson  <mwolson@gnu.org>
271         * lisp/muse-html.el (muse-html-insert-contents): Tweak regexp so
272         that this can generate a proper table of contents for Planner HTML
273         publishing.
275 2006-12-01  Michael Olson  <mwolson@gnu.org>
277         * lisp/muse.el (muse-replace-regexp-in-string): In case someone is
278         using a very old Emacs, avoid an infinite loop that could occur
279         when the regexp is an empty string.
281 2006-11-26  Michael Olson  <mwolson@gnu.org>
283         * NEWS: Bring up to date.
285         * lisp/muse-docbook.el (muse-docbook-markup-paragraph): Fix nested
286         list issues and multiple-stanza verse issues.  This takes care of
287         all of the markup issues I was worried about.
289         * lisp/muse-project.el (muse-project-ignore-regexp): Minor docfix.
290         (muse-project-publish-private-files): New option that indicates
291         whether files with private filesystem permissions should be
292         published.  The default is to publish them, since it avoids
293         confusion in new users.
294         (muse-project-private-p): Use it.
296 2006-11-19  Michael Olson  <mwolson@gnu.org>
298         * lisp/muse-project.el (muse-project-resolve-link): If no remote
299         style is found, which means that the link is not a Muse page, do
300         not add a suffix or prefix to it.  This should fix the
301         "[[thing.owl]]" bug that Phillip Lord reported.
303         * lisp/muse-publish.el (muse-publish-link-file): Simplify by
304         removing unused 2nd argument.
306 2006-11-17  Michael Olson  <mwolson@gnu.org>
308         * lisp/muse-publish.el (muse-publish-surround-text): Fix bug in
309         latex publishing where nested enumerated lists would be squashed
310         together at the end.
312 2006-11-16  Michael Olson  <mwolson@gnu.org>
314         * lisp/muse-latex.el (muse-latex-markup-strings): Make an ordered
315         list embedded in a definition list look right.  This also allows
316         for definitions to be separated from their terms, much like the
317         way HTML does it by default, if the user puts a blank line or a
318         line break between the term and the definition.  If the term and
319         definition are on the same line, they will be that way in the
320         output as well.
322 2006-11-11  Michael Olson  <mwolson@gnu.org>
324         * muse.texi (Markup Strings): Fix typo.  Thanks to Haiyong Zheng
325         for the report.
326         (Getting Help and Reporting Bugs): Fix emacswiki.org page URL.
328 2006-11-07  Michael Olson  <mwolson@gnu.org>
330         * lisp/muse.el (muse-version): Make Emacs Muse 3.02.93, the third
331         release candidate for Muse 3.03, available.
333         * NEWS: Update.
335 2006-11-06  Michael Olson  <mwolson@gnu.org>
337         * lisp/muse-project.el (muse-project-find-file): Fix bug when
338         following a relative link worked even when the path was incorrect.
340 2006-11-04  John Sullivan  <john@wjsullivan.net>
342         * lisp/muse-mode.el (muse-mode-map): Remove C-c C-c binding for
343         muse-follow-name-at-point to reduce collisions with other
344         modes (Planner).
346         * muse.texi (Keystroke Summary): Remove C-c C-c binding.
348 2006-11-04  Michael Olson  <mwolson@gnu.org>
350         * lisp/muse-wiki.el (muse-wiki-update-interwiki-regexp): Make page
351         optional, and make interwiki delimiter a regular rather than shy
352         group.
353         (muse-wiki-handle-implicit-interwiki): Rename from
354         muse-wiki-handle-interwiki.  Use match group 3 to get the page.
355         (muse-wiki-handle-explicit-interwiki): New function that is
356         smarter about where an explicit link ends in a buffer.  This
357         allows you to refer to page names with invalid Wiki characters,
358         such as underscores and dashes, merely by enclosing them in double
359         brackets.  Also, a bug with recognizing project names too loosely
360         has been fixed.
362 2006-11-03  Michael Olson  <mwolson@gnu.org>
364         * lisp/muse-project.el (muse-project-page-file): Make relative
365         links work as expected, hopefully.
367         * lisp/muse-publish.el (muse-publish-this-file): Set the current
368         output style manually, since it will differ from anything in the
369         publishing style list.
371 2006-10-30  Michael Olson  <mwolson@gnu.org>
373         * lisp/muse-colors.el (muse-colors-markup): Remove note about
374         grouping elements, since that no longer applies.
375         (muse-colors-custom-tags): Explicitly match against
376         muse-tag-regexp to get the match-data set the way we want.  This
377         really fixes the <example> highlighting bug that Stefan reported.
378         (muse-configure-highlighting): Set the original value to the
379         symbol, not the modified value.  Re-use modified rules properly.
381         * lisp/muse-wiki.el (muse-wiki-update-interwiki-regexp): Fix bug
382         introduced yesterday.
384 2006-10-29  Michael Olson  <mwolson@gnu.org>
386         * examples/mwolson: Update my example configuration.
388         * NEWS: Update.
390         * lisp/muse-colors.el (muse-configure-highlighting): Remove rules
391         without a regexp in the first position before iterating through
392         them to build muse-colors-vector.  This fixes a bug with the
393         display of <example> tags.  Thanks to Stefan Reichör for the
394         report.
396         * lisp/muse-project.el (muse-project-find-file): Permit non-Muse
397         files in projects to be linked to.
399         * lisp/muse-publish.el (muse-publish-url): Allow the original link
400         to serve as a description for a URL, as long as it differs from
401         the destination URL.  This fixes the description of WikPage links
402         in PDF output.
403         (muse-publish-link-file): Check to see whether the given link
404         points at a valid file.  If so, return it.  Otherwise, apply other
405         transforms like prefix and link suffix.
407         * lisp/muse-regexps.el (muse-file-regexp): If something ends in
408         "/", it is a file or directory, not a Muse page.  Thanks to
409         Phillip Lord for the suggestion.
411         * lisp/muse-wiki.el (muse-wiki-resolve-project-page): Use the path
412         of the current page as the local path, instead of duplicating the
413         remote file's path.  This probably fixes at least one reported
414         bug. since it's quite major.
415         (muse-wiki-update-project-file-regexp)
416         (muse-wiki-update-interwiki-regexp): Ensure that nil is never
417         passed to regexp-opt, since that can cause Emacs 21 to throw an
418         "maximum binding depth exceeded" error.  Thanks to xs32 AT cornell
419         DOT edu for the report.
420         (muse-wiki-handle-wikiword): Avoid a potential stringp error.
422 2006-10-28  Michael Olson  <mwolson@gnu.org>
424         * lisp/muse-project.el (muse-project-choose-style-by-link-suffix)
425         (muse-project-resolve-link): If the given style does not have a
426         link-suffix, default to suffix.  This fixes a bug I was noticing
427         when linking to a file that was published in both PDF and HTML
428         form.
430         * lisp/muse-publish.el (muse-publish-determine-dl-indent): New
431         function that is used as a callback to determine the initial
432         amount of indentation that the current dl item has.
433         (muse-publish-surround-dl): Use it.  Pass the initial indent value
434         and the post-indent value, instead of trying to determine them
435         both.
436         (muse-publish-strip-list-indentation): New function stripped from
437         `muse-publish-surround-text' for readability.
438         (muse-publish-surround-text): Instead of taking a determine-indent
439         value, take a determine-indent-func function, which is called just
440         after finding the next list item.  If we are asked to determine
441         the amount of indentation, concatenate indent and post-indent the
442         first time around.  This effectively fixes all known definition
443         list issues.
445 2006-10-16  Michael Olson  <mwolson@gnu.org>
447         * lisp/muse.el: Provide the 'muse-nested-tags feature so that
448         other software -- namely, Planner -- can detect whether they are
449         using a version of Muse that supports nested tags.
450         (muse-goto-tag-end): Moved from muse-publish.el and renamed from
451         muse-publish-goto-tag-end.
453         * lisp/muse-colors.el (muse-colors-tags, muse-colors-custom-tags):
454         Adapt for nested tags.
456         * lisp/muse-html.el (muse-html-markup-tags): Indicate that the
457         <class> tag is nestable.  Thanks to Phillip Lord for noticing
458         this.
460         * lisp/muse-publish.el (muse-publish-markup-tag)
461         (muse-publish-quote-tag): Use muse-goto-tag-end.
463         * lisp/muse-wiki.el ("muse-colors"): Adapt for nested tags.
465 2006-10-15  Michael Olson  <mwolson@gnu.org>
467         * AUTHORS: Bookkeeping.
469         * lisp/muse-blosxom.el (muse-blosxom-header): Indent code in lisp
470         tag.
472         * lisp/muse-groff.el (muse-groff-markup-tags): Adapt for nested
473         tags.
475         * lisp/muse-html.el (muse-html-markup-tags): Ditto.
477         * lisp/muse-import-docbook.el (muse-import-docbook)
478         (muse-import-docbook-files): Docfix.
479         (muse-import-docbook-get-title): Remove cl.el-ism.
481         * lisp/muse-import-xml.el (muse-import-xml): Fix compiler warning.
483         * lisp/muse-journal.el (muse-journal-latex-markup-tags): Ditto.
485         * lisp/muse-latex2png.el (muse-publish-markup-tags): Ditto.
487         * lisp/muse-mode.el (muse-previous-reference): Minor docfix.
488         (muse-next-reference, muse-previous-reference): Minor whitespace
489         changes.
490         (muse-mode-choose-mode): Add autoload cookie.  Thanks to Leo for
491         the suggestion.
493         * lisp/muse-poem.el (muse-poem-tag): Ditto.
495         * lisp/muse-publish.el (muse-publish-markup-tags)
496         (muse-publish-markup-header-footer-tags): Shift 4th element to 5th
497         element and make 4th element determine whether tags are nestable.
498         (muse-publish-goto-tag-end): New function that moves to the end of
499         a tag.  Handle nested tags when NESTED is non-nil.
500         (muse-publish-markup-tag): Call muse-publish-goto-tag-end.  Use
501         5th element for function.
502         (muse-publish-quote-tag): Handle nested quote tags.  I've tested
503         this on several scenarios, and it seems to work.
504         (muse-publish-surround-text): Accept new optional argument
505         LIST-ITEM which determines the regexp to use for list items.  The
506         default is to use muse-list-item-regexp.
508         * muse.texi (Markup Tags): Mention nestable tags.
510         * NEWS: Mention new files.
512 2006-10-15  Elena Pomohaci  <e.pomohaci@gmail.com>
514         * lisp/muse-import-docbook.el: New file that converts Docbook XML
515         into Muse format.
517         * lisp/muse-import-xml.el: New file that provides helper routines
518         for converting XML-ish files to Muse format.
520 2006-10-10  Michael Olson  <mwolson@gnu.org>
522         * NEWS: Update for 3.02.7 bugfix release.
524 2006-10-06  Sasha Kovar  <sasha@arcocene.org>
526         * lisp/muse-blosxom.el (muse-blosxom-header): Insert the date
527         using the value in the muse #date directive.
528         (muse-blosxom-use-metadate): New option that determines whether or
529         not to use the #postdate directive.
530         (muse-blosxom-format-date): Convert a date string to PyBlosxom
531         metadate plugin format.
533 2006-09-30  Stefan Schlee  <stefan_schlee@yahoo.com>
535         * lisp/muse-protocols.el: Fix bug #6741: Exclude colon in
536         recognised URLs.
538         * muse.texi: Clarify handling of implicit links by mentioning
539         which characters can prevent Muse from recognizing something as an
540         implicit link.
542 2006-09-26  Stefan Schlee  <stefan_schlee@yahoo.com>
544         * lisp/muse-mode.el (muse-next-reference)
545         (muse-previous-reference): Fix bug #6367 by moving point to the
546         beginning of the link.
548 2006-09-26  Michael Olson  <mwolson@gnu.org>
550         * lisp/muse-colors.el (muse-use-font-lock): Don't quote
551         beginning-of-line.  This should fix a bug that was noticed in
552         recent Emacs 22 builds.
554         * lisp/muse-backlink.el: Wrap muse-backlink-split-string in an
555         eval-and-compile block to avoid a compiler warning.
557 2006-09-25  Jim Ottaway  <j.ottaway@lse.ac.uk>
559         * lisp/muse-backlink.el (muse-backlink-split-string):
560         Compatibility with Emacs versions < 22
561         (muse-backlink-pending): New internal variable
562         (muse-backlink-get-mode-hook): Find the major mode hook to use, so
563         that backlinks are inserted at the right time.
564         (muse-backlink-insert-hook-func): Remove unwind-protection; check
565         for pending backlink, and that this is the targe page.
566         (muse-backlink-handle-link): Don’t handle the link if we are
567         already handling one. Return the link as well as the parent links.
569 2006-09-25  Sasha Kovar  <sasha@arcocene.org>
571         * lisp/muse-blosxom.el (muse-blosxom-new-entry): : Fix for bug
572         #6942 - muse-blosxom-new-entry fails when using tags.
574 2006-09-14  Michael Olson  <mwolson@gnu.org>
576         * lisp/muse-texinfo.el (muse-texinfo-protect-wikiwords): Silence
577         compiler warning.
579 2006-09-14  Jim Ottaway  <j.ottaway@lse.ac.uk>
581         * lisp/muse-texinfo.el (muse-texinfo-protect-wikiwords): New
582         function: Protect all wikiwords from START to END from further
583         processing.
584         (muse-texinfo-markup-heading): Use muse-texinfo-protect-wikiwords.
586 2006-09-13  Michael Olson  <mwolson@gnu.org>
588         * lisp/muse-texinfo.el (muse-texinfo-markup-heading): New function
589         adopted from Jim Ottaway's patch.  It removes links from the
590         heading, and then marks the region read-only to inhibit WikiWord
591         detection.
593 2006-09-13  Jim Ottaway  <j.ottaway@lse.ac.uk>
595         * lisp/muse-texinfo.el (muse-texinfo-markup-functions): Add
596         special handling for headings.
597         (muse-texinfo-remove-links): New function that removes explicit
598         links from the given strings, replacing them with a description.
600 2006-09-11  Michael Olson  <mwolson@gnu.org>
602         * muse.texi (Getting Help and Reporting Bugs): Mention the
603         muse-el-internationalization mailing list.
605         * lisp/muse.el (muse-path-sans-extension): New function that acts
606         like file-name-sans-extension, but guarantees to never modify the
607         directory part of the path.  Thanks to Evan Monroig for
608         investigating this.
610         * lisp/muse-book.el (muse-book-publish-project): Use
611         muse-path-sans-extension instead of file-name-sans-extension.
613         * lisp/muse-publish.el (muse-publish-file, muse-publish-url):
614         Ditto.
616 2006-08-30  Michael Olson  <mwolson@gnu.org>
618         * muse.texi (Blosxom Requirements): Fix typo.
620         * contrib/pyblosxom/getstamps.py (recurse): Ignore metadata
621         directories for bzr and darcs.
623         * contrib/pyblosxom/make-blog, contrib/pyblosxom/hardcodedates.py:
624         contrib/pyblosxom/getstamps.py: Update version and headers.
626 2006-08-27  Michael Olson  <mwolson@gnu.org>
628         * lisp/muse-colors.el (muse-configure-highlighting): Prune out any
629         nil values before they get to mapconcat.  This fixes a lockup when
630         muse-wiki-match-all-project-files is nil.
632         * lisp/muse-wiki.el (muse-wiki-match-all-project-files)
633         (muse-wiki-ignore-implicit-links-to-current-page)
634         (muse-wiki-interwiki-regexp, muse-wiki-interwiki-alist)
635         (muse-wiki-resolve-project-page, muse-wiki-handle-interwiki)
636         (muse-wiki-publish-small-title-words)
637         (muse-wiki-publish-pretty-title): Docfix.
638         (muse-wiki-update-local-wikiword-regexp): Rename from
639         muse-wiki-update-local-wikiword-regexp.  Set
640         muse-wiki-project-file-regexp instead of
641         muse-wiki-wikiword-regexp, as suggested by Per Sederberg.  Don't
642         take muse-wiki-use-wikiword into account, since this is a
643         different concept now.
644         (muse-wiki-update-wikiword-regexp): Remove.
645         (muse-wiki-wikiword-regexp): In-line the :set function.
646         (muse-wiki-handle-wikiword): Use muse-wiki-project-file-regexp.
648 2006-08-26  Michael Olson  <mwolson@gnu.org>
650         * lisp/muse-publish.el (muse-publish-surround-text): When looking
651         for indented list items, ignore blank lines.
653         * lisp/muse-wiki.el (muse-wiki-update-local-wikiword-regexp)
654         (muse-wiki-update-interwiki-regexp): Use regexp-opt instead of
655         mapconcat.  This should hopefully fix a problem with large amounts
656         of files with spaces in their name.  Thanks to Greg Detre for the
657         report.
659 2006-08-24  Michael Olson  <mwolson@gnu.org>
661         * lisp/muse-blosxom.el (muse-blosxom-new-entry): Remove the
662         numbers from the argument to format-time-string.  This fixes an
663         XEmacs bug.  Thanks to Michael Welle for the report and analysis.
665 2006-08-18  Michael Olson  <mwolson@gnu.org>
667         * lisp/muse-project.el (muse-project-file-entries): Since we are
668         given a full path, match against the filename as well.  This fixes
669         an issue where backup files were being added to the file alist.
671         * lisp/muse-docbook.el (muse-docbook-markup-regexps): Apply a fix
672         from muse-html.el.
674 2006-08-12  Michael Olson  <mwolson@gnu.org>
676         * Makefile (.PHONY): Don't use line continuations.
677         (realclean fullclean): Call realclean in subdirs, not distclean.
678         (distclean): Don't call realclean, since this would wipe out our
679         autoloads file.
680         (dist): Use correct path to autoloads file.
682         * NEWS: Catch up with the latest changes.
684         * experimental/Makefile (.PHONY): Wrap long line.
686         * lisp/Makefile (distclean): Do the same thing as "clean", not
687         "realclean".
689         * lisp/muse-project.el (muse-project-get-applicable-style):
690         Indentation tweak.
691         (muse-project-ignore-regexp, muse-project-recurse-directory):
692         Docfix.
693         (muse-project-of-file): Try the ignored files regexp against the
694         base filename as well as the entire path.
696         * lisp/muse-publish.el (muse-publish-this-file): Display message
697         if the buffer is not associated with any file, so that we avoid
698         errors later on.
699         (muse-publish-url-desc): New function taken from muse-publish-url
700         that causes a URL description to be transformed.
701         (muse-publish-url): Call muse-publish-url-desc on either the
702         description or the original URL if it will be used as a
703         description.  Accept the original URL as an argument, in case it
704         was transformed earlier.
705         (muse-publish-insert-url): Pass original URL as an argument.
706         (muse-publish-markup-link): Make this somewhat easier to follow.
707         Pass original URL as argument.
708         (muse-publish-get-style): If the same style is used to publish to
709         two different directories, prompt the user for which directory to
710         use.
711         (muse-publish-markup-header-footer-tags): Sync lisp tag with the
712         latest changes.
713         (muse-publish-markup-url): Pass original URL as an argument.  This
714         fixes the "nil" description for bare URLs that was in 3.02.91.
715         Nothing like finding a bug just after completing the announcement
716         of a release.
718         * lisp/muse.el: Use defalias whenever convenient.
719         (muse-version): Set version to 3.02.92 (3.03 RC2).
721 2006-08-10  Michael Olson  <mwolson@gnu.org>
723         * lisp/muse-html.el (muse-html-finalize-buffer): Since the html
724         style does not derive from any other class, return `t' here.
725         This, along with the corresponding change to muse-publish.el,
726         fixes a problem with the table of contents getting inserted
727         multiple times for custom html-based styles.
728         (muse-html-markup-strings, muse-xhtml-markup-strings): Use a
729         smarter method for table centering that works with XHTML.
731         * lisp/muse-latex2png.el Rename all functions to have a
732         "muse-latex2png" prefix.  Turn all variables into customizable
733         options in the muse-latex2png group.
734         (muse-latex2png-img-dest): New option specifying where to place
735         the images.
736         (muse-latex2png-template): New option containing the template to
737         use for the surrounding LaTeX code.
738         (muse-latex2png-use-xhtml): New option that toggles strict XHTML
739         compliance.
740         (muse-latex2png-move2pubdir): Avoid multiple redundant error
741         messages when something else goes wrong.  Create the image
742         subdirectory if it doesn't exist already -- thanks to Christian
743         Straßer for the report.  Expand the filename properly.
744         (muse-publish-latex-tag, muse-latex2png): Ditto on error messages
745         and filename expansion.
746         (muse-latex2png): Use the "muse-latex2png" prefix by default.  Set
747         the default directory properly.
749         * lisp/muse-publish.el (muse-style-run-hooks): Make sure that we
750         do not run the same function twice.
752 2006-08-08  Michael Olson  <mwolson@gnu.org>
754         * lisp/muse-colors.el (muse-colors-explicit-link): Fix recently
755         introduced wrong-type-argument error.
757         * lisp/muse-html.el (muse-html-markup-strings)
758         (muse-xhtml-markup-string): Cause table definition that contains
759         image to be center-aligned.  This should fix an issue with images
760         not being centered when captions are very long.
762         * lisp/muse-publish.el (muse-publish-table-fields): Trim
763         whitespace from fields once we have split them up.
765         * lisp/muse.el (muse-trim-whitespace): New function that strips
766         leading and trailing whitespace from a string.
768 2006-08-07  Michael Olson  <mwolson@gnu.org>
770         * NEWS: Update through patch-95.
772         * lisp/muse-colors.el (muse-colors-lisp-tag): Use a simpler regexp
773         to match the tags.
774         (muse-colors-explicit-link): Show images in link descriptions if
775         inlined images are enabled.
777         * lisp/muse-docbook.el (muse-docbook-markup-strings): Add
778         definitions for 'image-with-desc, 'image, and 'image-link.
779         (muse-docbook-markup-paragraph): If an inlined image begins a
780         paragraph, insert <para> before it.
781         (muse-docbook-fixup-images): New function that upper-cases the
782         "format" attribute of the <imagedata> tag.
783         (muse-docbook-finalize-buffer): Call it.
785         * lisp/muse-html.el (muse-html-markup-strings): Publish images
786         with descriptions as centered tables, with a centered caption
787         underneath.  The resulting look is consistent with the way that
788         they are published in the LaTeX style.  Thanks to Jody Klymak for
789         the suggestion.
790         (muse-xhtml-markup-strings): Ditto, but XHTML apparently has no
791         valid way to center a table.
792         (muse-html-markup-paragraph): Use class="image" instead of
793         "image-link" for paragraphs that start with an embedded image.
795         * lisp/muse-latex.el (muse-latex-markup-specials-url): Use
796         \textbackslash{} for "\".  Thanks to Jim Ottaway for the
797         suggestion.
798         (muse-latex-markup-specials-image): New option that enables
799         escaping of specials in images.  This was split from the URL
800         specials.
801         (muse-latex-decide-specials): Handle 'image context.
802         (muse-latex-fixup-dquotes): Go to beginning of document, instead
803         of relying on caller to do this for us.
805         * lisp/muse-publish.el (muse-publish-escape-specials): Document
806         'image context.
807         (muse-publish-url): Use 'image context for images.  Use 'image
808         instead of 'image-link and 'image-link in place of
809         'url-with-image.  Separate the image file from its extension so
810         that docbook and texinfo can publish images correctly.
811         (muse-publish-markup-link): Don't force a description if one is
812         not given.  This fixes a bug where images without descriptions
813         were being published as 'image-with-desc instead of 'image.
815         * lisp/muse-texinfo.el (muse-texinfo-decide-specials): Treat
816         images the same as URLs.
817         (muse-texinfo-markup-strings): Improve image markup to achieve an
818         effect similar to that of the LaTeX publishing style.  Simplify
819         'url string.
821         * lisp/muse-xml-common.el (muse-xml-decide-specials): Ditto.
823         * lisp/muse.el (muse-replace-regexp-in-string): Save match data
824         when we have to use the custom version of this function.
826         * muse.texi (Images): Explain how to toggle inlining of images and
827         give better examples.  Mention captions and that captioned images
828         should not be used inside of text paragraphs.
829         (Markup Strings): Bring up-to-date with the changes made since
830         3.02.
832 2006-08-06  Michael Olson  <mwolson@gnu.org>
834         * ChangeLog.1: Rename from ChangeLog.2004 to comply with standards
835         in the Emacs source tree.
837         * ChangeLog.2: Rename from ChangeLog.2005 to comply with standards
838         in the Emacs source tree.
840         * ChangeLog.3: New file created from the old ChangeLog.
842         * Makefile.defs (VERSION): Set to 3.02.91.
844         * NEWS: Update through patch-84.
846         * lisp/muse.el (muse-version): Set to 3.02.91.
848         * lisp/muse-colors.el (muse-colors-tags): Allow <lisp> to take
849         attributes.
850         (muse-colors-lisp-tag): Figure out where the <lisp> tag and its
851         delimiter are instead of hard-coding it.
853         * lisp/muse-mode.el (muse-insert-thing): Qualify "tag".
854         (muse-mode): Make filling definition lists work better.  This
855         should fix #5359.
857         * lisp/muse-publish.el (muse-style-run-hooks): Use
858         `muse-style-element' instead of `muse-get-keyword' here.  This
859         should fix #6399.
861         * muse.texi: Set version to 3.02.91 (3.02 RC2).
863 See ChangeLog.3 for earlier changes.
865 ;; Local Variables:
866 ;; coding: utf-8
867 ;; End: