I found that it is a mistake that graphicx.el neglects
\DeclareGraphicsRule and \DeclareGraphicsExtension and I have therefore
added them; the modifications are conviently attached in a diff-file.
-- 
Med Venlig Hilsen / Kind Regards,
Mads Jensen
Rubinsteinsvej 31,st.th
DK-2450 Kbh. SV
Denmark
+45 6168 8518
--- graphicx.el	2011-02-04 21:56:04.000000000 +0100
+++ graphicx.el.mads	2011-02-04 21:55:04.000000000 +0100
@@ -41,7 +41,10 @@
     '("resizebox*" "Width" "Total height" "Argument")
     '("rotatebox" [ "Options" ] "Angle" "Argument")
     '("scalebox" "Horizontal scale" [ "Vertical scale" ] "Argument")
-    '("includegraphics" LaTeX-arg-includegraphics))
+    '("includegraphics" LaTeX-arg-includegraphics)
+    '("DeclareGraphicsRule" "Extension" "Type" "Read-file" "Command (e.g., `gunzip -c'")
+    '("DeclareGraphicsExtension" "Extension"))
+   
    ;; Fontification
    (when (and (featurep 'font-latex)
 	      (eq TeX-install-font-lock 'font-latex-setup))
@@ -49,7 +52,10 @@
 				("resizebox" "*{{{")
 				("rotatebox" "[{{")
 				("scalebox" "{[{"))
-			      'textual)
+                              'textual)
+     (font-latex-add-keywords '(("DeclareGraphicsRule" "{{{{")
+                                '("DeclareGraphicsExtension" "{")
+                                  'function))
      (font-latex-add-keywords '(("includegraphics" "*[[{")) 'reference))))
 
 (defun LaTeX-includegraphics-extensions (&optional list)

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
auctex-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to