浏览代码

Merge branch 'maint'

Bastien Guerry 13 年之前
父节点
当前提交
5940b7aa65
共有 2 个文件被更改,包括 8 次插入2 次删除
  1. 1 1
      contrib/lisp/org-e-publish.el
  2. 7 1
      lisp/org-freemind.el

+ 1 - 1
contrib/lisp/org-e-publish.el

@@ -600,7 +600,7 @@ is the property list for the given project.  PUB-DIR is the
 publishing directory.
 publishing directory.
 
 
 Return output file name."
 Return output file name."
-  (org-e-publish-org-to 'e-html filename "html" plist pub-dir))
+  (org-e-publish-org-to 'e-html filename ".html" plist pub-dir))
 
 
 ;; TODO: Not implemented yet.
 ;; TODO: Not implemented yet.
 ;; (defun org-e-publish-org-to-org (plist filename pub-dir)
 ;; (defun org-e-publish-org-to-org (plist filename pub-dir)

+ 7 - 1
lisp/org-freemind.el

@@ -527,6 +527,7 @@ DRAWERS-REGEXP are converted to freemind notes."
 					  next-has-some-visible-child)
 					  next-has-some-visible-child)
   (let* (this-icons
   (let* (this-icons
          this-bg-color
          this-bg-color
+	 this-m2-link
          this-m2-escaped
          this-m2-escaped
          this-rich-node
          this-rich-node
          this-rich-note
          this-rich-note
@@ -559,6 +560,10 @@ DRAWERS-REGEXP are converted to freemind notes."
             (add-to-list 'this-icons "full-7"))
             (add-to-list 'this-icons "full-7"))
            ))))
            ))))
     (setq this-m2 (org-trim this-m2))
     (setq this-m2 (org-trim this-m2))
+    (when (string-match org-bracket-link-analytic-regexp this-m2)
+      (setq this-m2-link (concat "link=\"" (match-string 1 this-m2)
+				 (match-string 3 this-m2) "\" ")
+	    this-m2 (replace-match "\\5" nil nil this-m2 0)))
     (setq this-m2-escaped (org-freemind-escape-str-from-org this-m2))
     (setq this-m2-escaped (org-freemind-escape-str-from-org this-m2))
     (let ((node-notes (org-freemind-org-text-to-freemind-subnode/note
     (let ((node-notes (org-freemind-org-text-to-freemind-subnode/note
                        this-m2-escaped
                        this-m2-escaped
@@ -568,7 +573,8 @@ DRAWERS-REGEXP are converted to freemind notes."
       (setq this-rich-node (nth 0 node-notes))
       (setq this-rich-node (nth 0 node-notes))
       (setq this-rich-note (nth 1 node-notes)))
       (setq this-rich-note (nth 1 node-notes)))
     (with-current-buffer mm-buffer
     (with-current-buffer mm-buffer
-      (insert "<node text=\"" this-m2-escaped "\"")
+      (insert "<node " (if this-m2-link this-m2-link "")
+	      "text=\"" this-m2-escaped "\"")
       (org-freemind-get-node-style this-m2)
       (org-freemind-get-node-style this-m2)
       (when (> next-level current-level)
       (when (> next-level current-level)
         (unless (or this-children-visible
         (unless (or this-children-visible