[logaling-commit] logaling/logalimacs [master] Use condition-case statement instead of ignore-errors

Zurück zum Archiv-Index

Yuta Yamada null+****@clear*****
Wed Sep 12 14:14:04 JST 2012


Yuta Yamada	2012-09-12 14:14:04 +0900 (Wed, 12 Sep 2012)

  New Revision: 32f41e13da577e4a9c577b94eb3a848caa48209d
  https://github.com/logaling/logalimacs/commit/32f41e13da577e4a9c577b94eb3a848caa48209d

  Log:
    Use condition-case statement instead of ignore-errors

  Modified files:
    logalimacs.el

  Modified: logalimacs.el (+7 -3)
===================================================================
--- logalimacs.el    2012-09-11 15:43:28 +0900 (d68b687)
+++ logalimacs.el    2012-09-12 14:14:04 +0900 (6fee8fd)
@@ -693,9 +693,13 @@ Otherwise passed character inside region."
                  (loga-extract-prototype-from (loga-get-search-word)))))
 
 (defun loga-delete-popup ()
-  (ignore-errors
-    (if (popup-live-p menu)
-        (popup-delete menu))))
+  (let ((delete-popup
+          (lambda ()
+            (popup-live-p menu)
+            (popup-delete menu))))
+    (condition-case error
+        (funcall delete-popup)
+      (error error))))
 
 (defun loga-singularize (word)
   (if (and loga-use-singular-form
-------------- next part --------------
An HTML attachment was scrubbed...
Download 



More information about the logaling-commit mailing list
Zurück zum Archiv-Index