Explorar el Código

trick the compiler

* lisp/org-macs.el (org-without-partial-completion): Avoid calling by
  name a function unknown to the compiler but explicitly checked by
  program logic.
Eric Schulte hace 14 años
padre
commit
c83cfcc243
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      lisp/org-macs.el

+ 2 - 2
lisp/org-macs.el

@@ -116,9 +116,9 @@ Also, do not record undo information."
 		       partial-completion-mode)))
      (unwind-protect
 	 (progn
-	   (if pc-mode (partial-completion-mode -1))
+	   (when pc-mode (funcall pc-mode -1))
 	   ,@body)
-       (if pc-mode (partial-completion-mode 1)))))
+       (when pc-mode (funcall pc-mode 1)))))
 
 (defmacro org-maybe-intangible (props)
   "Add '(intangible t) to PROPS if Emacs version is earlier than Emacs 22.