# HG changeset patch # User Oleksandr Gavenko # Date 1317908495 -10800 # Node ID e50b78c6a53d4029612997422084fd71844b92a9 # Parent 9ec79850e725162c0954375dfe8a297cc782b582 Fix: ignore-errors does not defined under Emacs 22.2.1 (on Debian). diff -r 9ec79850e725 -r e50b78c6a53d .emacs-my --- a/.emacs-my Mon Sep 19 21:05:09 2011 +0300 +++ b/.emacs-my Thu Oct 06 16:41:35 2011 +0300 @@ -66,6 +66,14 @@ ,list) r)) +(unless (fboundp 'ignore-errors) + (defmacro ignore-errors (&rest body) + "Execute BODY; if an error occurs, return nil. +Otherwise, return result of last form in BODY." + (declare (debug t) (indent 0)) + `(condition-case nil (progn ,@body) (error nil))) + ) + ;;; ---------------------------------------------------------------- (message "mode groups")