emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[emacs-wiki-discuss] patch to make muse-latex2png work under XEmacs 21.4


From: Neilen Marais
Subject: [emacs-wiki-discuss] patch to make muse-latex2png work under XEmacs 21.4.17
Date: Wed, 30 Nov 2005 23:04:25 +0200

Hi

Since no-one to my earlier mail about muse-latex2png and XEmacs 21.4.17,
I was forced to learn some elisp. Sometimes remaining silent is the best
way to teach, and for that I thank you ;P

Anyhow, the problem was that the function file-expand-wildcards is not
available in XEmacs 21.4.17. Looking at the code in question, it seems
like the return value of file-expand-wildcards isn't actually used, so
it can be safely removed without affecting behaviour.

Here is a patch to remove the call to file-expand-wildcards:

--- orig/lisp/muse-latex2png.el
+++ mod/lisp/muse-latex2png.el
@@ -54,10 +54,9 @@
   (if (and (file-exists-p file)
            (file-directory-p pubdir))
       (progn
-        (let ((files (file-expand-wildcards (concat pubdir prefix "_*") t)))
-          (copy-file file (concat pubdir (file-name-nondirectory file)) t)
-          (delete-file file)
-          (concat "./latex/" (file-name-nondirectory file))))
+       (copy-file file (concat pubdir (file-name-nondirectory file)) t)
+       (delete-file file)
+       (concat "./latex/" (file-name-nondirectory file)))
     (message "The latex folder does not exist!")))
 
 (defun muse-publish-latex-tag (beg end attrs)

Thanks
Neilen







reply via email to

[Prev in Thread] Current Thread [Next in Thread]