[logaling-commit] logaling/logalimacs [master] loga-fallback: Add condition statement when the fallback was undefined

Back to archive index

null+****@clear***** null+****@clear*****
Sun Jul 1 21:45:55 JST 2012


yuta yamada	2012-07-01 21:45:55 +0900 (Sun, 01 Jul 2012)

  New Revision: 05b407c8a51da837ea771ebe3a9a382d82b524eb
  https://github.com/logaling/logalimacs/commit/05b407c8a51da837ea771ebe3a9a382d82b524eb

  Log:
    loga-fallback: Add condition statement when the fallback was undefined

  Modified files:
    logalimacs.el

  Modified: logalimacs.el (+4 -3)
===================================================================
--- logalimacs.el    2012-07-01 21:42:40 +0900 (2e4afe1)
+++ logalimacs.el    2012-07-01 21:45:55 +0900 (a8e0265)
@@ -572,9 +572,10 @@ Example:
 
 (defun loga-fallback (&optional search-word)
   (interactive)
-  (funcall loga-fallback-function (or search-word (caar loga-word-cache)))
-  ;; exit popup
-  (keyboard-quit))
+  (when (functionp loga-fallback-function)
+    (funcall loga-fallback-function (or search-word (caar loga-word-cache)))
+    ;; exit popup
+    (keyboard-quit)))
 
 (provide 'logalimacs)
 
-------------- next part --------------
An HTML attachment was scrubbed...
下载 



More information about the logaling-commit mailing list
Back to archive index