1 2007-06-10 Michael Olson <mwolson@gnu.org>
3 * lisp/muse-publish.el (muse-publish-strip-URL): Fix bug where
4 URLs were being removed during publishing. Thanks to everyone who
7 2007-06-06 Michael Olson <mwolson@gnu.org>
9 * lisp/muse-regexps.el (muse-table-line-regexp)
10 (muse-table-hline-regexp, muse-table-el-border-regexp): Fix
11 regexps so that they work with XEmacs 21. Thanks to Adrian
12 Tritschler for the report.
14 * texi/muse.texi: Update copyright years.
15 (HTML): Document muse-xhtml-style-sheet. Thanks
16 to thorne for noticing.
17 (Development): Change archive year to 2006. Thanks to Adrian
18 Tritschler for noticing. So *that's* why some people had the 2005
21 2007-06-05 Michael Olson <mwolson@gnu.org>
23 * Makefile (install-info): Remove $(MANUAL).info part, since this
24 is taken care of already by texi/Makefile. Thanks to Leo for the
27 * lisp/muse-journal.el (muse-journal-html-munge-buffer): Add
28 read-only properties to qotd contents, so that they don't get
29 double-escaped. Thanks to Leo for the report.
31 2007-06-04 Michael Olson <mwolson@gnu.org>
33 * lisp/muse-colors.el (muse-link-face): If the link is to a remote
34 -- that is, Tramp or ange-ftp -- file, then do not call
35 file-exists-p on it. Thanks to Jim Ottaway for the suggestion.
38 * lisp/muse-html.el (muse-html-insert-contents): Add
39 documentation. Handle case where heading is read-only, but has
40 muse-contents property. Remove the muse-contents property for any
41 heading we come across so as to avoid double-including an item in
42 an outer table of contents.
43 (muse-html-denote-headings): New function that denotes whether a
44 heading is not read-only by adding the muse-contents property to
46 (muse-html-munge-buffer): If we are not to generate contents,
47 still denote headings, in case some outer layer wants to generate
48 contents for our headings. This should fix a bug with table of
49 contents and the <include> tag. Thanks to thorne for the report.
51 * lisp/muse-publish.el (muse-publish-markup-region): Let-bind
52 muse-publish-generate-contents and set it to nil. This should
53 do the right thing when using <include> tags.
55 2007-06-02 Michael Olson <mwolson@gnu.org>
57 * NEWS: Update for non-inlined image change and support for
58 table.el style tables.
60 * examples/Makefile (clean): Clean backup files.
62 * examples/QuickStart.muse (Images): New section that describes
63 how to inline and not inline images.
65 * lisp/muse-colors.el (muse-colors-resolve-image-file): Don't
66 touch images that have "URL:" in front of them.
68 * lisp/muse-protocols.el (muse-url-protocols): Add handler for
69 "URL:". Use the identity function to resolve, since we don't want
70 to rip "URL:" out while publishing, due to some magic that depends
72 (muse-browse-url-url): New function that browses URLs that have
73 "URL:" in front of them, by removing the "URL:" part and
74 reprocessing the remainder.
76 * lisp/muse-publish.el (muse-publish-classify-url): Docfix.
77 (muse-publish-url): Recognize images in the description before
78 images in the link. Fixes bug #5112. Thanks to Thomas Kappler
79 for the suggested workaround.
80 (muse-publish-desc-transforms): Add `muse-publish-strip-URL' as a
82 (muse-publish-classify-url): If target begins with "URL:" return
84 (muse-publish-strip-URL): New function that strips "URL:" from the
85 beginning of a string. This is used to remove URL: from the link
86 description. * texi/muse.texi (Markup Strings): Clarify the
87 meanings of image-link, link, and link-and-anchor.
88 (muse-publish-markup-regexps): Move normal table rule to 2350.
89 Rule 2300 is now a regexp that matches table.el-style tables.
90 (muse-publish-markup-functions): Add table-el entry.
91 (muse-publish-table-el-table): New function that given a variant,
92 publishes a table.el-style table using the table in the matched
94 (muse-publish-markup-table-el): New function that determines
95 whether the table.el-style table can be published, and what
98 * lisp/muse-regexps.el (muse-tag-regexp): New regexp that matches
99 the borders of table.el-style tables.
101 * lisp/muse-xml-common.el (muse-xml-markup-table): Make sure that
102 the table has sufficient whitespace in front of it.
104 * texi/muse.texi (Images): Update for new non-inlined image
105 ability and provide example.
107 2007-05-31 Michael Olson <mwolson@gnu.org>
109 * NEWS: Add example for setting `muse-html-table-attributes'.
111 * lisp/muse-xml-common.el (muse-xml-markup-table): Add docstring.
112 Publish multiple tbody tags if there is a horizontal separator
113 after the heading, because that is valid HTML after all.
115 2007-05-30 Michael Olson <mwolson@gnu.org>
119 * lisp/muse-latex.el (muse-latex-markup-table): Deal with
120 horizontal separators in tables.
122 * lisp/muse-publish.el (muse-publish-markup-regexps): Recognize
123 horizontal separators in tables.
124 (muse-publish-trim-table): New function to remove initial and
125 final blank columns from a table.
126 (muse-publish-table-fields): Call `muse-publish-trim-table'. Deal
127 with horizontal separators, aka "hlines".
129 * lisp/muse-regexps.el (muse-table-hline-regexp): New regexp that
130 defines the syntax of a horizontal separator in a table.
132 * lisp/muse-texinfo.el (muse-texinfo-markup-table): Deal with
133 horizontal separators. Publish header lines correctly.
135 * lisp/muse-xml-common.el (muse-xml-sort-table): Deal with case
136 where we have nonnumbers as a row type. This ignores sorting for
138 (muse-xml-markup-table): Deal with horizontal separators. If the
139 markup supports table groups, make hlines separate table groups.
140 Otherwise, ignore them, since they cannot be marked up. Together,
141 these changes allow us to support orgtbl-mode tables. Thanks to
142 Carsten Dominik for the suggestion.
144 2007-05-26 Michael Olson <mwolson@gnu.org>
146 * lisp/muse-project.el (muse-project-alist-styles): Allow for
147 other things to be added to each generated style as well. For
148 example, this permits me to add
149 :base-url "http://blog.mwolson.org/"
152 2007-05-25 Michael Olson <mwolson@gnu.org>
154 * Makefile (debclean, debprepare, debbuild, debinstall, deb): New
155 way of building Debian packages that preserves the original
156 release tarball and is more modular.
157 (debrevision, debrelease): Remove.
158 (dist): No need to remove the debian/ directory, since it is now
160 (debprepare): Copy over debian/ directory properly.
164 * examples/Makefile (clean): Remove QuickStart.texi, in case
165 something went wrong during the build.
166 (%.pdf): Publish the example using the normal pdf style, rather
169 * examples/QuickStart.muse: Add myself to the authors list.
171 * lisp/muse-html.el (muse-html-src-tag): Ensure that we have
172 sufficient blank lines before the tag.
174 * lisp/muse-journal.el (muse-journal-latex-qotd-tag): Ensure that
175 we have sufficient blank lines before the tag.
177 * lisp/muse-latex.el (muse-latex-pdf-program): New option that
178 specifies the program to call in order to generate PDF content
180 (muse-latex-pdf-cruft): New option that specifies the extensions
181 of files to remove after generating PDF output successfully.
182 (muse-latex-pdf-generate): Use these new options. Work around the
183 annoying edge case where a tilde character exists in the filename
184 or directory path -- now this can only error out when the relative
185 path from the output file to the source file contains a tilde,
186 which is far less likely.
188 * lisp/muse-publish.el (muse-publish-markup-attribute): Don't use
189 muse-publish-ensure-block here after all, because <lisp> et al may
190 occur inline as part of other things.
192 * lisp/muse-texinfo.el ("texi"): Make muse-texinfo-munge-buffer
193 occur after full-document escaping, rather than before. This
194 prevents automatically-inserted Texinfo code from being escaped.
195 (muse-texinfo-pdf-generate): Rewrite to call
196 `muse-latex-pdf-generate' with pdftex as the generating binary,
197 because texi2pdf suffers irredeemably from the tilde edge case
200 2007-05-24 Michael Olson <mwolson@gnu.org>
202 * NEWS: Drop vague entries and position interesting entries closer
203 to the top of each section. Update for new changes.
205 * lisp/muse-project.el (muse-project-ignore-regexp): Add Mercurial
206 and bzr metadata directories to the list of things to ignore.
208 * lisp/muse-publish.el (muse-publish-ensure-block): Rename from
209 `muse-publish-ensure-block-tag', since we will use it for more
211 (muse-publish-markup-list, muse-publish-verse-tag)
212 (muse-publish-quote-tag, muse-publish-example-tag)
213 (muse-publish-markup-attribute): Use it. This fixes a bug that
214 can occur when these types of markup occur immediately after a
215 paragraph. It's good to have defined behavior!
217 * texi/muse.texi (Markup Strings): Mention new argument for
220 2007-05-19 Michael Olson <mwolson@gnu.org>
222 * lisp/muse-html.el (muse-html-markup-footnote): Add class tags to
223 published footnotes and footnote references. Thanks to Scott
224 Jaderholm for the idea.
226 * lisp/muse-latex.el (muse-latex-markup-strings): Revert change to
227 link-and-anchor, on the recommendation of the original submitter.
229 2007-05-14 Michael Olson <mwolson@gnu.org>
231 * lisp/muse-latex.el (muse-latex-markup-strings): Use better
232 link-and-anchor markup. Thanks to Jean Magnan de Bornier for the
235 * lisp/muse-publish.el (muse-publish-url): Pass the url without a
236 file extension as the fourth argument.
238 * README, texi/muse.texi (Getting Help and Reporting Bugs):
239 Mention the new muse-el-logs mailing list.
241 2007-05-13 Michael Olson <mwolson@gnu.org>
243 * lisp/muse-protocols.el (muse-resolve-url): Don't concatenate
244 "\`" here. This fixes a problem with publishing custom URLs.
246 2007-05-12 Michael Olson <mwolson@gnu.org>
248 * lisp/muse-blosxom.el (muse-blosxom-update-page-date-alist): Only
249 update the list if the current buffer is associated with a file.
250 This fixes a bug with M-x muse-publish-region in a temporary
253 2007-05-01 Michael Olson <mwolson@gnu.org>
255 * lisp/muse-publish.el (muse-publish-region): Remove read-only
256 properties from the published buffer, so that the results can be
259 2007-04-23 Michael Olson <mwolson@gnu.org>
261 * lisp/muse-publish.el (muse-publish-markup-footnote): If we can't
262 find the footnote that goes with a reference, leave the reference
263 as-is. This fixes an error where control characters could be
264 placed in a published document.
266 2007-04-22 Michael Olson <mwolson@gnu.org>
268 * IDEAS.muse: Add muse-slides.el to list of things to include
271 * lisp/muse-protocols.el (muse-url-protocols): Remove stray quote
273 (muse-protocol-find): Find protocols correctly. Rewrite to use
275 (muse-browse-url): Don't concatenate "\`" here. Together, this
276 fixes a bug with browsing woman:// links.
278 * lisp/muse-project.el (muse-project-alist-styles): Deal with case
279 where entry-dir has a trailing backslash.
280 (muse-project-publish-file): If a style is malformed, skip it and
281 display a warning message. This should help people figure out
282 where the problem is.
284 2007-04-21 Michael Olson <mwolson@gnu.org>
286 * lisp/muse-latex2png.el (muse-publish-math-tag): If using the
287 yet-to-be-included "contex" publishing style, use "$$" rather
288 than "\[" and "\]". Thanks to Jean Magnan de Bornier for pointing
291 2007-04-20 Michael Olson <mwolson@gnu.org>
293 * lisp/muse-publish.el (muse-publish-inhibit-style-hooks): New
294 variable that causes the :before and :before-end hooks to be
295 ignored when non-nil.
296 (muse-publish-markup-region): Use it. Also, guarantee that point
297 is at end of region after publishing.
298 (muse-publish-mark-up-tag): Simplify, taking advantage of the new
301 2007-04-19 Michael Olson <mwolson@gnu.org>
303 * IDEAS.muse: New file containing a list of ideas we have for new
304 features, or patches that have yet to be applied.
306 * README: Call it "Emacs Muse", not "the Emacs Muse". No need to
309 * lisp/muse-html.el (muse-html-table-attributes): Fix typo in
312 * lisp/muse-publish.el (muse-publish-markup-tags): Handle
313 <literal> tags with muse-publish-literal-tag, rather than
314 muse-publish-mark-read-only.
315 (muse-publish-literal-tag): New function that publishes the
316 <literal> tag. It adds the ability to add the optional "style"
317 and "exact" elements, which cause text to only be included if the
318 current publishing style matches some criteria. The text will be
319 removed otherwise. Thanks to Jim Ottaway for the implementation.
320 (muse-publish-mark-up-tag): Let the <markup> tag take the
321 additional optional elements "style" and "exact", with much the
322 same effect as the <literal> improvements, but after calling
323 "function" or publishing the region first. Make it possible to
324 put <content> tags in <markup> regions in HTML publishing.
326 2007-04-12 Michael Olson <mwolson@gnu.org>
328 * lisp/muse-publish.el (muse-publish-markup-heading): Make sure
329 that a blank line always exists after a heading. This fixes a bug
330 in Docbook paragraph detection. Thanks to Jean Magnan de Bornier
333 * lisp/muse-xml.el (muse-xml-markup-regexps): Update paragraph
334 detection regexp to that which is used in Docbook and HTML
337 2007-04-02 Michael Olson <mwolson@gnu.org>
339 * README (muse-el-announce): Make a listing of mailing lists,
340 rather than pointing to the old EmacsWikiMailingList page. Thanks
341 to Andreas Roehler for noticing.
343 2007-04-01 Michael Olson <mwolson@gnu.org>
345 * lisp/muse-publish.el (muse-publish-date-format): Add
346 ` customization type and group.
347 (muse-publish-region): New interactive function that publishes a
348 region to a new buffer.
350 * texi/muse.texi: Use "document" rather than "manual".
352 2007-03-31 Michael Olson <mwolson@gnu.org>
354 * lisp/muse-publish.el (muse-style-derived-p): Fix bug where the
355 expression (muse-style-derived-p "latex" (muse-style "latex"))
356 yielded nil. It now yields t, as expected. Thanks to Jim Ottaway
359 2007-02-25 Michael Olson <mwolson@gnu.org>
361 * lisp/muse-publish.el (muse-publish-date-format): New option that
362 specifies how to format the date when publishing Muse pages.
363 Thanks to Thomas Gehrlein for the suggestion.
364 (muse-publish-markup-buffer): Use it.
366 2007-02-23 Michael Olson <mwolson@gnu.org>
368 * README: Add Prerequisites section to mention which versions of
369 Emacs work with Muse. Thanks to Exal de Jesus Garcia Carrillo for
370 the suggestion. Update link destination for Muse's page on
373 2007-02-15 Michael Olson <mwolson@gnu.org>
375 * lisp/muse.el (muse-goto-tag-end): Modify regexp to allow tags to
376 be not just at beginning of line. This fixes an error with the
377 <class> tag. Thanks to Jim Pivarski for the report.
379 2007-02-14 Michael Olson <mwolson@gnu.org>
381 * lisp/muse-publish.el (muse-publish-classify-url): Check to see
382 whether something is an image before checking to see if it is a
383 URL. Thanks to ITSUMI ken-ichi for the report.
385 2007-02-13 Michael Olson <mwolson@gnu.org>
387 * lisp/muse-publish.el (muse-publish-markup-regexps): Handle
388 comments that have no text better. Thanks to fang.lungang for the
390 (muse-publish-markup-comment): Deal with case where no comment
393 2007-01-23 Michael Olson <mwolson@gnu.org>
395 * lisp/muse-publish.el (muse-publish-ensure-block-tag): New macro
396 that ensures that at least one blank line exists at the given
397 position. This is used to avoid paragraph detection problems when
398 block-level tags like <example> immediately follow a paragraph.
399 Thanks to Hans Ekbrand for the report.
400 (muse-publish-example-tag): Use it.
402 2007-01-19 Michael Olson <mwolson@gnu.org>
404 * lisp/muse-latex2png.el (muse-publish-math-tag): Only remove the
405 previous blank line if we are publishing in Latex. Otherwise,
406 that wouldn't be the right thing, so leave it be.
408 2007-01-17 Michael Olson <mwolson@gnu.org>
410 * lisp/muse-latex2png.el (muse-publish-math-tag): Don't put
411 multiple centered math lines on the same line; keep them on
412 different lines. Use \[ math-text \] instead of $$math-text$$,
413 since the latter seems to be deprecated. Thanks to Jody Klymak
416 2007-01-15 Michael Olson <mwolson@gnu.org>
418 * lisp/muse-latex2png.el (muse-publish-latex-tag)
419 (muse-publish-math-tag): Publish region read-only when current
420 style is Latex-derived, so that Muse does not escape it.
421 (muse-publish-math-tag): If 6 or more spaces come before the tag,
422 surround the region with "$$" rather than "$". This is the Muse
423 syntax for something centered, so it should be a good fit.
425 2007-01-15 Valery V. Vorotyntsev <valery.vv@gmail.com>
427 * lisp/muse-protocols.el (muse-url-protocols): Add "woman://"
429 (muse-browse-url-man): Change man page URL format. The code is
430 simpler when the section is left inside parentheses.
431 (muse-browse-url-woman): New function.
433 2007-01-14 Michael Olson <mwolson@gnu.org>
435 * AUTHORS: Bookkeeping.
437 * lisp/muse-latex2png.el: Associate <math> tag with
438 muse-publish-math-tag, not muse-publish-latex-tag. Thanks to Jody
439 Klymak for the report.
440 (muse-publish-math-tag): Use muse-insert-markup for the "$"
441 characters, so they don't get escaped.
443 * lisp/muse-publish.el (muse-style-derived-p-1): New function to
444 make muse-style-derived-p easier to implement.
445 (muse-style-derived-p): If the style is not provided, fetch it and
446 check to see if the car is a string. This should fix the other
447 problem that was reported.
449 * texi/muse.texi (Projects): Apply patch from Bradley M. Kuhn that
450 explains a case where setting muse-file-extension to nil can cause
453 2007-01-09 Michael Olson <mwolson@gnu.org>
455 * lisp/muse-publish.el (muse-publish-markup-regexps): Make
456 comments higher priority than tags. Thanks to Stefan van der Walt
459 2007-01-08 Michael Olson <mwolson@gnu.org>
461 * lisp/muse-publish.el (muse-markup-tag-info): Use the given
462 argument rather than calling match-string. Thanks to Stefan van
463 der Walt for the report. This should fix a bug with publishing
464 <include file="..." markup="example">.
466 2007-01-06 Michael Olson <mwolson@gnu.org>
468 * Makefile (debclean): New rule split from debrevision and
470 (debbuild): Take distributor into account.
472 * Makefile.defs (DISTRIBUTOR): New field that tracks what
473 vendor/distributor we are building for.
475 2007-01-04 Michael Olson <mwolson@gnu.org>
477 * lisp/muse-html.el (muse-html-src-tag): Remove initial blank
480 * lisp/muse-publish.el (muse-publish-markup-tags): Make "src"
481 point to muse-publish-src-tag by default, since <src> and
482 <example> have different parameters.
483 (muse-publish-src-tag): New barebones publishing function for
484 <src>, which is superseded when publishing in an HTML-based style.
486 2007-01-03 Michael Olson <mwolson@gnu.org>
488 * lisp/muse-html.el (muse-html-src-tag): Document.
490 * lisp/muse-publish.el (muse-publish-call-tag-on-buffer): New
491 command that calls a given tag on the current buffer. Attributes
493 (muse-publish-examplify-buffer, muse-publish-versify-buffer): Use
495 (muse-publish-srcify-buffer): New function that allows
496 markup="src" in the <include> tag.
497 (muse-publish-get-and-delete-attr): New macro that gets an
498 attribute from a list and removes the first instance of that
499 attribute from said list.
500 (muse-publish-markup-attribute): Handle markup="src".
501 (muse-publish-command-tag, muse-publish-include-tag): Use
502 muse-publish-get-and-delete-attr. This allows the remaining
503 attributes to be passed.
505 * texi/muse.texi (Tag Summary): Update for new <src> tag as well
506 as changes to <command> and <include>.
508 2006-12-30 Michael Olson <mwolson@gnu.org>
512 * experimental/muse-mathml.el (muse-publish-mathml-tag): Rename
513 from muse-publish-math-tag to avoid conflict with
516 2006-12-23 Michael Olson <mwolson@gnu.org>
518 * lisp/muse-latex2png.el: Update header, since this has been
519 rewritten sufficiently to not need an assignment from the original
521 (muse-latex2png-use-xhtml): Remove, since we now autodetect this.
522 (muse-latex2png): Use two underscores to separate prefix and hash.
523 (muse-latex2png-region): New function split from
524 muse-publish-latex-tag that can be used easily by other code.
525 Detect whether we are using an HTML-based publishing style, and
526 insert a simpler markup if we are not. If we are using a
527 Latex-based publishing style, do not generate an image, and leave
528 the region alone. Return the path of the generated image, in case
529 other functions want to use this programmatically.
530 (muse-publish-latex-tag): Set a default prefix based on the name
532 (muse-publish-math-tag): New tag that surrounds the region with
533 "$" characters, so that it becomes a Latex math region, and then
536 * lisp/muse-publish.el (muse-style-derived-p): New function that
537 returns non-nil if a given style, or the current style if omitted,
538 is equal to or derived from the given base style. This is useful
539 in <lisp> tags, because it allows the user to specify markup that
540 is only to be inserted for one particular style.
542 2006-12-22 Michael Olson <mwolson@gnu.org>
544 * lisp/muse-html.el (muse-html-markup-tags): Add <src> tag.
545 (muse-html-src-tag): New function which publishes the <src> tag.
546 Thanks to Clinton Ebadi and Charles Wang for the initial
549 * lisp/muse-publish.el (muse-publish-markup-tags): Add <src> tag.
551 2006-12-21 Michael Olson <mwolson@gnu.org>
553 * examples/johnw/muse-johnw.el: Update for preferred
554 muse-derive-style usage. Rename to muse-init.el.
556 * examples/mwolson/muse-init.el: Update.
558 * lisp/muse-book.el (muse-book-publish): New function split from
559 muse-book-publish-project. This is used in the definitions for
560 the book-latex and book-pdf styles.
561 (muse-book-publish-p): New function split from muse-book-publish.
562 (muse-book-get-directives): New function that retrieves the
563 publishing directives from the given file.
564 (muse-book-publish): Use muse-book-get-directives to set the title
565 if no title was specified.
567 * lisp/muse-project.el (muse-project): Add :publish-project entry
569 (muse-read-project, muse-project-find-file): Message fix.
570 (muse-project-publish-file-default): New function split from
571 muse-project-publish-file.
572 (muse-project-publish-file): Allow file-level publishing function
573 to be specified by the :publish element. The default is
574 muse-project-publish-file-default.
575 (muse-project-publish-default): New function split from
576 muse-project-publish.
577 (muse-project-publish): Allow project-level publishing function to
578 be specified by :publish-project element. The default is
579 muse-project-publish-default.
581 * lisp/muse-publish.el (muse-publish-file): Message fix.
583 * texi/muse.texi (Book): Mention new way to publish books and
584 provide an example, since the process may be non-obvious.
586 2006-12-20 Michael Olson <mwolson@gnu.org>
588 * lisp/muse-docbook.el (muse-docbook-munge-buffer): Split out
589 content-modifying code from the rest of
590 muse-docbook-finalize-buffer.
592 * lisp/muse-groff.el (muse-groff-munge-buffer): Rename from
593 muse-groff-finalize-buffer, since it adds content to the buffer.
595 * lisp/muse-html.el (muse-html-munge-buffer): Split out
596 content-modifying code from the rest of muse-html-finalize-buffer.
597 This fixes a bug when using <include> with <content> tags.
599 * lisp/muse-journal.el (muse-journal-html-munge-buffer)
600 (muse-journal-latex-munge-buffer)
601 (muse-journal-rss-munge-buffer): Rename, since they add content to
604 * lisp/muse-latex.el (muse-latex-munge-buffer): Rename from
605 muse-latex-finalize-buffer, since it adds content to the buffer.
608 * lisp/muse-project.el:
609 * lisp/muse-publish.el:
610 * lisp/muse.el: Fix recursive load error.
612 * lisp/muse-texinfo.el (muse-texinfo-munge-buffer): Rename from
613 muse-texinfo-finalize-buffer, since it adds content to the buffer.
615 * lisp/muse-wiki.el: Comment cleanup.
617 * lisp/muse-xml.el (muse-xml-charset-default): Docfix.
619 2006-12-17 Michael Olson <mwolson@gnu.org>
621 * lisp/muse-latex.el (muse-latex-header, muse-latexcjk-header):
622 Remove the definition of \comment, since Latex already has comment
624 (muse-latex-markup-strings): Use the Latex comment syntax, rather
625 than our own. Thanks to Ryan Stutsman for pointing this out.
627 2006-12-02 Michael Olson <mwolson@gnu.org>
629 * lisp/muse-html.el (muse-html-insert-contents): Tweak regexp so
630 that this can generate a proper table of contents for Planner HTML
633 2006-12-01 Michael Olson <mwolson@gnu.org>
635 * lisp/muse.el (muse-replace-regexp-in-string): In case someone is
636 using a very old Emacs, avoid an infinite loop that could occur
637 when the regexp is an empty string.
639 2006-11-26 Michael Olson <mwolson@gnu.org>
641 * NEWS: Bring up to date.
643 * lisp/muse-docbook.el (muse-docbook-markup-paragraph): Fix nested
644 list issues and multiple-stanza verse issues. This takes care of
645 all of the markup issues I was worried about.
647 * lisp/muse-project.el (muse-project-ignore-regexp): Minor docfix.
648 (muse-project-publish-private-files): New option that indicates
649 whether files with private filesystem permissions should be
650 published. The default is to publish them, since it avoids
651 confusion in new users.
652 (muse-project-private-p): Use it.
654 2006-11-19 Michael Olson <mwolson@gnu.org>
656 * lisp/muse-project.el (muse-project-resolve-link): If no remote
657 style is found, which means that the link is not a Muse page, do
658 not add a suffix or prefix to it. This should fix the
659 "[[thing.owl]]" bug that Phillip Lord reported.
661 * lisp/muse-publish.el (muse-publish-link-file): Simplify by
662 removing unused 2nd argument.
664 2006-11-17 Michael Olson <mwolson@gnu.org>
666 * lisp/muse-publish.el (muse-publish-surround-text): Fix bug in
667 latex publishing where nested enumerated lists would be squashed
670 2006-11-16 Michael Olson <mwolson@gnu.org>
672 * lisp/muse-latex.el (muse-latex-markup-strings): Make an ordered
673 list embedded in a definition list look right. This also allows
674 for definitions to be separated from their terms, much like the
675 way HTML does it by default, if the user puts a blank line or a
676 line break between the term and the definition. If the term and
677 definition are on the same line, they will be that way in the
680 2006-11-11 Michael Olson <mwolson@gnu.org>
682 * muse.texi (Markup Strings): Fix typo. Thanks to Haiyong Zheng
684 (Getting Help and Reporting Bugs): Fix emacswiki.org page URL.
686 2006-11-07 Michael Olson <mwolson@gnu.org>
688 * lisp/muse.el (muse-version): Make Emacs Muse 3.02.93, the third
689 release candidate for Muse 3.03, available.
693 2006-11-06 Michael Olson <mwolson@gnu.org>
695 * lisp/muse-project.el (muse-project-find-file): Fix bug when
696 following a relative link worked even when the path was incorrect.
698 2006-11-04 John Sullivan <john@wjsullivan.net>
700 * lisp/muse-mode.el (muse-mode-map): Remove C-c C-c binding for
701 muse-follow-name-at-point to reduce collisions with other
704 * muse.texi (Keystroke Summary): Remove C-c C-c binding.
706 2006-11-04 Michael Olson <mwolson@gnu.org>
708 * lisp/muse-wiki.el (muse-wiki-update-interwiki-regexp): Make page
709 optional, and make interwiki delimiter a regular rather than shy
711 (muse-wiki-handle-implicit-interwiki): Rename from
712 muse-wiki-handle-interwiki. Use match group 3 to get the page.
713 (muse-wiki-handle-explicit-interwiki): New function that is
714 smarter about where an explicit link ends in a buffer. This
715 allows you to refer to page names with invalid Wiki characters,
716 such as underscores and dashes, merely by enclosing them in double
717 brackets. Also, a bug with recognizing project names too loosely
720 2006-11-03 Michael Olson <mwolson@gnu.org>
722 * lisp/muse-project.el (muse-project-page-file): Make relative
723 links work as expected, hopefully.
725 * lisp/muse-publish.el (muse-publish-this-file): Set the current
726 output style manually, since it will differ from anything in the
727 publishing style list.
729 2006-10-30 Michael Olson <mwolson@gnu.org>
731 * lisp/muse-colors.el (muse-colors-markup): Remove note about
732 grouping elements, since that no longer applies.
733 (muse-colors-custom-tags): Explicitly match against
734 muse-tag-regexp to get the match-data set the way we want. This
735 really fixes the <example> highlighting bug that Stefan reported.
736 (muse-configure-highlighting): Set the original value to the
737 symbol, not the modified value. Re-use modified rules properly.
739 * lisp/muse-wiki.el (muse-wiki-update-interwiki-regexp): Fix bug
740 introduced yesterday.
742 2006-10-29 Michael Olson <mwolson@gnu.org>
744 * examples/mwolson: Update my example configuration.
748 * lisp/muse-colors.el (muse-configure-highlighting): Remove rules
749 without a regexp in the first position before iterating through
750 them to build muse-colors-vector. This fixes a bug with the
751 display of <example> tags. Thanks to Stefan Reichör for the
754 * lisp/muse-project.el (muse-project-find-file): Permit non-Muse
755 files in projects to be linked to.
757 * lisp/muse-publish.el (muse-publish-url): Allow the original link
758 to serve as a description for a URL, as long as it differs from
759 the destination URL. This fixes the description of WikPage links
761 (muse-publish-link-file): Check to see whether the given link
762 points at a valid file. If so, return it. Otherwise, apply other
763 transforms like prefix and link suffix.
765 * lisp/muse-regexps.el (muse-file-regexp): If something ends in
766 "/", it is a file or directory, not a Muse page. Thanks to
767 Phillip Lord for the suggestion.
769 * lisp/muse-wiki.el (muse-wiki-resolve-project-page): Use the path
770 of the current page as the local path, instead of duplicating the
771 remote file's path. This probably fixes at least one reported
772 bug. since it's quite major.
773 (muse-wiki-update-project-file-regexp)
774 (muse-wiki-update-interwiki-regexp): Ensure that nil is never
775 passed to regexp-opt, since that can cause Emacs 21 to throw an
776 "maximum binding depth exceeded" error. Thanks to xs32 AT cornell
777 DOT edu for the report.
778 (muse-wiki-handle-wikiword): Avoid a potential stringp error.
780 2006-10-28 Michael Olson <mwolson@gnu.org>
782 * lisp/muse-project.el (muse-project-choose-style-by-link-suffix)
783 (muse-project-resolve-link): If the given style does not have a
784 link-suffix, default to suffix. This fixes a bug I was noticing
785 when linking to a file that was published in both PDF and HTML
788 * lisp/muse-publish.el (muse-publish-determine-dl-indent): New
789 function that is used as a callback to determine the initial
790 amount of indentation that the current dl item has.
791 (muse-publish-surround-dl): Use it. Pass the initial indent value
792 and the post-indent value, instead of trying to determine them
794 (muse-publish-strip-list-indentation): New function stripped from
795 `muse-publish-surround-text' for readability.
796 (muse-publish-surround-text): Instead of taking a determine-indent
797 value, take a determine-indent-func function, which is called just
798 after finding the next list item. If we are asked to determine
799 the amount of indentation, concatenate indent and post-indent the
800 first time around. This effectively fixes all known definition
803 2006-10-16 Michael Olson <mwolson@gnu.org>
805 * lisp/muse.el: Provide the 'muse-nested-tags feature so that
806 other software -- namely, Planner -- can detect whether they are
807 using a version of Muse that supports nested tags.
808 (muse-goto-tag-end): Moved from muse-publish.el and renamed from
809 muse-publish-goto-tag-end.
811 * lisp/muse-colors.el (muse-colors-tags, muse-colors-custom-tags):
812 Adapt for nested tags.
814 * lisp/muse-html.el (muse-html-markup-tags): Indicate that the
815 <class> tag is nestable. Thanks to Phillip Lord for noticing
818 * lisp/muse-publish.el (muse-publish-markup-tag)
819 (muse-publish-quote-tag): Use muse-goto-tag-end.
821 * lisp/muse-wiki.el ("muse-colors"): Adapt for nested tags.
823 2006-10-15 Michael Olson <mwolson@gnu.org>
825 * AUTHORS: Bookkeeping.
827 * lisp/muse-blosxom.el (muse-blosxom-header): Indent code in lisp
830 * lisp/muse-groff.el (muse-groff-markup-tags): Adapt for nested
833 * lisp/muse-html.el (muse-html-markup-tags): Ditto.
835 * lisp/muse-import-docbook.el (muse-import-docbook)
836 (muse-import-docbook-files): Docfix.
837 (muse-import-docbook-get-title): Remove cl.el-ism.
839 * lisp/muse-import-xml.el (muse-import-xml): Fix compiler warning.
841 * lisp/muse-journal.el (muse-journal-latex-markup-tags): Ditto.
843 * lisp/muse-latex2png.el (muse-publish-markup-tags): Ditto.
845 * lisp/muse-mode.el (muse-previous-reference): Minor docfix.
846 (muse-next-reference, muse-previous-reference): Minor whitespace
848 (muse-mode-choose-mode): Add autoload cookie. Thanks to Leo for
851 * lisp/muse-poem.el (muse-poem-tag): Ditto.
853 * lisp/muse-publish.el (muse-publish-markup-tags)
854 (muse-publish-markup-header-footer-tags): Shift 4th element to 5th
855 element and make 4th element determine whether tags are nestable.
856 (muse-publish-goto-tag-end): New function that moves to the end of
857 a tag. Handle nested tags when NESTED is non-nil.
858 (muse-publish-markup-tag): Call muse-publish-goto-tag-end. Use
859 5th element for function.
860 (muse-publish-quote-tag): Handle nested quote tags. I've tested
861 this on several scenarios, and it seems to work.
862 (muse-publish-surround-text): Accept new optional argument
863 LIST-ITEM which determines the regexp to use for list items. The
864 default is to use muse-list-item-regexp.
866 * muse.texi (Markup Tags): Mention nestable tags.
868 * NEWS: Mention new files.
870 2006-10-15 Elena Pomohaci <e.pomohaci@gmail.com>
872 * lisp/muse-import-docbook.el: New file that converts Docbook XML
875 * lisp/muse-import-xml.el: New file that provides helper routines
876 for converting XML-ish files to Muse format.
878 2006-10-10 Michael Olson <mwolson@gnu.org>
880 * NEWS: Update for 3.02.7 bugfix release.
882 2006-10-06 Sasha Kovar <sasha@arcocene.org>
884 * lisp/muse-blosxom.el (muse-blosxom-header): Insert the date
885 using the value in the muse #date directive.
886 (muse-blosxom-use-metadate): New option that determines whether or
887 not to use the #postdate directive.
888 (muse-blosxom-format-date): Convert a date string to PyBlosxom
889 metadate plugin format.
891 2006-09-30 Stefan Schlee <stefan_schlee@yahoo.com>
893 * lisp/muse-protocols.el: Fix bug #6741: Exclude colon in
896 * muse.texi: Clarify handling of implicit links by mentioning
897 which characters can prevent Muse from recognizing something as an
900 2006-09-26 Stefan Schlee <stefan_schlee@yahoo.com>
902 * lisp/muse-mode.el (muse-next-reference)
903 (muse-previous-reference): Fix bug #6367 by moving point to the
904 beginning of the link.
906 2006-09-26 Michael Olson <mwolson@gnu.org>
908 * lisp/muse-colors.el (muse-use-font-lock): Don't quote
909 beginning-of-line. This should fix a bug that was noticed in
910 recent Emacs 22 builds.
912 * lisp/muse-backlink.el: Wrap muse-backlink-split-string in an
913 eval-and-compile block to avoid a compiler warning.
915 2006-09-25 Jim Ottaway <j.ottaway@lse.ac.uk>
917 * lisp/muse-backlink.el (muse-backlink-split-string):
918 Compatibility with Emacs versions < 22
919 (muse-backlink-pending): New internal variable
920 (muse-backlink-get-mode-hook): Find the major mode hook to use, so
921 that backlinks are inserted at the right time.
922 (muse-backlink-insert-hook-func): Remove unwind-protection; check
923 for pending backlink, and that this is the targe page.
924 (muse-backlink-handle-link): Don’t handle the link if we are
925 already handling one. Return the link as well as the parent links.
927 2006-09-25 Sasha Kovar <sasha@arcocene.org>
929 * lisp/muse-blosxom.el (muse-blosxom-new-entry): : Fix for bug
930 #6942 - muse-blosxom-new-entry fails when using tags.
932 2006-09-14 Michael Olson <mwolson@gnu.org>
934 * lisp/muse-texinfo.el (muse-texinfo-protect-wikiwords): Silence
937 2006-09-14 Jim Ottaway <j.ottaway@lse.ac.uk>
939 * lisp/muse-texinfo.el (muse-texinfo-protect-wikiwords): New
940 function: Protect all wikiwords from START to END from further
942 (muse-texinfo-markup-heading): Use muse-texinfo-protect-wikiwords.
944 2006-09-13 Michael Olson <mwolson@gnu.org>
946 * lisp/muse-texinfo.el (muse-texinfo-markup-heading): New function
947 adopted from Jim Ottaway's patch. It removes links from the
948 heading, and then marks the region read-only to inhibit WikiWord
951 2006-09-13 Jim Ottaway <j.ottaway@lse.ac.uk>
953 * lisp/muse-texinfo.el (muse-texinfo-markup-functions): Add
954 special handling for headings.
955 (muse-texinfo-remove-links): New function that removes explicit
956 links from the given strings, replacing them with a description.
958 2006-09-11 Michael Olson <mwolson@gnu.org>
960 * muse.texi (Getting Help and Reporting Bugs): Mention the
961 muse-el-internationalization mailing list.
963 * lisp/muse.el (muse-path-sans-extension): New function that acts
964 like file-name-sans-extension, but guarantees to never modify the
965 directory part of the path. Thanks to Evan Monroig for
968 * lisp/muse-book.el (muse-book-publish-project): Use
969 muse-path-sans-extension instead of file-name-sans-extension.
971 * lisp/muse-publish.el (muse-publish-file, muse-publish-url):
974 2006-08-30 Michael Olson <mwolson@gnu.org>
976 * muse.texi (Blosxom Requirements): Fix typo.
978 * contrib/pyblosxom/getstamps.py (recurse): Ignore metadata
979 directories for bzr and darcs.
981 * contrib/pyblosxom/make-blog, contrib/pyblosxom/hardcodedates.py:
982 contrib/pyblosxom/getstamps.py: Update version and headers.
984 2006-08-27 Michael Olson <mwolson@gnu.org>
986 * lisp/muse-colors.el (muse-configure-highlighting): Prune out any
987 nil values before they get to mapconcat. This fixes a lockup when
988 muse-wiki-match-all-project-files is nil.
990 * lisp/muse-wiki.el (muse-wiki-match-all-project-files)
991 (muse-wiki-ignore-implicit-links-to-current-page)
992 (muse-wiki-interwiki-regexp, muse-wiki-interwiki-alist)
993 (muse-wiki-resolve-project-page, muse-wiki-handle-interwiki)
994 (muse-wiki-publish-small-title-words)
995 (muse-wiki-publish-pretty-title): Docfix.
996 (muse-wiki-update-local-wikiword-regexp): Rename from
997 muse-wiki-update-local-wikiword-regexp. Set
998 muse-wiki-project-file-regexp instead of
999 muse-wiki-wikiword-regexp, as suggested by Per Sederberg. Don't
1000 take muse-wiki-use-wikiword into account, since this is a
1001 different concept now.
1002 (muse-wiki-update-wikiword-regexp): Remove.
1003 (muse-wiki-wikiword-regexp): In-line the :set function.
1004 (muse-wiki-handle-wikiword): Use muse-wiki-project-file-regexp.
1006 2006-08-26 Michael Olson <mwolson@gnu.org>
1008 * lisp/muse-publish.el (muse-publish-surround-text): When looking
1009 for indented list items, ignore blank lines.
1011 * lisp/muse-wiki.el (muse-wiki-update-local-wikiword-regexp)
1012 (muse-wiki-update-interwiki-regexp): Use regexp-opt instead of
1013 mapconcat. This should hopefully fix a problem with large amounts
1014 of files with spaces in their name. Thanks to Greg Detre for the
1017 2006-08-24 Michael Olson <mwolson@gnu.org>
1019 * lisp/muse-blosxom.el (muse-blosxom-new-entry): Remove the
1020 numbers from the argument to format-time-string. This fixes an
1021 XEmacs bug. Thanks to Michael Welle for the report and analysis.
1023 2006-08-18 Michael Olson <mwolson@gnu.org>
1025 * lisp/muse-project.el (muse-project-file-entries): Since we are
1026 given a full path, match against the filename as well. This fixes
1027 an issue where backup files were being added to the file alist.
1029 * lisp/muse-docbook.el (muse-docbook-markup-regexps): Apply a fix
1032 2006-08-12 Michael Olson <mwolson@gnu.org>
1034 * Makefile (.PHONY): Don't use line continuations.
1035 (realclean fullclean): Call realclean in subdirs, not distclean.
1036 (distclean): Don't call realclean, since this would wipe out our
1038 (dist): Use correct path to autoloads file.
1040 * NEWS: Catch up with the latest changes.
1042 * experimental/Makefile (.PHONY): Wrap long line.
1044 * lisp/Makefile (distclean): Do the same thing as "clean", not
1047 * lisp/muse-project.el (muse-project-get-applicable-style):
1049 (muse-project-ignore-regexp, muse-project-recurse-directory):
1051 (muse-project-of-file): Try the ignored files regexp against the
1052 base filename as well as the entire path.
1054 * lisp/muse-publish.el (muse-publish-this-file): Display message
1055 if the buffer is not associated with any file, so that we avoid
1057 (muse-publish-url-desc): New function taken from muse-publish-url
1058 that causes a URL description to be transformed.
1059 (muse-publish-url): Call muse-publish-url-desc on either the
1060 description or the original URL if it will be used as a
1061 description. Accept the original URL as an argument, in case it
1062 was transformed earlier.
1063 (muse-publish-insert-url): Pass original URL as an argument.
1064 (muse-publish-markup-link): Make this somewhat easier to follow.
1065 Pass original URL as argument.
1066 (muse-publish-get-style): If the same style is used to publish to
1067 two different directories, prompt the user for which directory to
1069 (muse-publish-markup-header-footer-tags): Sync lisp tag with the
1071 (muse-publish-markup-url): Pass original URL as an argument. This
1072 fixes the "nil" description for bare URLs that was in 3.02.91.
1073 Nothing like finding a bug just after completing the announcement
1076 * lisp/muse.el: Use defalias whenever convenient.
1077 (muse-version): Set version to 3.02.92 (3.03 RC2).
1079 2006-08-10 Michael Olson <mwolson@gnu.org>
1081 * lisp/muse-html.el (muse-html-finalize-buffer): Since the html
1082 style does not derive from any other class, return `t' here.
1083 This, along with the corresponding change to muse-publish.el,
1084 fixes a problem with the table of contents getting inserted
1085 multiple times for custom html-based styles.
1086 (muse-html-markup-strings, muse-xhtml-markup-strings): Use a
1087 smarter method for table centering that works with XHTML.
1089 * lisp/muse-latex2png.el Rename all functions to have a
1090 "muse-latex2png" prefix. Turn all variables into customizable
1091 options in the muse-latex2png group.
1092 (muse-latex2png-img-dest): New option specifying where to place
1094 (muse-latex2png-template): New option containing the template to
1095 use for the surrounding LaTeX code.
1096 (muse-latex2png-use-xhtml): New option that toggles strict XHTML
1098 (muse-latex2png-move2pubdir): Avoid multiple redundant error
1099 messages when something else goes wrong. Create the image
1100 subdirectory if it doesn't exist already -- thanks to Christian
1101 Straßer for the report. Expand the filename properly.
1102 (muse-publish-latex-tag, muse-latex2png): Ditto on error messages
1103 and filename expansion.
1104 (muse-latex2png): Use the "muse-latex2png" prefix by default. Set
1105 the default directory properly.
1107 * lisp/muse-publish.el (muse-style-run-hooks): Make sure that we
1108 do not run the same function twice.
1110 2006-08-08 Michael Olson <mwolson@gnu.org>
1112 * lisp/muse-colors.el (muse-colors-explicit-link): Fix recently
1113 introduced wrong-type-argument error.
1115 * lisp/muse-html.el (muse-html-markup-strings)
1116 (muse-xhtml-markup-string): Cause table definition that contains
1117 image to be center-aligned. This should fix an issue with images
1118 not being centered when captions are very long.
1120 * lisp/muse-publish.el (muse-publish-table-fields): Trim
1121 whitespace from fields once we have split them up.
1123 * lisp/muse.el (muse-trim-whitespace): New function that strips
1124 leading and trailing whitespace from a string.
1126 2006-08-07 Michael Olson <mwolson@gnu.org>
1128 * NEWS: Update through patch-95.
1130 * lisp/muse-colors.el (muse-colors-lisp-tag): Use a simpler regexp
1132 (muse-colors-explicit-link): Show images in link descriptions if
1133 inlined images are enabled.
1135 * lisp/muse-docbook.el (muse-docbook-markup-strings): Add
1136 definitions for 'image-with-desc, 'image, and 'image-link.
1137 (muse-docbook-markup-paragraph): If an inlined image begins a
1138 paragraph, insert <para> before it.
1139 (muse-docbook-fixup-images): New function that upper-cases the
1140 "format" attribute of the <imagedata> tag.
1141 (muse-docbook-finalize-buffer): Call it.
1143 * lisp/muse-html.el (muse-html-markup-strings): Publish images
1144 with descriptions as centered tables, with a centered caption
1145 underneath. The resulting look is consistent with the way that
1146 they are published in the LaTeX style. Thanks to Jody Klymak for
1148 (muse-xhtml-markup-strings): Ditto, but XHTML apparently has no
1149 valid way to center a table.
1150 (muse-html-markup-paragraph): Use class="image" instead of
1151 "image-link" for paragraphs that start with an embedded image.
1153 * lisp/muse-latex.el (muse-latex-markup-specials-url): Use
1154 \textbackslash{} for "\". Thanks to Jim Ottaway for the
1156 (muse-latex-markup-specials-image): New option that enables
1157 escaping of specials in images. This was split from the URL
1159 (muse-latex-decide-specials): Handle 'image context.
1160 (muse-latex-fixup-dquotes): Go to beginning of document, instead
1161 of relying on caller to do this for us.
1163 * lisp/muse-publish.el (muse-publish-escape-specials): Document
1165 (muse-publish-url): Use 'image context for images. Use 'image
1166 instead of 'image-link and 'image-link in place of
1167 'url-with-image. Separate the image file from its extension so
1168 that docbook and texinfo can publish images correctly.
1169 (muse-publish-markup-link): Don't force a description if one is
1170 not given. This fixes a bug where images without descriptions
1171 were being published as 'image-with-desc instead of 'image.
1173 * lisp/muse-texinfo.el (muse-texinfo-decide-specials): Treat
1174 images the same as URLs.
1175 (muse-texinfo-markup-strings): Improve image markup to achieve an
1176 effect similar to that of the LaTeX publishing style. Simplify
1179 * lisp/muse-xml-common.el (muse-xml-decide-specials): Ditto.
1181 * lisp/muse.el (muse-replace-regexp-in-string): Save match data
1182 when we have to use the custom version of this function.
1184 * muse.texi (Images): Explain how to toggle inlining of images and
1185 give better examples. Mention captions and that captioned images
1186 should not be used inside of text paragraphs.
1187 (Markup Strings): Bring up-to-date with the changes made since
1190 2006-08-06 Michael Olson <mwolson@gnu.org>
1192 * ChangeLog.1: Rename from ChangeLog.2004 to comply with standards
1193 in the Emacs source tree.
1195 * ChangeLog.2: Rename from ChangeLog.2005 to comply with standards
1196 in the Emacs source tree.
1198 * ChangeLog.3: New file created from the old ChangeLog.
1200 * Makefile.defs (VERSION): Set to 3.02.91.
1202 * NEWS: Update through patch-84.
1204 * lisp/muse.el (muse-version): Set to 3.02.91.
1206 * lisp/muse-colors.el (muse-colors-tags): Allow <lisp> to take
1208 (muse-colors-lisp-tag): Figure out where the <lisp> tag and its
1209 delimiter are instead of hard-coding it.
1211 * lisp/muse-mode.el (muse-insert-thing): Qualify "tag".
1212 (muse-mode): Make filling definition lists work better. This
1215 * lisp/muse-publish.el (muse-style-run-hooks): Use
1216 `muse-style-element' instead of `muse-get-keyword' here. This
1219 * muse.texi: Set version to 3.02.91 (3.02 RC2).
1221 See ChangeLog.3 for earlier changes.