1 2007-06-06 Michael Olson <mwolson@gnu.org>
3 * lisp/muse-regexps.el (muse-table-line-regexp)
4 (muse-table-hline-regexp, muse-table-el-border-regexp): Fix
5 regexps so that they work with XEmacs 21. Thanks to Adrian
6 Tritschler for the report.
8 * texi/muse.texi (HTML): Document muse-xhtml-style-sheet. Thanks
9 to thorne for noticing.
11 2007-06-05 Michael Olson <mwolson@gnu.org>
13 * Makefile (install-info): Remove $(MANUAL).info part, since this
14 is taken care of already by texi/Makefile. Thanks to Leo for the
17 * lisp/muse-journal.el (muse-journal-html-munge-buffer): Add
18 read-only properties to qotd contents, so that they don't get
19 double-escaped. Thanks to Leo for the report.
21 2007-06-04 Michael Olson <mwolson@gnu.org>
23 * lisp/muse-colors.el (muse-link-face): If the link is to a remote
24 -- that is, Tramp or ange-ftp -- file, then do not call
25 file-exists-p on it. Thanks to Jim Ottaway for the suggestion.
28 * lisp/muse-html.el (muse-html-insert-contents): Add
29 documentation. Handle case where heading is read-only, but has
30 muse-contents property. Remove the muse-contents property for any
31 heading we come across so as to avoid double-including an item in
32 an outer table of contents.
33 (muse-html-denote-headings): New function that denotes whether a
34 heading is not read-only by adding the muse-contents property to
36 (muse-html-munge-buffer): If we are not to generate contents,
37 still denote headings, in case some outer layer wants to generate
38 contents for our headings. This should fix a bug with table of
39 contents and the <include> tag. Thanks to thorne for the report.
41 * lisp/muse-publish.el (muse-publish-markup-region): Let-bind
42 muse-publish-generate-contents and set it to nil. This should
43 do the right thing when using <include> tags.
45 2007-06-02 Michael Olson <mwolson@gnu.org>
47 * NEWS: Update for non-inlined image change and support for
48 table.el style tables.
50 * examples/Makefile (clean): Clean backup files.
52 * examples/QuickStart.muse (Images): New section that describes
53 how to inline and not inline images.
55 * lisp/muse-colors.el (muse-colors-resolve-image-file): Don't
56 touch images that have "URL:" in front of them.
58 * lisp/muse-protocols.el (muse-url-protocols): Add handler for
59 "URL:". Use the identity function to resolve, since we don't want
60 to rip "URL:" out while publishing, due to some magic that depends
62 (muse-browse-url-url): New function that browses URLs that have
63 "URL:" in front of them, by removing the "URL:" part and
64 reprocessing the remainder.
66 * lisp/muse-publish.el (muse-publish-classify-url): Docfix.
67 (muse-publish-url): Recognize images in the description before
68 images in the link. Fixes bug #5112. Thanks to Thomas Kappler
69 for the suggested workaround.
70 (muse-publish-desc-transforms): Add `muse-publish-strip-URL' as a
72 (muse-publish-classify-url): If target begins with "URL:" return
74 (muse-publish-strip-URL): New function that strips "URL:" from the
75 beginning of a string. This is used to remove URL: from the link
76 description. * texi/muse.texi (Markup Strings): Clarify the
77 meanings of image-link, link, and link-and-anchor.
78 (muse-publish-markup-regexps): Move normal table rule to 2350.
79 Rule 2300 is now a regexp that matches table.el-style tables.
80 (muse-publish-markup-functions): Add table-el entry.
81 (muse-publish-table-el-table): New function that given a variant,
82 publishes a table.el-style table using the table in the matched
84 (muse-publish-markup-table-el): New function that determines
85 whether the table.el-style table can be published, and what
88 * lisp/muse-regexps.el (muse-tag-regexp): New regexp that matches
89 the borders of table.el-style tables.
91 * lisp/muse-xml-common.el (muse-xml-markup-table): Make sure that
92 the table has sufficient whitespace in front of it.
94 * texi/muse.texi (Images): Update for new non-inlined image
95 ability and provide example.
97 2007-05-31 Michael Olson <mwolson@gnu.org>
99 * NEWS: Add example for setting `muse-html-table-attributes'.
101 * lisp/muse-xml-common.el (muse-xml-markup-table): Add docstring.
102 Publish multiple tbody tags if there is a horizontal separator
103 after the heading, because that is valid HTML after all.
105 2007-05-30 Michael Olson <mwolson@gnu.org>
109 * lisp/muse-latex.el (muse-latex-markup-table): Deal with
110 horizontal separators in tables.
112 * lisp/muse-publish.el (muse-publish-markup-regexps): Recognize
113 horizontal separators in tables.
114 (muse-publish-trim-table): New function to remove initial and
115 final blank columns from a table.
116 (muse-publish-table-fields): Call `muse-publish-trim-table'. Deal
117 with horizontal separators, aka "hlines".
119 * lisp/muse-regexps.el (muse-table-hline-regexp): New regexp that
120 defines the syntax of a horizontal separator in a table.
122 * lisp/muse-texinfo.el (muse-texinfo-markup-table): Deal with
123 horizontal separators. Publish header lines correctly.
125 * lisp/muse-xml-common.el (muse-xml-sort-table): Deal with case
126 where we have nonnumbers as a row type. This ignores sorting for
128 (muse-xml-markup-table): Deal with horizontal separators. If the
129 markup supports table groups, make hlines separate table groups.
130 Otherwise, ignore them, since they cannot be marked up. Together,
131 these changes allow us to support orgtbl-mode tables. Thanks to
132 Carsten Dominik for the suggestion.
134 2007-05-26 Michael Olson <mwolson@gnu.org>
136 * lisp/muse-project.el (muse-project-alist-styles): Allow for
137 other things to be added to each generated style as well. For
138 example, this permits me to add
139 :base-url "http://blog.mwolson.org/"
142 2007-05-25 Michael Olson <mwolson@gnu.org>
144 * Makefile (debclean, debprepare, debbuild, debinstall, deb): New
145 way of building Debian packages that preserves the original
146 release tarball and is more modular.
147 (debrevision, debrelease): Remove.
148 (dist): No need to remove the debian/ directory, since it is now
150 (debprepare): Copy over debian/ directory properly.
154 * examples/Makefile (clean): Remove QuickStart.texi, in case
155 something went wrong during the build.
156 (%.pdf): Publish the example using the normal pdf style, rather
159 * examples/QuickStart.muse: Add myself to the authors list.
161 * lisp/muse-html.el (muse-html-src-tag): Ensure that we have
162 sufficient blank lines before the tag.
164 * lisp/muse-journal.el (muse-journal-latex-qotd-tag): Ensure that
165 we have sufficient blank lines before the tag.
167 * lisp/muse-latex.el (muse-latex-pdf-program): New option that
168 specifies the program to call in order to generate PDF content
170 (muse-latex-pdf-cruft): New option that specifies the extensions
171 of files to remove after generating PDF output successfully.
172 (muse-latex-pdf-generate): Use these new options. Work around the
173 annoying edge case where a tilde character exists in the filename
174 or directory path -- now this can only error out when the relative
175 path from the output file to the source file contains a tilde,
176 which is far less likely.
178 * lisp/muse-publish.el (muse-publish-markup-attribute): Don't use
179 muse-publish-ensure-block here after all, because <lisp> et al may
180 occur inline as part of other things.
182 * lisp/muse-texinfo.el ("texi"): Make muse-texinfo-munge-buffer
183 occur after full-document escaping, rather than before. This
184 prevents automatically-inserted Texinfo code from being escaped.
185 (muse-texinfo-pdf-generate): Rewrite to call
186 `muse-latex-pdf-generate' with pdftex as the generating binary,
187 because texi2pdf suffers irredeemably from the tilde edge case
190 2007-05-24 Michael Olson <mwolson@gnu.org>
192 * NEWS: Drop vague entries and position interesting entries closer
193 to the top of each section. Update for new changes.
195 * lisp/muse-project.el (muse-project-ignore-regexp): Add Mercurial
196 and bzr metadata directories to the list of things to ignore.
198 * lisp/muse-publish.el (muse-publish-ensure-block): Rename from
199 `muse-publish-ensure-block-tag', since we will use it for more
201 (muse-publish-markup-list, muse-publish-verse-tag)
202 (muse-publish-quote-tag, muse-publish-example-tag)
203 (muse-publish-markup-attribute): Use it. This fixes a bug that
204 can occur when these types of markup occur immediately after a
205 paragraph. It's good to have defined behavior!
207 * texi/muse.texi (Markup Strings): Mention new argument for
210 2007-05-19 Michael Olson <mwolson@gnu.org>
212 * lisp/muse-html.el (muse-html-markup-footnote): Add class tags to
213 published footnotes and footnote references. Thanks to Scott
214 Jaderholm for the idea.
216 * lisp/muse-latex.el (muse-latex-markup-strings): Revert change to
217 link-and-anchor, on the recommendation of the original submitter.
219 2007-05-14 Michael Olson <mwolson@gnu.org>
221 * lisp/muse-latex.el (muse-latex-markup-strings): Use better
222 link-and-anchor markup. Thanks to Jean Magnan de Bornier for the
225 * lisp/muse-publish.el (muse-publish-url): Pass the url without a
226 file extension as the fourth argument.
228 * README, texi/muse.texi (Getting Help and Reporting Bugs):
229 Mention the new muse-el-logs mailing list.
231 2007-05-13 Michael Olson <mwolson@gnu.org>
233 * lisp/muse-protocols.el (muse-resolve-url): Don't concatenate
234 "\`" here. This fixes a problem with publishing custom URLs.
236 2007-05-12 Michael Olson <mwolson@gnu.org>
238 * lisp/muse-blosxom.el (muse-blosxom-update-page-date-alist): Only
239 update the list if the current buffer is associated with a file.
240 This fixes a bug with M-x muse-publish-region in a temporary
243 2007-05-01 Michael Olson <mwolson@gnu.org>
245 * lisp/muse-publish.el (muse-publish-region): Remove read-only
246 properties from the published buffer, so that the results can be
249 2007-04-23 Michael Olson <mwolson@gnu.org>
251 * lisp/muse-publish.el (muse-publish-markup-footnote): If we can't
252 find the footnote that goes with a reference, leave the reference
253 as-is. This fixes an error where control characters could be
254 placed in a published document.
256 2007-04-22 Michael Olson <mwolson@gnu.org>
258 * IDEAS.muse: Add muse-slides.el to list of things to include
261 * lisp/muse-protocols.el (muse-url-protocols): Remove stray quote
263 (muse-protocol-find): Find protocols correctly. Rewrite to use
265 (muse-browse-url): Don't concatenate "\`" here. Together, this
266 fixes a bug with browsing woman:// links.
268 * lisp/muse-project.el (muse-project-alist-styles): Deal with case
269 where entry-dir has a trailing backslash.
270 (muse-project-publish-file): If a style is malformed, skip it and
271 display a warning message. This should help people figure out
272 where the problem is.
274 2007-04-21 Michael Olson <mwolson@gnu.org>
276 * lisp/muse-latex2png.el (muse-publish-math-tag): If using the
277 yet-to-be-included "contex" publishing style, use "$$" rather
278 than "\[" and "\]". Thanks to Jean Magnan de Bornier for pointing
281 2007-04-20 Michael Olson <mwolson@gnu.org>
283 * lisp/muse-publish.el (muse-publish-inhibit-style-hooks): New
284 variable that causes the :before and :before-end hooks to be
285 ignored when non-nil.
286 (muse-publish-markup-region): Use it. Also, guarantee that point
287 is at end of region after publishing.
288 (muse-publish-mark-up-tag): Simplify, taking advantage of the new
291 2007-04-19 Michael Olson <mwolson@gnu.org>
293 * IDEAS.muse: New file containing a list of ideas we have for new
294 features, or patches that have yet to be applied.
296 * README: Call it "Emacs Muse", not "the Emacs Muse". No need to
299 * lisp/muse-html.el (muse-html-table-attributes): Fix typo in
302 * lisp/muse-publish.el (muse-publish-markup-tags): Handle
303 <literal> tags with muse-publish-literal-tag, rather than
304 muse-publish-mark-read-only.
305 (muse-publish-literal-tag): New function that publishes the
306 <literal> tag. It adds the ability to add the optional "style"
307 and "exact" elements, which cause text to only be included if the
308 current publishing style matches some criteria. The text will be
309 removed otherwise. Thanks to Jim Ottaway for the implementation.
310 (muse-publish-mark-up-tag): Let the <markup> tag take the
311 additional optional elements "style" and "exact", with much the
312 same effect as the <literal> improvements, but after calling
313 "function" or publishing the region first. Make it possible to
314 put <content> tags in <markup> regions in HTML publishing.
316 2007-04-12 Michael Olson <mwolson@gnu.org>
318 * lisp/muse-publish.el (muse-publish-markup-heading): Make sure
319 that a blank line always exists after a heading. This fixes a bug
320 in Docbook paragraph detection. Thanks to Jean Magnan de Bornier
323 * lisp/muse-xml.el (muse-xml-markup-regexps): Update paragraph
324 detection regexp to that which is used in Docbook and HTML
327 2007-04-02 Michael Olson <mwolson@gnu.org>
329 * README (muse-el-announce): Make a listing of mailing lists,
330 rather than pointing to the old EmacsWikiMailingList page. Thanks
331 to Andreas Roehler for noticing.
333 2007-04-01 Michael Olson <mwolson@gnu.org>
335 * lisp/muse-publish.el (muse-publish-date-format): Add
336 ` customization type and group.
337 (muse-publish-region): New interactive function that publishes a
338 region to a new buffer.
340 * texi/muse.texi: Use "document" rather than "manual".
342 2007-03-31 Michael Olson <mwolson@gnu.org>
344 * lisp/muse-publish.el (muse-style-derived-p): Fix bug where the
345 expression (muse-style-derived-p "latex" (muse-style "latex"))
346 yielded nil. It now yields t, as expected. Thanks to Jim Ottaway
349 2007-02-25 Michael Olson <mwolson@gnu.org>
351 * lisp/muse-publish.el (muse-publish-date-format): New option that
352 specifies how to format the date when publishing Muse pages.
353 Thanks to Thomas Gehrlein for the suggestion.
354 (muse-publish-markup-buffer): Use it.
356 2007-02-23 Michael Olson <mwolson@gnu.org>
358 * README: Add Prerequisites section to mention which versions of
359 Emacs work with Muse. Thanks to Exal de Jesus Garcia Carrillo for
360 the suggestion. Update link destination for Muse's page on
363 2007-02-15 Michael Olson <mwolson@gnu.org>
365 * lisp/muse.el (muse-goto-tag-end): Modify regexp to allow tags to
366 be not just at beginning of line. This fixes an error with the
367 <class> tag. Thanks to Jim Pivarski for the report.
369 2007-02-14 Michael Olson <mwolson@gnu.org>
371 * lisp/muse-publish.el (muse-publish-classify-url): Check to see
372 whether something is an image before checking to see if it is a
373 URL. Thanks to ITSUMI ken-ichi for the report.
375 2007-02-13 Michael Olson <mwolson@gnu.org>
377 * lisp/muse-publish.el (muse-publish-markup-regexps): Handle
378 comments that have no text better. Thanks to fang.lungang for the
380 (muse-publish-markup-comment): Deal with case where no comment
383 2007-01-23 Michael Olson <mwolson@gnu.org>
385 * lisp/muse-publish.el (muse-publish-ensure-block-tag): New macro
386 that ensures that at least one blank line exists at the given
387 position. This is used to avoid paragraph detection problems when
388 block-level tags like <example> immediately follow a paragraph.
389 Thanks to Hans Ekbrand for the report.
390 (muse-publish-example-tag): Use it.
392 2007-01-19 Michael Olson <mwolson@gnu.org>
394 * lisp/muse-latex2png.el (muse-publish-math-tag): Only remove the
395 previous blank line if we are publishing in Latex. Otherwise,
396 that wouldn't be the right thing, so leave it be.
398 2007-01-17 Michael Olson <mwolson@gnu.org>
400 * lisp/muse-latex2png.el (muse-publish-math-tag): Don't put
401 multiple centered math lines on the same line; keep them on
402 different lines. Use \[ math-text \] instead of $$math-text$$,
403 since the latter seems to be deprecated. Thanks to Jody Klymak
406 2007-01-15 Michael Olson <mwolson@gnu.org>
408 * lisp/muse-latex2png.el (muse-publish-latex-tag)
409 (muse-publish-math-tag): Publish region read-only when current
410 style is Latex-derived, so that Muse does not escape it.
411 (muse-publish-math-tag): If 6 or more spaces come before the tag,
412 surround the region with "$$" rather than "$". This is the Muse
413 syntax for something centered, so it should be a good fit.
415 2007-01-15 Valery V. Vorotyntsev <valery.vv@gmail.com>
417 * lisp/muse-protocols.el (muse-url-protocols): Add "woman://"
419 (muse-browse-url-man): Change man page URL format. The code is
420 simpler when the section is left inside parentheses.
421 (muse-browse-url-woman): New function.
423 2007-01-14 Michael Olson <mwolson@gnu.org>
425 * AUTHORS: Bookkeeping.
427 * lisp/muse-latex2png.el: Associate <math> tag with
428 muse-publish-math-tag, not muse-publish-latex-tag. Thanks to Jody
429 Klymak for the report.
430 (muse-publish-math-tag): Use muse-insert-markup for the "$"
431 characters, so they don't get escaped.
433 * lisp/muse-publish.el (muse-style-derived-p-1): New function to
434 make muse-style-derived-p easier to implement.
435 (muse-style-derived-p): If the style is not provided, fetch it and
436 check to see if the car is a string. This should fix the other
437 problem that was reported.
439 * texi/muse.texi (Projects): Apply patch from Bradley M. Kuhn that
440 explains a case where setting muse-file-extension to nil can cause
443 2007-01-09 Michael Olson <mwolson@gnu.org>
445 * lisp/muse-publish.el (muse-publish-markup-regexps): Make
446 comments higher priority than tags. Thanks to Stefan van der Walt
449 2007-01-08 Michael Olson <mwolson@gnu.org>
451 * lisp/muse-publish.el (muse-markup-tag-info): Use the given
452 argument rather than calling match-string. Thanks to Stefan van
453 der Walt for the report. This should fix a bug with publishing
454 <include file="..." markup="example">.
456 2007-01-06 Michael Olson <mwolson@gnu.org>
458 * Makefile (debclean): New rule split from debrevision and
460 (debbuild): Take distributor into account.
462 * Makefile.defs (DISTRIBUTOR): New field that tracks what
463 vendor/distributor we are building for.
465 2007-01-04 Michael Olson <mwolson@gnu.org>
467 * lisp/muse-html.el (muse-html-src-tag): Remove initial blank
470 * lisp/muse-publish.el (muse-publish-markup-tags): Make "src"
471 point to muse-publish-src-tag by default, since <src> and
472 <example> have different parameters.
473 (muse-publish-src-tag): New barebones publishing function for
474 <src>, which is superseded when publishing in an HTML-based style.
476 2007-01-03 Michael Olson <mwolson@gnu.org>
478 * lisp/muse-html.el (muse-html-src-tag): Document.
480 * lisp/muse-publish.el (muse-publish-call-tag-on-buffer): New
481 command that calls a given tag on the current buffer. Attributes
483 (muse-publish-examplify-buffer, muse-publish-versify-buffer): Use
485 (muse-publish-srcify-buffer): New function that allows
486 markup="src" in the <include> tag.
487 (muse-publish-get-and-delete-attr): New macro that gets an
488 attribute from a list and removes the first instance of that
489 attribute from said list.
490 (muse-publish-markup-attribute): Handle markup="src".
491 (muse-publish-command-tag, muse-publish-include-tag): Use
492 muse-publish-get-and-delete-attr. This allows the remaining
493 attributes to be passed.
495 * texi/muse.texi (Tag Summary): Update for new <src> tag as well
496 as changes to <command> and <include>.
498 2006-12-30 Michael Olson <mwolson@gnu.org>
502 * experimental/muse-mathml.el (muse-publish-mathml-tag): Rename
503 from muse-publish-math-tag to avoid conflict with
506 2006-12-23 Michael Olson <mwolson@gnu.org>
508 * lisp/muse-latex2png.el: Update header, since this has been
509 rewritten sufficiently to not need an assignment from the original
511 (muse-latex2png-use-xhtml): Remove, since we now autodetect this.
512 (muse-latex2png): Use two underscores to separate prefix and hash.
513 (muse-latex2png-region): New function split from
514 muse-publish-latex-tag that can be used easily by other code.
515 Detect whether we are using an HTML-based publishing style, and
516 insert a simpler markup if we are not. If we are using a
517 Latex-based publishing style, do not generate an image, and leave
518 the region alone. Return the path of the generated image, in case
519 other functions want to use this programmatically.
520 (muse-publish-latex-tag): Set a default prefix based on the name
522 (muse-publish-math-tag): New tag that surrounds the region with
523 "$" characters, so that it becomes a Latex math region, and then
526 * lisp/muse-publish.el (muse-style-derived-p): New function that
527 returns non-nil if a given style, or the current style if omitted,
528 is equal to or derived from the given base style. This is useful
529 in <lisp> tags, because it allows the user to specify markup that
530 is only to be inserted for one particular style.
532 2006-12-22 Michael Olson <mwolson@gnu.org>
534 * lisp/muse-html.el (muse-html-markup-tags): Add <src> tag.
535 (muse-html-src-tag): New function which publishes the <src> tag.
536 Thanks to Clinton Ebadi and Charles Wang for the initial
539 * lisp/muse-publish.el (muse-publish-markup-tags): Add <src> tag.
541 2006-12-21 Michael Olson <mwolson@gnu.org>
543 * examples/johnw/muse-johnw.el: Update for preferred
544 muse-derive-style usage. Rename to muse-init.el.
546 * examples/mwolson/muse-init.el: Update.
548 * lisp/muse-book.el (muse-book-publish): New function split from
549 muse-book-publish-project. This is used in the definitions for
550 the book-latex and book-pdf styles.
551 (muse-book-publish-p): New function split from muse-book-publish.
552 (muse-book-get-directives): New function that retrieves the
553 publishing directives from the given file.
554 (muse-book-publish): Use muse-book-get-directives to set the title
555 if no title was specified.
557 * lisp/muse-project.el (muse-project): Add :publish-project entry
559 (muse-read-project, muse-project-find-file): Message fix.
560 (muse-project-publish-file-default): New function split from
561 muse-project-publish-file.
562 (muse-project-publish-file): Allow file-level publishing function
563 to be specified by the :publish element. The default is
564 muse-project-publish-file-default.
565 (muse-project-publish-default): New function split from
566 muse-project-publish.
567 (muse-project-publish): Allow project-level publishing function to
568 be specified by :publish-project element. The default is
569 muse-project-publish-default.
571 * lisp/muse-publish.el (muse-publish-file): Message fix.
573 * texi/muse.texi (Book): Mention new way to publish books and
574 provide an example, since the process may be non-obvious.
576 2006-12-20 Michael Olson <mwolson@gnu.org>
578 * lisp/muse-docbook.el (muse-docbook-munge-buffer): Split out
579 content-modifying code from the rest of
580 muse-docbook-finalize-buffer.
582 * lisp/muse-groff.el (muse-groff-munge-buffer): Rename from
583 muse-groff-finalize-buffer, since it adds content to the buffer.
585 * lisp/muse-html.el (muse-html-munge-buffer): Split out
586 content-modifying code from the rest of muse-html-finalize-buffer.
587 This fixes a bug when using <include> with <content> tags.
589 * lisp/muse-journal.el (muse-journal-html-munge-buffer)
590 (muse-journal-latex-munge-buffer)
591 (muse-journal-rss-munge-buffer): Rename, since they add content to
594 * lisp/muse-latex.el (muse-latex-munge-buffer): Rename from
595 muse-latex-finalize-buffer, since it adds content to the buffer.
598 * lisp/muse-project.el:
599 * lisp/muse-publish.el:
600 * lisp/muse.el: Fix recursive load error.
602 * lisp/muse-texinfo.el (muse-texinfo-munge-buffer): Rename from
603 muse-texinfo-finalize-buffer, since it adds content to the buffer.
605 * lisp/muse-wiki.el: Comment cleanup.
607 * lisp/muse-xml.el (muse-xml-charset-default): Docfix.
609 2006-12-17 Michael Olson <mwolson@gnu.org>
611 * lisp/muse-latex.el (muse-latex-header, muse-latexcjk-header):
612 Remove the definition of \comment, since Latex already has comment
614 (muse-latex-markup-strings): Use the Latex comment syntax, rather
615 than our own. Thanks to Ryan Stutsman for pointing this out.
617 2006-12-02 Michael Olson <mwolson@gnu.org>
619 * lisp/muse-html.el (muse-html-insert-contents): Tweak regexp so
620 that this can generate a proper table of contents for Planner HTML
623 2006-12-01 Michael Olson <mwolson@gnu.org>
625 * lisp/muse.el (muse-replace-regexp-in-string): In case someone is
626 using a very old Emacs, avoid an infinite loop that could occur
627 when the regexp is an empty string.
629 2006-11-26 Michael Olson <mwolson@gnu.org>
631 * NEWS: Bring up to date.
633 * lisp/muse-docbook.el (muse-docbook-markup-paragraph): Fix nested
634 list issues and multiple-stanza verse issues. This takes care of
635 all of the markup issues I was worried about.
637 * lisp/muse-project.el (muse-project-ignore-regexp): Minor docfix.
638 (muse-project-publish-private-files): New option that indicates
639 whether files with private filesystem permissions should be
640 published. The default is to publish them, since it avoids
641 confusion in new users.
642 (muse-project-private-p): Use it.
644 2006-11-19 Michael Olson <mwolson@gnu.org>
646 * lisp/muse-project.el (muse-project-resolve-link): If no remote
647 style is found, which means that the link is not a Muse page, do
648 not add a suffix or prefix to it. This should fix the
649 "[[thing.owl]]" bug that Phillip Lord reported.
651 * lisp/muse-publish.el (muse-publish-link-file): Simplify by
652 removing unused 2nd argument.
654 2006-11-17 Michael Olson <mwolson@gnu.org>
656 * lisp/muse-publish.el (muse-publish-surround-text): Fix bug in
657 latex publishing where nested enumerated lists would be squashed
660 2006-11-16 Michael Olson <mwolson@gnu.org>
662 * lisp/muse-latex.el (muse-latex-markup-strings): Make an ordered
663 list embedded in a definition list look right. This also allows
664 for definitions to be separated from their terms, much like the
665 way HTML does it by default, if the user puts a blank line or a
666 line break between the term and the definition. If the term and
667 definition are on the same line, they will be that way in the
670 2006-11-11 Michael Olson <mwolson@gnu.org>
672 * muse.texi (Markup Strings): Fix typo. Thanks to Haiyong Zheng
674 (Getting Help and Reporting Bugs): Fix emacswiki.org page URL.
676 2006-11-07 Michael Olson <mwolson@gnu.org>
678 * lisp/muse.el (muse-version): Make Emacs Muse 3.02.93, the third
679 release candidate for Muse 3.03, available.
683 2006-11-06 Michael Olson <mwolson@gnu.org>
685 * lisp/muse-project.el (muse-project-find-file): Fix bug when
686 following a relative link worked even when the path was incorrect.
688 2006-11-04 John Sullivan <john@wjsullivan.net>
690 * lisp/muse-mode.el (muse-mode-map): Remove C-c C-c binding for
691 muse-follow-name-at-point to reduce collisions with other
694 * muse.texi (Keystroke Summary): Remove C-c C-c binding.
696 2006-11-04 Michael Olson <mwolson@gnu.org>
698 * lisp/muse-wiki.el (muse-wiki-update-interwiki-regexp): Make page
699 optional, and make interwiki delimiter a regular rather than shy
701 (muse-wiki-handle-implicit-interwiki): Rename from
702 muse-wiki-handle-interwiki. Use match group 3 to get the page.
703 (muse-wiki-handle-explicit-interwiki): New function that is
704 smarter about where an explicit link ends in a buffer. This
705 allows you to refer to page names with invalid Wiki characters,
706 such as underscores and dashes, merely by enclosing them in double
707 brackets. Also, a bug with recognizing project names too loosely
710 2006-11-03 Michael Olson <mwolson@gnu.org>
712 * lisp/muse-project.el (muse-project-page-file): Make relative
713 links work as expected, hopefully.
715 * lisp/muse-publish.el (muse-publish-this-file): Set the current
716 output style manually, since it will differ from anything in the
717 publishing style list.
719 2006-10-30 Michael Olson <mwolson@gnu.org>
721 * lisp/muse-colors.el (muse-colors-markup): Remove note about
722 grouping elements, since that no longer applies.
723 (muse-colors-custom-tags): Explicitly match against
724 muse-tag-regexp to get the match-data set the way we want. This
725 really fixes the <example> highlighting bug that Stefan reported.
726 (muse-configure-highlighting): Set the original value to the
727 symbol, not the modified value. Re-use modified rules properly.
729 * lisp/muse-wiki.el (muse-wiki-update-interwiki-regexp): Fix bug
730 introduced yesterday.
732 2006-10-29 Michael Olson <mwolson@gnu.org>
734 * examples/mwolson: Update my example configuration.
738 * lisp/muse-colors.el (muse-configure-highlighting): Remove rules
739 without a regexp in the first position before iterating through
740 them to build muse-colors-vector. This fixes a bug with the
741 display of <example> tags. Thanks to Stefan Reichör for the
744 * lisp/muse-project.el (muse-project-find-file): Permit non-Muse
745 files in projects to be linked to.
747 * lisp/muse-publish.el (muse-publish-url): Allow the original link
748 to serve as a description for a URL, as long as it differs from
749 the destination URL. This fixes the description of WikPage links
751 (muse-publish-link-file): Check to see whether the given link
752 points at a valid file. If so, return it. Otherwise, apply other
753 transforms like prefix and link suffix.
755 * lisp/muse-regexps.el (muse-file-regexp): If something ends in
756 "/", it is a file or directory, not a Muse page. Thanks to
757 Phillip Lord for the suggestion.
759 * lisp/muse-wiki.el (muse-wiki-resolve-project-page): Use the path
760 of the current page as the local path, instead of duplicating the
761 remote file's path. This probably fixes at least one reported
762 bug. since it's quite major.
763 (muse-wiki-update-project-file-regexp)
764 (muse-wiki-update-interwiki-regexp): Ensure that nil is never
765 passed to regexp-opt, since that can cause Emacs 21 to throw an
766 "maximum binding depth exceeded" error. Thanks to xs32 AT cornell
767 DOT edu for the report.
768 (muse-wiki-handle-wikiword): Avoid a potential stringp error.
770 2006-10-28 Michael Olson <mwolson@gnu.org>
772 * lisp/muse-project.el (muse-project-choose-style-by-link-suffix)
773 (muse-project-resolve-link): If the given style does not have a
774 link-suffix, default to suffix. This fixes a bug I was noticing
775 when linking to a file that was published in both PDF and HTML
778 * lisp/muse-publish.el (muse-publish-determine-dl-indent): New
779 function that is used as a callback to determine the initial
780 amount of indentation that the current dl item has.
781 (muse-publish-surround-dl): Use it. Pass the initial indent value
782 and the post-indent value, instead of trying to determine them
784 (muse-publish-strip-list-indentation): New function stripped from
785 `muse-publish-surround-text' for readability.
786 (muse-publish-surround-text): Instead of taking a determine-indent
787 value, take a determine-indent-func function, which is called just
788 after finding the next list item. If we are asked to determine
789 the amount of indentation, concatenate indent and post-indent the
790 first time around. This effectively fixes all known definition
793 2006-10-16 Michael Olson <mwolson@gnu.org>
795 * lisp/muse.el: Provide the 'muse-nested-tags feature so that
796 other software -- namely, Planner -- can detect whether they are
797 using a version of Muse that supports nested tags.
798 (muse-goto-tag-end): Moved from muse-publish.el and renamed from
799 muse-publish-goto-tag-end.
801 * lisp/muse-colors.el (muse-colors-tags, muse-colors-custom-tags):
802 Adapt for nested tags.
804 * lisp/muse-html.el (muse-html-markup-tags): Indicate that the
805 <class> tag is nestable. Thanks to Phillip Lord for noticing
808 * lisp/muse-publish.el (muse-publish-markup-tag)
809 (muse-publish-quote-tag): Use muse-goto-tag-end.
811 * lisp/muse-wiki.el ("muse-colors"): Adapt for nested tags.
813 2006-10-15 Michael Olson <mwolson@gnu.org>
815 * AUTHORS: Bookkeeping.
817 * lisp/muse-blosxom.el (muse-blosxom-header): Indent code in lisp
820 * lisp/muse-groff.el (muse-groff-markup-tags): Adapt for nested
823 * lisp/muse-html.el (muse-html-markup-tags): Ditto.
825 * lisp/muse-import-docbook.el (muse-import-docbook)
826 (muse-import-docbook-files): Docfix.
827 (muse-import-docbook-get-title): Remove cl.el-ism.
829 * lisp/muse-import-xml.el (muse-import-xml): Fix compiler warning.
831 * lisp/muse-journal.el (muse-journal-latex-markup-tags): Ditto.
833 * lisp/muse-latex2png.el (muse-publish-markup-tags): Ditto.
835 * lisp/muse-mode.el (muse-previous-reference): Minor docfix.
836 (muse-next-reference, muse-previous-reference): Minor whitespace
838 (muse-mode-choose-mode): Add autoload cookie. Thanks to Leo for
841 * lisp/muse-poem.el (muse-poem-tag): Ditto.
843 * lisp/muse-publish.el (muse-publish-markup-tags)
844 (muse-publish-markup-header-footer-tags): Shift 4th element to 5th
845 element and make 4th element determine whether tags are nestable.
846 (muse-publish-goto-tag-end): New function that moves to the end of
847 a tag. Handle nested tags when NESTED is non-nil.
848 (muse-publish-markup-tag): Call muse-publish-goto-tag-end. Use
849 5th element for function.
850 (muse-publish-quote-tag): Handle nested quote tags. I've tested
851 this on several scenarios, and it seems to work.
852 (muse-publish-surround-text): Accept new optional argument
853 LIST-ITEM which determines the regexp to use for list items. The
854 default is to use muse-list-item-regexp.
856 * muse.texi (Markup Tags): Mention nestable tags.
858 * NEWS: Mention new files.
860 2006-10-15 Elena Pomohaci <e.pomohaci@gmail.com>
862 * lisp/muse-import-docbook.el: New file that converts Docbook XML
865 * lisp/muse-import-xml.el: New file that provides helper routines
866 for converting XML-ish files to Muse format.
868 2006-10-10 Michael Olson <mwolson@gnu.org>
870 * NEWS: Update for 3.02.7 bugfix release.
872 2006-10-06 Sasha Kovar <sasha@arcocene.org>
874 * lisp/muse-blosxom.el (muse-blosxom-header): Insert the date
875 using the value in the muse #date directive.
876 (muse-blosxom-use-metadate): New option that determines whether or
877 not to use the #postdate directive.
878 (muse-blosxom-format-date): Convert a date string to PyBlosxom
879 metadate plugin format.
881 2006-09-30 Stefan Schlee <stefan_schlee@yahoo.com>
883 * lisp/muse-protocols.el: Fix bug #6741: Exclude colon in
886 * muse.texi: Clarify handling of implicit links by mentioning
887 which characters can prevent Muse from recognizing something as an
890 2006-09-26 Stefan Schlee <stefan_schlee@yahoo.com>
892 * lisp/muse-mode.el (muse-next-reference)
893 (muse-previous-reference): Fix bug #6367 by moving point to the
894 beginning of the link.
896 2006-09-26 Michael Olson <mwolson@gnu.org>
898 * lisp/muse-colors.el (muse-use-font-lock): Don't quote
899 beginning-of-line. This should fix a bug that was noticed in
900 recent Emacs 22 builds.
902 * lisp/muse-backlink.el: Wrap muse-backlink-split-string in an
903 eval-and-compile block to avoid a compiler warning.
905 2006-09-25 Jim Ottaway <j.ottaway@lse.ac.uk>
907 * lisp/muse-backlink.el (muse-backlink-split-string):
908 Compatibility with Emacs versions < 22
909 (muse-backlink-pending): New internal variable
910 (muse-backlink-get-mode-hook): Find the major mode hook to use, so
911 that backlinks are inserted at the right time.
912 (muse-backlink-insert-hook-func): Remove unwind-protection; check
913 for pending backlink, and that this is the targe page.
914 (muse-backlink-handle-link): Don’t handle the link if we are
915 already handling one. Return the link as well as the parent links.
917 2006-09-25 Sasha Kovar <sasha@arcocene.org>
919 * lisp/muse-blosxom.el (muse-blosxom-new-entry): : Fix for bug
920 #6942 - muse-blosxom-new-entry fails when using tags.
922 2006-09-14 Michael Olson <mwolson@gnu.org>
924 * lisp/muse-texinfo.el (muse-texinfo-protect-wikiwords): Silence
927 2006-09-14 Jim Ottaway <j.ottaway@lse.ac.uk>
929 * lisp/muse-texinfo.el (muse-texinfo-protect-wikiwords): New
930 function: Protect all wikiwords from START to END from further
932 (muse-texinfo-markup-heading): Use muse-texinfo-protect-wikiwords.
934 2006-09-13 Michael Olson <mwolson@gnu.org>
936 * lisp/muse-texinfo.el (muse-texinfo-markup-heading): New function
937 adopted from Jim Ottaway's patch. It removes links from the
938 heading, and then marks the region read-only to inhibit WikiWord
941 2006-09-13 Jim Ottaway <j.ottaway@lse.ac.uk>
943 * lisp/muse-texinfo.el (muse-texinfo-markup-functions): Add
944 special handling for headings.
945 (muse-texinfo-remove-links): New function that removes explicit
946 links from the given strings, replacing them with a description.
948 2006-09-11 Michael Olson <mwolson@gnu.org>
950 * muse.texi (Getting Help and Reporting Bugs): Mention the
951 muse-el-internationalization mailing list.
953 * lisp/muse.el (muse-path-sans-extension): New function that acts
954 like file-name-sans-extension, but guarantees to never modify the
955 directory part of the path. Thanks to Evan Monroig for
958 * lisp/muse-book.el (muse-book-publish-project): Use
959 muse-path-sans-extension instead of file-name-sans-extension.
961 * lisp/muse-publish.el (muse-publish-file, muse-publish-url):
964 2006-08-30 Michael Olson <mwolson@gnu.org>
966 * muse.texi (Blosxom Requirements): Fix typo.
968 * contrib/pyblosxom/getstamps.py (recurse): Ignore metadata
969 directories for bzr and darcs.
971 * contrib/pyblosxom/make-blog, contrib/pyblosxom/hardcodedates.py:
972 contrib/pyblosxom/getstamps.py: Update version and headers.
974 2006-08-27 Michael Olson <mwolson@gnu.org>
976 * lisp/muse-colors.el (muse-configure-highlighting): Prune out any
977 nil values before they get to mapconcat. This fixes a lockup when
978 muse-wiki-match-all-project-files is nil.
980 * lisp/muse-wiki.el (muse-wiki-match-all-project-files)
981 (muse-wiki-ignore-implicit-links-to-current-page)
982 (muse-wiki-interwiki-regexp, muse-wiki-interwiki-alist)
983 (muse-wiki-resolve-project-page, muse-wiki-handle-interwiki)
984 (muse-wiki-publish-small-title-words)
985 (muse-wiki-publish-pretty-title): Docfix.
986 (muse-wiki-update-local-wikiword-regexp): Rename from
987 muse-wiki-update-local-wikiword-regexp. Set
988 muse-wiki-project-file-regexp instead of
989 muse-wiki-wikiword-regexp, as suggested by Per Sederberg. Don't
990 take muse-wiki-use-wikiword into account, since this is a
991 different concept now.
992 (muse-wiki-update-wikiword-regexp): Remove.
993 (muse-wiki-wikiword-regexp): In-line the :set function.
994 (muse-wiki-handle-wikiword): Use muse-wiki-project-file-regexp.
996 2006-08-26 Michael Olson <mwolson@gnu.org>
998 * lisp/muse-publish.el (muse-publish-surround-text): When looking
999 for indented list items, ignore blank lines.
1001 * lisp/muse-wiki.el (muse-wiki-update-local-wikiword-regexp)
1002 (muse-wiki-update-interwiki-regexp): Use regexp-opt instead of
1003 mapconcat. This should hopefully fix a problem with large amounts
1004 of files with spaces in their name. Thanks to Greg Detre for the
1007 2006-08-24 Michael Olson <mwolson@gnu.org>
1009 * lisp/muse-blosxom.el (muse-blosxom-new-entry): Remove the
1010 numbers from the argument to format-time-string. This fixes an
1011 XEmacs bug. Thanks to Michael Welle for the report and analysis.
1013 2006-08-18 Michael Olson <mwolson@gnu.org>
1015 * lisp/muse-project.el (muse-project-file-entries): Since we are
1016 given a full path, match against the filename as well. This fixes
1017 an issue where backup files were being added to the file alist.
1019 * lisp/muse-docbook.el (muse-docbook-markup-regexps): Apply a fix
1022 2006-08-12 Michael Olson <mwolson@gnu.org>
1024 * Makefile (.PHONY): Don't use line continuations.
1025 (realclean fullclean): Call realclean in subdirs, not distclean.
1026 (distclean): Don't call realclean, since this would wipe out our
1028 (dist): Use correct path to autoloads file.
1030 * NEWS: Catch up with the latest changes.
1032 * experimental/Makefile (.PHONY): Wrap long line.
1034 * lisp/Makefile (distclean): Do the same thing as "clean", not
1037 * lisp/muse-project.el (muse-project-get-applicable-style):
1039 (muse-project-ignore-regexp, muse-project-recurse-directory):
1041 (muse-project-of-file): Try the ignored files regexp against the
1042 base filename as well as the entire path.
1044 * lisp/muse-publish.el (muse-publish-this-file): Display message
1045 if the buffer is not associated with any file, so that we avoid
1047 (muse-publish-url-desc): New function taken from muse-publish-url
1048 that causes a URL description to be transformed.
1049 (muse-publish-url): Call muse-publish-url-desc on either the
1050 description or the original URL if it will be used as a
1051 description. Accept the original URL as an argument, in case it
1052 was transformed earlier.
1053 (muse-publish-insert-url): Pass original URL as an argument.
1054 (muse-publish-markup-link): Make this somewhat easier to follow.
1055 Pass original URL as argument.
1056 (muse-publish-get-style): If the same style is used to publish to
1057 two different directories, prompt the user for which directory to
1059 (muse-publish-markup-header-footer-tags): Sync lisp tag with the
1061 (muse-publish-markup-url): Pass original URL as an argument. This
1062 fixes the "nil" description for bare URLs that was in 3.02.91.
1063 Nothing like finding a bug just after completing the announcement
1066 * lisp/muse.el: Use defalias whenever convenient.
1067 (muse-version): Set version to 3.02.92 (3.03 RC2).
1069 2006-08-10 Michael Olson <mwolson@gnu.org>
1071 * lisp/muse-html.el (muse-html-finalize-buffer): Since the html
1072 style does not derive from any other class, return `t' here.
1073 This, along with the corresponding change to muse-publish.el,
1074 fixes a problem with the table of contents getting inserted
1075 multiple times for custom html-based styles.
1076 (muse-html-markup-strings, muse-xhtml-markup-strings): Use a
1077 smarter method for table centering that works with XHTML.
1079 * lisp/muse-latex2png.el Rename all functions to have a
1080 "muse-latex2png" prefix. Turn all variables into customizable
1081 options in the muse-latex2png group.
1082 (muse-latex2png-img-dest): New option specifying where to place
1084 (muse-latex2png-template): New option containing the template to
1085 use for the surrounding LaTeX code.
1086 (muse-latex2png-use-xhtml): New option that toggles strict XHTML
1088 (muse-latex2png-move2pubdir): Avoid multiple redundant error
1089 messages when something else goes wrong. Create the image
1090 subdirectory if it doesn't exist already -- thanks to Christian
1091 Straßer for the report. Expand the filename properly.
1092 (muse-publish-latex-tag, muse-latex2png): Ditto on error messages
1093 and filename expansion.
1094 (muse-latex2png): Use the "muse-latex2png" prefix by default. Set
1095 the default directory properly.
1097 * lisp/muse-publish.el (muse-style-run-hooks): Make sure that we
1098 do not run the same function twice.
1100 2006-08-08 Michael Olson <mwolson@gnu.org>
1102 * lisp/muse-colors.el (muse-colors-explicit-link): Fix recently
1103 introduced wrong-type-argument error.
1105 * lisp/muse-html.el (muse-html-markup-strings)
1106 (muse-xhtml-markup-string): Cause table definition that contains
1107 image to be center-aligned. This should fix an issue with images
1108 not being centered when captions are very long.
1110 * lisp/muse-publish.el (muse-publish-table-fields): Trim
1111 whitespace from fields once we have split them up.
1113 * lisp/muse.el (muse-trim-whitespace): New function that strips
1114 leading and trailing whitespace from a string.
1116 2006-08-07 Michael Olson <mwolson@gnu.org>
1118 * NEWS: Update through patch-95.
1120 * lisp/muse-colors.el (muse-colors-lisp-tag): Use a simpler regexp
1122 (muse-colors-explicit-link): Show images in link descriptions if
1123 inlined images are enabled.
1125 * lisp/muse-docbook.el (muse-docbook-markup-strings): Add
1126 definitions for 'image-with-desc, 'image, and 'image-link.
1127 (muse-docbook-markup-paragraph): If an inlined image begins a
1128 paragraph, insert <para> before it.
1129 (muse-docbook-fixup-images): New function that upper-cases the
1130 "format" attribute of the <imagedata> tag.
1131 (muse-docbook-finalize-buffer): Call it.
1133 * lisp/muse-html.el (muse-html-markup-strings): Publish images
1134 with descriptions as centered tables, with a centered caption
1135 underneath. The resulting look is consistent with the way that
1136 they are published in the LaTeX style. Thanks to Jody Klymak for
1138 (muse-xhtml-markup-strings): Ditto, but XHTML apparently has no
1139 valid way to center a table.
1140 (muse-html-markup-paragraph): Use class="image" instead of
1141 "image-link" for paragraphs that start with an embedded image.
1143 * lisp/muse-latex.el (muse-latex-markup-specials-url): Use
1144 \textbackslash{} for "\". Thanks to Jim Ottaway for the
1146 (muse-latex-markup-specials-image): New option that enables
1147 escaping of specials in images. This was split from the URL
1149 (muse-latex-decide-specials): Handle 'image context.
1150 (muse-latex-fixup-dquotes): Go to beginning of document, instead
1151 of relying on caller to do this for us.
1153 * lisp/muse-publish.el (muse-publish-escape-specials): Document
1155 (muse-publish-url): Use 'image context for images. Use 'image
1156 instead of 'image-link and 'image-link in place of
1157 'url-with-image. Separate the image file from its extension so
1158 that docbook and texinfo can publish images correctly.
1159 (muse-publish-markup-link): Don't force a description if one is
1160 not given. This fixes a bug where images without descriptions
1161 were being published as 'image-with-desc instead of 'image.
1163 * lisp/muse-texinfo.el (muse-texinfo-decide-specials): Treat
1164 images the same as URLs.
1165 (muse-texinfo-markup-strings): Improve image markup to achieve an
1166 effect similar to that of the LaTeX publishing style. Simplify
1169 * lisp/muse-xml-common.el (muse-xml-decide-specials): Ditto.
1171 * lisp/muse.el (muse-replace-regexp-in-string): Save match data
1172 when we have to use the custom version of this function.
1174 * muse.texi (Images): Explain how to toggle inlining of images and
1175 give better examples. Mention captions and that captioned images
1176 should not be used inside of text paragraphs.
1177 (Markup Strings): Bring up-to-date with the changes made since
1180 2006-08-06 Michael Olson <mwolson@gnu.org>
1182 * ChangeLog.1: Rename from ChangeLog.2004 to comply with standards
1183 in the Emacs source tree.
1185 * ChangeLog.2: Rename from ChangeLog.2005 to comply with standards
1186 in the Emacs source tree.
1188 * ChangeLog.3: New file created from the old ChangeLog.
1190 * Makefile.defs (VERSION): Set to 3.02.91.
1192 * NEWS: Update through patch-84.
1194 * lisp/muse.el (muse-version): Set to 3.02.91.
1196 * lisp/muse-colors.el (muse-colors-tags): Allow <lisp> to take
1198 (muse-colors-lisp-tag): Figure out where the <lisp> tag and its
1199 delimiter are instead of hard-coding it.
1201 * lisp/muse-mode.el (muse-insert-thing): Qualify "tag".
1202 (muse-mode): Make filling definition lists work better. This
1205 * lisp/muse-publish.el (muse-style-run-hooks): Use
1206 `muse-style-element' instead of `muse-get-keyword' here. This
1209 * muse.texi: Set version to 3.02.91 (3.02 RC2).
1211 See ChangeLog.3 for earlier changes.